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;
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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:
|
||||||
@ -150,3 +151,5 @@ permissions:
|
|||||||
default: op
|
default: op
|
||||||
jail.vote.start:
|
jail.vote.start:
|
||||||
default: op
|
default: op
|
||||||
|
jail.see.broadcast:
|
||||||
|
default: true
|
Loading…
Reference in New Issue
Block a user