mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2025-01-23 09:41:23 +01:00
Combat registers when logging in/changing world
This commit is contained in:
parent
f750326fe3
commit
79e26086ae
@ -33,6 +33,9 @@ public abstract class MMOCoreFlagHandler extends FlagValueChangeHandler<StateFla
|
|||||||
protected void onInitialValue(LocalPlayer player, ApplicableRegionSet set, StateFlag.State value) {
|
protected void onInitialValue(LocalPlayer player, ApplicableRegionSet set, StateFlag.State value) {
|
||||||
try {
|
try {
|
||||||
playerData = PlayerData.get(player.getUniqueId());
|
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) {
|
} catch (Exception exception) {
|
||||||
// Citizens.
|
// Citizens.
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user