6cc4ec034b
UHC Y Limit in middle
39 lines
818 B
Java
39 lines
818 B
Java
package nautilus.game.arcade.kit.perks;
|
|
|
|
import org.bukkit.entity.Player;
|
|
import org.bukkit.event.EventHandler;
|
|
|
|
import mineplex.core.common.util.C;
|
|
import mineplex.core.updater.event.UpdateEvent;
|
|
import mineplex.core.updater.UpdateType;
|
|
import nautilus.game.arcade.kit.Perk;
|
|
|
|
public class PerkDigger extends Perk
|
|
{
|
|
public PerkDigger()
|
|
{
|
|
super("Digger", new String[]
|
|
{
|
|
C.cGray + "Permanent Fast Digging II",
|
|
});
|
|
}
|
|
|
|
@EventHandler
|
|
public void DigSpeed(UpdateEvent event)
|
|
{
|
|
if (event.getType() != UpdateType.FAST)
|
|
return;
|
|
|
|
if (Manager.GetGame() == null)
|
|
return;
|
|
|
|
for (Player player : Manager.GetGame().GetPlayers(true))
|
|
{
|
|
if (!Kit.HasKit(player))
|
|
continue;
|
|
|
|
Manager.GetCondition().Factory().DigFast(GetName(), player, player, 2.9, 1, false, false, true);
|
|
}
|
|
}
|
|
}
|