Class RegionEvent.Rename

java.lang.Object
de.z0rdak.yawp.api.events.region.RegionEvent
de.z0rdak.yawp.api.events.region.RegionEvent.Rename
Enclosing class:
RegionEvent

public static final class RegionEvent.Rename extends RegionEvent
This event is fired whenever a new region is renamed. This event is cancelable. When this is event is canceled, the region will not be renamed.
  • Constructor Details

  • Method Details

    • getOldName

      public String getOldName()
    • getNewName

      public String getNewName()
    • setNewName

      public void setNewName(String newName)
      The name set here is not validated again. Be sure you validate the name before setting it.
      Otherwise, you may cause inconsistencies and break your whole region definition.
      Parameters:
      newName - The new name of the region - be sure to validate it before
      See Also: