#▒█▀▀▀ █▀▀ █▀▀ █▀▀ █▀▀▄ ▀▀█▀▀ ░▀░ █▀▀█ █░░ ▒█▀▀▀█ ▒█░▄▀ #▒█▀▀▀ ▀▀█ ▀▀█ █▀▀ █░░█ ░░█░░ ▀█▀ █▄▄█ █░░ ░▀▀▀▄▄ ▒█▀▄░ #▒█▄▄▄ ▀▀▀ ▀▀▀ ▀▀▀ ▀░░▀ ░░▀░░ ▀▀▀ ▀░░▀ ▀▀▀ ▒█▄▄▄█ ▒█░▒█ #==================================================================== # █ Skrypt: Essentialsk █ # █ Made by: karingijs272 and ByczekTV █ # █ Version : 0.1 Alpha █ #==================================================================== # Copyright © Text Skripts Karingijs. All rights reserved. # Date : 2017 # Tested versions : 1.8-1.8.8 #==================================================================== variables: {spawn::serwer} = 0 command /load: trigger: delete {LOADED} if {LOADED} is not set: send "Essentials" to console set yaml value "messages.firstjoin" from file "Essentials/config.yml" to "&c - &a &dWitamy nowego gracza" set yaml value "messages.join" from file "Essentials/config.yml" to "&c - &a &3Wbil na serwer" set yaml value "messages.quit" from file "Essentials/config.yml" to "&c - &a &cwyszedl z serwera" set yaml value "teleport.home" from file "Essentials/config.yml" to "3" set yaml value "teleport.spawn" from file "Essentials/config.yml" to "3" set yaml value "teleport.warp" from file "Essentials/config.yml" to "1" set yaml value "teleport.tpa" from file "Essentials/config.yml" to "2" wait 2 tick set {options::firstjoin::message} to yaml value "messages.firstjoin" from file "Essentials/config.yml" set {options::join::message} to yaml value "messages.join" from file "Essentials/config.yml" set {options::quit::message} to yaml value "messages.quit" from file "Essentials/config.yml" set {options::teleportacja::home} to yaml value "teleport.home" from file "Essentials/config.yml" set {options::teleportacja::spawn} to yaml value "teleport.spawn" from file "Essentials/config.yml" set {options::teleportacja::warp} to yaml value "teleport.warp" from file "Essentials/config.yml" set {options::teleportacja::tpa} to yaml value "teleport.tpa" from file "Essentials/config.yml" set {options::teleportacja::tpa} to "%{options::teleportacja::tpa}%" parsed as number set {options::teleportacja::warp} to "%{options::teleportacja::warp}%" parsed as number set {options::teleportacja::home} to "%{options::teleportacja::home}%" parsed as number set {options::teleportacja::spawn} to "%{options::teleportacja::spawn}%" parsed as number send "&apoprawnie zaladowano essentials config" #========================================================================================== command /help []: trigger: if arg 1 is not set: send "&c/help 1-3" if arg 1 is "1": send "&e==============================" send "&6/setspawn" send "&6/spawn" send "&6/sethome" send "&6/home" send "&6/gamemode" send "&6/freeze" send "&6/day" send "&6/night" send "&e==============================" if arg 1 is "2": send "&e==============================" send "&6/kick" send "&6/msg" send "&6/setwarp" send "&6/warp" send "&6/delwarp" send "&6/warplist" send "&6/speed" send "&6/socialspy" send "&e==============================" if arg 1 is "3": send "&e==============================" send "&6/fly" send "&6/tpall" send "&6/hat" send "&6/chat" send "&6/ " send "&6/ " send "&6/ " send "&6/ " send "&e==============================" #========WARPY, SPAWN, HOME ITP======# command /setwarp []: trigger: if player has permissions "essentials.setwarp": if argument 1 is set: if {warp::%arg%} is not set: set {warp::%arg%} to location of the player send "&7Warp &6%arg 1% &7zostal stworzony!" stop if {warp::%arg%} is set: send "&7Warp o nazwie &6%arg 1% &7 juz istnieje!" stop else: send "&cUZYCIE: &6/setwarp [nazwa]" command /delwarp []: trigger: if player has permissions "essentials.delwarp": if argument 1 is set: if {warp::%argument%} is set: delete {warp::%argument%} send "&7Warp &6%arg 1% &7zostal usuniety!" stop if {warp::%argument%} is not set: send "&7Warp o nazwie &6%arg 1% &7Nie istnieje!" stop else: send "&cUZYCIE: &6/delwarp [nazwa]" command /warp []: trigger: if argument 1 is set: if {warp::%arg%} is not set: send "&7Warp &6%arg 1% &7nie istnieje." if {warp::%arg%} is set: send "&aTeleportacja nastapi za %{options::teleportacja::warp}% sekund." set {_times} to "%{options::teleportacja::warp} * 4%" parsed as number set {_x} to x-coordinate of player set {_z} to z-coordinate of player loop {_times} times: wait 5 tick if difference between {_x} and x-coordinate of player is greater than 0.1: send "&cAnulowano teleportacje" stop if difference between {_z} and z-coordinate of player is greater than 0.1: send "&cAnulowano teleportacje" stop teleport the player to {warp::%arg%} else: send "&7Lista warpow:" loop {warp::*}: send "&6%loop-index%" command /setspawn: trigger: if player has permissions "essentials.setspawn": set {spawn::serwer} to location of player send "&aPoprawnie ustawiono spawn" else: send "&cNie masz do tego uprawnien!" command /spawn: trigger: if player has permissions "essentials.spawn": teleport player to {spawn::serwer} send "&aPrzeteleportowano na spawn." else: send "&cNie masz do tego uprawnien!" command /sethome: trigger: if player has permission "essentials.sethome": set yaml value "home.x" from file "Essentials/users/%player%.yml" to "%x-coordinate of player%" set yaml value "home.y" from file "Essentials/users/%player%.yml" to "%y-coordinate of player%" set yaml value "home.z" from file "Essentials/users/%player%.yml" to "%z-coordinate of player%" set {home::%player%} to location of player send "&aPoprawnie ustawiono dom" else: send "&cNie masz do tego uprawnien!" command /home: trigger: if player has permission "essentials.home": set {_x} to x-coordinate of player set {_z} to z-coordinate of player send "&aTeleportacja nastapi za %{options::teleportacja::home}% sekund." set {_times} to "%{options::teleportacja::home} * 4%" parsed as number loop {_times} times: wait 5 tick if difference between {_x} and x-coordinate of player is greater than 0.2: send "&cPoruszyles sie" stop if difference between {_z} and z-coordinate of player is greater than 0.2: send "&cPoruszyles sie" stop send "&aTeleportacja udana" teleport player to {home::%player%} else: send "&cNie masz permisji essentials.home" #pogoda command /sun: trigger: send "&7Ustawiono &6bezchmurna &7pogode!" set the weather in the player's world to sun command /rain: trigger: send "&7Ustawiono &6deszczowa &7pogode!" set the weather in the player's world to rain command /thunder: trigger: send "&7Ustawiono &6burzowa &7pogode!" set the weather in the player's world to thunder #czas command /day: trigger: if player has permission "essentials.day": set time to 6:30 send "&7Ustawiono czas na &6dzien" else: send "&cNie masz permisji" command /night: trigger: if player has permission "essentials.night": set time to 20:00 send "&7Ustawiono czas na &6noc" else: send "&cNie masz permisji" #======BAN, KICK ITP======# command /kick [] []: trigger: if argument 1 is set: if argument 2 is set: kick arg-1 due to "%coloured arg 2%" else: kick arg-1 due to "&7Zostales wyrzucony z serwera!" if argument 1 is not set: if argument 1 is not set: send "&c/kick " command /mute []: trigger: if player has permission "essentials.mute": if arg 1 is not set: send "/mute " else: if {MUTE::%arg 1%} is not set: set {MUTE::%arg 1%} to true send "&aZmutowano gracza %arg 1%" else: delete {MUTE::%arg 1%} send "&cOdmutowano gracza %arg 1%" else: send "&cBrak permisji" command /ban [] []: trigger: if player has permission "essentials.ban": if arg 1 is not set: send "/ban [Player] [powod]" else: ban arg 1 due to "&cPowod bana : &e%arg 2%" kick arg 1 send "Zbanowano gracza %arg 1% :Powod : %arg 2%" command /unban []: trigger: if player has permission "essentials.unban": if arg 1 is set: unban arg 1 send "&aodbanoowano gracza %arg 1%" else: send "/ban " else: send "&cBrak permisji" command /freeze []: trigger: if player has permission "essentials.freeze": if arg 1 is not set: send "/freeze " if arg 1 is set: if {FREEZE::%arg 1%} is not set: set {FREEZE::%arg 1%} to true send "&cZamrozenie on dla gracza %arg 1%" else: delete {FREEZE::%arg 1%} send "&cWylaczono %arg 1% zamrozenie" set {_loc} to location of arg 1 while {FREEZE::%arg 1%} is true: wait 1 tick teleport arg 1 to {_loc} else: send "&cNo premission essentials.freeze" #========Wiadomosci=========# command /msg [] []: trigger: if argument 1 is set: if argument 2 is set: send "&8[&7JA &d-> &6%arg 1%&8] &7%arg 2%" to player send "&8[&6%player% &d-> &7JA&8] &7%arg 2%" to arg-1 loop all players: if {socialspy::%loop-player%} is true: send "%player%: &6/msg %arg 1% %arg 2%" to loop-player if argument 1 is not set: send "&c/msg " command /socialspy []: trigger: if player has permissions "essentials.socialspy": if argument 1 is not set: if {socialspy::%player%} is false: send "&7Podglad prywatnych wiadomosci zostal &6wlaczony!" set {socialspy::%player%} to true else: send "&7Podglad prywatnych wiadomosci zostal &6wylaczony!" set {socialspy::%player%} to false else: if {socialspy::%arg%} is false: send "&7Podglad prywatnych wiadomosci dla gracza &6%arg%&7 zostal &6wlaczony!" set {socialspy::arg} to true else: send "&7Podglad prywatnych wiadomosci dla gracza &6%arg%&7 zostal &6wylaczony!" set {socialspy::arg} to false command /broadcast []: aliases: bc trigger: send "&d[Broadcast] &6%arg%" to all players #=========GM, FLY=======# command /gamemode [] []: aliases: gm trigger: if player has permissions "essentials.gm": if argument 1 is not set: send "&dUZYJ: &6/gamemode <0/1>" if argument 1 is not "1" or "0" or "creative" or "kreatywny" or "survival" or "przetrwanie": send "&dUZYJ: &6/gamemode <0/1>" if argument 1 is "1" or "creative" or "kreatywny": if argument 2 is set: set gamemode of argument 2 to creative send "&7Ustawiono tryb &6kreatywny &7dla gracza &6%arg 2%" to player send "&7Tryb &6kreatywny &7ustawiony przez administratora &6%player%" to arg-2 else: set the player's gamemode to creative send "&7Ustawiono tryb &6kreatywny" to player if argument 1 is "2" or "survival" or "przetrwanie" or "0": if argument 2 is set: set gamemode of argument 2 to survival send "&7Ustawiono tryb &6przetrwania &7dla gracza &6%arg 2%" to player send "&7Tryb &6przetrwania &7ustawiony przez administratora &6%player%" to arg-2 else: set the player's gamemode to survival send "&7Ustawiono tryb &6przetrwania" to player else: send "&cBrak uprawnien" command /fly []: trigger: if player has permission "essentials.fly": if argument 1 is not set: if player is not flying: set player's fly mode to true send "&7Latanie zostalo &6wlaczone!" else: set player's fly mode to false send "&7Latanie zostalo &6wylaczone!" else: if argument is not flying: set fly mode of argument to true send "&7Latanie dla gracza &6%arg% &7zostalo &6wlaczone&7!" send "&7Latanie zostalo wlaczone przez administratora &6%player%" to arg else: set fly mode of argument to false send "&7Latanie dla gracza &6%arg% &7zostalo &6wylaczone" to player send "&7Latanie zostalo wylaczone przez administratora &6%player%" to arg else: send "&cBrak permisji" command /speed [] []: trigger: if player has permission "essentials.speed": if arg 1 is set: if arg 1 is greater than 10: set {_speed} to 10 else: set {_speed} to arg 1 if arg 2 is not set: if player is not flying: set {_speed} to "%{_speed} / 10%" parsed as number set player's walk speed to {_speed} send "&7Szybkosc zostala ustawiona na &6%arg 1%" if player is flying: set {_speed} to "%{_speed} / 10%" parsed as number set player's fly speed to {_speed} send "&7Szybkosc zostala ustawiona na &6%arg 1%" if arg 2 is set: if arg 2 is not flying: set {_speed} to "%{_speed} / 10%" parsed as number set walk speed of arg 2 to {_speed} if arg 2 is flying: set {_speed} to "%{_speed} / 10%" parsed as number set fly speed of arg 2 to {_speed} #==========TPA, TP============# command /tpa []: trigger: if player has permission "essentials.tpa": if arg 1 is set: set {TPA::%arg 1%} to player send "&7Wyslano prosbe o teleportacje do &6%arg 1%" send "&6%player% &7chce sie do ciebie przeteleportować" to arg 1 send "&7Wpisz &6/tpaccept &7aby zaakceptowac." to arg 1 else: send "&dUZYJ: &6/tpa [nick]" else: send "&cBrak permisji" command /tpaccept: trigger: if player has permission "essentials.tpaccept": if {TPA::%player%} is set: set {_player} to "%{TPA::%player%}%" parsed as player set {_x} to x-coordinate of {_player} set {_z} to z-coordinate of {_player} send "&aZaakceptowano teleportacje %{TPA::%player%}%" send "&a%player% zaakceptowal twoja prosbe o teleportacje" to {_player} delete {TPA::%player%} set {_times} to "%{options::teleportacja::tpa} * 4%" parsed as number loop {_times} times: wait 5 tick if difference between {_x} and x-coordinate of {_player} is greater than 0.1: send "&7Teleportacja zostala &6anulowana" to {_player} send "&7Teleportacja zostala &6anulowana" stop if difference between {_z} and z-coordinate of {_player} is greater than 0.1: send "&7Teleportacja zostala &6anulowana" send "&7Teleportacja zostala &6anulowana" stop teleport {_player} to player command /jump: aliases: j trigger: if player has permission "essentials.jump": teleport player to targeted block send "&aPoof xd" else: send "&cBrak permisji" command /tpall: trigger: if player has permission "essentials.tpall": loop all players: teleport loop-player to player send "&7Wszyscy gracze zostali przeteleportowani do &6%player%" to all players send "&7Przeteleportowales wszystkich graczy do &6siebie" else: send "&cBrak permisji" command /hat: trigger: if player has permission "essentials.hat": set {_item} to "%player's tool%" parsed as item set helmet of player to {_item} send "&aCiesz sie nowym kapeluszem! :D" else: send "&cBrak permisji" #==========CHAT============# command /chat []: trigger: if player has permission "essentials.chat": if arg 1 is not set: send "&8/chat &7cc" if arg 1 is "cc": loop 100 times: send " " to all players send "&aChat zostal wyczyszczony." to all players else: send "&cBrak permisji" #=========eq========# command /clear: trigger: if player has permission "essentials.clear": clear player's inventory send "&7Ekwipunek zostal &6wyczyszczony!" else: send "&cBrak permisji" on flight toggle: if player is not op: send "Wykryto fly'a u %player%" to all ops cancel event on chat: set player's display name to "&a%player%" set message to "&e%message%" on join: set {_join} to "%{options::join::message}%" replace all "" with "%player%" in {_join} set join message to "%{_join}%" set {_kasa} to yaml value "kasa" from file "Essentials/users/%player%.yml" set {_x} to yaml value "home.x" from file "Essentials/users/%player%.yml" set {_y} to yaml value "home.y" from file "Essentials/users/%player%.yml" set {_z} to yaml value "home.z" from file "Essentials/users/%player%.yml" set {_x} to "%{_x}%" parsed as number set {_y} to "%{_y}%" parsed as number set {_z} to "%{_z}%" parsed as number wait 2 tick set {home::%player%} to location at ({_x}, {_y}, {_z}) if {_kasa} is not set: set {kasa::%player%} to 0 else if {_kasa} is set: set {kasa::%player%} to "%{_kasa}%" parsed as number on quit: set {_quit} to "%{options::quit::message}%" replace all "" with "%player%" in {_quit} set quit message to "%{_quit}%" delete {home::%player%} delete {kasa::%player%} on first join: set {_firstjoin} to "%{options::firstjoin::message}%" replace all "" with "%player%" in {_firstjoin} set join message to "%{_firstjoin}%"