Factions/src/com/massivecraft/factions/cmd/FactionsCommandWarp.java

29 lines
737 B
Java
Raw Normal View History

2014-09-18 13:41:20 +02:00
package com.massivecraft.factions.cmd;
2019-01-26 15:04:47 +01:00
import com.massivecraft.factions.cmd.req.ReqFactionWarpsEnabled;
2014-09-18 13:41:20 +02:00
import com.massivecraft.factions.entity.MConf;
2015-11-06 02:10:29 +01:00
import com.massivecraft.massivecore.command.Visibility;
2014-09-18 13:41:20 +02:00
2019-01-26 15:04:47 +01:00
public class FactionsCommandWarp extends FactionsCommand
2014-09-18 13:41:20 +02:00
{
// -------------------------------------------- //
// CONSTRUCT
// -------------------------------------------- //
2019-01-26 15:04:47 +01:00
public FactionsCommandWarp()
2014-09-18 13:41:20 +02:00
{
2019-01-26 15:04:47 +01:00
this.addRequirements(ReqFactionWarpsEnabled.get());
2014-09-18 13:41:20 +02:00
}
// -------------------------------------------- //
// OVERRIDE
// -------------------------------------------- //
@Override
public Visibility getVisibility()
2014-09-18 13:41:20 +02:00
{
2019-01-26 15:04:47 +01:00
return MConf.get().warpsEnabled ? super.getVisibility() : Visibility.INVISIBLE;
2014-09-18 13:41:20 +02:00
}
}