ArenaHandler

class ArenaHandler(guilds: Guilds)(source)

The ArenaHandler class manages and holds all the Arena objects.

Constructors

Link copied to clipboard
fun ArenaHandler(guilds: Guilds)

Functions

Link copied to clipboard
fun addArena(arena: Arena)

Adds a Arena to the map of arenas.

Link copied to clipboard

Returns a list of the names of all the Arena objects in the map.

Link copied to clipboard

Returns an Optional object containing the Arena object with the given name.

Link copied to clipboard

Returns a collection of all the Arena objects in the map.

Link copied to clipboard

Returns an Optional object containing the first Arena object which is not in use.

Link copied to clipboard

Loads all the Arena objects from the database and adds them to the map of arenas.

Link copied to clipboard
fun removeArena(arena: Arena)

Removes a Arena from the map of arenas.

Link copied to clipboard

Saves all the Arena objects in the map to the database.