NEW! Placeholders for top token balances are here!
Code (Text):
(Change %% to {} for MVdW PAPI)
%tm_rank% - Your position on /token top
%tm_top_name_[pos]% - Name of the player at selected position on /token top. Ex: %tm_top_name_1% returns the name of the first player on the list.
%tm_top_tokens_[pos]% - Amount of tokens that the player at selected position on /token top has.
NEW!tokenmanager.cancel.[shop]-[slot] - Player with this permission will not be able to purchase the selected slot in the shop. Useful for one-time purchases!
%tm_tokens% placeholder no longer has commas - Use %tm_tokens_commas% instead!
Commas format (1000 -> 1,000) and simplified format (1000 -> 1.0k) is now available for all number related placeholders in lang.yml.
TokenManager's license has been changed from MIT to GPLv3.
THIS VERSION IS IN BETA. PLEASE READ THIS POST BEFORE UPDATING IF YOU ARE USING A VERSION BELOW 3.0
v3.0.8 includes:
%player% placeholder for 'COMMAND.token.receive' - displays the name of the player who sent the tokens.
An optional command argument for /tm add|set|remove. If '-s' is appended to any of the commands above, it will not display the token added|removed message to the target player.
THIS VERSION IS IN BETA. PLEASE READ THIS POST BEFORE UPDATING IF YOU ARE USING A VERSION BELOW 3.0
v3.0.7 includes:
Automatic checking for updates. This can be disabled in the configuration.
An optional command argument for /tm add|set|remove. If '-o' is appended to any of the commands above, it will only run if the selected player is online on the server that the command was executed.
THIS VERSION IS IN BETA. PLEASE READ THIS POST BEFORE UPDATING IF YOU ARE USING A VERSION BELOW 3.0
v3.0.7 includes:
Automatic checking for updates. This can be disabled in the configuration.
An optional command argument for /tm add|set|remove. If '-o' is appended to any of the commands above, it will only run if the selected player is online on the server that the command was executed.
THIS VERSION IS IN BETA. PLEASE READ THIS POST BEFORE UPDATING IF YOU ARE USING A VERSION BELOW 3.0
v3.0.5 includes:
Proper formatting of large amount of tokens. Display 1000000 tokens as 1.0M tokens! This can be done to any amount placeholders in lang.yml OR MVdW/Clip's Placeholders by appending '_formatted' to the placeholder.
Examples:
Code (Text):
balance: '{PREFIX} &7Your token balance is &b%tokens_formatted% token(s)&7.'
THIS VERSION IS IN BETA. PLEASE READ THIS POST BEFORE UPDATING IF YOU ARE USING A VERSION BELOW 3.0
v3.0.4 includes:
A config option to manually specify server mode
Code (Text):
# Allows you to force set the plugin's mode to online/offline/automatic.
# If you run a cracked server but the plugin detects it as online and saves UUID instead of name, set the value below to 'false'.
# Available modes: true, false, auto (default)
online-mode: auto
A new default shops.yml with detailed explanations of newly introduced shop options in v3
THIS VERSION IS IN BETA. PLEASE READ THIS POST BEFORE UPDATING IF YOU ARE USING A VERSION BELOW 3.0
v3.0.3 includes:
A config option to toggle off redis while using mysql
Module specific reload for ShopsConfig and Lang ( Example: /tm reload ShopsConfig )
A 'confirm-purchase' option for both shops and slots to display a confirm purchase GUI before actually purchasing an item.
Example:
Code (Text):
shops:
test:
title: '&6Default Shop'
rows: 1
auto-close: true
use-permission: false
confirm-purchase: true # <-- Add this to open the GUI for every item in the shop
items:
'0':
displayed: 276 1 name:&cGod_Sword sharpness:5 fireaspect:2 lore:&bEliminate_your|&cEnemies&b!|&dCost:&a_10_Tokens
cost: 10
confirm-purchase: true # <-- Add this to open the GUI for this item only
subshop: yoursubshop
message: '&bTM &8» &7Thanks for your purchase, %player%! &c-10 tokens'
commands:
- 'give %player% 276 1 name:&cGod_Sword sharpness:5 fireaspect:2 lore:&bEliminate_your|&cEnemies&b!'
Settings for the confirm purchase GUI was added to the main configuration. MAKE SURE TO STOP THE SERVER BEFORE UPDATING!
READ THE WHOLE POST BEFORE UPDATING OR THERE WILL BE ISSUES!
TokenManager 3.0 BETA is is a completely rewritten version, which means there could easily be some new bugs . Please PM me about them with information such as error logs to get it fixed as soon as possible.
The new version contains the following :
A lot more efficient code than the previous
Support for both online & offline servers
Auto-updating config file system
Better API
My own placeholder hook for Clip's PlaceholderAPI / MVdWPlaceholderAPI (no delay in updates!)
All known bugs fixed (hopefully)
In order to update to this version, you need to :
Stop the server.
Replace the old plugin jar with the new jar.
Start the server.
Additionally, the new version requires Redis for cross-server synchronization of token balances. There will be a new option in the updated configuration to configure your credentials for it.
This is a quick update for cracked servers, which should fix the user not found issue with /tokenmanager add/remove/set/send. The completely revamped version is still in development! Ignore this update if you're not running a cracked server.
(v2.0.7) Changelog: - Attempts to fix bugs reported by users. If you're still experiencing the issue you've reported, please reply to your bug report conversation. Thanks to everyone who reported.
If you're experiencing any issues, please PM me about them. Thanks for downloading!
To anyone viewing this update, please click that 'Read More' button if you're planning to update! This update contains a lot of stuff that you probably should read about before updating.
————————————————————————
TokenManager v2.0
It's finally here, after 3 months of work... Just kidding, I just didn't have enough time to update, it actually took few weeks. Anyways, this update should probably contain most of the things people have requested. Continue reading to find out! New Features
- Vault Economy Support! It's actually here. Click Me for a video of it functioning! Also, please read the comments in the configuration about it. If you're too lazy, here's a link - CLICK ME, MUST SEE - New /tm giveall command! Reward every single online players with some tokens easily. - lang.yml ! All messages are now located in this new configuration file for future waves of configurable messages. - 1.9 Support for shop configuration! Display Potions and Mob Eggs without a problem. Read the updated shops.yml section in resources' Overview for more information. - Brand new config.yml ! Please re-generate your configuration file to view all the new stuff. Actually, you must re-generate it or things will start breaking... General Improvements
- A lot of optimization with SQL stuff. No more random connection crashes! - Overall code clean ups. My old code sucks. (And probably the new one too, in some experienced people's eyes) - Optimization with MVDW Placeholder support. Player's balances are now cached for 20 seconds to prevent over-load from the database.
Bug Fixes
- Everything reported through PM, I hope. (If not, PM me again with details!)
————————————————————————
If you're experiencing any issues, please PM me about them. Thanks for downloading!
(v1.8.9) Changelog: - Now hooks into MVdWPlaceholderAPI for custom placeholder support. Placeholder: {tm_tokens} You must have MVdWPlaceholderAPI installed on your server. - General code improvements and bug fixes.
(v1.8.8) Changelog: - Patches a bug with default shop option in the configuration. (Found by @Elijah , I can't even count how many reports he sent me anymore. Thanks for all the help.) - General code improvements.
(v1.8.6) Changelog: - Attempts to patch a bug that apparently didn't load the player's balance properly. (Found by @Vukajlovic once again, much thanks.) - Patches a bug that didn't allow users to purchase items with price set as '0'. (Found by @Cymmeh , thanks.) - More optimisation with Data Manager (Flatfile storage)
I recommend anyone using flatfile storage to update to this version. Feel free to report me any bugs, and I'll get to work as soon as possible.
(v1.8.4) Changelog: - Attempts to patch a bug that allowed users to send tokens without loosing any from their balance. (Bug found by @CelestiaNetwork , thanks!) - General code improvements - More optimisation with Data Manager
I HIGHLY recommend anyone using my resource to update to this version.
(v1.8.1) Changelog: - Patches a bug in top 10 balances loading scheduler. - Patches a bug in /tm reload where configuration didn't reload properly, thanks to @Elijah once again!
[Please Note: Regenerate your configuration to see the new config options and messages! No changes were made with the shop system, phew.] Updates, updates, updates...
Version 1.8 of TokenManager contains the following add-ons/patches/changes:
- Brand new /tm reload command! - So many optimisations and improvements . Just so many. Every single data method is now safe from data-loss by directly accessing the databases when a change happens. - New config option : Set a delay between clicks in shop system! Better performance for your server. - New config option (Suggestion by @Elijah , thanks!): Set a default shop for /token shop command! Enabling this option will open the configured shop on /token shop and disable opening of a shop by /token shop <name> . - New Add-on (Suggestion by @Elijah ): Sub-command alias ! Find out more on the resource's main page's commands & permissions section. - New messages in the Messages section!
I finally had some time to update this resource. Version 1.7 contains the following patches/add-ons:
- Patched pretty much every problems reported through PM. - MySQL support. - Removed inefficient data saving methods from version 1.5. - Well detailed comments per message in the configuration.
(Note: Please re-generate your current config.yml . shops.yml will have zero affect with this update, except a nice addition of few improvements to shop loading system that will help you to catch mis-types.)
If you are experiencing any problem with the updated version, please PM me by clicking this message .
TokenManager v1.5 Many, many improvements and additions you would love.
- Updated to the latest version of Spigot. - Multi-shop support with many options! Add your own sub-categories! - Individual permissions per shop! Configurable. - New shop configuration! No more spending crap ton of time configuring, the new version is highly simplified. Configure your shops in the shops.yml! - Backups! The new TokenManager contains a daily backup system. Configure the backup interval and more inside the new configuration! You can also force a backup in-game using /tm save. - New placeholders for messages! Check out the new configuration for a well-detailed information about the new placeholders. - New command! Administrative commands of TokenManager now can be managed using /tokenmanager. Contains many new sub commands! Check out my updated resource description for farther information. - API for developers! Check out my updated resource description for farther information. - and more to come...
Thanks for downloading TokenManager! If you're experiencing any problem, please PM me. (Click to PM)
(v1.4) Changelog: - Patched shop inventory glitching randomly
- This is a quick bug (found by
@ryu for the third time, much thanks) patch update, everything else is the same
(v1.3) Changelog: - Patched default config enchantments adding to no enchantment items on default config slots
- This is a quick bug (found by @ryu once again, much thanks) patch update, everything else is the same