Grammar <3

This commit is contained in:
Mysticate 2015-09-30 19:45:29 -04:00
parent 68c6ba595e
commit 09ef2d73ae
2 changed files with 12 additions and 5 deletions

View File

@ -22,9 +22,8 @@ public class KitRepulsor extends Kit
new String[]
{
"You were mean to all the",
"monsters, so now they all",
"run away from you! Rude!"
"You love to watch monsters",
"fly away... Caw..."
},
new Perk[]
@ -38,7 +37,7 @@ public class KitRepulsor extends Kit
@Override
public void GiveItems(Player player)
{
player.getInventory().setItem(0, ItemStackFactory.Instance.CreateStack(Material.COAL, (byte) 0, 3, C.cYellow + C.Bold + "Right Click" + C.cWhite + C.Bold + " - " + C.cGreen + C.Bold + "Smash"));
player.getInventory().setItem(0, ItemStackFactory.Instance.CreateStack(Material.COAL, (byte) 0, 3, C.cYellow + C.Bold + "Right Click" + C.cWhite + C.Bold + " - " + C.cGreen + C.Bold + "Repulse"));
player.getInventory().setItem(4, ItemStackFactory.Instance.CreateStack(Material.COMPASS, (byte) 0, 1, F.item("Safe Pad Locator")));
}
}

View File

@ -5,6 +5,7 @@ import java.util.HashMap;
import mineplex.core.common.util.F;
import mineplex.core.common.util.UtilAction;
import mineplex.core.common.util.UtilAlg;
import mineplex.core.common.util.UtilBlock;
import mineplex.core.common.util.UtilEnt;
import mineplex.core.common.util.UtilEvent;
import mineplex.core.common.util.UtilEvent.ActionType;
@ -96,7 +97,14 @@ public class PerkRepulsor extends Perk
continue;
}
if (en.isOnGround() && UtilTime.elapsed(copy.get(en), 250))
if (en.isOnGround() && UtilTime.elapsed(copy.get(en), 500))
{
remove(en);
continue;
}
//If there are blocks surrounding the block it's on top of (if it's on the side of a block)
if (!UtilBlock.getInBoundingBox(en.getLocation().clone().add(1, -1, 1), en.getLocation().clone().subtract(1, 1, 1), true).isEmpty() && UtilTime.elapsed(copy.get(en), 500))
{
remove(en);
continue;