#------------------------------------------------------------------------------------------------------------------# # # # FilesAPI # # by: @WaxtzCraft # # and: @cuidabrutos # # # # # #------------------------------------------------------------------------------------------------------------------# #---------->>>???NO EDIT HERE!!!<<<----------# function tab(f: text, h: text, w: text): set {tab.h.%{_w}%} to {_h} set {tab.f.%{_w}%} to {_f} set {_world} to "%{_w}%" loop all players: loop-player's world is "%{_world}%" set tab header to "%{tab.h.%{_world}%}%" and footer to "%{tab.f.%{_world}%}%" for loop-player function tabname(p: player, t: text): set {_x} to {_t} replace every "&" with "§" in {_x} loop all players: if loop-player is {_p}: set {_w} to world of loop-player set {tabname.%{_p}%.%{_w}%} to {_x} set {_p} tab name to "%{_x}%" function displayname(p: player, t: text): set {_x} to {_t} loop all players: if loop-player is {_p}: set {_w} to world of loop-player set {displayname.%{_p}%.%{_w}%} to {_x} set {_p}'s display name to "%{_x}%" on join: if {tab.h.%world%} is set: set tab header to "%{tab.h.%world%}%" and footer to "%{tab.f.%world%}%" for player else: set tab header to "" and footer to "" for player if {tabname.%player%.%world%} is set: set player tab name to "%{tabname.%player%.%world%}%" else: set player tab name to "%player%" if {displayname.%player%.%world%} is set: set player's display name to "%{displayname.%player%.%world%}%" else: set player's display name to "%player%" on first join: if {tab.h.%world%} is set: set tab header to "%{tab.h.%world%}%" and footer to "%{tab.f.%world%}%" for player else: set tab header to "" and footer to "" for player if {tabname.%player%.%world%} is set: set player tab name to "%{tabname.%player%.%world%}%" else: set player tab name to "%player%" if {displayname.%player%.%world%} is set: set player's display name to "%{displayname.%player%.%world%}%" else: set player's display name to "%player%" on world change: if {tab.h.%future event-world%} is set: set tab header to "%{tab.h.%future event-world%}%" and footer to "%{tab.f.%future event-world%}%" for player else: set tab header to "" and footer to "" for player if {tabname.%player%.%future event-world%} is set: set player tab name to "%{tabname.%player%.%future event-world%}%" else: set player tab name to "%player%" if {displayname.%player%.%future event-world%} is set: set player's display name to "%{displayname.%player%.%future event-world%}%" else: set player's display name to "%player%" #--------->>>Examples<<<---------# command /perworldtablist [] [] [] []: aliases: /pwt permission: pwt.admin trigger: if arg 1 is "set": if arg 2, arg 3 and arg 4 is set: set {_x} to arg 3 set {_x2} to arg 4 replace every "&" with "§" in {_x} replace every "&" with "§" in {_x2} tab({_x}, {_x2}, arg 2) send "&aTab in world &e%arg 2% &aset to footer: &e%{_x}% &aand header: &e%{_x2}%" else: send "&c/pwt set