Completely removed warp command using warp, use /awarp for the advanced portals warps

This commit is contained in:
Alastair 2015-12-01 21:24:39 +00:00
parent 41c2ed911e
commit f29a53409a
3 changed files with 2 additions and 11 deletions

View File

@ -59,10 +59,6 @@ WarpRiddenEntity: true
# generally on the action bar in the chat without a prefix or extra chat formatting)
WarpMessageDisplay: 2
# Set to true if you want to use the warp command from another plugin
DisableWarpCommand: false
# Use plugin name in the warp messages
UseWarpPrefix: true

View File

@ -21,9 +21,7 @@ public class WarpCommand implements CommandExecutor, TabCompleter {
ConfigAccessor config = new ConfigAccessor(plugin, "Config.yml");
boolean useWarpCommand = !config.getConfig().getBoolean("DisableWarpCommand");
if(useWarpCommand){
plugin.getCommand("warp").setExecutor(this);
}
//plugin.getCommand("warp").setExecutor(this);
plugin.getCommand("awarp").setExecutor(this);
}

View File

@ -12,11 +12,8 @@ commands:
description: Can be used to access portal destinations.
aliases: [desti]
usage: /<command>
warp:
description: Used to warp to destinations.
usage: /<command>
awarp:
description: Used to warp to destinations (mostly used when /warp is disabled.
description: Used to warp to destinations.
usage: /<command>
permissions:
advancedportals.*: