Showing Dropping Anvil Something (Ignore)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user