• Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

jotoko3

Member
Apr 27, 2018
4
0
0
19
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!

iConomy
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"
 
Attachment:
lort.lort.png


Version of MC: 1.8.9
Skript Version: Don't know how to find it but it says "you're currently running the latest stable version of skript"
Screenshot:
2018-04-28_15.56.42.png

[doublepost=1524924063,1524923882][/doublepost]+ the funny thing is that it's only on that server... If i go to my other server, everything is fine...
 
Attachment:
View attachment 2046

Version of MC: 1.8.9
Skript Version: Don't know how to find it but it says "you're currently running the latest stable version of skript"
Screenshot:
View attachment 2048
[doublepost=1524924063,1524923882][/doublepost]+ the funny thing is that it's only on that server... If i go to my other server, everything is fine...
post what the error is, it will be in console
 
Also if you do /version Skript (it will tell you the version) Or at least if you know where you downloaded it from.... for example if you are running Njols 4 year old version you probably got it from Bukkit, if you are running bensku's current version you probably got it from Skunity's download page.
 
Status
Not open for further replies.