Immolate fix hopefully

This commit is contained in:
NewGarbo 2015-11-27 06:05:22 +00:00
parent 9082ace3f3
commit a9669ade31
3 changed files with 7 additions and 6 deletions

View File

@ -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!");

View File

@ -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);
}

View File

@ -110,11 +110,12 @@ 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;