Fix: Sustenence Effect, Player Corrected And Minor Fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user