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:
parent
98e4916a18
commit
fd2e69cb77
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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:
|
||||
@ -149,4 +150,6 @@ permissions:
|
||||
jail.usercmd.jailvote:
|
||||
default: op
|
||||
jail.vote.start:
|
||||
default: op
|
||||
default: op
|
||||
jail.see.broadcast:
|
||||
default: true
|
Loading…
Reference in New Issue
Block a user