0

Made mentio no longer false trigger

This commit is contained in:
Pepich 2017-02-07 03:40:23 +01:00
parent bd39823734
commit 43981f77ed

View File

@ -23,7 +23,7 @@ import com.redstoner.misc.Utils;
import com.redstoner.modules.Module; import com.redstoner.modules.Module;
@AutoRegisterListener @AutoRegisterListener
@Version(major = 1, minor = 0, revision = 2, compatible = 1) @Version(major = 1, minor = 0, revision = 3, compatible = 1)
public class Mentio implements Module, Listener public class Mentio implements Module, Listener
{ {
private boolean enabled = false; private boolean enabled = false;
@ -125,6 +125,8 @@ public class Mentio implements Module, Listener
@EventHandler(priority = EventPriority.MONITOR) @EventHandler(priority = EventPriority.MONITOR)
public void onPlayerChat(AsyncPlayerChatEvent event) public void onPlayerChat(AsyncPlayerChatEvent event)
{ {
if (event.isCancelled())
return;
for (Player player : event.getRecipients()) for (Player player : event.getRecipients())
{ {
UUID uuid = player.getUniqueId(); UUID uuid = player.getUniqueId();