Showing Dropping Anvil Something (Ignore)

This commit is contained in:
Driftay
2019-09-15 05:19:06 -04:00
parent 2feaed0aad
commit 7f988031ca
285 changed files with 28757 additions and 28757 deletions

View File

@@ -14,39 +14,39 @@ import org.bukkit.World;
public class CmdWarunclaimall extends FCommand {
public CmdWarunclaimall() {
this.aliases.add("warunclaimall");
this.aliases.add("wardeclaimall");
this.optionalArgs.put("world", "all");
public CmdWarunclaimall() {
this.aliases.add("warunclaimall");
this.aliases.add("wardeclaimall");
this.optionalArgs.put("world", "all");
this.requirements = new CommandRequirements.Builder(Permission.MANAGE_WAR_ZONE)
.build();
}
this.requirements = new CommandRequirements.Builder(Permission.MANAGE_WAR_ZONE)
.build();
}
@Override
public void perform(CommandContext context) {
String worldName = context.argAsString(0);
World world = null;
@Override
public void perform(CommandContext context) {
String worldName = context.argAsString(0);
World world = null;
if (worldName != null) world = Bukkit.getWorld(worldName);
if (worldName != null) world = Bukkit.getWorld(worldName);
String id = Factions.getInstance().getWarZone().getId();
String id = Factions.getInstance().getWarZone().getId();
if (world == null) {
Board.getInstance().unclaimAll(id);
} else {
Board.getInstance().unclaimAllInWorld(id, world);
}
if (world == null) {
Board.getInstance().unclaimAll(id);
} else {
Board.getInstance().unclaimAllInWorld(id, world);
}
context.msg(TL.COMMAND_WARUNCLAIMALL_SUCCESS);
if (Conf.logLandUnclaims)
FactionsPlugin.getInstance().log(TL.COMMAND_WARUNCLAIMALL_LOG.format(context.fPlayer.getName()));
}
context.msg(TL.COMMAND_WARUNCLAIMALL_SUCCESS);
if (Conf.logLandUnclaims)
FactionsPlugin.getInstance().log(TL.COMMAND_WARUNCLAIMALL_LOG.format(context.fPlayer.getName()));
}
@Override
public TL getUsageTranslation() {
return TL.COMMAND_WARUNCLAIMALL_DESCRIPTION;
}
@Override
public TL getUsageTranslation() {
return TL.COMMAND_WARUNCLAIMALL_DESCRIPTION;
}
}