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!
Could other people please comment if this is working. It's working perfectly fine for me so I'm a bit confused about what's happening to yurikoma.
@yurikoma
Good idea, I'll add the <player> (HashTags aren't supported in the plugin code for some reason).
Also, I'm not sure why it isn't working for you. Make sure the delay in the configuration is set to 0 and if it doesn't work, tell me in a PM.
I have a command to warp to other locations /warp <placename>
but when using this plugin i used the command /addcmdportal PN warp portalnexus but standing on the block doesn't do anything (kind of confusing, becasue i know it works by manualy using the command)
also do you havea way to insert the players name when the command is getting issued by the block. as in you type in the command as /addcmdportal <portal> <command> <#p> and when the command is issued it changes #p to the name of the player who activated it?
now i can't get it to work...
Bukkit staff have approved v1.0.0
@tomsno12272
Wait till Bukkit approves the file.
@KingFaris10
Were Do I Download It From?
@kingdiamond159
No problem... I guess... Stop posting about other plugins on this page. You can PM me you know...
@lionnhard
Sure. That's an amazing idea. It's gonna take a while but I'm up for it.
KingFaris10, Thank you for the KingKits and Rename Item :)
@kingdiamond159
Yes I do remember you. Thanks.
Hey KingFaris10 Nice Plugin You Have Here :D
Remember me from iblock and .Net?
@dahaab
Good idea. I'll add that to v1.0.1
1.0.0
I've uploaded the plugin a minute ago. Bukkit will take a while to approve the file so just wait a while. Oh... that rhymes. File.. while... Anyway, just wait patiently.
I'm really looking forward to this!
Yester I wanted to look over the internet for a simaler plugin like this but I couldn't find it. Now I was looking at recent plugins and this overwelmed me! I'm really really looking forward to this! Great job success!
Sounds like a good idea. Because most portal plugins are not for Public so nice to see a good one in DEV
Sounds good, I like it.
I'd like to suggest a third command. A command to list the existing commandportals would be great. My memory isn't very good and I'd have problems remembering the names of portals I created in the past.
/cmdlistportals
greetz
Sounds promising!