JustPoints

Store numeric values of players' stats or balance, specified by a text key. -> With Folia and Multi-Server support!

904

JustPoints

Dependencies

* BukkitOfUtils

Discord

Please join the Streamline Hub Discord in order to get updates and for me to fully assist you with bugs, questions, or suggestions.

Discord: **click here**

Summary

Store numeric values for players' stats, currency, etc. This is great for servers that need to do a lot of custom currency / statistic logic, but don't want to fully create their own plugin. Use **PointsExchange** and a GUI plugin of your choice to allow players to buy things with these currencies, or just see their stats.

I originally made this for a server I was making that had dungeons where we wanted to keep track of player's `Bosses Killed`. I also used it on a proxy server for network-wide currency (`Credits`).

Why This?

This offers a very simple configuration and setup all while remaining very light-weight. Connect it to a database for multi-server / network compatibility. Or... just use it with SQLite for a single server.

How to Install

1. Download and install BukkitOfUtils. Found here: BukkitOfUtils 2. Download the correct version of this plugin for you server version. 3. Place in your `plugins` folder. 4. Stop server. 5. Start server. 6. Use to your liking.

More Info

How to Add/Set/Remove Points to a Player

1. Install plugin. (Shown above.) 2. Use a command: i. `/pnts add <player> <points-key> <amount>` ii. `/pnts set <player> <points-key> <amount>` iii. `/pnts remove <player> <points-key> <amount>`

Example: * `/pnts add Drakified PlayerGold 5`

*Note: `<points-key>` is the name of the point you want. It needs to be a single word (like `MyCoolPoints`)*

How to use with Placeholder API

1. Install plugin. (Shown above.) 2. Install Placeholder API. 3. Use a placeholder: i. `%jpoints_<points-key>%` ii. `%jpoints_other_<player-name>_<points-key>%`

Examples: * `/papi parse Drakified %jpoints_PlayerGold%` -> Gets the value of `PlayerGold` from JustPoints as __Drakified__. * `/papi parse BruhWaffle %jpoints_other_Drakified_PlayerGold%` -> Gets the value of __Drakified__'s `PlayerGold` value from JustPoints as __BruhWaffle__.

Functions

* Add/Remove/Set specified points to/from/for a player: * Usable as an economy. * Easily set up stats for players. * Database capabilites for multi-server networks. * Autosaving. * Asyncronous loading / saving. * Offline and online player saving / loading. * Player does not need to be online to view / edit their points.

Commands and Permissions

Commands

`<required>` `(optional)`

* `/pnts` * `/pnts <add/remove/set> <player> <points-key> <amount>` * Add/Remove/Set a player's value for `points-key` * Example: * `/pnts add Drakified PlayerGold 5` * `/pnts <get> <player> <points-key>` * Shows a player's value for `points-key`.

ADS