Showing Dropping Anvil Something (Ignore)

This commit is contained in:
Driftay
2019-09-15 05:14:14 -04:00
parent 2a1a8db554
commit e7db7170d1
285 changed files with 28757 additions and 28757 deletions

View File

@@ -7,43 +7,43 @@ import com.massivecraft.factions.struct.Permission;
import com.massivecraft.factions.zcore.util.TL;
public class CmdWeeWoo extends FCommand {
public CmdWeeWoo() {
this.aliases.add("weewoo");
this.requiredArgs.add("start/stop");
public CmdWeeWoo() {
this.aliases.add("weewoo");
this.requiredArgs.add("start/stop");
this.requirements = new CommandRequirements.Builder(Permission.CHECK)
.playerOnly()
.memberOnly()
.build();
}
this.requirements = new CommandRequirements.Builder(Permission.CHECK)
.playerOnly()
.memberOnly()
.build();
}
public void perform(CommandContext context) {
if (context.faction == null || !context.faction.isNormal()) {
return;
}
String argument = context.argAsString(0);
boolean weewoo = context.faction.isWeeWoo();
if (argument.equalsIgnoreCase("start")) {
if (weewoo) {
context.msg(TL.COMMAND_WEEWOO_ALREADY_STARTED);
return;
}
context.faction.setWeeWoo(true);
context.msg(TL.COMMAND_WEEWOO_STARTED, context.fPlayer.getNameAndTag());
public void perform(CommandContext context) {
if (context.faction == null || !context.faction.isNormal()) {
return;
}
String argument = context.argAsString(0);
boolean weewoo = context.faction.isWeeWoo();
if (argument.equalsIgnoreCase("start")) {
if (weewoo) {
context.msg(TL.COMMAND_WEEWOO_ALREADY_STARTED);
return;
}
context.faction.setWeeWoo(true);
context.msg(TL.COMMAND_WEEWOO_STARTED, context.fPlayer.getNameAndTag());
} else if (argument.equalsIgnoreCase("stop")) {
if (!weewoo) {
context.msg(TL.COMMAND_WEEWOO_ALREADY_STOPPED);
return;
}
context.faction.setWeeWoo(false);
context.msg(TL.COMMAND_WEEWOO_STOPPED, context.fPlayer.getNameAndTag());
} else {
context.msg("/f weewoo <start/stop>");
}
}
} else if (argument.equalsIgnoreCase("stop")) {
if (!weewoo) {
context.msg(TL.COMMAND_WEEWOO_ALREADY_STOPPED);
return;
}
context.faction.setWeeWoo(false);
context.msg(TL.COMMAND_WEEWOO_STOPPED, context.fPlayer.getNameAndTag());
} else {
context.msg("/f weewoo <start/stop>");
}
}
public TL getUsageTranslation() {
return TL.COMMAND_WEEWOO_DESCRIPTION;
}
public TL getUsageTranslation() {
return TL.COMMAND_WEEWOO_DESCRIPTION;
}
}