Fix hub fly for YOUTUBE_SMALL
This commit is contained in:
parent
83e5c7399e
commit
46695f8449
@ -10,6 +10,7 @@ import org.bukkit.event.player.PlayerToggleFlightEvent;
|
|||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
|
|
||||||
import mineplex.core.MiniPlugin;
|
import mineplex.core.MiniPlugin;
|
||||||
|
import mineplex.core.common.Rank;
|
||||||
import mineplex.core.common.util.UtilAction;
|
import mineplex.core.common.util.UtilAction;
|
||||||
import mineplex.core.common.util.UtilBlock;
|
import mineplex.core.common.util.UtilBlock;
|
||||||
import mineplex.core.common.util.UtilEnt;
|
import mineplex.core.common.util.UtilEnt;
|
||||||
@ -83,7 +84,8 @@ public class JumpManager extends MiniPlugin
|
|||||||
if (player.getGameMode() == GameMode.CREATIVE)
|
if (player.getGameMode() == GameMode.CREATIVE)
|
||||||
continue;
|
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);
|
player.setAllowFlight(true);
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user