mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01:00
SPIGOT-2705: Portal cooldown getter / setter.
This commit is contained in:
parent
c1b529eddc
commit
ae93d4fb49
1 changed files with 10 additions and 0 deletions
|
@ -584,6 +584,16 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
||||||
getHandle().setNoGravity(!gravity);
|
getHandle().setNoGravity(!gravity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getPortalCooldown() {
|
||||||
|
return getHandle().portalCooldown;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setPortalCooldown(int cooldown) {
|
||||||
|
getHandle().portalCooldown = cooldown;
|
||||||
|
}
|
||||||
|
|
||||||
private static PermissibleBase getPermissibleBase() {
|
private static PermissibleBase getPermissibleBase() {
|
||||||
if (perm == null) {
|
if (perm == null) {
|
||||||
perm = new PermissibleBase(new ServerOperator() {
|
perm = new PermissibleBase(new ServerOperator() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue