Merge pull request #22 from RoboMWM/patch-1

have command listener listen at a higher priority
This commit is contained in:
Chris 2016-10-28 18:48:31 -07:00 committed by GitHub
commit 10ba5ecf2c

View File

@ -45,7 +45,7 @@ public class GamePlayerCommandPreprocessingListener implements Listener {
* *
* @param event * @param event
*/ */
@EventHandler(priority = EventPriority.LOWEST) @EventHandler(priority = EventPriority.HIGH)
public void onPlayerCommandPreprocessEvent(PlayerCommandPreprocessEvent event) { public void onPlayerCommandPreprocessEvent(PlayerCommandPreprocessEvent event) {
if (event.isCancelled()) { if (event.isCancelled()) {
return; return;