I'm using this code:
and getting this version:
As you can see the error starts at line 192, where my /vote command is defined.
I don't really know what's happening
Addons: Skellett, SkQuery-Lime, TuSKe.
Latest bensku skript version.
[doublepost=1498018078,1498017536][/doublepost]somehow I fixed it, sorry for bothering you guys
code_language.skript:
variables:
{survivaldiamonds} = 0
{hasdiamonds} = 0
{asgdiamonds} = 0
{spawndiamonds} = 0
{skywarsdiamonds} = 0
{skyblockdiamonds} = 0
{leakyfloordiamonds} = 0
command /survivaldiamondsadd5:
description: "The command run when the player clicks on a diamond (5 Diamonds) in the diamond survival menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 5:
increase {survivaldiamonds} by 5
subtract 5 from {diamonds.%player%}
message "&aAdded &35 &bDiamonds &ato &lSurvival"
else:
message "&cYou don't have enough &bDiamonds!"
command /survivaldiamondsadd10:
description: "The command run when the player clicks on a diamond (10 Diamonds) in the diamond survival menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 10:
increase {survivaldiamonds} by 10
subtract 10 from {diamonds.%player%}
message "&aAdded &310 &bDiamonds &ato &lSurvival"
else:
message "&cYou don't have enough &bDiamonds!"
command /survivaldiamondsadd25:
description: "The command run when the player clicks on a diamond (25 Diamonds) in the diamond survival menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 25:
increase {survivaldiamonds} by 25
subtract 25 from {diamonds.%player%}
message "&aAdded &325 &bDiamonds &ato &lSurvival"
else:
message "&cYou don't have enough &bDiamonds!"
command /survivaldiamondsadd50:
description: "The command run when the player clicks on a diamond (50 Diamonds) in the diamond survival menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 50:
increase {survivaldiamonds} by 50
subtract 50 from {diamonds.%player%}
message "&aAdded &350 &bDiamonds &ato &lSurvival"
else:
message "&cYou don't have enough &bDiamonds!"
command /survivaldiamondsaddall:
description: "The command run when the player clicks on a diamond (All Diamonds) in the diamond survival menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
increase {survivaldiamonds} by {diamonds.%player%}
message "&aAdded &3%{diamonds.%player%}% &bDiamonds &ato &lSurvival"
set {diamonds.%player%} to 0
command /hasdiamondsadd5:
description: "The command run when the player clicks on a diamond (5 Diamonds) in the diamond hideandseek menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 5:
increase {hasdiamonds} by 5
subtract 5 from {diamonds.%player%}
message "&aAdded &35 &bDiamonds &ato &6HideAndSeek"
else:
message "&cYou don't have enough &bDiamonds!"
command /hasdiamondsadd10:
description: "The command run when the player clicks on a diamond (10 Diamonds) in the diamond hideandseek menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 10:
increase {hasdiamonds} by 10
subtract 10 from {diamonds.%player%}
message "&aAdded &310 &bDiamonds &ato &6HideAndSeek"
else:
message "&cYou don't have enough &bDiamonds!"
command /hasdiamondsadd25:
description: "The command run when the player clicks on a diamond (25 Diamonds) in the diamond hideandseek menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 25:
increase {hasdiamonds} by 25
subtract 25 from {diamonds.%player%}
message "&aAdded &325 &bDiamonds &ato &6HideAndSeek"
else:
message "&cYou don't have enough &bDiamonds!"
command /hasdiamondsadd50:
description: "The command run when the player clicks on a diamond (50 Diamonds) in the diamond hideandseek menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 50:
increase {hasdiamonds} by 50
subtract 50 from {diamonds.%player%}
message "&aAdded &350 &bDiamonds &ato &6HideAndSeek"
else:
message "&cYou don't have enough &bDiamonds!"
command /hasdiamondsaddall:
description: "The command run when the player clicks on a diamond (All Diamonds) in the diamond hideandseek menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
increase {hasdiamonds} by {diamonds.%player%}
message "&aAdded &3%{diamonds.%player%}% &bDiamonds &ato &6HideAndSeek"
set {diamonds.%player%} to 0
command /asgdiamondsaddall:
description: "The command run when the player clicks on a diamond (All Diamonds) in the diamond skygrid menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
increase {asgdiamonds} by {diamonds.%player%}
message "&aAdded &3%{diamonds.%player%}% &bDiamonds &ato &eSkyGrid"
set {diamonds.%player%} to 0
command /asgdiamondsadd5:
description: "The command run when the player clicks on a diamond (5 Diamonds) in the diamond skygrid menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 5:
increase {asgdiamonds} by 5
subtract 5 from {diamonds.%player%}
message "&aAdded &35 &bDiamonds &ato &eSkyGrid"
else:
message "&cYou don't have enough &bDiamonds!"
command /asgdiamondsadd10:
description: "The command run when the player clicks on a diamond (10 Diamonds) in the diamond skygrid menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 10:
increase {asgdiamonds} by 10
subtract 10 from {diamonds.%player%}
message "&aAdded &310 &bDiamonds &ato &eSkyGrid"
else:
message "&cYou don't have enough &bDiamonds!"
command /asgdiamondsadd25:
description: "The command run when the player clicks on a diamond (25 Diamonds) in the diamond skygrid menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 25:
increase {asgdiamonds} by 25
subtract 25 from {diamonds.%player%}
message "&aAdded &325 &bDiamonds &ato &eSkyGrid"
else:
message "&cYou don't have enough &bDiamonds!"
command /asgdiamondsadd50:
description: "The command run when the player clicks on a diamond (50 Diamonds) in the diamond skygrid menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 50:
increase {asgdiamonds} by 50
subtract 50 from {diamonds.%player%}
message "&aAdded &350 &bDiamonds &ato &eSkyGrid"
else:
message "&cYou don't have enough &bDiamonds!"
command /spawndiamondsaddall:
description: "The command run when the player clicks on a diamond (All Diamonds) in the diamond skygrid menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
increase {spawndiamonds} by {diamonds.%player%}
message "&aAdded &3%{diamonds.%player%}% &bDiamonds &ato &bSpawn"
set {diamonds.%player%} to 0
command /spawndiamondsadd5:
description: "The command run when the player clicks on a diamond (5 Diamonds) in the diamond spawn menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 5:
increase {spawndiamonds} by 5
subtract 5 from {diamonds.%player%}
message "&aAdded &35 &bDiamonds &ato &bSpawn"
else:
message "&cYou don't have enough &bDiamonds!"
command /spawndiamondsadd10:
description: "The command run when the player clicks on a diamond (10 Diamonds) in the diamond spawn menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 10:
increase {spawndiamonds} by 10
subtract 10 from {diamonds.%player%}
message "&aAdded &310 &bDiamonds &ato &bSpawn"
else:
message "&cYou don't have enough &bDiamonds!"
command /spawndiamondsadd25:
description: "The command run when the player clicks on a diamond (25 Diamonds) in the diamond spawn menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 25:
increase {spawndiamonds} by 25
subtract 25 from {diamonds.%player%}
message "&aAdded &325 &bDiamonds &ato &bSpawn"
else:
message "&cYou don't have enough &bDiamonds!"
command /vote:
description: "Vote for the server!"
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
open chest with 1 row named "&7&lVote Websites" to player
format gui slot 0 of player with paper named "&fVote #1" with lore "&7Click here to vote at &fminecraftservers.org!" to close then run player command "/vote1"
format gui slot 1 of player with paper named "&fVote #2" with lore "&7Click here to vote at &fminecraft-mp.com!" to close then run player command "/vote2"
command /vote1:
description: "Vote for the server!"
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
message "------------------------------------"
json("%player%", "&7Vote 1: Click here to vote!||ttp:&7Click here to vote for the server||url:http://minecraftservers.org/vote/444142")
message "------------------------------------"
command /vote2:
description: "Vote for the server!"
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
message "------------------------------------"
json("%player%", "&7Vote 2: Click here to vote!||ttp:&7Click here to vote for the server||url:http://minecraft-mp.com/server/161937/vote/")
message "------------------------------------"
command /spawndiamondsadd50:
description: "The command run when the player clicks on a diamond (50 Diamonds) in the diamond spawn menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 50:
increase {spawndiamonds} by 50
subtract 50 from {diamonds.%player%}
message "&aAdded &350 &bDiamonds &ato &bSpawn"
else:
message "&cYou don't have enough &bDiamonds!"
command /skywarsdiamondsaddall:
description: "The command run when the player clicks on a diamond (All Diamonds) in the diamond skywars menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
increase {skywarsdiamonds} by {diamonds.%player%}
message "&aAdded &3%{diamonds.%player%}% &bDiamonds &ato &9SkyWars"
set {diamonds.%player%} to 0
command /skywarsdiamondsadd5:
description: "The command run when the player clicks on a diamond (5 Diamonds) in the diamond skywars menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 5:
increase {skywarsdiamonds} by 5
subtract 5 from {diamonds.%player%}
message "&aAdded &35 &bDiamonds &ato &9SkyWars"
else:
message "&cYou don't have enough &bDiamonds!"
command /skywarsdiamondsadd10:
description: "The command run when the player clicks on a diamond (10 Diamonds) in the diamond skywars menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 10:
increase {skywarsdiamonds} by 10
subtract 10 from {diamonds.%player%}
message "&aAdded &310 &bDiamonds &ato &9SkyWars"
else:
message "&cYou don't have enough &bDiamonds!"
command /skywarsdiamondsadd25:
description: "The command run when the player clicks on a diamond (25 Diamonds) in the diamond skywars menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 25:
increase {skywarsdiamonds} by 25
subtract 25 from {diamonds.%player%}
message "&aAdded &325 &bDiamonds &ato &9SkyWars"
else:
message "&cYou don't have enough &bDiamonds!"
command /skywarsdiamondsadd50:
description: "The command run when the player clicks on a diamond (50 Diamonds) in the diamond skywars menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 50:
increase {skywarsdiamonds} by 50
subtract 50 from {diamonds.%player%}
message "&aAdded &350 &bDiamonds &ato &9SkyWars"
else:
message "&cYou don't have enough &bDiamonds!"
command /skyblockdiamondsaddall:
description: "The command run when the player clicks on a diamond (All Diamonds) in the diamond skyblock menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
increase {skyblockdiamonds} by {diamonds.%player%}
message "&aAdded &3%{diamonds.%player%}% &bDiamonds &ato &7Skyblock"
set {diamonds.%player%} to 0
command /skyblockdiamondsadd5:
description: "The command run when the player clicks on a diamond (5 Diamonds) in the diamond skyblock menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 5:
increase {skyblockdiamonds} by 5
subtract 5 from {diamonds.%player%}
message "&aAdded &35 &bDiamonds &ato &7Skyblock"
else:
message "&cYou don't have enough &bDiamonds!"
command /skyblockdiamondsadd10:
description: "The command run when the player clicks on a diamond (10 Diamonds) in the diamond skyblock menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 10:
increase {skyblockdiamonds} by 10
subtract 10 from {diamonds.%player%}
message "&aAdded &310 &bDiamonds &ato &7Skyblock"
else:
message "&cYou don't have enough &bDiamonds!"
command /skyblockdiamondsadd25:
description: "The command run when the player clicks on a diamond (25 Diamonds) in the diamond skyblock menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 25:
increase {skyblockdiamonds} by 25
subtract 25 from {diamonds.%player%}
message "&aAdded &325 &bDiamonds &ato &7Skyblock"
else:
message "&cYou don't have enough &bDiamonds!"
command /skyblockdiamondsadd50:
description: "The command run when the player clicks on a diamond (50 Diamonds) in the diamond skyblock menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 50:
increase {skyblockdiamonds} by 50
subtract 50 from {diamonds.%player%}
message "&aAdded &350 &bDiamonds &ato &7Skyblock"
else:
message "&cYou don't have enough &bDiamonds!"
command /leakyfloordiamondsaddall:
description: "The command run when the player clicks on a diamond (All Diamonds) in the diamond skyblock menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
increase {leakyfloordiamonds} by {diamonds.%player%}
message "&aAdded &3%{diamonds.%player%}% &bDiamonds &ato &cLeakyFloor"
set {diamonds.%player%} to 0
command /leakyfloordiamondsadd5:
description: "The command run when the player clicks on a diamond (5 Diamonds) in the diamond leakyfloor menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 5:
increase {leakyfloordiamonds} by 5
subtract 5 from {diamonds.%player%}
message "&aAdded &35 &bDiamonds &ato &cLeakyFloor"
else:
message "&cYou don't have enough &bDiamonds!"
command /leakyfloordiamondsadd10:
description: "The command run when the player click on a diamond (10 Diamonds) in the diamond leakyfloor menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 10:
increase {leakyfloordiamonds} by 10
subtract 10 from {diamonds.%player%}
message "&aAdded &310 &bDiamonds &ato &cLeakyFloor"
else:
message "&cYou don't have enough &bDiamonds!"
command /leakyfloordiamondsadd25:
description: "The command run when the player clicks on a diamond (25 Diamonds) in the diamond leakyfloor menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 25:
increase {leakyfloordiamonds} by 25
subtract 25 from {diamonds.%player%}
message "&aAdded &325 &bDiamonds &ato &cLeakyFloor"
else:
message "&cYou don't have enough &bDiamonds!"
command /leakyfloordiamondsadd50:
description: "The command run when the player clicks on a diamond (50 Diamonds) in the diamond leakyfloor menu."
trigger:
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
if {diamonds.%player%} is more than or equal to 50:
increase {leakyfloordiamonds} by 50
subtract 50 from {diamonds.%player%}
message "&aAdded &350 &bDiamonds &ato &cLeakyFloor"
else:
message "&cYou don't have enough &bDiamonds!"
command /beephideandseek:
description: "The command run when the player clicks on the stone block in the compass menu."
trigger:
wait 1 tick
make player execute command "has join"
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
command /beepsurvival:
description: "The command run when the player clicks on the grass block in the compass menu."
trigger:
execute console command "mvtp %player% SURVIVAL"
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
command /beepasg:
description: "The command run when the player clicks on sand in the compass menu."
trigger:
execute player command "asg"
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
command /beepspawn:
description: "The command run when the player clicks on a beacon in the compass menu."
trigger:
execute player command "spawn"
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
command /beepskywars:
description: "The command run when the player clicks on an iron sword in the compass menu."
trigger:
execute player command "sw join"
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
command /beepskyblock:
description: "The command run when the player clicks on cobblestone in the compass menu."
trigger:
execute player command "is"
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
command /beepleakyfloor:
description: "The command run when the player clicks on lime hardened clay in the compass menu."
trigger:
execute console command "warp lf %player%"
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
command /diamond:
description: "The command run when the player right clicks on the Diamond"
trigger:
wait 1 tick
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
open chest with 1 row named "&aYou have &3%{diamonds.%player%}% &bDiamonds" to player
format gui slot 0 of player with grass block named "&aSurvival" with lore "&9Add &bDiamonds &9to &aSurvival" to close then run player command "/diamondsurvival"
format gui slot 1 of player with stone named "&6HideAndSeek" with lore "&eAdd &bDiamonds &eto &6HideAndSeek" to run player command "/diamondhideandseek"
format gui slot 3 of player with sand named "&eSkyGrid" with lore "&6Add &bDiamonds &6to &eSkyGrid" to run player command "/diamondasg"
format gui slot 6 of player with beacon named "&bSpawn" with lore "&3Add &bDiamonds &3to &bSpawn.||&fSeriously." to run player command "/diamondspawn"
format gui slot 4 of player with iron sword named "&9SkyWars" with lore "&1Add &bDiamonds &1to &9SkyWars" to run player command "/diamondskywars"
format gui slot 2 of player with cobblestone named "&7Skyblock" with lore "&8Add &bDiamonds &8to &7SkyBlock" to run player command "/diamondskyblock"
format gui slot 5 of player with stained_hardened_clay:5 named "&cLeakyFloor" with lore "&4Add &bDiamonds &4to &cLeakyFloor" to run player command "/diamondleakyfloor"
format gui slot 8 of player with diamond named "&aYou have &3%{diamonds.%player%}% &bDiamonds"
command /diamondhideandseek:
description: "The command run when the player clicks on the diamond in the Diamond menu."
trigger:
wait 1 tick
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
open chest with 1 row named "&6HideAndSeek &fhas &3%{hasdiamonds}% &bDiamonds" to player
if {diamonds.%player%} is greater than 4:
format gui slot 0 of player with 5 of diamond named "&aGive 5 &bDiamonds &ato &6HideAndSeek" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/hasdiamondsadd5"
if {diamonds.%player%} is less than 5:
format gui slot 0 of player with 5 of diamond named "&cGive 5 &bDiamonds &cto &6HideAndSeek" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 9:
format gui slot 1 of player with 10 of diamond named "&aGive 10 &bDiamonds &ato &6HideAndSeek" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/hasdiamondsadd10"
if {diamonds.%player%} is less than 10:
format gui slot 1 of player with 10 of diamond named "&cGive 10 &bDiamonds &cto &6HideAndSeek" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 24:
format gui slot 2 of player with 25 of diamond named "&aGive 25 &bDiamonds &ato &6HideAndSeek" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/hasdiamondsadd25"
if {diamonds.%player%} is less than 25:
format gui slot 2 of player with 25 of diamond named "&cGive 25 &bDiamonds &cto &6HideAndSeek" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 49:
format gui slot 3 of player with 50 of diamond named "&aGive 50 &bDiamonds &ato &6HideAndSeek" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/hasdiamondsadd50"
if {diamonds.%player%} is less than 50:
format gui slot 3 of player with 50 of diamond named "&cGive 50 &bDiamonds &cto &6HideAndSeek" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 0:
format gui slot 4 of player with diamond block named "&aGive all of your &bDiamonds &ato &6HideAndSeek" with lore "&fYou have &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/hasdiamondsaddall"
if {diamonds.%player%} is less than 1:
format gui slot 4 of player with diamond block named "&cGive all of your &bDiamonds &cto &6HideAndSeek" with lore "&fYou don't have any &bDiamonds! &fLeft-click to perform the action!" to do nothing
command /diamondsurvival:
description: "The command run when the player clicks on the diamond in the Diamond menu."
trigger:
wait 1 tick
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
open chest with 1 row named "&aSurvival &fhas &3%{survivaldiamonds}% &bDiamonds" to player
if {diamonds.%player%} is greater than 4:
format gui slot 0 of player with 5 of diamond named "&aGive 5 &bDiamonds &ato Survival" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/survivaldiamondsadd5"
if {diamonds.%player%} is less than 5:
format gui slot 0 of player with 5 of diamond named "&cGive 5 &bDiamonds &cto Survival" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 9:
format gui slot 1 of player with 10 of diamond named "&aGive 10 &bDiamonds &ato Survival" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/survivaldiamondsadd10"
if {diamonds.%player%} is less than 10:
format gui slot 1 of player with 10 of diamond named "&cGive 10 &bDiamonds &cto Survival" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 24:
format gui slot 2 of player with 25 of diamond named "&aGive 25 &bDiamonds &ato Survival" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/survivaldiamondsadd25"
if {diamonds.%player%} is less than 25:
format gui slot 2 of player with 25 of diamond named "&cGive 25 &bDiamonds &cto Survival" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 49:
format gui slot 3 of player with 50 of diamond named "&aGive 50 &bDiamonds &ato Survival" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/survivaldiamondsadd50"
if {diamonds.%player%} is less than 50:
format gui slot 3 of player with 50 of diamond named "&cGive 50 &bDiamonds &cto Survival" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 0:
format gui slot 4 of player with diamond block named "&aGive all of your &bDiamonds &ato Survival" with lore "&fYou have &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/survivaldiamondsaddall"
if {diamonds.%player%} is less than 1:
format gui slot 4 of player with diamond block named "&cGive all of your &bDiamonds &cto Survival" with lore "&fYou don't have any &bDiamonds! &fLeft-click to perform the action!" to do nothing
command /diamondasg:
description: "The command run when the player clicks on the diamond in the Diamond menu."
trigger:
wait 1 tick
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
open chest with 1 row named "&eSkyGrid &fhas &3%{asgdiamonds}% &bDiamonds" to player
if {diamonds.%player%} is greater than 4:
format gui slot 0 of player with 5 of diamond named "&aGive 5 &bDiamonds &ato &eSkyGrid" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/asgdiamondsadd5"
if {diamonds.%player%} is less than 5:
format gui slot 0 of player with 5 of diamond named "&cGive 5 &bDiamonds &cto &eSkyGrid" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 9:
format gui slot 1 of player with 10 of diamond named "&aGive 10 &bDiamonds &ato &eSkyGrid" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/asgdiamondsadd10"
if {diamonds.%player%} is less than 10:
format gui slot 1 of player with 10 of diamond named "&cGive 10 &bDiamonds &cto &eSkyGrid" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 24:
format gui slot 2 of player with 25 of diamond named "&aGive 25 &bDiamonds &ato &eSkyGrid" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/asgdiamondsadd25"
if {diamonds.%player%} is less than 25:
format gui slot 2 of player with 25 of diamond named "&cGive 25 &bDiamonds &cto &eSkyGrid" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 49:
format gui slot 3 of player with 50 of diamond named "&aGive 50 &bDiamonds &ato &eSkyGrid" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/asgdiamondsadd50"
if {diamonds.%player%} is less than 50:
format gui slot 3 of player with 50 of diamond named "&cGive 50 &bDiamonds &cto &eSkyGrid" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 0:
format gui slot 4 of player with diamond block named "&aGive all of your &bDiamonds &ato &eSkyGrid" with lore "&fYou have &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/asgdiamondsaddall"
if {diamonds.%player%} is less than 1:
format gui slot 4 of player with diamond block named "&cGive all of your &bDiamonds &cto &eSkyGrid" with lore "&fYou don't have any &bDiamonds! &fLeft-click to perform the action!" to do nothing
command /diamondspawn:
description: "The command run when the player clicks on the diamond in the Diamond menu."
trigger:
wait 1 tick
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
open chest with 1 row named "&bSpawn &fhas &3%{spawndiamonds}% &bDiamonds" to player
if {diamonds.%player%} is greater than 4:
format gui slot 0 of player with 5 of diamond named "&aGive 5 &bDiamonds &ato &bSpawn" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/spawndiamondsadd5"
if {diamonds.%player%} is less than 5:
format gui slot 0 of player with 5 of diamond named "&cGive 5 &bDiamonds &cto &bSpawn" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 9:
format gui slot 1 of player with 10 of diamond named "&aGive 10 &bDiamonds &ato &bSpawn" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/spawndiamondsadd10"
if {diamonds.%player%} is less than 10:
format gui slot 1 of player with 10 of diamond named "&cGive 10 &bDiamonds &cto &bSpawn" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 24:
format gui slot 2 of player with 25 of diamond named "&aGive 25 &bDiamonds &ato &bSpawn" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/spawndiamondsadd25"
if {diamonds.%player%} is less than 25:
format gui slot 2 of player with 25 of diamond named "&cGive 25 &bDiamonds &cto &bSpawn" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 49:
format gui slot 3 of player with 50 of diamond named "&aGive 50 &bDiamonds &ato &bSpawn" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/spawndiamondsadd50"
if {diamonds.%player%} is less than 50:
format gui slot 3 of player with 50 of diamond named "&cGive 50 &bDiamonds &cto &bSpawn" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 0:
format gui slot 4 of player with diamond block named "&aGive all of your &bDiamonds &ato &bSpawn" with lore "&fYou have &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/spawndiamondsaddall"
if {diamonds.%player%} is less than 1:
format gui slot 4 of player with diamond block named "&cGive all of your &bDiamonds &cto &bSpawn" with lore "&fYou don't have any &bDiamonds! &fLeft-click to perform the action!" to do nothing
command /diamondskywars:
description: "The command run when the player clicks on the diamond in the Diamond menu."
trigger:
wait 1 tick
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
open chest with 1 row named "&9SkyWars &fhas &3%{skywarsdiamonds}% &bDiamonds" to player
if {diamonds.%player%} is greater than 4:
format gui slot 0 of player with 5 of diamond named "&aGive 5 &bDiamonds &ato &9SkyWars" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/skywarsdiamondsadd5"
if {diamonds.%player%} is less than 5:
format gui slot 0 of player with 5 of diamond named "&cGive 5 &bDiamonds &cto &9SkyWars" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 9:
format gui slot 1 of player with 10 of diamond named "&aGive 10 &bDiamonds &ato &9SkyWars" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/skywarsdiamondsadd10"
if {diamonds.%player%} is less than 10:
format gui slot 1 of player with 10 of diamond named "&cGive 10 &bDiamonds &cto &9SkyWars" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 24:
format gui slot 2 of player with 25 of diamond named "&aGive 25 &bDiamonds &ato &9SkyWars" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/skywarsdiamondsadd25"
if {diamonds.%player%} is less than 25:
format gui slot 2 of player with 25 of diamond named "&cGive 25 &bDiamonds &cto &9SkyWars" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 49:
format gui slot 3 of player with 50 of diamond named "&aGive 50 &bDiamonds &ato &9SkyWars" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/skywarsdiamondsadd50"
if {diamonds.%player%} is less than 50:
format gui slot 3 of player with 50 of diamond named "&cGive 50 &bDiamonds &cto &9SkyWars" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 0:
format gui slot 4 of player with diamond block named "&aGive all of your &bDiamonds &ato &9SkyWars" with lore "&fYou have &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/skywarsdiamondsaddall"
if {diamonds.%player%} is less than 1:
format gui slot 4 of player with diamond block named "&cGive all of your &bDiamonds &cto &9SkyWars" with lore "&fYou don't have any &bDiamonds! &fLeft-click to perform the action!" to do nothing
command /diamondskyblock:
description: "The command run when the player clicks on the diamond in the Diamond menu."
trigger:
wait 1 tick
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
open chest with 1 row named "&7Skyblock &fhas &3%{skyblockdiamonds}% &bDiamonds" to player
if {diamonds.%player%} is greater than 4:
format gui slot 0 of player with 5 of diamond named "&aGive 5 &bDiamonds &ato &7Skyblock" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/skyblockdiamondsadd5"
if {diamonds.%player%} is less than 5:
format gui slot 0 of player with 5 of diamond named "&cGive 5 &bDiamonds &cto &7Skyblock" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 9:
format gui slot 1 of player with 10 of diamond named "&aGive 10 &bDiamonds &ato &7Skyblock" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/skyblockdiamondsadd10"
if {diamonds.%player%} is less than 10:
format gui slot 1 of player with 10 of diamond named "&cGive 10 &bDiamonds &cto &7Skyblock" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 24:
format gui slot 2 of player with 25 of diamond named "&aGive 25 &bDiamonds &ato &7Skyblock" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/skyblockdiamondsadd25"
if {diamonds.%player%} is less than 25:
format gui slot 2 of player with 25 of diamond named "&cGive 25 &bDiamonds &cto &7Skyblock" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 49:
format gui slot 3 of player with 50 of diamond named "&aGive 50 &bDiamonds &ato &7Skyblock" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/skyblockdiamondsadd50"
if {diamonds.%player%} is less than 50:
format gui slot 3 of player with 50 of diamond named "&cGive 50 &bDiamonds &cto &7Skyblock" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 0:
format gui slot 4 of player with diamond block named "&aGive all of your &bDiamonds &ato &7Skyblock" with lore "&fYou have &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/skyblockdiamondsaddall"
if {diamonds.%player%} is less than 1:
format gui slot 4 of player with diamond block named "&cGive all of your &bDiamonds &cto &7Skyblock" with lore "&fYou don't have any &bDiamonds! &fLeft-click to perform the action!" to do nothing
command /diamondleakyfloor:
description: "The command run when the player clicks on the diamond in the Diamond menu."
trigger:
wait 1 tick
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
open chest with 1 row named "&cLeakyFloor &fhas &3%{leakyfloordiamonds}% &bDiamonds" to player
if {diamonds.%player%} is greater than 4:
format gui slot 0 of player with 5 of diamond named "&aGive 5 &bDiamonds &ato &cLeakyFloor" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/leakyfloordiamondsadd5"
if {diamonds.%player%} is less than 5:
format gui slot 0 of player with 5 of diamond named "&cGive 5 &bDiamonds &cto &cLeakyFloor" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 9:
format gui slot 1 of player with 10 of diamond named "&aGive 10 &bDiamonds &ato &cLeakyFloor" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/leakyfloordiamondsadd10"
if {diamonds.%player%} is less than 10:
format gui slot 1 of player with 10 of diamond named "&cGive 10 &bDiamonds &cto &cLeakyFloor" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 24:
format gui slot 2 of player with 25 of diamond named "&aGive 25 &bDiamonds &ato &cLeakyFloor" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/leakyfloordiamondsadd25"
if {diamonds.%player%} is less than 25:
format gui slot 2 of player with 25 of diamond named "&cGive 25 &bDiamonds &cto &cLeakyFloor" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 49:
format gui slot 3 of player with 50 of diamond named "&aGive 50 &bDiamonds &ato &cLeakyFloor" with lore "&fYou have enough &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/leakyfloordiamondsadd50"
if {diamonds.%player%} is less than 50:
format gui slot 3 of player with 50 of diamond named "&cGive 50 &bDiamonds &cto &cLeakyFloor" with lore "&fYou don't have enough &bDiamonds! &fYou earn 5 every 5 minutes." to do nothing
if {diamonds.%player%} is greater than 0:
format gui slot 4 of player with diamond block named "&aGive all of your &bDiamonds &ato &cLeakyFloor" with lore "&fYou have &bDiamonds! &fLeft-click to perform the action!" to close then run player command "/leakyfloordiamondsaddall"
if {diamonds.%player%} is less than 1:
format gui slot 4 of player with diamond block named "&cGive all of your &bDiamonds &cto &cLeakyFloor" with lore "&fYou don't have any &bDiamonds! &fLeft-click to perform the action!" to do nothing
command /resetdiamonds:
description: "Resets the amount of Diamonds you have to 0."
trigger:
set {diamonds.%player%} to 0
message "&aReset your &bDiamonds to &30."
command /checkdiamonds:
description: "Check the amount of diamonds you have!"
trigger:
message "You have &3%{diamonds.%player%}% &bDiamonds!"
on inventory click:
player is in "world":
player is op:
stop
cancel event
message "&c&lHey! &r&7Sorry, but you can't arrange items here."
on join:
if {diamonds.%player%} is not set:
set {diamonds.%player%} to 0
player's world is "world":
wait 1 tick
set slot 0 of player's inventory to compass named "&aSelector &7(Right Click)" with lore "&9Select something to do!"
set slot 1 of player's inventory to white wool block named "&cC&6o&el&ao&br&9s &7(Right Click)" with lore "&fThe colors used in chat."
set slot 2 of player's inventory to diamond named "&bDiamonds &7(Right Click)" with lore "&3Show how much you love something!"
set slot 8 of player's inventory to paper named "&7Vote (Right Click)" with lore "&fVote for the server and receive rewards!"
on respawn:
player's world is "world":
wait 1 tick
set slot 0 of player's inventory to compass named "&aSelector &7(Right Click)" with lore "&9Select something to do!"
set slot 1 of player's inventory to white wool block named "&cC&6o&el&ao&br&9s &7(Right Click)" with lore "&fThe colors used in chat."
set slot 2 of player's inventory to diamond named "&bDiamonds &7(Right Click)" with lore "&3Show how much you love something!"
set slot 8 of player's inventory to paper named "&7Vote (Right Click)" with lore "&fVote for the server and receive rewards!"
on inventory click:
player's world is "world":
if player is not op:
cancel event
on right click:
player's world is "world":
if player is holding compass named "&aSelector &7(Right Click)" with lore "&9Select something to do!":
wait 1 tick
play sound "BLOCK_NOTE_HAT" to player with volume 1 and pitch 2
open better inventory type "DISPENSER" named "&a&lSelector" to player
format gui slot 4 of player with grass block named "&aSurvival" with lore "&9Play vanilla survival" to run player command "/beepsurvival"
format gui slot 3 of player with stone named "&6HideAndSeek" with lore "&eDisguise yourself as a block and hide from the seekers!" to run player command "/beephideandseek"
format gui slot 5 of player with sand named "&eSkyGrid" with lore "&6Survive on a grid of blocks!" to run player command "/beepasg"
format gui slot 7 of player with beacon named "&bSpawn" with lore "&3Lost your way? Teleport to spawn!" to run player command "/beepspawn"
format gui slot 1 of player with iron sword named "&9SkyWars" with lore "&1Teleport to the SkyWars Lobby" to run player command "/beepskywars"
format gui slot 0 of player with cobblestone named "&7Skyblock" with lore "&8Survive on a floating island!" to run player command "/beepskyblock"
format gui slot 2 of player with stained_hardened_clay:5 named "&cLeakyFloor" with lore "&4Minigame - Be the last one standing as the floor disintegrates!" to run player command "/beepleakyfloor"
if player is holding white wool block named "&cC&6o&el&ao&br&9s &7(Right Click)" with lore "&fThe colors used in chat.":
wait 1 tick
make player execute command "/colors"
if player is holding diamond named "&bDiamonds &7(Right Click)" with lore "&3Show how much you love something!":
wait 1 tick
make player execute command "/diamond"
if player is holding paper named "&7Vote (Right Click)" with lore "&fVote for the server and receive rewards!":
wait 1 tick
make player execute command "/vote"
on item spawn:
if event-entity's world is "world":
cancel event
every 5 minutes:
broadcast "------------------------------------"
json("@a", "&aMake sure to &bsubscribe&a to the &cYouTube&a &bchannel &4I&cd&6i&eo&at&2i&bc&3M&9e&1n&a--they make videos on this server! &6(Click here.)||ttp:&aClick here to open &4I&cd&6i&eo&at&2i&bc&3M&9e&1n&f's &cYouTube &bchannel.||url:https://www.youtube.com/channel/UCiLp1bS4Zosbehp9lzilcIA")
broadcast "------------------------------------"
loop all players:
increase {diamonds.%loop-player%} by 5
send "&3You just received &b5&3 Diamonds! &7(The lobby item)" to loop-player
code_language.skript:
20.06 23:51:09 [Server] WARN [Skript] Possible name conflict of variables {m::%loop-index%} and {m::*} (there might be more conflicts). (json.sk, line 191: set {_m::%loop-index%} to "\"""# """')
20.06 23:51:26 [Server] ERROR [Skript] Invalid use of quotes ("). If you want to use quotes in "quoted text", double them: "". (onelittleskriptToWorkON.sk, line 192: format gui slot 0 of player with paper named "&fVote#1" with lore "&7Click here to vote at &fminecraftservers.org!" to close then run player command "/vote1"')
20.06 23:51:26 [Server] ERROR [Skript] Invalid use of quotes ("). If you want to use quotes in "quoted text", double them: "". (onelittleskriptToWorkON.sk, line 193: format gui slot 1 of player with paper named "&fVote#2" with lore "&7Click here to vote at &fminecraft-mp.com!" to close then run player command "/vote2"')
I don't really know what's happening
Addons: Skellett, SkQuery-Lime, TuSKe.
Latest bensku skript version.
[doublepost=1498018078,1498017536][/doublepost]somehow I fixed it, sorry for bothering you guys