Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- offline-color: &c
- online-color: &a
- tabliczka: &6[StatusSign]
- tag: &8[&6Status&eSign&8]
- #------------------------#
- # Dodawanie tabliczek #
- #------------------------#
- on sign change:
- line 1 is "[statussign]":
- player has permission "statussign.*":
- line 3 is not empty:
- set line 1 to "{@tabliczka}"
- set {_player} to line 3 parsed as player
- {_player} is online:
- send "{@tag} &6Stworzyłeś tabliczkę gracza {@online-color}%{_player}%&6!"
- set line 3 to "{@online-color}%{_player}%"
- else:
- send "{@tag} &6Stworzyłeś tabliczkę gracza {@offline-color}%{_player}%&6!"
- set line 3 to "offline-color%{_player}%"
- else:
- set event-block to air
- drop sign at event-location
- send "{@tag} &cLinia 3 nie zawiera nazwy gracza!"
- else:
- set event-block to air
- drop sign at event-location
- send "{@tag} &cNie masz uprawnień!"
- #------------------------#
- # Usuwanie tabliczek #
- #------------------------#
- on break of sign:
- line 1 of event-block is "&1[AdminOnline]":
- send "{@tag} &6Zniszczono tabliczkę ze statusem!"
- #------------------------#
- # Setowanie tabliczek #
- #------------------------#
- on join:
- loop all blocks:
- loop-block is sign:
- line 1 of loop-block is "{@tabliczka}":
- line 3 of loop-block contains "%player%":
- set line 3 of loop-block to "{@online-color}%player%"
- on quit:
- loop all blocks:
- loop-block is sign:
- line 1 of loop-block is "{@tabliczka}":
- line 3 contains "%player%":
- set line 3 of loop-block to "{@offline-color}%player%"
- set line 2 of loop-block to "{@offline-color}%now%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement