Fix game time locking

This commit is contained in:
KingRainbow44
2023-05-17 20:53:32 -04:00
parent 69fadff479
commit 18bc68774c
2 changed files with 21 additions and 4 deletions

View File

@@ -723,6 +723,17 @@ public class Player implements PlayerHook {
return playerProfile;
}
/**
* Sets a player's property.
*
* @param prop The property.
* @param value The value as a boolean.
* @return True if the property was set.
*/
public boolean setProperty(PlayerProperty prop, boolean value) {
return setPropertyWithSanityCheck(prop, value ? 1 : 0, true);
}
public boolean setProperty(PlayerProperty prop, int value) {
return setPropertyWithSanityCheck(prop, value, true);
}