From 3d83c1dff8dba168dfd4abf40702b016ade0ac6e Mon Sep 17 00:00:00 2001 From: Pepich Date: Sat, 18 Feb 2017 16:16:07 +0100 Subject: [PATCH] Fixed special chars to work as cgkeys properly --- src/com/redstoner/modules/chatgroups/Chatgroups.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/redstoner/modules/chatgroups/Chatgroups.java b/src/com/redstoner/modules/chatgroups/Chatgroups.java index 2ee0ee0..701a7e0 100644 --- a/src/com/redstoner/modules/chatgroups/Chatgroups.java +++ b/src/com/redstoner/modules/chatgroups/Chatgroups.java @@ -26,7 +26,7 @@ import com.redstoner.modules.Module; * * @author Pepich */ @AutoRegisterListener -@Version(major = 1, minor = 2, revision = 1, compatible = 1) +@Version(major = 1, minor = 2, revision = 2, compatible = 1) public class Chatgroups implements Module, Listener { private static final char defaultKey = ':'; @@ -270,7 +270,7 @@ public class Chatgroups implements Module, Listener if (event.getMessage().startsWith(getKey(player))) { event.setCancelled(true); - sendToGroup(event.getPlayer(), event.getMessage().replaceFirst(getKey(player), "")); + sendToGroup(event.getPlayer(), event.getMessage().substring(1)); } else if (cgtoggled.contains(event.getPlayer().getUniqueId())) {