Reverse EventPriority for user input

This commit is contained in:
ME1312 2018-11-22 10:36:10 -05:00
parent a12ff22645
commit 52ebd6b903
No known key found for this signature in database
GPG Key ID: FEFFE2F698E88FA8
1 changed files with 2 additions and 2 deletions

View File

@ -434,7 +434,7 @@ public class DefaultUIHandler implements UIHandler, Listener {
* @param event Event
*/
@SuppressWarnings("deprecation")
@EventHandler(priority = EventPriority.HIGHEST)
@EventHandler(priority = EventPriority.LOWEST)
public void input(org.bukkit.event.player.PlayerChatEvent event) {
if (!event.isCancelled() && enabled && input.keySet().contains(event.getPlayer().getUniqueId())) {
YAMLSection data = new YAMLSection();
@ -450,7 +450,7 @@ public class DefaultUIHandler implements UIHandler, Listener {
*
* @param event Event
*/
@EventHandler(priority = EventPriority.HIGHEST)
@EventHandler(priority = EventPriority.LOWEST)
public void input(PlayerCommandPreprocessEvent event) {
if (!event.isCancelled() && enabled && input.keySet().contains(event.getPlayer().getUniqueId())) {
YAMLSection data = new YAMLSection();