Class RegionNameSubstitutionHelper
java.lang.Object
games.stendhal.server.core.config.zone.RegionNameSubstitutionHelper
Helper class to substitute region names
i.e. it should name "magic" to "magic city"
- Author:
- madmetzger
-
Method Summary
Modifier and TypeMethodDescriptionstatic RegionNameSubstitutionHelper
get()
Singleton access methodreplaceRegionName(String name)
Replaces the given zone name if configured.
-
Method Details
-
get
Singleton access method- Returns:
- the singleton instance
-
replaceRegionName
Replaces the given zone name if configured. If no replacement is defined the original name is returned- Parameters:
name
-- Returns:
- the replaced name
-
getDefaultRegion
- Returns:
- the name of the default region
-