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;
}