Added permission chat to Normal Chat
Again, Not Tested
This commit is contained in:
@@ -32,8 +32,11 @@ public class Ignore implements Module{
|
|||||||
{
|
{
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
Utils.broadcast(" " + player.getDisplayName(), " §7→§r " + ChatAPI.colorify(sender, message),
|
if (player.hasPermission("utils.chat"))
|
||||||
ModuleLoader.exists("Ignore")? Ignore.getIgnoredBy(player) : null);
|
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)
|
@Command(hook = "unignore", async = AsyncType.ALWAYS)
|
||||||
|
|||||||
Reference in New Issue
Block a user