V2 Commands - CraZyRc/WhackaMole GitHub Wiki
On this page, we will explain the usage of the commands.
Create
Usage:
/wam create {gamename}.
This command is used to create a new game and can only be executed on top of a new game field.
Settings
Usage:
/wam settings {gamename} [setting] [value]
This command can give you a summary of the current settings of a game (when used without the [setting] and [value] parameters).
Alternatively, this command can also be used to edit a setting (when used with the [setting] and [value] parameters).
A deeper explanation of what each setting means can be found on the Editing a game page
Reload
Usage:
/wam reload
This command reloads the config and game file(s). So when you change something in the config or in the game file, you won't have to restart your server but simply reload the plugin, and all your changes are loaded in!
Remove
Usage:
/wam remove {gamename}
This command allows you to delete a game. When executed, a message will pop up in chat asking you to confirm the deletion of the game (to prevent accidentally removing a game).
Buy
Usage:
/wam buy
This command allows the player to buy reset tickets that can be used to remove the cooldown from a game. When executed once, a message will pop up in chat telling the player the price of the ticket and asking the player to confirm buying a ticket. More info can be found on the Extras page.
Start
Usage:
/wam start {gamename}
This command can force-start a game, whether the player on top has a cooldown or not (NOTE: this also removes the cooldown from the player)
Stop
Usage:
/wam stop {gamename}
This command can be used to force shut down an ongoing game. This won't work if the game is not currently active. The player will be payed his/her current score and because this isn't a game-over, the player won't receive the cooldown.
top
Usage:
/wam top {gamename} {moles/score/streak}
This command, when executed will show the player the top 10 scoreboard for that specific game.
There are three different scoreboards so when executing the command, for the last parameter the player can choose between moles, score, or streak.
More info about each scoreboard can be found on the Extras page.
positions
Usage:
/wam positions {gamename} {highscore/streak/teleport}
This command, when executed has three possibilities due to the last parameter.
If the last parameter is highscore, the command will teleport the high score hologram to the players' current position.
If the last parameter is streak, the command will create a streak hologram at the players' current location.
If the last parameter is teleport, the command will set the teleportation location for players who try to enter an ongoing game.
More info about these parameters can be found on the Extras page.