# WorldEvent > Represents a timed world event that can be activated during a game. `gg.lode.observerapi.api` --- ## Signature ```java public class WorldEvent ``` --- ## Constructor ```java public WorldEvent(String id, String name, int activationTime, boolean isRepeatable, String activationTranslation) ``` | Parameter | Type | Description | |-----------|------|-------------| | `id` | `String` | Unique identifier for this world event | | `name` | `String` | Display name | | `activationTime` | `int` | Time in seconds when the event activates | | `isRepeatable` | `boolean` | Whether the event can activate more than once | | `activationTranslation` | `String` | Translation key for the activation message | --- ## Methods ### getId ```java public String getId() ``` **Returns:** `String` - the unique identifier --- ### getName ```java public String getName() ``` **Returns:** `String` - the display name --- ### getActivationTime ```java public int getActivationTime() ``` **Returns:** `int` - the activation time in seconds --- ### setActivationTime ```java public void setActivationTime(int activationTime) ``` | Parameter | Type | Description | |-----------|------|-------------| | `activationTime` | `int` | The new activation time in seconds | --- ### isRepeatable ```java public boolean isRepeatable() ``` **Returns:** `boolean` - `true` if the event can repeat --- ### setRepeatable ```java public void setRepeatable(boolean repeatable) ``` | Parameter | Type | Description | |-----------|------|-------------| | `repeatable` | `boolean` | Whether the event can repeat | --- ### getActivationTranslation ```java public String getActivationTranslation() ``` **Returns:** `String` - the translation key for the activation message --- ### setActivationTranslation ```java public void setActivationTranslation(String activationTranslation) ``` | Parameter | Type | Description | |-----------|------|-------------| | `activationTranslation` | `String` | The new translation key | --- ### isActive ```java public boolean isActive() ``` **Returns:** `boolean` - `true` if the event is currently active --- ### setActive ```java public void setActive(boolean active) ``` | Parameter | Type | Description | |-----------|------|-------------| | `active` | `boolean` | Whether the event is active | --- ## Related Pages - [[IWorldEventManager]] - [[StartWorldEvent]] - [[EndWorldEvent]]