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