avatar
minecraft skrypt na statystyki

Guest 390 16th May, 2019

TYPESCRIPT 3.27 KB
                                           
                         on command "/stats":
    cancel event
    message "&6Zdrowie &c%health of the player%            &6 Zabite Moby &c%{kill counter.%player%.kills_session}%"
    message " "
    message "&6Wykopane mineraly &c%{mine.%player%}% &6ores    &6Zabici Gracze &c%{kill counter.%player%.kills_session_max}% "
    message " "
    message "&6Twoje polozenie &c%location%"
    message " "
    message "&6Twoj czas gry &c%{hour::%player%}% godzin %{minute::%player%}% minut i %{second::%player%}% sekund"
    message " "
    json("%player%", "&6&lKliknij &b&lTutaj &6Aby przejsc dalej.||cmd:/stats2||ttp:&6&o&lKLIKNIJ&f aby przejsc na kolejna strone")

command /stats2:
    trigger:
        loop 15 times:
            message " "
        message "&e=========================================="			
        message "&6Twoj Ping &c%ping of the player%      &6Serwer TPS &c%tps%"
        message " "
        message "&6Gracze Online &c%{join}%"
        message " "
        message "&6Twoje id &c%uuid of the player%"
        message " "
        message "&6Scraftowane przedmioty &c%{craft.%player%}% &6items"
        message " "
        message "&6Jest &c%{staff}% &6Online Zalogi serwera"
        message " "
        json("%player%", "&6&lPotrzebna pomoc? Kliknij &b&lTutaj &6&lAby uzyskac pomoc.||cmd:/alert||ttp:&6&o&lCLICK")
        message "&e=========================================="

on join:
    add 1 to {join}

on quit:
    remove 1 from {join}

on craft:
    add 1 to {craft.%player%}
			
on mine of any ore:
   add 1 to {mine.%player%}

on death:
	attacker is a player
	add 1 to {kill counter.%attacker%.kills_total}
	add 1 to {kill counter.%attacker%.kills_session}
	{kill counter.%attacker%.kills_session} is greater than {kill counter.%attacker%.kills_session_max}:
		set {kill counter.%attacker%.kills_session_max} to {kill counter.%attacker%.kills_session}
	
variables:
	{second::%player%} = 0
	{minute::%player%} = 0
	{hour::%player%} = 0
	{kill counter.%player%.kills_session_max} = 0
	{mine.%player%} = 0
	{kill counter.%player%.kills_session} = 0
	{join} = 0
	{chat} = 0
	{commands} = 0
	{staff} = 0
	
every second:
	loop all players:
		add 1 to {second::%loop-player%}
		if {second::%loop-player%} is 60:
			subtract 60 from {second::%loop-player%}
			add 1 to {minute::%loop-player%}
		if {minute::%loop-player%} is 60:
			subtract 60 from {minute::%loop-player%}
			add 1 to {hour::%loop-player%}

on join:
    player has permission "Staff"
    add 1 to {staff}
	
on quit:
    player has permission "Staff"
    remove 1 from {staff}
	
on command "/alert":
	loop all players:
		if loop-player has permission "staff":
			message "&e%player% &6Potrzebuje pomocy" to loop-player
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes
Ta strona używa plików cookie w celu usprawnienia i ułatwienia dostępu do serwisu oraz prowadzenia danych statystycznych. Dalsze korzystanie z tej witryny oznacza akceptację tego stanu rzeczy.
Wykorzystywanie plików Cookie
Jak wyłączyć cookies?
ROZUMIEM