Permalink
Browse files

Merge pull request #396 from boy0001/FallbackRegistrationListener-fix

Fix FallbackRegistrationListener
  • Loading branch information...
me4502 committed Aug 18, 2018
2 parents dc39300 + 01e082a commit 034c165beea5f6a1177a83715bc07d8ef22830d7
@@ -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 034c165

Please sign in to comment.