Configurable Tntfill enable/disable

This commit is contained in:
SvenjaReißaus 2019-02-26 13:01:27 -05:00
parent 39334070a7
commit bb7d32bb92
No known key found for this signature in database
GPG Key ID: B14150951DBF6D29
2 changed files with 5 additions and 0 deletions

View File

@ -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) {

View File

@ -1035,6 +1035,7 @@ see-chunk:
Tntfill:
enabled: true
max-radius: 32
max-amount: 64