Class GameConfig
java.lang.Object
com.storytimeproductions.models.stgames.GameConfig
Represents the configuration for a game, including its properties and settings.
-
Constructor Summary
ConstructorsConstructorDescriptionGameConfig(String gameId, org.bukkit.Location joinBlock, int ticketCost, org.bukkit.Location gameArea, org.bukkit.Location exitArea, int playerLimit, String joinSuccessMessage, String joinFailMessage, String winMessage, String loseMessage, Map<String, String> gameProperties) Constructs a new GameConfig with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.LocationGets the location representing the exit area.org.bukkit.LocationGets the location representing the game area.Gets the unique identifier for the game.Gets additional game-specific properties.org.bukkit.LocationGets the location of the join block.Gets the message shown when joining the game fails.Gets the message shown when joining the game succeeds.Gets the message shown when a player loses the game.intGets the maximum number of players allowed in the game.intGets the cost to join the game.Gets the message shown when a player wins the game.
-
Constructor Details
-
GameConfig
public GameConfig(String gameId, org.bukkit.Location joinBlock, int ticketCost, org.bukkit.Location gameArea, org.bukkit.Location exitArea, int playerLimit, String joinSuccessMessage, String joinFailMessage, String winMessage, String loseMessage, Map<String, String> gameProperties) Constructs a new GameConfig with the specified parameters.- Parameters:
gameId- the unique identifier for the gamejoinBlock- the location of the join blockticketCost- the cost to join the gamegameArea- the location representing the game areaexitArea- the location representing the exit areaplayerLimit- the maximum number of players allowedjoinSuccessMessage- the message shown when joining succeedsjoinFailMessage- the message shown when joining failswinMessage- the message shown when a player winsloseMessage- the message shown when a player losesgameProperties- additional game-specific properties
-
-
Method Details
-
getGameId
-
getJoinBlock
public org.bukkit.Location getJoinBlock()Gets the location of the join block.- Returns:
- the join block location
-
getTicketCost
public int getTicketCost()Gets the cost to join the game.- Returns:
- the ticket cost
-
getGameArea
public org.bukkit.Location getGameArea()Gets the location representing the game area.- Returns:
- the game area location
-
getExitArea
public org.bukkit.Location getExitArea()Gets the location representing the exit area.- Returns:
- the exit area location
-
getPlayerLimit
public int getPlayerLimit()Gets the maximum number of players allowed in the game.- Returns:
- the player limit
-
getJoinSuccessMessage
Gets the message shown when joining the game succeeds.- Returns:
- the join success message
-
getJoinFailMessage
Gets the message shown when joining the game fails.- Returns:
- the join fail message
-
getWinMessage
Gets the message shown when a player wins the game.- Returns:
- the win message
-
getLoseMessage
Gets the message shown when a player loses the game.- Returns:
- the lose message
-
getGameProperties
-