2018-04-09 05:13:41 +02:00
|
|
|
package com.massivecraft.factions.cmd;
|
|
|
|
|
|
|
|
import com.massivecraft.factions.struct.Permission;
|
|
|
|
import com.massivecraft.factions.zcore.util.TL;
|
|
|
|
|
2018-07-12 18:11:07 +02:00
|
|
|
public class CmdInspect extends FCommand {
|
2019-08-24 19:18:50 +02:00
|
|
|
public CmdInspect() {
|
|
|
|
super();
|
|
|
|
this.aliases.add("inspect");
|
|
|
|
this.aliases.add("ins");
|
|
|
|
|
|
|
|
this.permission = Permission.INSPECT.node;
|
|
|
|
this.disableOnLock = true;
|
|
|
|
|
|
|
|
|
|
|
|
senderMustBePlayer = true;
|
|
|
|
senderMustBeMember = true;
|
|
|
|
senderMustBeModerator = false;
|
|
|
|
senderMustBeColeader = false;
|
|
|
|
senderMustBeAdmin = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void perform() {
|
|
|
|
if (fme.isInspectMode()) {
|
|
|
|
fme.setInspectMode(false);
|
|
|
|
msg(TL.COMMAND_INSPECT_DISABLED_MSG);
|
|
|
|
} else {
|
|
|
|
fme.setInspectMode(true);
|
|
|
|
msg(TL.COMMAND_INSPECT_ENABLED);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public TL getUsageTranslation() {
|
|
|
|
return TL.COMMAND_INSPECT_DESCRIPTION;
|
|
|
|
}
|
2018-04-09 05:13:41 +02:00
|
|
|
}
|