geforkt von Mirrors/Paper
SPIGOT-2705: Portal cooldown getter / setter.
Dieser Commit ist enthalten in:
Ursprung
c1b529eddc
Commit
ae93d4fb49
@ -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() {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren