TO SAMO czyli to co wcześniej. i nie pokazuja sie jednocześnie tylko jakby jak wpisze vanish to pokazuje sie wlaczyles vanisha, jak znowu wpisze to też sie to wyświetla
[16:41:42 ERROR]: 'getPlayers(p: player) :: players' is not a text (vanish.sk, line 1: function getPlayers(p: player) :: players:')
[16:41:42 ERROR]: 'hide player from getPlayers(player)' is not a boolean (yes/no) (vanish.sk, line 16: hide player from getPlayers(player)')
Mam problem, gdy gracz wejdzie na serwer to widzi administratora ktory jest na vanishu.
Skrypt wygląda tak:
command /vanish [<text>]:
permission: vanish.*
permission message: &8» &cNie masz uprawnien do tej komendy!
trigger:
if {v::%player%} is not set:
set {v::%player%} to true
loop all players:
if loop-player don't have permission "vanish.*":
add loop-player to {_g::*}
hide player from {_g::*}
while {v::%player%} is true:
set action bar of player to "&8» &7Jestes &cniewidoczny &7dla innych graczy."
wait second
if {v::%player%} is set:
clear {v::%player%}
set action bar of player to "&8» &7Jestes &awidoczny &7dla innych graczy."
reveal player to all players
stop
on join:
if player don't have permission "vanish.*":
add player to {_g::*}
hide player from {_g::*}
Działa, lecz wyświetla się to:
[19:13:17 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (bloki.sk, line 8: if event-block is water:')