1.2-STABLE

/f tntfill wont spam chat anymore,
I changed the tntfill_success option, so you're gonna wanna delete that to rengerate it. If you havent edited the lang.yml just delete it and restart
/f stuck wont tp players outside the border anymore.
Nametags & Tab has placeholderapi support added
use {relationcolor} and {faction} for relational color and faction ( These were already built in )
They can be edited in the lang.yml the option is default_prefix.
/f perms now has tntfill, tntbank, and vault permission options
This commit is contained in:
Naman
2018-04-24 19:32:26 -05:00
parent ba9b3587e0
commit 6bf4598d57
9 changed files with 98 additions and 11 deletions

View File

@@ -2,6 +2,8 @@ package com.massivecraft.factions.cmd;
import com.massivecraft.factions.P;
import com.massivecraft.factions.struct.Permission;
import com.massivecraft.factions.zcore.fperms.Access;
import com.massivecraft.factions.zcore.fperms.PermissableAction;
import com.massivecraft.factions.zcore.util.TL;
import org.bukkit.Material;
import org.bukkit.entity.Player;
@@ -17,6 +19,7 @@ public class CmdTnt extends FCommand {
this.optionalArgs.put("add/take", "");
this.optionalArgs.put("amount", "number");
this.permission = Permission.TNT.node;
this.disableOnLock = true;
@@ -32,6 +35,13 @@ public class CmdTnt extends FCommand {
fme.msg(TL.COMMAND_TNT_DISABLED_MSG);
return;
}
Access access = fme.getFaction().getAccess(fme, PermissableAction.TNTBANK);
if (access.equals(Access.DENY)) {
fme.msg(TL.GENERIC_NOPERMISSION, "tntbank");
}
if (args.size() == 2) {
if (args.get(0).equalsIgnoreCase("add")) {
int testNumber = -1;