MassiveCore - Mixin Stuff part 2
This commit is contained in:
parent
9c9681957c
commit
a913433347
@ -7,6 +7,7 @@ import com.massivecraft.massivecore.command.requirement.RequirementHasPerm;
|
||||
import com.massivecraft.massivecore.command.requirement.RequirementTitlesAvailable;
|
||||
import com.massivecraft.massivecore.command.type.primitive.TypeBoolean;
|
||||
import com.massivecraft.massivecore.mixin.MixinTitle;
|
||||
import com.massivecraft.massivecore.nms.NmsChat;
|
||||
import com.massivecraft.massivecore.util.Txt;
|
||||
|
||||
public class CmdFactionsTerritorytitles extends FactionsCommand
|
||||
@ -36,7 +37,7 @@ public class CmdFactionsTerritorytitles extends FactionsCommand
|
||||
public Visibility getVisibility()
|
||||
{
|
||||
// We hide the command if titles aren't available.
|
||||
if ( ! MixinTitle.get().isTitlesAvailable()) return Visibility.INVISIBLE;
|
||||
if ( ! MixinTitle.get().isAvailable()) return Visibility.INVISIBLE;
|
||||
return super.getVisibility();
|
||||
}
|
||||
|
||||
|
@ -102,6 +102,7 @@ import com.massivecraft.massivecore.mixin.MixinMessage;
|
||||
import com.massivecraft.massivecore.mixin.MixinTitle;
|
||||
import com.massivecraft.massivecore.mixin.MixinWorld;
|
||||
import com.massivecraft.massivecore.money.Money;
|
||||
import com.massivecraft.massivecore.nms.NmsChat;
|
||||
import com.massivecraft.massivecore.ps.PS;
|
||||
import com.massivecraft.massivecore.util.MUtil;
|
||||
import com.massivecraft.massivecore.util.PlayerUtil;
|
||||
|
@ -25,6 +25,7 @@ import com.massivecraft.factions.event.EventFactionsMembershipChange.MembershipC
|
||||
import com.massivecraft.factions.util.RelationUtil;
|
||||
import com.massivecraft.massivecore.mixin.MixinSenderPs;
|
||||
import com.massivecraft.massivecore.mixin.MixinTitle;
|
||||
import com.massivecraft.massivecore.nms.NmsChat;
|
||||
import com.massivecraft.massivecore.ps.PS;
|
||||
import com.massivecraft.massivecore.ps.PSFormatHumanSpace;
|
||||
import com.massivecraft.massivecore.store.SenderEntity;
|
||||
@ -576,7 +577,7 @@ public class MPlayer extends SenderEntity<MPlayer> implements EconomyParticipato
|
||||
|
||||
public boolean isTerritoryInfoTitles()
|
||||
{
|
||||
if ( ! MixinTitle.get().isTitlesAvailable()) return false;
|
||||
if ( ! MixinTitle.get().isAvailable()) return false;
|
||||
if (this.territoryInfoTitles == null) return MConf.get().territoryInfoTitlesDefault;
|
||||
return this.territoryInfoTitles;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user