Fix: Sustenence Effect, Player Corrected And Minor Fixes

This commit is contained in:
GabrieleRadice
2026-03-18 18:56:10 +01:00
parent acb915b611
commit 959341e421
4 changed files with 36 additions and 16 deletions
@@ -91,6 +91,14 @@ public class Player {
this.PrestigeValue -= Value;
}
public void setUserName(String UserName) throws IllegalArgumentException{
final int MAXLEN = 32;
if(UserName.isEmpty() || UserName.length() > MAXLEN){
throw new IllegalArgumentException();
}
this.UserName = UserName;
}
// End setters
// Constructors