Fixes slash module for canary so it works with all commands not just vanilla.

This commit is contained in:
walterhiggins 2015-01-25 19:30:12 +00:00
parent 7351c40003
commit 6c95da14f8
1 changed files with 5 additions and 1 deletions

View File

@ -44,7 +44,11 @@ function slash( commands, sender ){
return;
}
if (__plugin.canary){
server.executeVanillaCommand(sender, commands);
if (sender === server){
server.consoleCommand( commands );
} else {
server.consoleCommand( commands, sender );
}
}
if (__plugin.bukkit){
server.dispatchCommand(sender, commands);