Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Version: 1.3
- #==================================================================#
- #============================== C O M M A N D S =====================#
- #==================================================================#
- #===========================================================#
- command /debugsclear [<offline player>]:
- permission: *
- trigger:
- delete {Searchis.%arg-1%}
- send "&c&o%arg-1%'s cleared"
- #===========================================================#
- command /island [<text>] [<text=1>]:
- aliases: /is
- trigger:
- set {_prefix} to yaml value "prefix" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- if arg-1 is not set:
- islandgui(player)
- if arg-1 is "create":
- if file "plugins/SkyBlock/Player/%player%.yml" exists:
- set {_a} to yaml value "alreadyisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- stop
- set {_schematics::*} to files in "plugins/SkyBlock/schematics"
- if size of {_schematics::*} is 1:
- set {_bla} to true
- set {_path} to "plugins/SkyBlock/schematics/%{_schematics::*}%"
- if {_bla} is not set:
- if arg-2 is "1":
- open chest with 1 rows named "&6Schematics" to player
- set {_s} to 0
- loop {_schematics::*}:
- set {_b} to loop-value
- set {_Bla::*} to {_b} split at "."
- set slot {_s} of player's current inventory to grass block named "%{_bla::1}%"
- add 1 to {_s}
- delete {_s}
- delete {_Bla::*}
- stop
- else:
- if file "plugins/SkyBlock/schematics/%arg-2%.schematic" exists:
- set {_path} to "plugins/SkyBlock/schematics/%arg-2%.schematic"
- else:
- send "&c&lError"
- stop
- if {Searchis.%player%} is set:
- set {_a} to yaml value "waitingisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- stop
- else:
- set {Searchis.%player%} to true
- apply blindness to player for 10 seconds
- apply slowness to player for 10 seconds
- set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
- set {_option2} to yaml value "options.height" from file "plugins/SkyBlock/config.yml"
- set {_loc} to location (0.5, {_option2} parsed as number, 0.5) in world "%{_option1}%"
- set {_search} to true
- set {_s} to 1
- set {_l} to 1
- set {_option3} to yaml value "options.distance" from file "plugins/SkyBlock/config.yml"
- set {_option3} to {_option3} parsed as number
- while {_search} is true:
- loop {_l} times:
- if {_s} is 1 or 5:
- add ({_option3}*2) to Z-coord of {_loc}
- if {_s} is 2:
- add ({_option3}*2) to X-coord of {_loc}
- if {_s} is 3:
- subtract ({_option3}*2) from Z-coord of {_loc}
- if {_s} is 4:
- subtract ({_option3}*2) from X-coord of {_loc}
- if block at {_loc} is not bedrock:
- set {_a} to yaml value "foundisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- delete {Searchis.%player%}
- add 1 to y-coord of {_loc}
- set {_session} to new editsession in player's world with limit -1
- paste schematic "%{_path}%" at {_loc} using editsession {_session}
- subtract 1 from y-coord of {_loc}
- if block at {_loc} is not bedrock:
- send "&c&lSchematic error - No bedrock - %arg-2%.schematic" to all ops
- send "&c&oOps...there might wrong"
- send "&c&oPlease contract an administrator."
- stop
- set {_b} to block at {_loc}
- set {_pis} to {_loc}
- add 1 to y-coord of {_pis}
- delete {_search}
- teleport player to {_pis}
- remove blindness from player
- remove slowness from player
- set {_l::1} to {_loc}
- set {_l::2} to {_loc}
- set {_option4} to yaml value "options.protect" from file "plugins/SkyBlock/config.yml"
- set {_option4} to {_option4} parsed as number
- add ({_option3} - {_option4}) to x-coord of {_l::1}
- add ({_option3} - {_option4}) to z-coord of {_l::1}
- subtract ({_option3} - {_option4}) from x-coord of {_l::2}
- subtract ({_option3} - {_option4}) from z-coord of {_l::2}
- set y-coord of {_l::1} to 256
- set y-coord of {_l::2} to 0
- set {_x} to x-coord of {_loc}
- set {_y} to y-coord of {_loc}
- set {_z} to z-coord of {_loc}
- set yaml value "Leader" from file "plugins/SkyBlock/Bedrock/%{_x}%_%{_y}%_%{_z}%.yml" to "%player%"
- set yaml value "Other.Island.Level" from file "plugins/SkyBlock/Bedrock/%{_x}%_%{_y}%_%{_z}%.yml" to "1"
- set yaml value "Other.Island.EXP" from file "plugins/SkyBlock/Bedrock/%{_x}%_%{_y}%_%{_z}%.yml" to "0"
- set yaml value "Other.Bedrock.X" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_x}%"
- set yaml value "Other.Bedrock.Y" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_y}%"
- set yaml value "Other.Bedrock.Z" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_z}%"
- add 1 to y-coord of {_loc}
- set {_y} to y-coord of {_loc}
- set yaml value "Other.Home.X" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_x}%"
- set yaml value "Other.Home.Y" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_Y}%"
- set yaml value "Other.Home.Z" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_Z}%"
- set yaml value "Other.Leader" from file "plugins/SkyBlock/Player/%player%.yml" to "%player%"
- #subtract 0.5 from x-coord of {_l::1}
- #subtract 0.5 from z-coord of {_l::1}
- set {_x} to x-coord of {_l::1}
- set {_y} to y-coord of {_l::1}
- set {_z} to z-coord of {_l::1}
- set yaml value "loc1.x" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_x}%"
- set yaml value "loc1.y" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_y}%"
- set yaml value "loc1.z" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_z}%"
- set {_x} to x-coord of {_l::2}
- set {_y} to y-coord of {_l::2}
- set {_z} to z-coord of {_l::2}
- set yaml value "loc2.x" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_x}%"
- set yaml value "loc2.y" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_y}%"
- set yaml value "loc2.z" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_z}%"
- set {_I::*} to value list "Chest" get of "plugins/SkyBlock/chest.yml"
- loop {_I::*}:
- set {_c} to "%Loop-value-2%"
- replace every " " with "_" in {_c}
- if {_i} is not set:
- set {_i} to "%{_c}%"
- else:
- set {_i} to "%{_i}% %{_c}%"
- fallingchest(player, "%{_i}%")
- stop loop
- set {_b} to yaml value "buildisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- set {_c} to yaml value "buildisland2" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- send player title "%{_b}%" with subtitle "%{_c}%" for 1 seconds
- wait a ticks
- if {_s} is 6:
- set {_s} to 2
- else:
- add 1 to {_s}
- if {_s} is 3 or 5:
- add 1 to {_l}
- else if arg-1 is "home":
- if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
- set {_a} to yaml value "noisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- set {_loc} to yaml value "Other.Home" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_x} to yaml value "Other.Home.X" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_y} to yaml value "Other.Home.Y" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_z} to yaml value "Other.Home.Z" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
- set {_loc} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
- if "%block at {_loc}%" contains "slab":
- set {_skip} to true
- if {_skip} is not set:
- set {_loc2} to {_loc}
- subtract 1 from y-coord of {_loc2}
- if "%block at {_loc2}%" is "air":
- set {_a} to yaml value "islandair" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- wait a tick
- make player execute command "/is go"
- stop
- teleport player to {_loc}
- set {_a} to yaml value "teleportisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else if arg-1 is "sethome":
- if file "plugins/SkyBlock/Player/%player%.yml" exists:
- set {_x} to yaml value "loc1.x" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_y} to yaml value "loc1.y" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_z} to yaml value "loc1.z" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
- set {_loc1} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
- add 1 to x-coord of {_loc1}
- add 1 to z-coord of {_loc1}
- set {_x} to yaml value "loc2.x" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_y} to yaml value "loc2.y" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_z} to yaml value "loc2.z" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_loc2} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
- if location of player is within {_loc1} to {_loc2}:
- set yaml value "Other.Home.X" from file "plugins/SkyBlock/Player/%player%.yml" to "%x-coord of location of player%"
- set yaml value "Other.Home.Y" from file "plugins/SkyBlock/Player/%player%.yml" to "%y-coord of location of player%"
- set yaml value "Other.Home.Z" from file "plugins/SkyBlock/Player/%player%.yml" to "%z-coord of location of player%"
- set {_a} to yaml value "sucesssethome" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- set {_a} to yaml value "islandhomecancel" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else if arg-1 is "go":
- if file "plugins/SkyBlock/Player/%player%.yml" exists:
- set {_x} to yaml value "Other.Bedrock.X" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_y} to yaml value "Other.Bedrock.Y" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_z} to yaml value "Other.Bedrock.Z" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
- set {_loc} to location at ({_x} parsed as number), ({_y} parsed as number)+1, ({_z} parsed as number) in world "%{_option1}%"
- teleport player to {_loc}
- set {_a} to yaml value "teleportisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- set {_a} to yaml value "noisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else if arg-1 are "delete" or "remove":
- if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
- set {_a} to yaml value "notodelete" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- deleteisland(player)
- else if arg-1 is "credits":
- send "&0&l©&8Made by &nChisleLP&8 and &8&nCrisisLP"
- else if arg-1 is "top":
- set {_f::*} to files in "plugins/SkyBlock/Bedrock"
- if {_f::*} is set:
- loop {_f::*}:
- set {_Owner} to yaml value "Leader" from file "plugins/SkyBlock/Bedrock/%loop-value%"
- set {_Level} to yaml value "Other.Island.Level" from file "plugins/SkyBlock/Bedrock/%loop-value%"
- set {_Member::%{_Owner}%::*} to yaml list "Member" from file "plugins/SkyBlock/Bedrock/%loop-value%"
- set {_Level::%{_Owner}%} to {_Level}
- loop {_Level::*}:
- add 1 to {_size}
- if {_low.to.high.list::%loop-value%} is not set:
- set {_low.to.high.list::%loop-value%} to loop-index
- else:
- set {_n} to 0
- loop {_size} times:
- set {_n} to {_n}+1
- {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
- set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
- stop loop
- wait 1 tick
- set {_n} to size of {_low.to.high.list::*}
- loop {_low.to.high.list::*}:
- set {_high.to.low.list::%{_n}%} to loop-value
- set {_n} to {_n}-1
- wait 1 tick
- set {_page} to 1
- loop {_high.to.low.list::*}:
- add 1 to {_result}
- add 1 to {_r}
- set {_Top::%{_page}%::%{_r}%} to loop-value
- if loop-value is player:
- set {_rank} to {_r}
- else:
- loop {_Member::%loop-value%::*}:
- if loop-value-2 is player:
- set {_rank} to {_r}
- if {_result} is 10:
- set {_result} to 0
- add 1 to {_page}
- set {_arg1} to arg-2 parsed as number
- if {_arg1} is not set:
- set {_a} to yaml value "numbermissing" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- stop
- else:
- if {_top::%{_arg1}%::*} is not set:
- set {_a} to yaml value "pagenotfound" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- stop
- if {_Rank} is not set:
- set {_rank} to "-/-"
- send "&6&l--== &bTop Ten &6&l==-- (%arg-2%/%{_page}%)"
- loop {_Top::%arg-2%::*}:
- loop {_Member::%loop-value%::*}:
- if {_member} is not set:
- set {_member} to "%loop-value-2%"
- else:
- set {_member} to "%{_member}%, %loop-value-2%"
- if {_member} is not set:
- set {_member} to ""
- set {_p} to "%loop-value%" parsed as offline player
- send "&e&l%loop-index%&6.&8 - &a%{_p}% &8&l: &e%{_Level::%loop-value%}% &7||&8 %{_Member}%"
- send "&6&l--== &eYour rank: %{_rank}% &6&l==== ----"
- else:
- set {_a} to yaml value "noisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else if arg-1 is "exp" or "level":
- if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
- set {_a} to yaml value "noisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- set {_a} to yaml value "skyblockexp" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- set {_b} to yaml value "skyblocklevel" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- set {_x} to yaml value "Other.Bedrock.X" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_y} to yaml value "Other.Bedrock.Y" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_z} to yaml value "Other.Bedrock.Z" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_level} to yaml value "Other.Island.Level" from file "plugins/SkyBlock/Bedrock/%{_x}%_%{_y}%_%{_z}%.yml"
- message "&a&l&m-------------------------------------"
- message centered "%{_a}%" to player
- message centered "%{_b}%%{_level}%" to player
- message "&a&l&m-------------------------------------"
- set metadata value "IS-Level" of player to "%{_level}%"
- else if arg-1 is "spawn" or "hub":
- set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
- set {_option2} to yaml value "options.spawn" from file "plugins/SkyBlock/config.yml"
- set {_Loc::*} to {_option2} split at ","
- set {_loc} to location at ({_Loc::1} parsed as number, {_Loc::2} parsed as number, {_Loc::3} parsed as number) in world "%{_option1}%"
- teleport player to {_loc}
- else if arg-1 is "rewards" or "loots":
- rewardlootsgui(player)
- else if arg-1 is "invite":
- if file "plugins/SkyBlock/Player/%player%.yml" exists:
- set {_b} to yaml value "Other.Leader" from file "plugins/SkyBlock/Player/%player%.yml"
- if {_b} is "%player%":
- set {_arg2} to arg-2 parsed as offline player
- if {_arg2} is online:
- if {_arg2} is not player:
- set {_p2} to {_arg2}
- set {_a} to yaml value "inforequest" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- set {_b} to yaml value "gotrequest" from file "plugins/SkyBlock/Sprache/%{Language::%{_arg2}%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- replace all "<player>" in {_b} with "%player%"
- evaluate "send ""%{_prefix}% %{_b}%"" to {_p2}"
- set {_cooldown} to yaml value "options.invitecooldown" from file "plugins/SkyBlock/config.yml"
- set {_cooldown} to {_cooldown} parsed as number
- set {Request::%{_arg2}%::%player%} to {_cooldown}
- while {Request::%{_arg2}%::%player%} is not 0:
- subtract 1 from {Request::%{_arg2}%::%player%}
- wait a second
- if {Request::%{_arg2}%::%player%} is 0:
- delete {Request::%{_arg2}%::%player%}
- set {_a} to yaml value "inforequesttimeout" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- set {_b} to yaml value "gotrequesttimeout" from file "plugins/SkyBlock/Sprache/%{Language::%{_arg2}%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- evaluate "send ""%{_prefix}% %{_b}%"" to {_p2}"
- else:
- set {_a} to yaml value "inviteself" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- set {_a} to yaml value "playernotonline" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- set {_a} to yaml value "notleader" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- set {_a} to yaml value "noisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else if arg-1 is "join":
- set {_arg2} to arg-2 parsed as offline player
- if {_arg2} is set:
- if {Request::%player%::%{_arg2}%} is set:
- if file "plugins/SkyBlock/Player/%player%.yml" exists:
- set {_a} to yaml value "alreadyisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- set {_check} to yaml value "Other.Leader" from file "plugins/SkyBlock/Player/%player%.yml"
- if {_check} is "%player%":
- set {_a} to yaml value "joinalreadyleader" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- set {_a} to yaml value "joinalreadymember" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- set {_x} to yaml value "Other.Bedrock.X" from file "plugins/SkyBlock/Player/%{_arg2}%.yml"
- set {_y} to yaml value "Other.Bedrock.Y" from file "plugins/SkyBlock/Player/%{_arg2}%.yml"
- set {_z} to yaml value "Other.Bedrock.Z" from file "plugins/SkyBlock/Player/%{_arg2}%.yml"
- add "%player%" to yaml list "Member" from file "plugins/SkyBlock/Bedrock/%{_x}%_%{_y}%_%{_z}%.yml"
- create file "plugins/SkyBlock/Player/%player%.yml"
- copy({_arg2}, player)
- delete {Request::%player%::%{_arg2}%}
- make player execute command "/is home"
- set {_a} to yaml value "joinislandinfo" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- set {_b} to yaml value "joinislandgot" from file "plugins/SkyBlock/Sprache/%{Language::%{_arg2}%}%.yml"
- replace all "<arg-2>" in {_a} with "%{_arg2}%"
- replace all "<player>" in {_b} with "%player%"
- evaluate "send ""%{_prefix}% %{_a}%"""
- set {_p2} to {_arg2}
- evaluate "send ""%{_prefix}% %{_b}%"" to {_p2}"
- else:
- set {_a} to yaml value "norequest" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- set {_a} to yaml value "targetmissing" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else if arg-1 is "leave":
- if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
- set {_a} to yaml value "noisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- set {_check} to yaml value "Other.Leader" from file "plugins/SkyBlock/Player/%player%.yml"
- if {_check} is "%player%":
- set {_a} to yaml value "infodelete" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- if arg-2 is player:
- silentleave(player, "A")
- set {_a} to yaml value "gotkickcausedelete" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- set {_a} to yaml value "islandleave" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- silentleave(player, "B")
- else if arg-1 is "kick":
- if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
- set {_a} to yaml value "noisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- set {_b} to yaml value "Other.Leader" from file "plugins/SkyBlock/Player/%player%.yml"
- if {_b} is "%player%":
- if arg-2 is set:
- set {_x} to yaml value "Other.Bedrock.X" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_y} to yaml value "Other.Bedrock.Y" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_z} to yaml value "Other.Bedrock.Z" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_m::*} to yaml list "Member" from file "plugins/SkyBlock/Bedrock/%{_x}%_%{_y}%_%{_z}%.yml"
- loop {_m::*}:
- if loop-value is "%arg-2%":
- remove "%arg-2%" from yaml list "Member" from file "plugins/SkyBlock/Bedrock/%{_x}%_%{_y}%_%{_z}%.yml"
- set {_a} to yaml value "infokicked" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- set {_b} to yaml value "gotkicked" from file "plugins/SkyBlock/Sprache/%{Language::%arg-2%}%.yml"
- replace all "<arg-2>" in {_a} with "%arg-2%"
- replace all "<player>" in {_b} with "%player%"
- evaluate "send ""%{_prefix}% %{_a}%"""
- set {_p2} to arg-2 parsed as offline player
- evaluate "send ""%{_prefix}% %{_b}%"" to {_p2}"
- silentleave({_p2}, "A")
- stop
- set {_a} to yaml value "cantfoundplayer" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- replace all "<arg-2>" in {_a} with "%arg-2%"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- set {_a} to yaml value "targetmissing" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- set {_a} to yaml value "nopermission" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- send "%{_a}%"
- else if arg-1 is "challenge":
- make player execute command "/challenge"
- else if arg-1 is "help":
- set {_n} to arg-2 parsed as integers
- if {_n} is more than 3:
- set {_a1} to yaml value "helpsite" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a1}%"""
- stop
- set {_a} to yaml value "helptitel" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- send "%{_a}%"
- send " "
- if arg-2 is "1":
- set {_b} to yaml value "iscreate" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_b}%"""
- set {_c} to yaml value "isdelete" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_c}%"""
- set {_d} to yaml value "isteleport" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_d}%"""
- set {_e} to yaml value "issethome" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_e}%"""
- set {_f} to yaml value "isteleportgo" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_f}%"""
- else if arg-2 is "2":
- set {_b} to yaml value "islevel" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_b}%"""
- set {_c} to yaml value "istop" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_c}%"""
- set {_d} to yaml value "isinvite" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_d}%"""
- set {_e} to yaml value "iskick" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_e}%"""
- set {_f} to yaml value "isjoin" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_f}%"""
- else if arg-2 is "3":
- set {_b} to yaml value "isleave" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_b}%"""
- set {_c} to yaml value "isgui" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_c}%"""
- set {_d} to yaml value "isloots" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_d}%"""
- set {_e} to yaml value "isspawn" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_e}%"""
- set {_f} to yaml value "iscredits" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_f}%"""
- set {_g} to yaml value "helpsite2" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- send center "&5%{_g}%: %{_n}%/3" to player
- send "&m----------------------------------"
- command /language:
- trigger:
- languagechoose(player)
- command /admin:
- permission: *
- trigger:
- give player a blaze rod named "&0&lCruel Stab"
- command /chest:
- permission: *
- trigger:
- set {_i::*} to all blocks
- set {_a} to random number between 3 and 10
- loop {_a} times:
- set {_n} to random element out of {_i::*}
- replace all " " with "_" in {_n}
- if {_fin} is not set:
- set {_fin} to "%{_n}%"
- else:
- set {_fin} to "%{_fin}% %{_n}%"
- fallingchest(player, {_fin})
- #==================================================#
- #command /iscoop <player>:
- # trigger:
- # set {Coop.%arg-1%} to player
- # send "Du hast %arg-1% Rechte gegebn"
- # send "Du bekamst von %player% Rechte für sein insel" to arg-1
- #==================================================#
- #==================================================================#
- #============================= E V E N T S ==========================#
- #==================================================================#
- on script load:
- send "&c%script% - &aLOADED" to all ops
- if {firstrun.%script%} is not set:
- if existence of "plugins/SkyBlock/schematics/" is false:
- create file "plugins/SkyBlock/schematics/"
- send "&cPlease add some schematics in 'plugins/SkyBlock/schematics/'." to all ops
- #if text from "https://pastebin.com/raw/tQtCJ3gJ" is not "{@Version}":
- set {_text} to text from "https://pastebin.com/raw/8G6wWy3v"
- set {_t::*} to {_text} split at " "
- loop {_t::*}:
- if file "plugins/SkyBlock/Sprache/%loop-value%" exists:
- send "&8%loop-value% &7- &aInstalled" to all ops
- else:
- download from "https://raw.githubusercontent.com/CrisisLP/Skyblock/master/%loop-value%" to "plugins/SkyBlock/Sprache/%loop-value%"
- send "&8%loop-value% &7- &cDownloaded" to all ops
- if file "plugins/SkyBlock/config.yml" doesn't exist:
- set yaml value "options.world" from file "plugins/SkyBlock/config.yml" to "world"
- set yaml value "options.spawn" from file "plugins/SkyBlock/config.yml" to "0.5, 100, 0.5"
- set yaml value "options.distance" from file "plugins/SkyBlock/config.yml" to "100"
- set yaml value "options.height" from file "plugins/SkyBlock/config.yml" to "100.5"
- set yaml value "options.protect" from file "plugins/SkyBlock/config.yml" to "25"
- set yaml value "options.invitecooldown" from file "plugins/SkyBlock/config.yml" to "30"
- set yaml value "options.buildpermission" from file "plugins/SkyBlock/config.yml" to "IS.build"
- set yaml value "options.portalenter" from file "plugins/SkyBlock/config.yml" to "true"
- set yaml value "options.elytra" from file "plugins/SkyBlock/config.yml" to "true"
- set yaml value "options.pvp" from file "plugins/SkyBlock/config.yml" to "false"
- send "&cconfig.yml not founded! So generate a default config.yml" to all ops
- if file "plugins/SkyBlock/chest.yml" doesn't exist:
- add "3 of Apple" to yaml list "Chest" from file "plugins/SkyBlock/chest.yml"
- add "sapling" to yaml list "Chest" from file "plugins/SkyBlock/chest.yml"
- add "4 of stick" to yaml list "Chest" from file "plugins/SkyBlock/chest.yml"
- add "ice" to yaml list "Chest" from file "plugins/SkyBlock/chest.yml"
- add "4 of bone" to yaml list "Chest" from file "plugins/SkyBlock/chest.yml"
- send "&cchest.yml not founded! So generate a default chest.yml" to all ops
- if existence of "plugins/SkyBlock/Blocks.yml" is false:
- create file "plugins/SkyBlock/Blocks.yml"
- set {_blocks::*} to all blocks
- loop {_blocks::*}:
- set yaml value "%loop-value%" from file "plugins/SkyBlock/Blocks.yml" to "0"
- send "&cAll blocks added to 'plugins/SkyBlock/Blocks.yml' with 0" to all ops
- if existence of "plugins/SkyBlock/Sprache/english.yml" is false:
- send "&4&lNo english.yml file!" to all ops
- if existence of "plugins/SkyBlock/Sprache/deutsch.yml" is false:
- send "&4&lKein deutsch.yml Datei!" to all ops
- else:
- send "&aLanguage loaded" to all ops
- set {firstrun.%script%} to true
- on join:
- wait a ticks
- set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
- set {_option2} to yaml value "options.spawn" from file "plugins/SkyBlock/config.yml"
- if player is op:
- if text from "https://pastebin.com/raw/tQtCJ3gJ" is not "{@Version}":
- send "&8========================================" to all ops
- send "" to all ops
- message centered "&a&lUPDATE FOUNDED" to all ops
- send "" to all ops
- send "&f&lDownload here:" to all ops
- send "&lhttps://forums.skunity.com/resources/skyblock-skript.193/" to all ops
- send "" to all ops
- send "&8========================================" to all ops
- if {Language::%player%} is not set:
- set {Language::%player%} to "english"
- if {Leave.%player%} is set:
- delete {Leave.%player%}
- silentleave(player, "A")
- set {_a} to yaml value "gotkickcausedelete" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- send "%{_a}%"
- if file "plugins/SkyBlock/Player/%player%.yml" exists:
- set {_x} to yaml value "Other.Bedrock.X" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_y} to yaml value "Other.Bedrock.Y" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_z} to yaml value "Other.Bedrock.Z" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
- set {_loc} to location at ({_x} parsed as number), ({_y} parsed as number)+1, ({_z} parsed as number) in world "%{_option1}%"
- teleport player to {_loc}
- else:
- set {_Loc::*} to {_option2} split at ","
- set {_loc} to location at ({_Loc::1} parsed as number, {_Loc::2} parsed as number, {_Loc::3} parsed as number) in world "%{_option1}%"
- teleport player to {_loc}
- on inventory click:
- if inventory name of player's current inventory is "&6Schematics":
- cancel event
- if clicked item is grass block:
- set {_n} to name of clicked item
- close player's inventory
- make player execute command "/is create %{_n}%"
- if inventory name of player's current inventory is "&b&lSkyBlock":
- cancel event
- if clicked slot is 10:
- close player's inventory
- if file "plugins/SkyBlock/Player/%player%.yml" exists:
- make player execute command "/island go"
- else:
- make player execute command "/island create"
- else if clicked slot is 11:
- close player's inventory
- make player execute command "/island exp"
- else if clicked slot is 12:
- close player's inventory
- make player execute command "/island challenge"
- else if clicked slot is 13:
- close player's inventory
- make player execute command "/island top"
- else if clicked slot is 14:
- close player's inventory
- make player execute command "/island rewards"
- else if clicked slot is 15:
- close player's inventory
- make player execute command "/island spawn"
- else if inventory name of player's current inventory is "&dRewards Box" or "&dBelohnungs Truhe":
- cancel event
- if clicked slot is 2:
- close player's inventory
- else if clicked slot is 3:
- close player's inventory
- else if clicked slot is 4:
- close player's inventory
- else if clicked slot is 5:
- close player's inventory
- else if clicked slot is 6:
- close player's inventory
- else if inventory name of player's current inventory is "&8&lSkyblock &7- &6&lAdmin":
- cancel event
- on place:
- set {_prefix} to yaml value "prefix" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
- set {_option2} to yaml value "options.buildpermission" from file "plugins/SkyBlock/config.yml"
- if player is in world "%{_option1}%":
- if player has permission "%{_option2}%":
- stop
- if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
- cancel event
- set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- set {_x} to yaml value "loc1.x" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_y} to yaml value "loc1.y" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_z} to yaml value "loc1.z" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_loc1} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
- add 1 to x-coord of {_loc1}
- add 1 to z-coord of {_loc1}
- set {_x} to yaml value "loc2.x" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_y} to yaml value "loc2.y" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_z} to yaml value "loc2.z" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_loc2} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
- if location of event-block is not within {_loc1} to {_loc2}:
- cancel event
- set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- expblocks(event-block, player, "place")
- on break:
- set {_prefix} to yaml value "prefix" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
- set {_option2} to yaml value "options.buildpermission" from file "plugins/SkyBlock/config.yml"
- if player is in world "%{_option1}%":
- if player has permission "%{_option2}%":
- stop
- if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
- cancel event
- set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- set {_x} to yaml value "loc1.x" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_y} to yaml value "loc1.y" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_z} to yaml value "loc1.z" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_loc1} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
- add 1 to x-coord of {_loc1}
- add 1 to z-coord of {_loc1}
- set {_x} to yaml value "loc2.x" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_y} to yaml value "loc2.y" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_z} to yaml value "loc2.z" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_loc2} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
- if location of event-block is not within {_loc1} to {_loc2}:
- cancel event
- set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"#!=====
- evaluate "send ""%{_prefix}% %{_a}%"""
- stop
- else:
- expblocks(event-block, player, "break")
- event-block is chest
- set {_loc} to location of event-block
- subtract 0.5 from y-coord of {_loc}
- if {Chest::%{_loc}%} is set:
- cancel event
- #loop all items in event-block:
- #drop loop-value at player
- #wait a ticks
- set block at {_loc} to air
- delete {Chest::%{_loc}%}
- on rightclick:
- set {_prefix} to yaml value "prefix" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
- set {_option2} to yaml value "options.buildpermission" from file "plugins/SkyBlock/config.yml"
- if player is in world "%{_option1}%":
- if player has permission "%{_option2}%":
- stop
- if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
- cancel event
- set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- set {_x} to yaml value "loc1.x" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_y} to yaml value "loc1.y" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_z} to yaml value "loc1.z" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_loc1} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
- add 1 to x-coord of {_loc1}
- add 1 to z-coord of {_loc1}
- set {_x} to yaml value "loc2.x" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_y} to yaml value "loc2.y" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_z} to yaml value "loc2.z" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_loc2} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
- if location of event-block is not within {_loc1} to {_loc2}:
- cancel event
- set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- on armor stand manipulate:
- set {_prefix} to yaml value "prefix" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
- set {_option2} to yaml value "options.buildpermission" from file "plugins/SkyBlock/config.yml"
- if player is in world "%{_option1}%":
- if player has permission "%{_option2}%":
- stop
- if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
- cancel event
- set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- set {_x} to yaml value "loc1.x" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_y} to yaml value "loc1.y" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_z} to yaml value "loc1.z" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_loc1} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
- add 1 to x-coord of {_loc1}
- add 1 to z-coord of {_loc1}
- set {_x} to yaml value "loc2.x" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_y} to yaml value "loc2.y" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_z} to yaml value "loc2.z" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_loc2} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
- if location of event-entity is not within {_loc1} to {_loc2}:
- cancel event
- set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"" to player"
- on elytra toggle:
- set {_prefix} to yaml value "prefix" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
- set {_option2} to yaml value "options.buildpermission" from file "plugins/SkyBlock/config.yml"
- set {_option3} to yaml value "options.elytra" from file "plugins/SkyBlock/config.yml"
- if {_option3} is "true":
- if player is in world "%{_option1}%":
- if player has permission "%{_option2}%":
- stop
- if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
- cancel event
- set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- set {_x} to yaml value "loc1.x" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_y} to yaml value "loc1.y" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_z} to yaml value "loc1.z" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_loc1} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
- add 1 to x-coord of {_loc1}
- add 1 to z-coord of {_loc1}
- set {_x} to yaml value "loc2.x" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_y} to yaml value "loc2.y" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_z} to yaml value "loc2.z" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_loc2} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
- if location of event-entity is not within {_loc1} to {_loc2}:
- cancel event
- set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"" to player"
- on entity block modify:
- set {_prefix} to yaml value "prefix" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
- set {_option2} to yaml value "options.buildpermission" from file "plugins/SkyBlock/config.yml"
- if player has permission "%{_option2}%":
- stop
- if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
- cancel event
- set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- set {_x} to yaml value "loc1.x" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_y} to yaml value "loc1.y" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_z} to yaml value "loc1.z" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_loc1} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
- add 1 to x-coord of {_loc1}
- add 1 to z-coord of {_loc1}
- set {_x} to yaml value "loc2.x" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_y} to yaml value "loc2.y" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_z} to yaml value "loc2.z" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_loc2} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
- if location of event-entity is not within {_loc1} to {_loc2}:
- cancel event
- set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"" to player"
- if location of event-block is not within {_loc1} to {_loc2}:
- cancel event
- set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"" to player"
- on world change:
- set {_prefix} to yaml value "prefix" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
- set {_option2} to yaml value "options.buildpermission" from file "plugins/SkyBlock/config.yml"
- set {_option3} to yaml value "options.portalenter" from file "plugins/SkyBlock/config.yml"
- if player has permission "%{_option2}%":
- if event-world is "%{_option1}%":
- make player execute command "/is spawn"
- stop
- if event-world is "world_nether":
- if "%{_option3}%" is "false":
- make player execute command "/is go"
- set {_a} to yaml value "portal" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- if event-world is "%{_option1}%":
- make player execute command "/is go"
- on rightclick on chest:
- if file "plugins/SkyBlock/Player/%player%.yml" exists:
- wait a ticks
- if inventory name of player's current inventory is "container.chest":
- set {_loc} to location of event-block
- subtract 0.5 from y-coord of {_loc}
- {Chest::%{_loc}%} is set
- set {Chest.%player%} to {_loc}
- on crop trample:
- set {_prefix} to yaml value "prefix" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
- set {_option2} to yaml value "options.buildpermission" from file "plugins/SkyBlock/config.yml"
- if player has permission "%{_option2}%":
- stop
- if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
- cancel event
- set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"""
- else:
- set {_x} to yaml value "loc1.x" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_y} to yaml value "loc1.y" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_z} to yaml value "loc1.z" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_loc1} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
- add 1 to x-coord of {_loc1}
- add 1 to z-coord of {_loc1}
- set {_x} to yaml value "loc2.x" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_y} to yaml value "loc2.y" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_z} to yaml value "loc2.z" from file "plugins/SkyBlock/Player/%player%.yml"
- set {_loc2} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
- if location of event-block is not within {_loc1} to {_loc2}:
- cancel event
- set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
- evaluate "send ""%{_prefix}% %{_a}%"" to player"
- on respawn:
- wait a tick
- if file "plugins/SkyBlock/Player/%player%.yml" exists:
- make player execute command "/is home"
- else:
- make player execute command "/is spawn"
- on inventory close:
- {Chest.%player%} is set
- if {Chest::%{Chest.%player%}%} is set:
- loop 27 times:
- set {_s} to slot loop-number -1 of player's current inventory
- if {_s} is not air:
- delete {Chest.%player%}
- stop
- set block at {Chest.%player%} to air
- create 50 of lava particles at {Chest.%player%} offset by 1, 0, 1 at speed 0.5
- delete {Chest::%{chest.%player%}%}
- delete {Chest.%player%}
- on damage:
- set {_prefix} to yaml value "prefix" from file "plugins/SkyBlock/Sprache/%{Language::%attacker%}%.yml"
- set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
- set {_option2} to yaml value "options.attackpermission" from file "plugins/SkyBlock/config.yml"
- set {_option3} to yaml value "options.pvp" from file "plugins/SkyBlock/config.yml"
- set {_a} to yaml value "pvp" from file "plugins/SkyBlock/Sprache/%{Language::%attacker%}%.yml"
- if attacker has permission "%{_option2}%":
- stop
- if "%{_option3}%" is "false":
- if attacker is a player:
- if victim is a player:
- evaluate "send ""%{_prefix}% %{_a}%"" to attacker"
- cancel event
- stop
- else if "%victim%" is "Skeleton", "Zombie", "Enderman", "Creeper", "Spider", "Slime", "Ghast", "Zombie pigman", "Cave spider", "Silverfish", "Blaze", "Magma Cube", "Witch", "Endermite", "Guardian" or "Shulker":
- stop
- if file "plugins/SkyBlock/Player/%attacker%.yml" doesn't exists:
- cancel event
- evaluate "send ""%{_prefix}% %{_a}%"" to attacker"
- else:
- set {_x} to yaml value "loc1.x" from file "plugins/SkyBlock/Player/%attacker%.yml"
- set {_y} to yaml value "loc1.y" from file "plugins/SkyBlock/Player/%attacker%.yml"
- set {_z} to yaml value "loc1.z" from file "plugins/SkyBlock/Player/%attacker%.yml"
- set {_loc1} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
- add 1 to x-coord of {_loc1}
- add 1 to z-coord of {_loc1}
- set {_x} to yaml value "loc2.x" from file "plugins/SkyBlock/Player/%attacker%.yml"
- set {_y} to yaml value "loc2.y" from file "plugins/SkyBlock/Player/%attacker%.yml"
- set {_z} to yaml value "loc2.z" from file "plugins/SkyBlock/Player/%attacker%.yml"
- set {_loc2} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
- if location of attacker is not within {_loc1} to {_loc2}:
- cancel event
- evaluate "send ""%{_prefix}% %{_a}%"" to attacker"
- #==================================================================#
- #=========================== C R A P C O D E =======================#
- #==================================================================#
- on right click with blaze rod:
- if player's tool is blaze rod named "&0&lCruel Stab":
- if target block is bedrock:
- if player has permission "Admin":#
- set {_loc} to location of clicked block
- set {_x} to x-coord of {_loc}
- set {_y} to y-coord of {_loc}
- set {_z} to z-coord of {_loc}
- if file "plugins/SkyBlock/Bedrock/%{_x}%_%{_y}%_%{_z}%.yml" exists:
- set {_l} to yaml value "Leader" from file "plugins/SkyBlock/Bedrock/%{_x}%_%{_y}%_%{_z}%.yml"
- set {_m::*} to yaml list "Member" from file "plugins/SkyBlock/Bedrock/%{_x}%_%{_y}%_%{_z}%.yml"
- open chest with 3 rows named "&8&lSkyblock &7- &6&lAdmin" to player
- set {_s} to size of {_m::*}
- set slot 0 of player's current inventory to ("%{_l}%" parsed as offline player)'s skull named "&cLeader&7 %{_l}%"
- loop {_s} times:
- set slot loop-number of player's current inventory to ("%{_m::%loop-number%}%" parsed as offline player)'s skull named "&6Member&7 %{_m::%loop-number%}%"
- on craft of item frame:
- cancel event
- send "Buggy"
- on ignition:
- if "%player%" is "<none>":
- cancel event
- on explode:
- cancel event
Add Comment
Please, Sign In to add comment