Elixzer Posted June 11, 2020 Share Posted June 11, 2020 Variables: {xp.%player%} {xpmax.%player%} {level.%player%} on mine of any ore: add 1 to {xp.%player%} send action bar "&r+1 XP &8| &r+1 BALANCE" to player add 1 to player's balance on death: attacker is a player: victim is an entity: add 1 to {xp.%attacker%} send action bar "&r+1 XP &8| &r+1 BALANCE" to attacker add 1 to attacker's balance every 0.1 tick: loop all players: if {xp.%loop-player%} = {xpmax.%loop-player%}: add 1 to {level.%loop-player%} clear {xp.%loop-player%} command /stats: trigger: send "&8============================================" to player send "&7Xp: &r%{xp.%player%}% &7/ &r%{xpmax.%player%}%" to player send "&7Current Level: &r%{level.%player%}%" to player send "&8============================================" to player Didn't test this yet. But I'm kind of sure that no errors will occur.Requirements: - Skript - SkQuery (Optional) - Skellet (Optional) Link to comment Share on other sites More sharing options...
Ria Posted June 12, 2020 Share Posted June 12, 2020 All in all looks like a pretty simple skript but every 0.1 tick: is not a good idea, especially with multiple players being on the server. Maybe add it as a function instead or just let it loop around every few seconds and not every tick. It would be if you could upvote my post if you found it helpful. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now