Skip to content

Releases: AbstractMenus/PlayerPointsAddon

PlayerPointsAddon

28 Apr 13:30
9d47529

Choose a tag to compare

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

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

  1. Drop the jar into plugins/.
  2. Restart the server.
  3. Run /am addons list. You should see PlayerPointsAddon v1.0.0 [ENABLED] [as-plugin].

Install — as-addon

  1. Drop the jar into plugins/AbstractMenus/addons/. If that folder isn't there yet, create it.
  2. Make sure PlayerPoints-*.jar is in plugins/ (regular Bukkit plugin).
  3. Restart, or run /am addons rescan if the server is already up.
  4. Run /am addons list. You should see PlayerPointsAddon 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.