Showing Dropping Anvil Something (Ignore)
This commit is contained in:
@@ -5,28 +5,28 @@ import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
public class CmdLogins extends FCommand {
|
||||
|
||||
public CmdLogins() {
|
||||
super();
|
||||
this.aliases.add("login");
|
||||
this.aliases.add("logins");
|
||||
this.aliases.add("logout");
|
||||
this.aliases.add("logouts");
|
||||
public CmdLogins() {
|
||||
super();
|
||||
this.aliases.add("login");
|
||||
this.aliases.add("logins");
|
||||
this.aliases.add("logout");
|
||||
this.aliases.add("logouts");
|
||||
|
||||
this.requirements = new CommandRequirements.Builder(Permission.MONITOR_LOGINS)
|
||||
.playerOnly()
|
||||
.memberOnly()
|
||||
.build();
|
||||
}
|
||||
this.requirements = new CommandRequirements.Builder(Permission.MONITOR_LOGINS)
|
||||
.playerOnly()
|
||||
.memberOnly()
|
||||
.build();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void perform(CommandContext context) {
|
||||
boolean monitor = context.fPlayer.isMonitoringJoins();
|
||||
context.msg(TL.COMMAND_LOGINS_TOGGLE, String.valueOf(!monitor));
|
||||
context.fPlayer.setMonitorJoins(!monitor);
|
||||
}
|
||||
@Override
|
||||
public void perform(CommandContext context) {
|
||||
boolean monitor = context.fPlayer.isMonitoringJoins();
|
||||
context.msg(TL.COMMAND_LOGINS_TOGGLE, String.valueOf(!monitor));
|
||||
context.fPlayer.setMonitorJoins(!monitor);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TL getUsageTranslation() {
|
||||
return TL.COMMAND_LOGINS_DESCRIPTION;
|
||||
}
|
||||
@Override
|
||||
public TL getUsageTranslation() {
|
||||
return TL.COMMAND_LOGINS_DESCRIPTION;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user