mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Added settings and warnings
This commit is contained in:
@@ -12,6 +12,13 @@ require 'config.expcore.command_general_parse'
|
||||
--- Stores the bonus for the player
|
||||
local PlayerData = require 'expcore.player_data' --- @dep expcore.player_data
|
||||
local PlayerBonus = PlayerData.Settings:combine('Bonus')
|
||||
PlayerBonus:set_default(0)
|
||||
PlayerBonus:set_metadata{
|
||||
stringify = function(value)
|
||||
if not value or value == 0 then return 'None set' end
|
||||
return (value*100)..'%'
|
||||
end
|
||||
}
|
||||
|
||||
--- Apply a bonus amount to a player
|
||||
local function apply_bonus(player, amount)
|
||||
|
||||
Reference in New Issue
Block a user