Add flyable status to /prop

This commit is contained in:
KingRainbow44 2023-04-13 18:06:35 -04:00
parent 47cdfe5c14
commit 29501bcd81
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE

View File

@ -81,6 +81,12 @@ public final class SetPropCommand implements CommandHandler {
Prop unlockmap = new Prop("UnlockMap", PseudoProp.UNLOCK_MAP);
this.props.put("unlockmap", unlockmap);
this.props.put("um", unlockmap);
Prop flyable = new Prop("IsFlyable", PlayerProperty.PROP_IS_FLYABLE, PseudoProp.IS_FLYABLE);
this.props.put("canfly", flyable);
this.props.put("fly", flyable);
this.props.put("glider", flyable);
this.props.put("canglide", flyable);
}
@Override
@ -246,7 +252,8 @@ public final class SetPropCommand implements CommandHandler {
UNLIMITED_ENERGY,
SET_OPENSTATE,
UNSET_OPENSTATE,
UNLOCK_MAP
UNLOCK_MAP,
IS_FLYABLE
}
static class Prop {