Fix FallbackRegistrationListener

This commit is contained in:
Jesse Boyd 2017-09-02 18:09:53 +10:00
parent 5c64cf2f56
commit 01e082a1a4
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

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