Class IsNotOtherAccountNameValidator
java.lang.Object
games.stendhal.server.core.account.IsNotOtherAccountNameValidator
- All Implemented Interfaces:
AccountParameterValidator
validates the new character name is not an account name, unless player owns that account
- Author:
- kymara
-
Constructor Summary
ConstructorDescriptionIsNotOtherAccountNameValidator(String charname, String username)
creates an IsNotOtherAccountNameValidator. -
Method Summary
-
Constructor Details
-
IsNotOtherAccountNameValidator
creates an IsNotOtherAccountNameValidator.- Parameters:
charname
- value to validateusername
- account username of character creator
-
-
Method Details
-
validate
Description copied from interface:AccountParameterValidator
validates a parameter provided for account creation.- Specified by:
validate
in interfaceAccountParameterValidator
- Returns:
null
in case the parameter is valid, or an error otherwise
-