Permalink
Browse files

Fix FallbackRegistrationListener

  • Loading branch information...
boy0001 committed Sep 2, 2017
1 parent 5c64cf2 commit 01e082a1a4c2d300b1d5f7210f6efc6b86c3d759
@@ -34,7 +34,7 @@ public FallbackRegistrationListener(CommandMap commandRegistration) {
@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);
}
}

0 comments on commit 01e082a

Please sign in to comment.