Purpose: This command activates or deactivates the event system.
Features:
If "on" is provided, it enables the event system and sends a message to all players announcing activation.
If "off" is provided, it disables the event system, removes the "event" rank from all players involved in the event, and deletes the list of event players.
If an invalid argument is provided, it shows the correct usage.
2. /setevent <event_name>:
Purpose: This command allows admins to set the event's name and location.
Features:
Sets the event's name to the provided argument.
Sets the event's location to the player's current position.
Sends messages confirming the event's name and location.
3. /joinevent:
Purpose: Allows players to join an event.
Features:
Checks if the event system is active, if the event name and location are set.
If everything is ready, the player is added to the event, given the "event" rank, and teleported to the event location after a countdown.
Players can only join if they haven't already joined the event.
4. /event:
Purpose: Allows players to teleport to the event location if they have already joined.
Features:
Checks if the event system is active and if the player has joined the event.
If so, teleports the player to the event location after a countdown.
5. /leaveevent:
Purpose: Allows players to leave the event.
Features:
Removes the "event" rank from the player and deletes them from the event.
Sends a message confirming that the player has left the event.
6. /kick event <player>:
Purpose: Allows admins to kick a player from the event.
Features:
Removes the specified player's "event" rank and deletes them from the event.
Sends a message to the kicked player and to the admin confirming the action.
7. /eventwinner <player>:
Purpose: Sets a player as the winner of the event.
Features:
Allows admins to declare a winner for the event.
Sends a message to all players announcing the winner.