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; boolean broadcasted = false;
//Broadcast the message, if it is enabled //Broadcast the message, if it is enabled
if(pl.getConfig().getBoolean(Settings.BROADCASTJAILING.getPath(), false)) { if(pl.getConfig().getBoolean(Settings.BROADCASTJAILING.getPath(), false)) {
pl.getServer().broadcastMessage(msg); pl.getServer().broadcast(msg, "jail.see.broadcast");
broadcasted = true; broadcasted = true;
} }

View File

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