Skip to content

Commit dac34b4

Browse files
author
wuksow
committed
fix: send command on console
1 parent ae618ea commit dac34b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/rcode/chat/cmd/ChatCMD.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@ public boolean onCommand(CommandSender sender, Command cmd, String s, String[] a
1818
System.out.println("This command is not for console!");
1919
return zwrot;
2020
}
21+
2122
Player p = (Player)sender;
2223
Data data = new Data(Main.getInstance().getConfig());
2324
if (!p.hasPermission(data.getMsg("permission"))) {
2425
String msg = data.getMsg("nopermMSG");
2526
p.sendMessage(ChatColor.translateAlternateColorCodes('&', msg));
2627
return zwrot;
2728
}
29+
2830
if (args.length != 1) {
2931
String usage = data.getMsg("usage");
3032
p.sendMessage(ChatColor.translateAlternateColorCodes('&', usage));

0 commit comments

Comments
 (0)