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!
SHANAB :P
Hello ! Can you do the same for the teleportation ? When a player is teleported , a command is execute !
@TruDan97
I know how to make regions using WorldEdit.
@darkgod153
same problem here.
@KingFaris10
..
Please can you make this compatible with regions? It'd save alot of time setting it to every block in my portal (large-ish portals). If you're unsure of code for how to check it etc, check out this file https://github.com/SpyroDev/JumpPorts/blob/master/src/main/java/net/roguedraco/jumpports/JumpPort.java
mainly in setRegion() and hasBlock()
thx.
Notice
Completely recoding this from scratch! You will need to delete all command portals once the newer version comes outs as it reads the configuration differently!
@futhead_Nikolov69
I never realised that... o.O
You can only use it if the name consists of one letter only.
So /addcmdportal q /warp shop would work.
Source code is up on the page
@AbandonedMinecart
My PC's sorta not working atm so I can't send you sorry.
@AbandonedMinecart
When I go on my Windows PC, I will.
@darkgod153 I told you the plugin won't be updating. I really can't help you with this plugin.
@AbandonedMinecart
Sure.
@KingFaris10
Hey i would like some help with this plugin cause i cant seem to be able to use it correctly. Every time i use the command /addcmdportal (portalname) (command) it makes the portal but i don't know what do do after that. how do i activate it and is there a correct place to make the commandportal? It would be appreciated if you could reply anytime soon.
Will you be willing to post the source?
Good news
I haven't got much to code now so I might be able to carry on with this project!
@remcov1 There is a download =)
perfect plugin i wait on the download
Important Notice
I'm closing this project as I have other projects such as KingKits to work on.
Yes KingFaris10, i tried this plugin so i could check if the "warp" command worked when i made a test portal like this: /addcmdportal test warp test, where "warp test" was the command to warp to the test warp i named "test"! But i got the same problem, it stay the portal was successfully created, but when i stept on a stone pressure plate/ the stone block, nothing happend!
I think you should look closer into the problem in the plugin. :)