Archived
0

Added permission chat to Normal Chat

Again, Not Tested
This commit is contained in:
Minenash
2018-01-16 13:03:08 -05:00
committed by GitHub
parent 851191b690
commit bef6fa9308

View File

@@ -32,8 +32,11 @@ public class Ignore implements Module{
{
Player player = event.getPlayer();
event.setCancelled(true);
Utils.broadcast(" " + player.getDisplayName(), " §7→§r " + ChatAPI.colorify(sender, message),
ModuleLoader.exists("Ignore")? Ignore.getIgnoredBy(player) : null);
if (player.hasPermission("utils.chat"))
Utils.broadcast(" " + player.getDisplayName(), " §7→§r " + ChatAPI.colorify(sender, message),
ModuleLoader.exists("Ignore")? Ignore.getIgnoredBy(player) : null);
else
new Message(sender, "§8[§cServer§8]").appendText("You don't have permission to chat.").send();
}
@Command(hook = "unignore", async = AsyncType.ALWAYS)