From 01e082a1a4c2d300b1d5f7210f6efc6b86c3d759 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sat, 2 Sep 2017 18:09:53 +1000 Subject: [PATCH] Fix FallbackRegistrationListener --- .../com/sk89q/bukkit/util/FallbackRegistrationListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/bukkit/util/FallbackRegistrationListener.java b/worldedit-bukkit/src/main/java/com/sk89q/bukkit/util/FallbackRegistrationListener.java index 73ee10759..035318341 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/bukkit/util/FallbackRegistrationListener.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/bukkit/util/FallbackRegistrationListener.java @@ -34,7 +34,7 @@ public class FallbackRegistrationListener implements Listener { @EventHandler(ignoreCancelled = true) public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) { - if (commandRegistration.dispatch(event.getPlayer(), event.getMessage())) { + if (commandRegistration.dispatch(event.getPlayer(), event.getMessage().substring(1))) { event.setCancelled(true); } }