SPIGOT-2705: Portal cooldown getter / setter.

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2016-10-01 12:26:20 +10:00
parent dc3ec1e507
commit 502373d73c

View file

@ -584,6 +584,16 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
getHandle().setNoGravity(!gravity);
}
@Override
public int getPortalCooldown() {
return getHandle().portalCooldown;
}
@Override
public void setPortalCooldown(int cooldown) {
getHandle().portalCooldown = cooldown;
}
private static PermissibleBase getPermissibleBase() {
if (perm == null) {
perm = new PermissibleBase(new ServerOperator() {