diff options
Diffstat (limited to 'nms-patches/DedicatedServer.patch')
-rw-r--r-- | nms-patches/DedicatedServer.patch | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nms-patches/DedicatedServer.patch b/nms-patches/DedicatedServer.patch index 3e6ab94f..f00f09b6 100644 --- a/nms-patches/DedicatedServer.patch +++ b/nms-patches/DedicatedServer.patch @@ -178,7 +178,7 @@ } } -@@ -491,13 +564,57 @@ +@@ -491,13 +564,60 @@ } public String getPlugins() { @@ -223,6 +223,9 @@ + // Event changes start + RemoteServerCommandEvent event = new RemoteServerCommandEvent(remoteConsole, s); + server.getPluginManager().callEvent(event); ++ if (event.isCancelled()) { ++ return null; ++ } + // Event change end + ServerCommand serverCommand = new ServerCommand(event.getCommand(), RemoteControlCommandListener.getInstance()); + server.dispatchServerCommand(remoteConsole, serverCommand); |