CommandPortals
CommandPortals - By KingFaris10
What is CommandPortals?
CommandPortals is a very simple plugin that makes portals that runs a command when a player steps on them. The reason it's simple is because there's only 3 commands and a few permissions!
Advantages of using this plugin
Why use this plugin? Well, in this plugin, when you create a portal, it doesn't make it set to a specific block and so you can have an invisible portal or a pressure plate or any block. Also, in the configuration you can add a delay in seconds as to when to execute the command. Lastly, there are very few permission nodes that are easy to remember and 3 commands. From version 1.0.4 and upwards, you can add multiple locations as one portal by modifying the portal configuration. It also has built-in WorldEdit support so you can use that instead of modifying the portal configuration.
Instructions
Stand on a block and type /addcmdportal <portal> <command>
'<portal>' can be replaced with any name. The only time the <portal> bit is actually used is when you delete the portal or add more commands to it.
'<command>' is the command to make the player run. Do not type the slash for the command unless it's WorldEdit where it uses double slashes. Use one slash in that case. You can use <player> inside the <command> to be replaced with the player's name.
Commands and Permissions
Command | Description | Permission |
---|---|---|
N/a | Use a command portal. | cmdportals.use |
addcmdportal | Create a command portal or add commands to an existing portal. | cmdportals.create |
delcmdportal | Delete a command portal. | cmdportals.delete |
listcmdportals | List all the command portals. | cmdportals.list |
Configuration
You do not need to do anything with the configuration files except 'config.yml' located in '/plugins/CommandPortals/'.
You can change the delay (in seconds) as to when the commands are to be executed when the player steps on it.
Supports
This plugin is 100% compatible with WorldEdit and has a built-in system that allows WorldEdit selections to be set as command portals. Although, WorldEdit is NOT required to use this plugin normally.
Suggestions
Feel free to post suggestions in the comments box.
Other plugins by KingFaris10
Check out all my other cool plugins!
AdminFun: http://dev.bukkit.org/server-mods/AdminFun/ | Let your admins have fun using awesome trolling/broadcast commands!
ItemRenamer: http://dev.bukkit.org/server-mods/Rename-Items/ | Rename items (Supports colour codes) without the use of anvils! Also, you can add lores to your item.
EasyPermissionsEx: http://dev.bukkit.org/server-mods/EasyPex/ | Make all the commands easier and shorter for PermissionsEx and make life 100x times more easier =)
KingKits: http://dev.bukkit.org/server-mods/KingKits/ | Turn your server/world into a PvP Battle Kit place where people fight for their lives.
Thank you
Like this plugin? Tell your friends about it too!
Changelog for the new version 1.0.4 that is being approved by BukkitDev staff:
- WorldEdit support: Allows you to select a region to be a portal.
Note: This is not a required plugin, but an extra feature.
- Removed information from /listcmdportals as there are many locations in one portal from now one.
- Multiple locations for one portal (can only be modified in the configuration or using WorldEdit selections)
- May have fixed possible bugs.
- Updated the auto updater and modified it a bit.
@dsawdwQA
Is /warp HG meant to give the kit? All this plugin does is runs the command from the console so you must do for the CMDPortal "sudo <player> <command>".
@skatethegreat
Happened to my friend, I'm making a new version anyway with WorldEdit support.
@SkymuraiPvP
Thanks. Also, the shifting doesn't work? I'll look into the code, if I can't find anything against shifting, it's on your side.
Hold up. This doesn't work while shifting? Any help?
Exactly what I needed and expected from this Plugin 10/10
i did what you said to do but nothing happens when i step on it
The command portal works, but when they do /warp HG, they don't get the kit. They have to get off the block they warped onto and then walk back on it to get the kit
@KingFaris10 @KingFaris10
Can these have multi commands for minigames so when game 1 is full it will send them to game 2 and so on and then when the games finish it will start joining again ?
@Vlaminations
Yes, <player> is already built in.
@andyspace144
Good idea!
@dsawdwQA
You must do: addcmdportal HG sudo <player> pvpkit HG
The reason is because it runs the command from the console.
Hello! For some reason, the plugin doesnt seem to work. I want them to run the command pvpkit HG when they warp to the HG arena, but it's not working
Here's the command I did: cmdaddportal HG pvpkit HG
Are there permissions that allow access to only a specific CommandPortal?
e.g. cmdportals.use.<portalname>
Hey! For the command is it possible to like do: /addcmdportal <portalname> tell <player> Test
Would it be possible to get the players name for the command?
@999Mockingjay999
That wouldn't suit this plugin but a whole new separate plugin. I may do this built in or a separate one.
@KingFaris10 Hey, I was wondering if you could add a cooldown to the command portals, or a way to only allow players to use that portal once, unless they have an overriding permission.
@Hugo74
I was thinking about that but how on earth can players be teleported into a portal, unless the delay?
@thobod
Yes, what ramsleep2 said. Thanks ramsleep2.
@uglybutcher101
Yes, that's why there's /addcmdportal <portal> <command>
@killyouslow
It does work with Multiverse, it's because you're using nether portals.
this doesnt work with mulitverse ill add a portal then use it to tp to another world then when i come back to the world the command portal has dissapeared
Can It Set Up More Then 1?
@thobod
Yea, The plugin runs commands through the console like a command block. So you would have to find a way to make the console sudo the player/players into running the command or something along those lines
hey
i have a problem, i think i do something wrong, i stand on a block then i typ /addcmdportal run irun join 1 i want the portal to be called irun, and i want the command to be /irun join 1, then it says the command portal 'run' has been created, but i cant use it, i tried to stand on it for +- 5 sec multiple times, but it doesnt work, do i do something wrong or do i need an other plugin along with it? can you help me?