![[SimplePetsAddon] TokenManager Addon](https://cdn.metamods.net/images/mods/spets-tokenmanager/logo.png)
[SimplePetsAddon] TokenManager Addon
About this addon
This is an extension for the SimplePets game plugin that allows server owners to set prices for pets purchasable with in-game currency. The functionality integrates directly with TokenManager, eliminating the need for additional economy plugins.
Required dependencies
The following plugins must be installed for proper operation:
- SimplePets (required)
- TokenManager version 3.2.4 or higher (required)
Extension installation
Several installation methods are available for the TokenManager extension in SimplePets.
Command installation (easiest)
Enter the command /pet addon install TokenManager
in chat, after which the system will automatically download and activate the extension.
Graphical installer
- Execute the
/pet addon
command - Find and click the "Install Addons" option in the bottom section of the interface
- Open the TokenManager extension section
- Start installation by clicking the corresponding element
If errors occur with the "Installing..." status display, check the server console or use alternative installation methods.
Manual installation
- Open the SimplePets plugin directory
- Navigate to the Addons folder (create it if not present)
- Download the extension file from the official source
- Place the JAR file in the Addons folder
- Restart the server to activate the extension
Configuration example
The configuration file allows flexible parameter adjustment:
# Payment bypass permission
bypass_permission: pet.tokenmanager.bypass
# Price hiding for players with bypass rights
# Default: true
Hide-Price-If-Bypassed: true
# Payment per pet usage
# Default: false
Pay-Per-Use-Enabled: false
Price:
# Display for free pets
# Default: 'Free'
Free: Free
# Display when bypass rights are present
# Default: 'BYPASSED'
Bypassed: BYPASSED
Boolean values:
'true': '&¤fc98true'
'false': '&Óa7d7dfalse'
Messages:
prefix: '&eSimplePets &6>>'
PurchaseSuccessful:
# Message for one-time purchase
One-Time-Purchase: '{prefix} &7You have successfully purchased the {type} pet.'
# Message for per-use payment
Pay-Per-e: '{prefix} &7You have successfully paid for using the {type} pet.'
# Message for insufficient funds
InsufficientFunds: '{prefix} &cNot enough funds for purchase, required {price}'
Lore lines:
# For one-time purchase
One-Time-Purchase:
- '&ffbf5ePrice: &99ffac{price}'
- '&ffbf5ePurchased: {purchased}'
# For per-use payment
Pay-Per-Use:
- '&ffbf5ePrice: &99ffac{price}'
Type:
# Cost of various pets (examples)
armor_stand: 200
bat: 200
bee: 200
blaze: 200
cat: 200
# ... And many other mobs with customizable costs