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

Paypal Youtube Twitter github tumblr

HeroCraft Coding


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members