Showing Dropping Anvil Something (Ignore)

This commit is contained in:
Driftay
2019-09-15 05:12:52 -04:00
parent e07dc303ef
commit 2a1a8db554
285 changed files with 28746 additions and 28746 deletions

View File

@@ -10,31 +10,31 @@ import com.massivecraft.factions.zcore.util.TL;
public class CmdChest extends FCommand {
public CmdChest() {
this.aliases.add("chest");
this.aliases.add("pv");
public CmdChest() {
this.aliases.add("chest");
this.aliases.add("pv");
this.requirements = new CommandRequirements.Builder(Permission.CHEST)
.playerOnly()
.memberOnly()
.withAction(PermissableAction.CHEST)
.build();
}
this.requirements = new CommandRequirements.Builder(Permission.CHEST)
.playerOnly()
.memberOnly()
.withAction(PermissableAction.CHEST)
.build();
}
@Override
public void perform(CommandContext context) {
@Override
public void perform(CommandContext context) {
if (!FactionsPlugin.getInstance().getConfig().getBoolean("fchest.Enabled")) {
context.fPlayer.sendMessage("This command is disabled!");
return;
}
// This permission check is way too explicit but it's clean
context.player.openInventory(context.faction.getChestInventory());
}
if (!FactionsPlugin.getInstance().getConfig().getBoolean("fchest.Enabled")) {
context.fPlayer.sendMessage("This command is disabled!");
return;
}
// This permission check is way too explicit but it's clean
context.player.openInventory(context.faction.getChestInventory());
}
@Override
public TL getUsageTranslation() {
return TL.COMMAND_VAULT_DESCRIPTION;
}
@Override
public TL getUsageTranslation() {
return TL.COMMAND_VAULT_DESCRIPTION;
}
}