Basic
Include some basic knowledge before using the plugin
Include some basic knowledge before using the plugin
Game is a standard unit in which we define logic, sequences & tasks to be performed so that the players would join & have fun the way we want. In this plugin, Game is commonly provided by developers who have ideas for some ways to entertain the players.
Arena is “game in action”, which is usually a place Game takes part in. Operators would configure aspects of a specific Game to make it an Arena.
Planner is the biggest unit of the plugin. It’s a unit to handle multiple Arenas, usually for scheduling which Arena would be run at a certain time.
Picker is a part of a Planner that chooses which Arena will be run. it can be configured by operators to specify how to choose (pick) an Arena.
/gitb reload
gamesinthebox.reload
/gitb action <planner> <action> [args]
gamesinthebox.action
/gitb action <planner>
to get the list of available actions/gitb end <planner>
/gitb forcepick <planner>
gamesinthebox.forcepick
<planner>
: The Planner to force the picker/gitb setgame <planner> <arena>
/gitb expansion
gamesinthebox.expansion
Permission:
gamesinthebox.editor
/gitbeditor usage <game>
<game>
: The Game to edit/gitbeditor save <game> <planner> <arena> [override]
/gitbeditor action <game> <action> [args]
<game>
: The Game to perform the action<action>
: The action to perform[args]
: The arguments required by the action/gitbeditor reset <game>
<game>
: The Game to edit/gitbeditor status <game>
<game>
: The Game to edit/gitbeditor migrate <game> <planner> <arena>
# Settings for games that involve blocks
block-util:
# How many blocks to be placed for each call
blocks-per-tick: 50
# The delay before calling the next tick
block-delay: 0
# The maximum blocks to be placed (-1 for unlimited)
max-blocks: -1
# Should the plugin use FastAsyncWorldEdit if it exists ?
use-fawe: true
# Settings for Planners
planner:
# The delay between Planner's tick
interval: 20
# Should the planner run asynchronously ?
async: true
The plugin provides built-in variables for Game, Arena & Game. These variables can be used in game messages and actions.
Variable | Description |
---|---|
{planner_name} | The name of the planner |
{planner_game_name} | The display name of the game of the current arena of the planner |
{planner_game_local_name} | The name of the current arena of the planner |
{planner_state} | The current state of the planner |
{planner_game_state} | The state of the current arena of the planner |
The variables can be used in PlaceholderAPI with this format:
%gamesinthebox_<planner>:<variable>%
<planner>
is the name of the planner to request<variable>
is the plugin variable without curly brackets {}
For example, if you want to get the {planner_game_state}
of a planner named my_game
, the placeholder for that will be
%gamesinthebox_my_game:planner_game_state%