V3 Commands - CraZyRc/WhackaMole GitHub Wiki
In previous chapters we already explained most of the commands. but We understand it can be a hassle to browse the entire wiki to find out how all of the commands work.
So in case of clarity, we will explain all of the commands per category down below.
The Commands are categorized into four parts, these are as followed: General, Game, Settings and Holo commands.
General Commands
The General commands do not have any other subcommands, they are executed by typing /wam and then the subcommand.
These commands are for the general creation and usage of the plugin.
The commands are:
| Command | Access | Explanation |
|---|---|---|
/wam buy |
Everyone | Allows a player to buy reset tickets |
/wam reload |
Opped Players | Allows a player to reload the plugin |
/wam buy : Use this command twice to buy a ticket that allows you to reset the waiting cooldown for a game. This command has to be confirmed for it to succeed. After the first time, the player will be shown a prompt, showing the price for a ticket and asking confirmation to buy the ticket.
Prices can be configured in the Config.
/wam reload : force reload the plugin. this can be handy when you make a config change or language change and you do not want to restart the full server.
NOTE: This can break things, so be careful when executing this command and make sure no games are running when executing.
Game Commands
Next up are the Game commands, these command influence the actual game managing.
From creation/deletion to force starting/stopping games.
The commands are:
| Command | Access | Explanation |
|---|---|---|
/wam game create |
Opped Players | Create a game |
/wam game remove |
Opped Players | Remove a game |
/wam game edit |
Opped Players | Edit the game terrain |
/wam game start |
Opped Players | Force start a game |
/wam game stop |
Opped Players | Force stop a game |
/wam game toggle |
Opped Players | Toggle the display name of a game |
/wam game top |
Everyone | Show the top players per category of that game in chat |
/wam game create {gamename} : Create a new game, for this command to work you have to stand on top of a working game grid. The gamename will be the name of the created game.
/wam game remove {gamename} : Remove an existing game. After executing this command the first time, the game will glow and the executing player will be asked to confirm the deletion by entering the command a second time.
/wam game edit : Per default, the terrain of an existing game cannot be edited. by executing this command the player will enter an edit mode which allows the player to edit the terrain. While in this mode, the player will be unable to start a game.
/wam game start {gamename} : This command will force start the game, even if the player on top has an active cooldown.
NOTE: This will not bypass permissions. If the player does not have the correct permission to play the game, the game will not start.
/wam game stop {gamename} : This command will force stop a game, The game will end and the player will receive their rewards.
/wam game toggle {gamename} : Toggles the visibility of the game name. The name will appear above the game hologram.
/wam game top {gamename} {type} : displays the top 10 players of the game per category (type). The three categories are: moles, showing the players who've hit the most moles per game. Score, showing the highest scores achieved. And Streak, showing who has hit the most moles without missing a mole in a row.
Settings Commands
The Settings commands allow the user to change game settings. these settings can influence the gameplay experience.
The commands are:
| Command | Access | Explanation |
|---|---|---|
/wam settings get |
Opped Players | Get the current settings of a game |
/wam settings set |
Opped Players | Set a game setting |
/wam settings positions |
Opped Players | Set various positions for game settings |
/wam settings get {gamename} : Showcases the current game settings in chat.
/wam settings set {gamename} {setting} {value} : Sets a setting, the {setting} being which setting you wish to change, {value} being what you wish to change the setting into.
/wam settings positions {gamename} {type} : This command has multiple functions. It sets the position for the three types, being:
highscore: The highscore hologram is the hologram that floats above the game. when executing the command withhighscoreas type, it will teleport the hologram to the players location.streak: The streak hologram is an extra option, turned off by default. The streak hologram counts up how many moles you've hit consequentially in a row and will reset when the streak is broken. Using the command withstreakas type will summon the streak hologram on the spot you execute the command.
NOTE: By default, the streak hologram is turned off, when activating it with this command, it will forever stay. you cannot turn off the streak hologram (for a future update).teleport: There is nothing more annoying then when you are playing a game of WhackaMole and a player tries to stand in front of you to block you from playing. By default, a player cannot enter a game grid when a game is active. they will be pushed back in the direction they cam from. but if your game is boxed in, this might be buggy because players might be pushed into a wall. To counter this, we created the teleport type. When executing the command withteleportas type, your current position will be the place where players will be teleported to when trying to enter an already active game field.
Holo Commands
The holo commands allow you to create scoreboard holograms, these can be manipulated in various ways with multiple commands, therefor they have their own category. The commands are:
| Command | Access | Explanation |
|---|---|---|
/wam holo create |
Opped Players | Create a new scoreboard hologram |
/wam holo remove |
Opped Players | Remove a scoreboard hologram |
/wam holo select |
Opped Players | Select a hologram and show it's location |
/wam holo teleport |
Opped Players | Teleport the hologram to your location |
/wam holo toggle |
Opped Players | Toggle the ID visibility of the hologram |
/wam holo create {gamename} {holoID} {type} {rowcount} : Create a new scoreboard hologram, the holoID being the identifier for the hologram. Type defines whether you wish to display the top moles hit, streaks or highest scores. rowcount means how many rows of top players you wish to display, whether you wish the top 3 of top 100 to be displayed (the higher the number, the more entities there will be and therefor the more lag it can produce).
/wam holo remove {gamename} {holoID} : Removing a hologram. This command will not ask for confirmation and will remove the hologram straight away after executing this command.
/wam holo select {gamename} {holoID} : Selecting a hologram. The hologram will alter in colors and a message is send to the executor displaying the coordinates of the hologram.
/wam holo teleport {gamename} {holoID} : Teleport the hologram to the executors location.
/wam holo toggle {gamename} : Toggles the visibility of all of the game's hologram IDs. The ID will be displayed on top of the hologram.
You have successfully reached the end of the Wiki. Congratz! If you've read every page then you are now an expert WhackaMoller. Enjoy all the possibilities you've uncovered. If ever you have any questions, you can consult our Discord Or if you encounter an issue/a bug, then please fill in a ticket here. Our Discord can also be used to share your experiences or game creations, we are always curious to see your creativity unfold! If you Enjoy the plugin then please consider leaving a rating over on our Spigot page.
That's it, enjoy!