Check for permissions instead of isOp() (#6)

This commit is contained in:
DoNotSpamPls
2018-03-27 17:43:17 +03:00
committed by Ryan
parent 2856889bbe
commit a5200fd5c1
4 changed files with 14 additions and 7 deletions

View File

@@ -28,8 +28,7 @@ import java.util.Arrays;
public class Msg {
public static void msg(CommandSender s, String... msg) {
Arrays.stream(msg).forEach(text ->
s.sendMessage(ChatColor.translateAlternateColorCodes('&', text)));
Arrays.stream(msg).forEach(text -> s.sendMessage(ChatColor.translateAlternateColorCodes('&', text)));
}
}