Combat registers when logging in/changing world

This commit is contained in:
Jules 2023-02-28 10:50:15 +01:00
parent f750326fe3
commit 79e26086ae

View File

@ -33,6 +33,9 @@ public abstract class MMOCoreFlagHandler extends FlagValueChangeHandler<StateFla
protected void onInitialValue(LocalPlayer player, ApplicableRegionSet set, StateFlag.State value) {
try {
playerData = PlayerData.get(player.getUniqueId());
// Things get done here
onSetValue(player, player.getLocation(), player.getLocation(), set, value, StateFlag.State.DENY, MoveType.TELEPORT);
} catch (Exception exception) {
// Citizens.
}