boolean to toggle f inspect on and off

This commit is contained in:
Driftay
2020-03-18 14:37:23 -04:00
parent 36c8d53a85
commit 323dce1c4f
3 changed files with 9 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
package com.massivecraft.factions.cmd;
import com.massivecraft.factions.Conf;
import com.massivecraft.factions.struct.Permission;
import com.massivecraft.factions.zcore.util.TL;
@@ -21,6 +22,11 @@ public class CmdInspect extends FCommand {
@Override
public void perform(CommandContext context) {
if(!Conf.useInspectSystem){
context.fPlayer.msg(TL.GENERIC_DISABLED, "Faction Inspection");
return;
}
if (context.fPlayer.isInspectMode()) {
context.fPlayer.setInspectMode(false);
context.msg(TL.COMMAND_INSPECT_DISABLED_MSG);