From 12c0be82026404374404203d207dfbec940b6543 Mon Sep 17 00:00:00 2001 From: Pepich Date: Mon, 6 Feb 2017 22:11:34 +0100 Subject: [PATCH] Fixed console command listener --- src/com/redstoner/modules/nametags/Nametags.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/redstoner/modules/nametags/Nametags.java b/src/com/redstoner/modules/nametags/Nametags.java index 257140b..2ec8ee0 100644 --- a/src/com/redstoner/modules/nametags/Nametags.java +++ b/src/com/redstoner/modules/nametags/Nametags.java @@ -16,7 +16,7 @@ import com.redstoner.misc.Utils; import com.redstoner.modules.Module; @AutoRegisterListener -@Version(major = 1, minor = 0, revision = 0, compatible = 1) +@Version(major = 1, minor = 0, revision = 1, compatible = 1) public class Nametags implements Module, Listener { private boolean enabled = false; @@ -64,7 +64,8 @@ public class Nametags implements Module, Listener @EventHandler public void consoleCommand(ServerCommandEvent event) { - if (event.getCommand().matches("(pro|de)mote")) + if (event.getCommand().contains("promote") || event.getCommand().contains("demote") + || event.getCommand().matches("pex user .* group (set|add|leave)")) { String[] args = event.getCommand().split(" "); for (String s : args)