Immolate fix hopefully
This commit is contained in:
parent
9082ace3f3
commit
a9669ade31
@ -950,7 +950,7 @@ public class ClansManager extends MiniClientPlugin<ClientClan>implements IRelati
|
||||
public void onJoin(PlayerLoginEvent event)
|
||||
{
|
||||
Rank rank = _clientManager.Get(event.getPlayer()).GetRank();
|
||||
if (!event.getPlayer().isWhitelisted() || rank.has(Rank.EVENT))
|
||||
if (!event.getPlayer().isWhitelisted() || !rank.has(Rank.EVENT))
|
||||
{
|
||||
event.setResult(PlayerLoginEvent.Result.KICK_OTHER);
|
||||
// event.setKickMessage("This server is whitelisted!");
|
||||
|
@ -29,7 +29,7 @@ import mineplex.game.clans.clans.ClansManager;
|
||||
|
||||
public class PotatoManager extends MiniPlugin implements IThrown
|
||||
{
|
||||
private static final String POTATO_NAME = C.cGray + "POTATO";
|
||||
private static final String POTATO_NAME = C.cGray + "Potato";
|
||||
|
||||
private ClansManager _clansManager;
|
||||
|
||||
@ -49,9 +49,9 @@ public class PotatoManager extends MiniPlugin implements IThrown
|
||||
private void give(Player player, int count)
|
||||
{
|
||||
ItemStack potato = new ItemStack(Material.BAKED_POTATO, count);
|
||||
// ItemMeta meta = potato.getItemMeta();
|
||||
// meta.setDisplayName(POTATO_NAME);
|
||||
// potato.setItemMeta(meta);
|
||||
ItemMeta meta = potato.getItemMeta();
|
||||
meta.setDisplayName(POTATO_NAME);
|
||||
potato.setItemMeta(meta);
|
||||
player.getInventory().addItem(potato);
|
||||
}
|
||||
|
||||
|
@ -111,10 +111,11 @@ public class Fire extends MiniPlugin
|
||||
if (!_fire.containsKey(fire))
|
||||
return;
|
||||
|
||||
event.setCancelled(true);
|
||||
|
||||
if (!_fire.get(fire).canHitOwner() && _fire.get(fire).GetOwner().equals(player))
|
||||
return;
|
||||
|
||||
event.setCancelled(true);
|
||||
|
||||
if (((CraftPlayer)player).getHandle().spectating)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user