Skip to content

Commit 92e0fdd

Browse files
committed
require presence of nation of citizens autocomplete
1 parent 545dae9 commit 92e0fdd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/pro/cloudnode/smp/smpcore/command/NationCommand.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ else switch (args[0]) {
141141
Collections.addAll(list, "add");
142142
}
143143
case 3 -> {
144+
if (nation.isEmpty())
145+
break;
144146
switch (args[1]) {
145147
case "kick", "remove", "delete", "rm", "del" -> {
146148
if (other && !sender.hasPermission(Permission.NATION_CITIZENS_KICK_OTHER))

0 commit comments

Comments
 (0)