Preface:
This plugin was a part of one of my premium plugin a long time ago. That plugin got removed from spigot due to inactivity. So i decided to post that here as a free resource. As a bonus i also updated it to work with the latest minecraft version (1.19.3 as of now).
Change Logs:
- Added / Allowed the use of premium features of this plugin:
This plugin had some premium features regarding shop interfacing. That feature is now available.
- Remove dependency from Google Guice:
When i first made this plugin i used google guice framework for dependency management. This however was a very bad decision as using such a heavy library for this little project & it caused the size of the plugin to increase upto 5mb. As of now all dependencies from guice have been removed.
- Removed MySQLTokens Shading:
Before this plugin had a feature of shading the available (& very old ) plugin named
MysqlTokens made by Inkzzz. Now however ive come to realize that this broke many copyright laws so i decided to remove this feature. As of now any plugins that supported Mysql-Tokens
will not support this plugin.
- Added More Messages to config
Some people complained that help & error messages of /token command couldnt be changed. I did this to encourage the use of premuim version. Now all /token command messages can be changed in config.yml
- Added option to disable data cache:
Some servers experienced tps drop when cache for 500+ players was generated by this plugin. Now an option to disable data cache is available in config namely.
Code (Java):
enable
-cache
:
true #If set to enable the plugin will periodically
try
& cache tokens of players that are offline
max
-cache
-size
:
100 #maximum number of players that will be cached by the plugin
if the plugin causes lag
try reducing
this number
Also you can limit the number of offline players cached. This does not change the cache of the players online.
- Added NBT based item saving:
Saving Items in yml is always been difficult especially when that item is to be given to the player. As of now all items saved in shops have an additional nbt entry enabling items with custom nbt data to be saved & used in shops.
- Added total purchase count:
Eash item in token shop now has two counts.
1) The total purchases between limits reset
2) The total purchases
- Added Shop discounts & purchase limits:
Shops can have limits set for each item. These limits are per player & can be set when to be resetted in the limit settings. Also a command to set timely discounts is added which adds discounts for a specific time frame.
- Added option to mask command:
By default the commands token & tokenshop are used by this plugin but an option to mask these command & use custom commands & aliases has been added in the config file. Be carefull if you use this as the plugin will become /reload unsafe when this is used.