2015-01-06 23:06:46 +01:00
|
|
|
package com.massivecraft.factions.cmd;
|
|
|
|
|
|
|
|
import com.massivecraft.factions.struct.Permission;
|
|
|
|
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");
|
|
|
|
this.senderMustBePlayer = true;
|
|
|
|
this.senderMustBeMember = true;
|
|
|
|
this.permission = Permission.MONITOR_LOGINS.node;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void perform() {
|
|
|
|
boolean monitor = fme.isMonitoringJoins();
|
2018-11-07 06:38:43 +01:00
|
|
|
fme.msg(TL.COMMAND_LOGINS_TOGGLE, String.valueOf(! monitor));
|
|
|
|
fme.setMonitorJoins(! monitor);
|
2015-01-06 23:06:46 +01:00
|
|
|
}
|
2015-01-22 00:58:33 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public TL getUsageTranslation() {
|
|
|
|
return TL.COMMAND_LOGINS_DESCRIPTION;
|
|
|
|
}
|
2015-01-06 23:06:46 +01:00
|
|
|
}
|