Mysticates OCD....
This commit is contained in:
parent
410bc1c74b
commit
4a5d6b5f2a
@ -10,6 +10,7 @@ import mineplex.serverdata.redis.RedisDataRepository;
|
|||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
|
import org.bukkit.event.player.AsyncPlayerChatEvent;
|
||||||
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
|
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
|
||||||
import org.bukkit.event.player.PlayerJoinEvent;
|
import org.bukkit.event.player.PlayerJoinEvent;
|
||||||
import org.bukkit.event.player.PlayerQuitEvent;
|
import org.bukkit.event.player.PlayerQuitEvent;
|
||||||
|
@ -19,6 +19,7 @@ import mineplex.core.disguise.disguises.DisguisePlayer;
|
|||||||
import mineplex.core.gadget.event.GadgetEnableEvent;
|
import mineplex.core.gadget.event.GadgetEnableEvent;
|
||||||
import mineplex.core.gadget.types.GadgetType;
|
import mineplex.core.gadget.types.GadgetType;
|
||||||
import mineplex.core.punish.Category;
|
import mineplex.core.punish.Category;
|
||||||
|
import mineplex.core.punish.PunishClient;
|
||||||
import mineplex.core.punish.Punishment;
|
import mineplex.core.punish.Punishment;
|
||||||
import mineplex.core.treasure.event.TreasureStartEvent;
|
import mineplex.core.treasure.event.TreasureStartEvent;
|
||||||
import mineplex.core.updater.UpdateType;
|
import mineplex.core.updater.UpdateType;
|
||||||
@ -192,6 +193,7 @@ public class DisguiseCommand extends CommandBase<ArcadeManager> implements Liste
|
|||||||
{
|
{
|
||||||
other = new CoreClient(args[0]);
|
other = new CoreClient(args[0]);
|
||||||
Plugin.GetClients().LoadClient(other, uuid, caller.getAddress().getAddress().getAddress().toString());
|
Plugin.GetClients().LoadClient(other, uuid, caller.getAddress().getAddress().getAddress().toString());
|
||||||
|
System.out.println(other.getAccountId());
|
||||||
otherRank = other.GetRank();
|
otherRank = other.GetRank();
|
||||||
} catch(NullPointerException exception)
|
} catch(NullPointerException exception)
|
||||||
{
|
{
|
||||||
@ -205,19 +207,10 @@ public class DisguiseCommand extends CommandBase<ArcadeManager> implements Liste
|
|||||||
boolean canDisguise = true;
|
boolean canDisguise = true;
|
||||||
if(other != null)
|
if(other != null)
|
||||||
{
|
{
|
||||||
NautHashMap<Category, List<Punishment>> punishments = Plugin.getPunishments().GetClient(args[0]).GetPunishments();
|
PunishClient pclient = Plugin.getPunishments().GetClient(args[0]);
|
||||||
for(Category punishmentCategorys : punishments.keySet())
|
if(pclient.IsBanned() || pclient.IsMuted())
|
||||||
{
|
|
||||||
for(Punishment punishment : punishments.get(punishmentCategorys))
|
|
||||||
{
|
|
||||||
if(punishment.GetActive())
|
|
||||||
{
|
{
|
||||||
canDisguise = false;
|
canDisguise = false;
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if(!canDisguise)
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!canDisguise)
|
if(!canDisguise)
|
||||||
|
Loading…
Reference in New Issue
Block a user