Jump to content

/stats command


karlip_a

Recommended Posts

These are the commands:

 

/Stats  -- Shows your stats

/Resetstats  -- Reset your stats

/Resetlocalstats  -- Reset the servers stats (Only for operators)

 

 

This is what it tracks:

 

Times you reset your stats

Grass blocks stepped on

Logs you have broken

Player joins

Deaths

 

 

Heres the code for it

variables:
	{%player%.gs} = 0
	{%player%.dc} = 0
	{%player%.tr} = 0
	{%player%.tb} = 0
	{%player%.joins} = 0
	{lgs} = 0
	{ldc} = 0
	{ltr} = 0
	{ltb} = 0
	{join} = 0
on step on grass block:
	add 1 to {gs}
	add 1 to {lgs}
on join:
	add 1 to {joins}
	add 1 to {join}
on break of any log:
	add 1 to {ltb}
	add 1 to {tb}
command /stats:
	trigger:
		send "&a&lYour player stats"
		send ""
		send "&4Times stats restarted: &7&l%{tr}%" to player
		send "&2Grass blocks stepped on: &7&l%{gs}%" to player
		send "&2Logs broken: &7&l%{tb}%" to player
		send "&2Player joins: &7&l%{joins}%"
		send "&2&lDeaths: &7&l%{dc}%" to player
		send ""
		send "&a&lLocal stats"
		send ""
		send "&4Times stats restarted: &7&l%{ltr}%" to player
		send "&2Grass blocks stepped on: &7&l%{lgs}%" to player
		send "&2Logs broken: &7&l%{ldc}%" to player
		send "&2Player joins: &7&l%{join}%"
		send "&4Deaths: &7&l%{ldc}%" to player
command /resetstats:
	trigger:
		add 1 to {tr}
		add 1 to {ltr}
		set {dc} to 0
		set {tb} to 0
		set {gs} to 0
		send "&2&lYour stats have been reseted!" to player
		close player's inventory
on death of player:
	add 1 to {ldc}
	add 1 to {dc}
command /resetstatresets:
	permission: op
	trigger:
		send "&4&lYour stats reset counter has been reseted"
		set {tr} to 0

command /resetlocalstats:
	permission: op
	trigger:
		set {ltr} to 0
		set {ldc} to 0
		set {ltb} to 0
		set {lgs} to 0

	

 

Edited by karlip_a
got more to add
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...