Releases: AbstractMenus/PlayerPointsAddon
PlayerPointsAddon
PlayerPointsAddon 1.0.0
Lets AbstractMenus use PlayerPoints as a currency. After install, your menus can take, give, and check PlayerPoints balances the same way they handle Vault money.
Requirements
- Paper 1.21.11 or newer (1.21.x line)
- AbstractMenus 2.0.0-alpha.2 or newer
- PlayerPoints 3.2.x or newer
Pick one of the two jars
There are two jars attached. They do the same thing, just load differently. Install one, not both.
| Jar | Drops into | Shows up in |
|---|---|---|
PlayerPointsAddon-as-plugin-1.0.0.jar |
plugins/ |
/plugins, /am addons list |
PlayerPointsAddon-as-addon-1.0.0.jar |
plugins/AbstractMenus/addons/ |
/am addons list |
If you have no preference, take as-plugin. It loads like a normal Bukkit plugin.
Install — as-plugin
- Drop the jar into
plugins/. - Restart the server.
- Run
/am addons list. You should seePlayerPointsAddon v1.0.0 [ENABLED] [as-plugin].
Install — as-addon
- Drop the jar into
plugins/AbstractMenus/addons/. If that folder isn't there yet, create it. - Make sure
PlayerPoints-*.jaris inplugins/(regular Bukkit plugin). - Restart, or run
/am addons rescanif the server is already up. - Run
/am addons list. You should seePlayerPointsAddon v1.0.0 [ENABLED].
To reload the addon later without restarting the server: /am addons reload PlayerPointsAddon.
Use it in menus
Reference PlayerPoints by id playerpoints in any money-related action or rule:
rules: [
{ type: hasMoney, amount: 500, provider: "playerpoints" }
]
actions {
click: [
{ type: takeMoney, amount: 500, provider: "playerpoints" }
{ type: giveItem, material: DIAMOND, amount: 1 }
]
}If you want every money-aware element to use PlayerPoints by default, edit plugins/AbstractMenus/config.conf:
providers {
economy = "playerpoints"
}After that you don't need to write provider: in your menus at all.
Troubleshooting
Console says "PlayerPoints plugin not found". PlayerPoints is missing or failed to enable. Check the plugins/ folder and the startup log.
Balance checks behave oddly. PlayerPoints stores whole tokens only. amount: 1.5 rounds down to 1, amount: 0.5 rounds down to 0. If you need fractions, use the Vault provider instead.
Addon doesn't appear in /am addons list. AbstractMenus probably failed to enable, or the jar is in the wrong folder. The startup log will say which.
Source
AbstractMenus/PlayerPointsAddon — branch as-plugin or as-addon matching the jar.