Configurable Tntfill enable/disable
This commit is contained in:
parent
39334070a7
commit
bb7d32bb92
@ -35,6 +35,10 @@ public class CmdTntFill extends FCommand {
|
||||
|
||||
@Override
|
||||
public void perform() {
|
||||
if (!SavageFactions.plugin.getConfig().getBoolean("Tntfill.enabled")) {
|
||||
this.fme.msg(TL.GENERIC_DISABLED);
|
||||
return;
|
||||
}
|
||||
if (!fme.isAdminBypassing()) {
|
||||
Access access = myFaction.getAccess(fme, PermissableAction.TNTFILL);
|
||||
if (access != Access.ALLOW && fme.getRole() != Role.LEADER) {
|
||||
|
@ -1035,6 +1035,7 @@ see-chunk:
|
||||
|
||||
|
||||
Tntfill:
|
||||
enabled: true
|
||||
max-radius: 32
|
||||
max-amount: 64
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user