Broadcast now requires a permission node, fixes #54

The permission node is granted to everyone by default, take it away from
groups you don't want it enabled on: jail.see.broadcast
This commit is contained in:
graywolf336 2015-06-03 00:07:21 -05:00
parent 98e4916a18
commit fd2e69cb77
2 changed files with 5 additions and 2 deletions

View File

@ -141,7 +141,7 @@ public class PrisonerManager {
boolean broadcasted = false;
//Broadcast the message, if it is enabled
if(pl.getConfig().getBoolean(Settings.BROADCASTJAILING.getPath(), false)) {
pl.getServer().broadcastMessage(msg);
pl.getServer().broadcast(msg, "jail.see.broadcast");
broadcasted = true;
}

View File

@ -30,6 +30,7 @@ permissions:
jail.openchest: true
jail.cantbejailed: true
jail.vote.start: true
jail.see.broadcast: true
jail.command.*:
description: access to all admin commands
children:
@ -150,3 +151,5 @@ permissions:
default: op
jail.vote.start:
default: op
jail.see.broadcast:
default: true