CommandRouter
Tired of people logging in for the first time, typing /home, and then quitting cause you use a different command and it says permission denied? Want to make your own short-hand commands? Then this plugin is for you. The plugin adds to the aliases in bukkit.yml by allowing you to redirect to lengthy commands like /spawn => /skill port spawn
Command Router listens for commands, compares them against your configured list of commands, and redirects them as necessary to other commands. For example, if in my config, I list "/home" to be redirected to "/skill recall", then when anyone types "/home" it will cancel that command, and act as if that player issued the command "/skill recall" instead.
NEW! You can now replace exact commands with other commands. Also you can replace commands based on the biome the player is in. If a command starts with a prefix, you can replace the last parameter based on the biome.
Example configs:
commands: home: 'skill recall' sethome: 'skill mark' spawn: 'skill port spawn' money: 'econ' eco: 'econ' replace: 'time set 0': 'time set 14000' biomes: hs: house: plains: '[pl]house' biome-groups: plains: [ PLAINS, SUNFLOWER_PLAINS ] swamp: [ SWAMPLAND, SWAMPLAND_MOUNTAINS ] roofed-forest: [ ROOFED_FOREST, ROOFED_FOREST_MOUNTAINS ] forest: [ FOREST, FOREST_HILLS, FLOWER_FOREST ] desert: [ DESERT, DESERT_HILLS, DESERT_MOUNTAINS ] ocean: [ OCEAN, DEEP_OCEAN ] mountains: [ EXTREME_HILLS, SMALL_MOUNTAINS, EXTREME_HILLS_PLUS, EXTREME_HILLS_PLUS_MOUNTAINS, EXTREME_HILLS_MOUNTAINS ] ice-plains: [ ICE_PLAINS, ICE_MOUNTAINS, ICE_PLAINS_SPIKES, FROZEN_OCEAN ] jungle: [ JUNGLE, JUNGLE_HILLS, JUNGLE_EDGE, JUNGLE_MOUNTAINS, JUNGLE_EDGE_MOUNTAINS ] birch-forest: [ BIRCH_FOREST, BIRCH_FOREST_HILLS, BIRCH_FOREST_MOUNTAINS, BIRCH_FOREST_HILLS_MOUNTAINS ] savanna: [ SAVANNA, SAVANNA_PLATEAU, SAVANNA_MOUNTAINS, SAVANNA_PLATEAU_MOUNTAINS ] mesa: [ MESA, MESA_PLATEAU_FOREST, MESA_PLATEAU, MESA_BRYCE, MESA_PLATEAU_FOREST_MOUNTAINS, MESA_PLATEAU_MOUNTAINS ] mushroom: [ MUSHROOM_ISLAND, MUSHROOM_SHORE ]
Installation
Drop it in your /plugins folder and then start your server. It will generate your config.yml file. Stop your server then edit config.yml as much as you like.
If you want to get ahold of me, get on esper.net and find me in the #heroes, or #herostronghold channels





-
View User Profile
-
Send Message
Posted Mar 10, 2014Yooo tenten its me ReckTheBall are you adding this plugin on your server ?? play.tentencraft.net :3
-
View User Profile
-
Send Message
Posted Apr 13, 2013I could have sworn that this was updated past 1.2.5
-
View User Profile
-
Send Message
Posted Mar 31, 2013@Spydude84
I'm farely certain that is because with what your changing it to has an argument where as the plugin only supports the starting command /<command> <arguments>. Do /<command> though that is just my theory.
-
View User Profile
-
Send Message
Posted Feb 18, 2013Can you connect two commands to one command for example /archer will give them /kit archer and /warp castle if this is possible could you reply
-
View User Profile
-
Send Message
Posted Nov 18, 2012I'm trying to reroute the command /nick Jerry45 to the command /nick Coolman but its not working. heres my config.yml
commands:
nick Jerry45: 'nick Coolman'
Please help
-
View User Profile
-
Send Message
Posted Jul 8, 2012can you add multiple commands ?
-
View User Profile
-
Send Message
Posted Jun 30, 2012Very easy to use. Thanks.
-
View User Profile
-
Send Message
Posted May 10, 2012I did 'shop:warp shop' im config and the command works...but it also says unknown command. Can you fix that in next update please :)
-
View User Profile
-
Send Message
Posted May 7, 2012Hey,
You should add some more examples to your description. It kind of shows how useful this plugin can be. You can mention that its lightweight, easy to configure, etc., but you should add a /warp market -> /market example. This kind of shows that even servers without the '/skill' commands can have a use for this.
I dunno, just an idea :P
@RoyalGamer06
Yep, basically :D
-
View User Profile
-
Send Message
Posted May 2, 2012@Multitallented
:D Good job. Very simple; I like it.
In the config, maybe you should NOT have those active by default... Maybe put it like:
commands: command: 'new_command'
# Examples:Because if someone doesn't immediately change their config, and they DO use essentials, it might confuse some players :P
-
View User Profile
-
Send Message
Posted May 2, 2012@np98765
Lol whoops, I told you I hadn't tested it yet lol
-
View User Profile
-
Send Message
Posted May 2, 2012Hmmm... it didn't work. :
(
-
View User Profile
-
Send Message
Posted May 2, 2012First download and comment! :D