Hello guys... So just before, i made a skript... there were some errors, so i added some plugins.... After i added them, i couldn't reload my skript, because when i typed in /sk reload cookie it just said:
[Skript] Reloading cookie.sk...
An internal error occurred while attempting to perform this command
I would be very happy if someone could help!
[Skript] Reloading cookie.sk...
An internal error occurred while attempting to perform this command
I would be very happy if someone could help!
iConomy
Adminshop
Chestshop
Worldedit
Worldguard
Adminshop
Chestshop
Worldedit
Worldguard
Code:
options:
powerclick.1: 5000
powerclick.2: 10000
powerclick.3: 20000
powerclick.4: 40000
on join:
if {cookie.%player%} is not set:
set {cookie.%player%} to 0
if {cpk.%player%} is not set:
set {cpk.%player%} to 1
every 5 seconds:
loop all players:
if {cpk.%loop-player%} is not set:
set {cpk.%loop-player%} to 1
command /cookie:cookieclicker:
aliases: cookie, cookieclicker, cookiec, cclicker
trigger:
wait 3 ticks
open chest with 1 row named "&d&lCookie" to player
wait 3 ticks
format slot 4 of player with light green wool named "&dCookies" with lore "&dKlik for at få cookies!" to run [make console execute command "/getcookies %player%"]
format slot 0 of player with arrow named "&2Opgraderinger!" with lore "&aKlik, for at gå til opgraderinger" to close then run [make player execute command "/upgradecookies"]
format slot 8 of player with arrow named "&2Opgraderinger!" with lore "&aKlik for at gå til opgraderinger" to close then run [make player execute command "/upgradecookies"]
command /cookie:getcookies [<player>]:
executable by: console
aliases: getcookies
trigger:
add {cpk.%arg-1%} to {cookie.%arg-1%}
command /cookie:cookies:
aliases: cookies
trigger:
send "&aDu har &2%{cookie.%player%}% &aCookies!"
command /cookie:setcookies [<offline player>] [<number>]:
aliases: setcookies
permission: Cookie.set
permission message: &fUnknown command. Type "/help" for help.
trigger:
if arg-1 is set:
if arg-2 is set:
set {cookie.%arg-1%} to arg-2
send "&aDu satte &2%arg-1%&a's cookies til &2%arg-2%"
else:
send "&6&l::: &e&oKORREKT BRUG &6&l::: &a/setcookies <Spiller> <Antal>"
else:
send "&6&l::: &e&oKORREKT BRUG &6&l::: &a/setcookies <Spiller> <Antal>"
command /cookie:upgrade:
aliases: upgradecookies
trigger:
wait 3 ticks
open chest with 3 rows named "&2Cookie Upgrades" to player
wait 3 ticks
format slot 26 of player with red wool named "&4Tilbage" with lore "&cKlik for at komme tilbage!" to close then run [make player execute command "/cookie"]
if {cpk.%player%} is 1:
format slot 0 of player with wooden hoe named "&6&lPowerClick" with lore "&aUpgrader, så du får 2 cookies per click!||&r||&cKoster: {@powerclick.1}" to close then run [make player execute command "/opgradercookie powerclick.1"]
command /cookie:opgradercookie [<text>]:
trigger:
if arg-1 is "powerclick.1":
if player's balance is greater than {@powerclick.1}:
subtract {@powerclick.1} from player's balance
set {cpk.%player%} to 2
send "&2&lSUCCES - &aDu købte opgraderingen: &6&lPowerClick &7- &aEr nu i level 1 &2(2 Cookies per klik!)"
else:
send "&4&lFEJL - &cDu har ikke penge nok"
if arg-1 is "powerclick.2":
if player's balance is greater than or equal to {@powerclick.2}:
subtract {@powerclick.2} from player's balance
set {cpk.%player%} to 3
send "&2&lSUCCES - &aDu købte opgraderingen: &6&lPowerClick &7- &aEr nu i level 2 &2(3 Cookies per klik!)"
else:
send "&4&lFEJL - &cDu har ikke penge nok"