Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # SKRYPT BY ZUBIER
- # VERSION: 1.0
- #
- command /afk [<text>]:
- aliases: zw, zarazwracam, ideafk, jestemafk
- cooldown: 5 seconds #Czas uzywania komendy
- cooldown message: &cZwolnij trochę! #Wiadomosc o szybkosci uzywania komendy
- trigger:
- if argument is not set:
- if {afk.spawn} is not set:
- send "&cStrefa AFK nie jest ustawiona!" #Wiadomosc gdy strefa afk nie jest jeszcze ustawiona
- stop
- if {afk.%player%} is 1:
- wait 0.5 seconds #Czas ile trzeba czekac zeby wykonano skrypt
- teleport player to {afk.lokacja}
- broadcast "&a%player% jest teraz AFK!" #Wiadomosc ogolne ze gracz nie jest juz afk
- send "&cWyszedles z strefy afk!" #Wiadomosc po wyjsciu z strefy afk
- play sound "entity.allay.item_taken" to player #Sound effect
- set {afk.%player%} to 0
- else:
- set {afk.lokacja} to location of player
- wait 0.5 seconds #Czas ile trzeba czekac zeby wykonano skrypt
- teleport player to {afk.spawn}
- broadcast "&c%player% juz nie jest AFK!" #Wiadomosc ogolne ze gracz jest afk
- send "&eAby z niej wyjsc wpisz ponownie komende &6/AFK"
- send "&aWszedles do strefy afk!" #Wiadomosc po wejsciu na strefe afk
- play sound "entity.allay.item_given" to player #Sound effect
- set {afk.%player%} to 1
- on quit:
- broadcast "&c%player% juz nie jest AFK poniewaz opuscil serwer!" #Wiadomosc ogolne ze gracz nie jest juz afk
- teleport player to {afk.lokacja}
- set {afk.%player%} to 0
- on join:
- if {afk.%player%} is not set:
- send "&cByles w strefie afk wiec zostales przetelportowany w ostatnie miejsce po wyjsciu z serwera!" #Wiadomosc po wejsciu na serwer gdy byles na strefie afk
- command /setafk [<text>]:
- permission: afk.*
- permission message: &cNie masz permisji!
- trigger:
- send "&aUstawiono miejsce AFK"
- set {afk.spawn} to location of player
- on command:
- if {afk.%player%} is 1:
- if command is not "afk" or "msg" or "r": #Dozwolone komendy na strefie afk
- cancel event
- send "&cNie możesz używać tej komendy w strefie AFK!" #Wiadomosc na strefie afk gdy uzyjesz nie dozwolonej komendy
Advertisement
Add Comment
Please, Sign In to add comment