Fixes slash module for canary so it works with all commands not just vanilla.
This commit is contained in:
parent
7351c40003
commit
6c95da14f8
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue