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
commit 034c165bee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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