Class RegionNameSubstitutionHelper

java.lang.Object
games.stendhal.server.core.config.zone.RegionNameSubstitutionHelper

public class RegionNameSubstitutionHelper extends Object
Helper class to substitute region names i.e. it should name "magic" to "magic city"
Author:
madmetzger
  • Method Details

    • get

      public static RegionNameSubstitutionHelper get()
      Singleton access method
      Returns:
      the singleton instance
    • replaceRegionName

      public String replaceRegionName(String name)
      Replaces the given zone name if configured. If no replacement is defined the original name is returned
      Parameters:
      name -
      Returns:
      the replaced name
    • getDefaultRegion

      public String getDefaultRegion()
      Returns:
      the name of the default region