From 299a06a64e1fea4211d157b82a75e8643d950581 Mon Sep 17 00:00:00 2001 From: Pepich Date: Wed, 1 Feb 2017 18:11:02 +0100 Subject: [PATCH] Added feedback, removed unnecessary code --- src/com/redstoner/modules/chatgroups/Chatgroups.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/redstoner/modules/chatgroups/Chatgroups.java b/src/com/redstoner/modules/chatgroups/Chatgroups.java index b0aca9f..0556f8d 100644 --- a/src/com/redstoner/modules/chatgroups/Chatgroups.java +++ b/src/com/redstoner/modules/chatgroups/Chatgroups.java @@ -170,6 +170,7 @@ public class Chatgroups implements Module, Listener public boolean cgLeave(CommandSender sender) { removeGroup(sender); + Utils.sendMessage(sender, null, "Successfully removed you from your group!"); cgtoggled.remove(sender); return true; } @@ -179,12 +180,11 @@ public class Chatgroups implements Module, Listener * @param sender the command issuer. * @param name the name of the group. * @return true. */ - @SuppressWarnings("unchecked") @Command(hook = "cgjoin") public boolean cgJoin(CommandSender sender, String name) { setGroup(sender, name); - saveGroups(); + Utils.sendMessage(sender, null, "Successfully joined group ยง6" + name); return true; } @@ -243,6 +243,7 @@ public class Chatgroups implements Module, Listener * * @param target the CommandSender to set the group of. * @param group the name of the group to join. */ + @SuppressWarnings("unchecked") private void setGroup(CommandSender target, String group) { if (target instanceof Player)