Setting up a Scoreboard system - CraZyRc/WhackaMole GitHub Wiki

Chosing the Scoreboard system

A lot of servers wish to be as survival friendly as possible and not install a plugin to manage their economy and choose to use the vanilla scoreboard system.

But how does this work?


Creating the scoreboard

To make use of the scoreboard system we need to create a scoreboard objective. this can be done via the /scoreboard objective command. Firstly choose a name for your currency, for example: MineCoins

Then, to create the currency you can enter the following command:
/scoreboard objectives add <CurrencyName> dummy <DisplayName>
The display name can be anything you want. for example:
/scoreboard objectives add MineCoins dummy "Mine Coins"

Now that we have created the objective, it's time to use this for the currency System.


Setting up the plugin

Inside of the Config file, find the section called The economic side.
Within this section there is a setting called: Economy.
Make sure this is set to SCOREBOARD

Underneath this setting you will find the setting Scoreboard Objective.
Make sure to set this to your new scoreboard objective (the objective name, not the display name). For example:
Scoreboard Objective: MineCoins

And that's it! Your scoreboard system has now been set up.


Display your currency!

There are multiple ways to display the currency, the easiest are done via the setdisplay subcommand from the /scoreboard command.
The three easiest setups are:

  • List
  • Sidebar
  • Below_name

List

using the /scoreboard objectives setdisplay list <objective>, you can display the amount of currency you own in the tablist next to the player's name.
image
Here the 60 represents the current currency of the player.

Sidebar

using the /scoreboard objectives setdisplay sidebar <objective>, you can display the amount of currency you own in a list on the right side of the screen.
image

Below name

using the /scoreboard objectives setdisplay below_name <objective>, you can display the amount of currency you own underneath your name, so other players can see it when they see you,
image


Now that you've set your currency, you are ready to either continue setting up the plugin, or create your first game grid!

<- Install/Setup of the plugin | Creating a Grid ->

⚠️ **GitHub.com Fallback** ⚠️