HomeJavaModsPoints Plugin
Points Plugin
Points is a simple plugin that allows users to earn points for their playtime and use said points to buy items in a store, such as ranks, blocks, and shoutouts, whatever you want.


Warning:
As of version 2.1.0a this plugin will not work with legacy servers (1.12.2-) due to Material support for certain items not existing in those older versions.

Commands:
Spoiler
  • /points ? - Open points menu.
  • /points ? - Open help dialouge.
  • /points store - Opens points store.
  • /points balance - Give points balance.
  • /points reload - Reload config files.
  • /points trade <user> # - Gives a user some of the executor's points.
  • /points get <user> - Get a user's number of points.
  • /points give <user> # - Give a user an arbitrary number of points
  • /points set <user> # - Set a user's point balance to an arbitrary number.
  • /createitem - Creates an item in the points store.
  • /createcategory - Creates a category in the points store.
  • /edititem - Edits an item entry in the points store.
  • /editcategory - Edits a category entry in the points store.
  • /purchases <user> - View a user's purchase history.

Permissions:
Spoiler
  • points.main.bal - Allow a user to check their points balance.
  • points.main.? - Allow a user to view the help menu.
  • points.main.store - Allow a user to open the points store.
  • points.main.menu - Allow a user to open the points menu.
  • points.earn - Allow a user to earn points.
  • points.create.category - Allow a user to make categories in the points store
  • points.create.item - Allow a user to make items in the points store.
  • points.reload - Allows execution of "/points reload"
  • points.set - Allows use of "/points set"
  • points.get - Allows use of "/points get"
  • points.give - Allows use of "/points give"
  • points.trade - Allows use of "/points trade"
  • points.purchases - Allows use of "/purchases"

Instructions For Use:
Spoiler
Setting up config.yml
Spoiler
When you first install the plugin and start the server you'll probably get a message from the Points plugin telling you that it couldn't connect to the MYSQL server.

What you want to do is go into your plugins folder, and then into "Points_By_Metype", then open config.yml

First, go into the sql section and set all the values accordingly, set "host" to your host, "port" to the port it's hosted on, etc. I recommend keeping the table name as "points" and letting the plugin create the table for you.

Quickly looking at the points section, you can see there's an "interval", set this to the number of minutes you want wait time before players are given points, next there's "allow_negative", you should probably leave it as false unless you want users to be able to have negative points balances. Third, there's "per_interval", this is the number of points you want each user online to receive every "interval" minutes. fourth is "tradable", I suggest you keep it at true, if set to false players can't give others some of their points. The penultimate option (thanks Lemony) is "
value_separator" which is the character used to separate digits. Lastly, we have "default" which is the number of points a user gets on first login.

If you've set everything up right, when you restart your server it should say "MYSQL Connected" and you're ready to go.

Setting up the Store
Spoiler
Well, to start you need to make a category, so type "/createcategory" and follow the steps, when it asks for a key, I'd suggest using something that's like the category name, but it can't have spaces, and make sure no other category has this key.

Now that you've made a category, if you check the points store "/p store" you'll see that it's displayed as a red stained glass pane, which is probably not the item you chose, if you hover over it all the details are right, but the category is empty,

Now, to make an item type "/createitem" and follow those steps, same rules with the item key, and you don't have to remember a category key anymore, now you can select it from a handy menu.

Note that the rebuyable state is a true or false and it determines if the user can buy the item more than once.

Editing Store Entries
Spoiler
What if you misspelled a category name, what if you put an item in the wrong category? Well, all of these small issues can be solved with /editcategory and /edititem the commands provide a UI for you to use and allow for the editing of categories and items, one small thing to note is that changing the category of an item removes its purchase reference from everyone, meaning even if it's not rebuyable, it will be able to be purchased again in the new category.

Editing messages.yml
Spoiler
messages.yml is a nice little file that controls almost every message the plugin displays, now while this was a pain to implement it's relatively simple to use, just change the messages where you see fit and there you go, simply "/p reload" and you've got custom messages.

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Points Plugin is a free Minecraft Java mod. Compatible with Minecraft 1.13, 1.14, 1.15. Downloaded 1,311 times (via Spigot). Download it and open it directly in the game.

Explore more