Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- every 5 seconds:
- if {robberstopholo} is set:
- set {_1st::Place} to 0
- set {_2nd::Place} to 0
- set {_3rd::Place} to 0
- set {_4th::Place} to 0
- set {_5th::Place} to 0
- if {_1st} is not set:
- set {_1st} to "None"
- if {_2nd} is not set:
- set {_2nd} to "None"
- if {_3rd} is not set:
- set {_3rd} to "None"
- if {_4th} is not set:
- set {_4th} to "None"
- if {_5th} is not set:
- set {_5th} to "None"
- loop {toprobbers::*}:
- if loop-value is more than {_1st::Place}:
- set {_5th} to {_4th}
- set {_5th::Place} to {_4th::Place}
- set {_4th} to {_3rd}
- set {_4th::Place} to {_3rd::Place}
- set {_3rd} to {_2nd}
- set {_3rd::Place} to {_2nd::Place}
- set {_2nd} to {_1st}
- set {_2nd::Place} to {_1st::Place}
- set {_1st} to loop-index
- set {_1st::Place} to loop-value
- else if loop-value is more than {_2nd::Place}:
- set {_5th} to {_4th}
- set {_5th::Place} to {_4th::Place}
- set {_4th} to {_3rd}
- set {_4th::Place} to {_3rd::Place}
- set {_3rd} to {_2nd}
- set {_3rd::Place} to {_2nd::Place}
- set {_2nd} to loop-index
- set {_2nd::Place} to loop-value
- else if loop-value is more than {_3rd::Place}:
- set {_5th} to {_4th}
- set {_5th::Place} to {_4th::Place}
- set {_4th} to {_3rd}
- set {_4th::Place} to {_3rd::Place}
- set {_3rd} to loop-index
- set {_3rd::Place} to loop-value
- else if loop-value is more than {_4th::Place}:
- set {_5th} to {_4th}
- set {_5th::Place} to {_4th::Place}
- set {_4th} to loop-index
- set {_4th::Place} to loop-value
- else if loop-value is more than {_5th::Place}:
- set {_5th} to loop-index
- set {5th::Place} to loop-value
- delete {1st::{Player}
- delete {2nd::Player}
- delete {3rd::Player}
- delete {4th::Player}
- delete {5th::Player}
- set {1st::Player} to "%{_1st}%" to parsed as offlineplayer
- set {2nd::Player} to "%{_2nd}%" to parsed as offlineplayer
- set {3rd::Player} to "%{_3rd}%" to parsed as offlineplayer
- set {4th::Player} to "%{_4th}%" to parsed as offlineplayer
- set {5th::Player} to "%{_5th}%" to parsed as offlineplayer
- create hologram "&b&l&nRobbers&r&3&l&nTop&r;&8&m-------------------;&71## &f%{_1st::Player}% &8» &a%{_1st::Place}%;&72## &f%{_2nd::Player}% &8» &a%{_2nd::Place}%;&73## &f%{_3rd::Player}% &8» &a%{_3rd::Place}%;&74## &f%{_4th::Player}% &8» &a%{_4th::Place}%;&75## &f%{_5th::Player}% &8» &a%{_5th::Place}%;&8&m-------------------;;&7&nUpdates Every 5 Seconds&r" at block above above above above {robberstopholo} for 5 seconds
- on load:
- loop all players:
- if {Toprobbers::%uuid of loop-player%} is not set:
- set {Toprobbers::%uuid of loop-player%} to 0
- command /holo [<text>] [<text>]:
- trigger:
- if player is op:
- if arg 1 is not set:
- send ""
- send "&7Usage: &f/Holo set <robberstop>"
- send ""
- else if arg 1 is "set":
- if arg 2 is "robberstop":
- set {robberstopholo} to location of player
- send "&b&lHOLO: &fRobberstop holo &7has been set"
- else:
- send "&4&lSORRY! &cYou do not have permission to execute this command"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement