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
ConstructorsConstructorDescriptionIsNotOtherAccountNameValidator(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:AccountParameterValidatorvalidates a parameter provided for account creation.- Specified by:
validatein interfaceAccountParameterValidator- Returns:
nullin case the parameter is valid, or an error otherwise
-