2014-09-18 13:41:20 +02:00
|
|
|
package com.massivecraft.factions.cmd;
|
|
|
|
|
|
|
|
import com.massivecraft.factions.cmd.req.ReqFactionHomesEnabled;
|
|
|
|
import com.massivecraft.factions.entity.MConf;
|
2015-10-21 19:35:41 +02:00
|
|
|
import com.massivecraft.massivecore.cmd.Visibility;
|
2014-09-18 13:41:20 +02:00
|
|
|
|
|
|
|
public class FactionsCommandHome extends FactionsCommand
|
|
|
|
{
|
|
|
|
// -------------------------------------------- //
|
|
|
|
// CONSTRUCT
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
|
|
|
public FactionsCommandHome()
|
|
|
|
{
|
|
|
|
this.addRequirements(ReqFactionHomesEnabled.get());
|
|
|
|
}
|
|
|
|
|
|
|
|
// -------------------------------------------- //
|
|
|
|
// OVERRIDE
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
|
|
|
@Override
|
2015-10-21 19:35:41 +02:00
|
|
|
public Visibility getVisibility()
|
2014-09-18 13:41:20 +02:00
|
|
|
{
|
2015-10-21 19:35:41 +02:00
|
|
|
return MConf.get().homesEnabled ? super.getVisibility() : Visibility.INVISIBLE;
|
2014-09-18 13:41:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|