This plugin will give opportunity for the players to play in the server. Based on their playtime players can win rewards. Everything in this plugin is configurable!!
About the plugin
The plugin is made with precision and there won't be any bugs or lags that will impact on the server. While the players are online their playtime will increase and when they reach specific playtime they can claim rewards. Everything is configurable and you can make whatever rewards for whatever time you want. The data saving is perfectly made in this plugin. You don't have to worry if the player will lose their playtime or if their playtime rewards are not saved.
PlaceHolder
%playtime_time% - it shows player's playtime
The rewards menu:
Code:
# PlayTime rewards configuration
# first: the section name
# required-time: the required time to claim the reward (in seconds)
# slot: in which slot the reward to be displayed
# name: the name of the reward
# lore: text that will be displayed above the name: (you can add as many texts as you want)
# rewards: the rewards that will be given when you claim the reward. (you can add as many rewards as you want)
# you can add as many rewards as you want just make sure you are using the correct format for every reward!!
playtime-rewards:
first:
required-time: 3600
slot: 11
name: "&a1 Hour Reward"
lore:
- "&7Claim this reward for playing 1 hour."
rewards:
- "give %player% diamond 1"
- "give %player% iron_sword 1"
second:
required-time: 21600
slot: 12
name: "&a6 Hour Reward"
lore:
- "&7Claim this reward for playing 6 hours."
rewards:
- "give %player% diamond 1"
- "give %player% iron_sword 1"
third:
required-time: 43200
slot: 13
name: "&a12 Hour Reward"
lore:
- "&7Claim this reward for playing 12 hours."
rewards:
- "give %player% diamond 1"
- "give %player% iron_sword 1"
fourth:
required-time: 86400
slot: 14
name: "&a1 Day Reward"
lore:
- "&7Claim this reward for playing 1 day."
rewards:
- "give %player% diamond 1"
- "give %player% iron_sword 1"
fifth:
required-time: 172800
slot: 15
name: "&a2 Day Reward"
lore:
- "&7Claim this reward for playing 2 days."
rewards:
- "give %player% diamond 1"
- "give %player% iron_sword 1"
sixth:
required-time: 432000
slot: 21
name: "&a5 Day Reward"
lore:
- "&7Claim this reward for playing 5 days."
rewards:
- "give %player% diamond 1"
- "give %player% iron_sword 1"
seventh:
required-time: 604800
slot: 22
name: "&a7 Day Reward"
lore:
- "&7Claim this reward for playing 7 days."
rewards:
- "give %player% diamond 1"
- "give %player% iron_sword 1"
eighth:
required-time: 1209600
slot: 23
name: "&a14 Day Reward"
lore:
- "&7Claim this reward for playing 14 days."
rewards:
- "give %player% diamond 1"
- "give %player% iron_sword 1"
settings:
item-available: 'CHEST_MINECART'
item-claimed: 'FURNACE_MINECART'
item-not-available: 'MINECART'
You can edit every message as you want
Code:
# PlayTime messages config
your_playtime: "&7Your playtime: &e%s"
usage_playtime: "&cUsage: /playtime <player>"
players_only: "&cOnly players can execute this command."
config_reloaded: "&aConfiguration reloaded successfully."
no_permission: "&cYou do not have permission to execute this command."
player_playtime: "&7Playtime of &e%s&7: &e%s"
player_not_found: "&cPlayer not found or not online."
already_claimed: "&cYou have already claimed the %s reward."
reward_claimed: "&aYou claimed your %s!"
not_eligible: "&cYou are not eligible for this reward."
Commands:
- /playtime - too see your playtime
- /playtime <player> - too see other player's playtime
- /playtime rewards - open a gui where people can claim rewards
- /playtime reload - reloads config.yml
- playtime.reload
If you need help with the plugin or you have pre-sale questions join our discord server https://discord.gg/vkyXfQmGyf