From 6c95da14f89bdababd103951933c30f1c39ebdb1 Mon Sep 17 00:00:00 2001 From: walterhiggins Date: Sun, 25 Jan 2015 19:30:12 +0000 Subject: [PATCH] Fixes slash module for canary so it works with all commands not just vanilla. --- src/main/js/modules/slash.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/js/modules/slash.js b/src/main/js/modules/slash.js index 148b9fa..62dd942 100644 --- a/src/main/js/modules/slash.js +++ b/src/main/js/modules/slash.js @@ -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);