mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-09-26 06:13:09 +02:00
Add setLocked to Age
This commit is contained in:
parent
1e050bb89d
commit
e29f05156d
@ -73,6 +73,14 @@ public class Age extends Trait implements Toggleable {
|
||||
}
|
||||
}
|
||||
|
||||
public void setLocked(boolean locked) {
|
||||
this.locked = locked;
|
||||
if (isAgeable()) {
|
||||
ageable.setAgeLock(locked);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Toggles the age lock variable and returns whether the age is currently locked.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user