Skip to content

Commit d3a68e5

Browse files
committed
Fix messages
1 parent 30cdbb2 commit d3a68e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ public boolean onCommand(CommandSender sender, Command cmd, String commandLabel,
675675
}
676676
auxGroup = dataHolder.getGroup(args[0]);
677677
if (auxGroup != null) {
678-
sender.sendMessage(ChatColor.RED + "'" + args[0] + "' Group already exist!");
678+
sender.sendMessage(ChatColor.RED + "'" + args[0] + "' Group already exists!");
679679
return true;
680680
}
681681
// Seems OK
@@ -697,7 +697,7 @@ public boolean onCommand(CommandSender sender, Command cmd, String commandLabel,
697697
}
698698
auxGroup = dataHolder.getGroup(args[0]);
699699
if (auxGroup == null) {
700-
sender.sendMessage(ChatColor.RED + "" + args[0] + " Group doesnt exist!");
700+
sender.sendMessage(ChatColor.RED + "'" + args[0] + "' Group doesnt exist!");
701701
return true;
702702
}
703703
// Seems OK
@@ -1929,7 +1929,7 @@ public boolean onCommand(CommandSender sender, Command cmd, String commandLabel,
19291929
}
19301930
auxGroup = dataHolder.getGroup(args[1]);
19311931
if (auxGroup == null) {
1932-
sender.sendMessage(ChatColor.RED + "'" + args[0] + "' Group doesnt exist!");
1932+
sender.sendMessage(ChatColor.RED + "'" + args[1] + "' Group doesnt exist!");
19331933
return true;
19341934
}
19351935
if (auxGroup.isGlobal()) {
@@ -1985,7 +1985,7 @@ public boolean onCommand(CommandSender sender, Command cmd, String commandLabel,
19851985
}
19861986
auxGroup = dataHolder.getGroup(args[1]);
19871987
if (auxGroup == null) {
1988-
sender.sendMessage(ChatColor.RED + "'" + args[0] + "' Group doesnt exist!");
1988+
sender.sendMessage(ChatColor.RED + "'" + args[1] + "' Group doesnt exist!");
19891989
return true;
19901990
}
19911991
if (auxGroup.isGlobal()) {

0 commit comments

Comments
 (0)