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

View file

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