Fix hub fly for YOUTUBE_SMALL

This commit is contained in:
Shaun Bennett 2016-01-09 18:44:32 -05:00
parent 83e5c7399e
commit 46695f8449

View File

@ -10,6 +10,7 @@ import org.bukkit.event.player.PlayerToggleFlightEvent;
import org.bukkit.util.Vector;
import mineplex.core.MiniPlugin;
import mineplex.core.common.Rank;
import mineplex.core.common.util.UtilAction;
import mineplex.core.common.util.UtilBlock;
import mineplex.core.common.util.UtilEnt;
@ -82,8 +83,9 @@ public class JumpManager extends MiniPlugin
{
if (player.getGameMode() == GameMode.CREATIVE)
continue;
if (Manager.getPreferences().Get(player).Invisibility)
Rank rank = Manager.GetClients().Get(player).GetRank();
if (Manager.getPreferences().Get(player).Invisibility && (rank.has(Rank.MODERATOR) || rank == Rank.YOUTUBE || rank == Rank.TWITCH))
{
player.setAllowFlight(true);
continue;