Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /sgm [<text>]:
- trigger:
- if player has permission "skript.sgm":
- if arg 1 is not set:
- if player's gamemode is survival:
- set player's gamemode to creative
- send "&9&l>> &7Ustawiono tryb &4Kreatywny &7dla &4%player%" to all ops
- stop
- if player's gamemode is creative:
- set player's gamemode to survival
- send "&9&l>> &7Ustawiono tryb &4Przetrwanie &7dla &4%player%" to all ops
- stop
- if player's gamemode is adventure:
- set player's gamemode to creative
- send "&9&l>> &7Ustawiono tryb &4Kreatywny &7dla &4%player%" to all ops
- stop
- else:
- set {_} to "%arg 1%" parsed as player
- if {_} is offline:
- send "&4Nie ma takiego gracza!"
- stop
- if {_}'s gamemode is survival:
- set {_}'s gamemode to creative
- send "&9&l>> &7Ustawiono tryb &4Kreatywny &7dla &4%{_}%" to all ops
- stop
- if {_}'s gamemode is creative:
- set {_}'s gamemode to survival
- send "&9&l>> &7Ustawiono tryb &4Przetrwanie &7dla &4%{_}%" to all ops
- stop
- if {_}'s gamemode is adventure:
- set {_}'s gamemode to creative
- send "&9&l>> &7Ustawiono tryb &4Kreatywny &7dla &4%{_}%" to all ops
- stop
- else:
- send "&4Nie masz uprawnien!"
Advertisement
Add Comment
Please, Sign In to add comment