Merge pull request #396 from boy0001/FallbackRegistrationListener-fix

Fix FallbackRegistrationListener
This commit is contained in:
Matthew Miller
2018-08-18 20:46:48 +10:00
committed by GitHub

View File

@ -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);
}
}