Home›Java›Mods›KitTimer add-on for Lib's Hungergames
ModsJava

KitTimer add-on for Lib's Hungergames

⬇ Download on Spigot
What does this plugin?

- It records when a kit is in-game purchased by a player, either with the /buykit command or trough the gui.

- It removes all player’s kits older than a specified date and stored in Libshungergames kits’ database.


What it is used for?

- It is very useful if you have a shop (like buycraft or other) and sell kits packages for lets say 30 days. With this plugin, kits are removed from players after 30 days (or more… or less… see config.yml).


How does this plugin work?

- It creates an extra field in Libshungergames kits’ database to store kits purchase date The database is also automatically updated when a kit is purchased by a player inside the game.

- On start up it remove all owned kits from the database before today minus 30 days. (can be configured in config.yml) so it require game not greater than 24 hour. (usually a typical hungergame is less than 30 minutes).


Does this plugin require Libshungergames installed? Is there a soft dependency?

-There is no soft dependency; neither the code in Libshungergames is altered or referred.

-It is an add-on, so it is made for Libshungergames, but you could use it with other Hungergames plugin using a database for kit storage.

-The config.yml can be setup for other plugins compatibility.


Does it require a database?

- Yes I require mysSQL installed and configured for Libshungergames.

Github: https://github.com/Pyr0x3n/KitTimer
Where can I see this plugin in action: hg.bluecraft.se

config.yml
Code (Text):
# mysql setup

# this is the database where you store kits from Lib's Hungergames
mysql_database: yourLibsHungergamesDBHere
mysql_host: 127.0.0.1
mysql_port: 3306
mysql_password: yourDBPasswordHere
mysql_username: yourDBUserName
# this is the tables where you store kits from Lib's Hungergames, it should be HGKits by default, but check it!
mysql_table: HGKits

# remove all older kits bought X days before today
numberOfDays: 30

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

KitTimer add-on for Lib's Hungergames is a free Minecraft Java mod. Downloaded 378 times (via Spigot). Download it and open it directly in the game.

Explore more