skripts braking in 1.15.2

  • 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 community!

    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.

Mattllama987

Supporter
Aug 5, 2018
225
7
18
Hello all! Im having a pretty big problem with my server. My server was on 1.14.4, and i updated it to 1.15.2, and all the skript are breaking my server. When i restart the server, everything looks all good in the console. But when it gets to loading the skripts, it will be done, and then stops the sever. I removed all the big skript with lots of working, and it seems better, but can still crash sometimes. I only had my chat format skript, and the server loads just fine. It only crashes if i load alot of big skripts. If anyone knows of a way to fix the crashing, please let me know ASAP!

Thanks!
~Matt

Server Version:
Paperspigot: 1.15.2

Skript version:
2.5alpha3
 
you are running a pre release unstable alpha version of skript
upload_2020-4-27_10-14-3.png
 
What version do you think i should use with 1.15.2? But not i cant really remember what version i downloaded. So, it might be the bad version lol. I also updated the addons, and they are working fine. :emoji_slight_smile:
 
What version do you think i should use with 1.15.2? But not i cant really remember what version i downloaded. So, it might be the bad version lol. I also updated the addons, and they are working fine. :emoji_slight_smile:
try 2.4.2 is what im using for 1.15.2
 
did you contact you host before posting here @Mattllama987 ?
If not, let them do some digging, they will most likely find something out of the ordinary :emoji_slight_smile:
 
I think i know what might be causing the crash. Its my rankup skript.
Code:
variables:
    {rankup::baron} = 5000
    {rankup::earl} = 15000
    {rankup::regent} = 75000
    {rankup::knight} = 200000
    {rankup::prince} = 450000
    {rankup::king} = 1250000
on first join:
    set {custom::prefix::%Player%} to "&9[&bOutcast&9]"
on first join:
    execute command "/rankreset %Player%"
command /rankreset [<offlineplayer>]:
    permission: chat.reset
    trigger:
        set {custom::prefix::%arg-1%} to "&9[&bOutcast&9]"
        set {ranksssss::%arg-1%} to "&9[&bOutcast&9]"
        set {rank::pick::%arg-1%} to 0
        execute player command "/pex user %arg-1% group set Outcast"
        send "&c(&4!&c) &7You reset %arg-1%'s rank!"
command /rankup:
    trigger:
        open chest with 3 rows named "&bRankup!" to player
        format gui slot 0, 8, 18 and 26 of player with glowing structure block named "&bRankup"
        format gui slot 1, 2, 3, 4, 5, 6, 7, 9, 10, 16, 17, 19, 20, 21, 22, 23, 24 and 25 of player with black glass pane named ""
        format gui slot 13 of player with barrier named "&c&lCancel!" to close
        if {custom::prefix::%player%} is "&9[&bOutcast&9]":
            format gui slot 11 of player with green concrete named "&a&lRankup!" with lore "&8--+----------+--", "&7* Your rank %{custom::prefix::%player%}%", "&7* Next rank: &9[&bBaron&9]", "&7* Cost: &e%{rankup::baron}%" and "&8--+----------+--" to run:
                if player's money is more than or equal to {rankup::baron}:
                    set {custom::prefix::%player%} to "&9[&bBaron&9]"
                    add 1 to {maxhomes::%player%}
                    add 1 to {rank::pick::%player%}
                    set {ranksssss::%player%} to "&9[&bBaron&9]"
                    set {custom::prefix::%player%} to "&9[&bBaron&9]"
                    remove {rankup::baron} from player's balance
                    broadcast "[&bRANKUP&f] &7%player% just rankup to &9[&bBaron&9]!"
                    close inventory of player
                else:
                    send "&c(&4!&c) &cYou need: &e%{rankup::baron}%&b to rankup!"
        if {ranksssss::%player%} is "&9[&bBaron&9]":
            format gui slot 11 of player with green concrete named "&a&lRankup!" with lore "&8--+----------+--", "&7* Your rank %{custom::prefix::%player%}%", "&7* Next rank: &9[&bEarl&9]", "&7* Cost: &e%{rankup::earl}%" and "&8--+----------+--" to run:
                if player's money is more than or equal to {rankup::earl}:
                    set {custom::prefix::%player%} to "&9[&bEarl&9]"
                    add 1 to {rank::pick::%player%}
                    add 1 to {maxhomes::%player%}
                    set {ranksssss::%player%} to "&9[&bEarl&9]"
                    set {custom::prefix::%player%} to "&9[&bEarl&9]"
                    remove {rankup::earl} from player's balance
                    broadcast "[&bRANKUP&f] &7%player% just rankup to &9[&bEarl&9]!"
                    close inventory of player
                else:
                    send "&c(&4!&c) &cYou need: &e%{rankup::earl}%&b to rankup!"
        if {ranksssss::%player%} is "&9[&bEarl&9]":
            format gui slot 11 of player with green concrete named "&a&lRankup!" with lore "&8--+----------+--", "&7* Your rank %{custom::prefix::%player%}%", "&7* Next rank: &9[&bRegent&9]", "&7* Cost: &e%{rankup::regent}%" and "&8--+----------+--" to run:
                if player's money is more than or equal to {rankup::regent}:
                    set {custom::prefix::%player%} to "&9[&bRegent&9]"
                    add 1 to {rank::pick::%player%}
                    add 1 to {maxhomes::%player%}
                    set {ranksssss::%player%} to "&9[&bRegent&9]"
                    set {custom::prefix::%player%} to "&9[&bRegent&9]"
                    remove {rankup::regent} from player's balance
                    broadcast "[&bRANKUP&f] &7%player% just rankup to &9[&bRegent&9]!"
                    close inventory of player
                else:
                    send "&c(&4!&c) &cYou need: &e%{rankup::knight}%&b to rankup!"
        if {ranksssss::%player%} is "&9[&bRegent&9]":
            format gui slot 11 of player with green concrete named "&a&lRankup! &bKnight" with lore "&8--+----------+--", "&7* Your rank %{custom::prefix::%player%}%", "&7* Next rank: &9[&bKnight&9] or &9[&bLady&9]", "&7* Cost: &e%{rankup::knight}%" and "&8--+----------+--" to run:
                if player's money is more than or equal to {rankup::knight}:
                    set {custom::prefix::%player%} to "&9[&bKnight&9]"
                    add 1 to {rank::pick::%player%}
                    add 1 to {maxhomes::%player%}
                    set {ranksssss::%player%} to "&9[&bKnight&9]"
                    set {custom::prefix::%player%} to "&9[&bKnight&9]"
                    remove {rankup::regent} from player's balance
                    broadcast "[&bRANKUP&f] &7%player% just rankup to &9[&bKnight&9]"
                    close inventory of player
                else:
                    send "&c(&4!&c) &cYou need: &e%{rankup::regent}%&b to rankup!"
        if {ranksssss::%player%} is "&9[&bRegent&9]":
            format gui slot 15 of player with green concrete named "&a&lRankup! &bLady" with lore "&8--+----------+--", "&7* Your rank %{custom::prefix::%player%}%", "&7* Next rank: &9[&bKnight&9] or &9[&bLady&9]", "&7* Cost: &e%{rankup::knight}%" and "&8--+----------+--" to run:
                if player's money is more than or equal to {rankup::knight}:
                    set {custom::prefix::%player%} to "&9[&bLady&9]"
                    add 1 to {rank::pick::%player%}
                    add 1 to {maxhomes::%player%}
                    set {ranksssss::%player%} to "&9[&bLady&9]"
                    set {custom::prefix::%player%} to "&9[&bLady&9]"
                    remove {rankup::regent} from player's balance
                    broadcast "[&bRANKUP&f] &7%player% just rankup to &9[&bLady&9]"
                    close inventory of player
                else:
                    send "&c(&4!&c) &cYou need: &e%{rankup::knight}%&b to rankup!"
        if {ranksssss::%player%} is "&9[&bKnight&9]" or "&9[&bLady&9]":
            format gui slot 11 of player with green concrete named "&a&lRankup! &bPrince" with lore "&8--+----------+--", "&7* Your rank %{custom::prefix::%player%}%", "&7* Next rank: &9[&bPrince&9] or &9[&bPrincess&9]", "&7* Cost: &e%{rankup::prince}%" and "&8--+----------+--" to run:
                if player's money is more than or equal to {rankup::prince}:
                    add 1 to {rank::pick::%player%}
                    add 1 to {maxhomes::%player%}
                    set {custom::prefix::%player%} to "&9[&bPrince&9]"
                    set {ranksssss::%player%} to "&9[&bPrince&9]"
                    set {custom::prefix::%player%} to "&9[&bPrince&9]"
                    remove {rankup::regent} from player's balance
                    broadcast "[&bRANKUP&f] &7%player% just rankup to &9[&bPrince&9]"
                    close inventory of player
                else:
                    send "&c(&4!&c) &cYou need: &e%{rankup::prince}%&b to rankup!"
        if {ranksssss::%player%} is "&9[&bKnight&9]" or "&9[&bLady&9]":
            format gui slot 15 of player with green concrete named "&a&lRankup! &bPrincess" with lore "&8--+----------+--", "&7* Your rank %{custom::prefix::%player%}%", "&7* Next rank: &9[&bPrince&9] or &9[&bPrincess&9]", "&7* Cost: &e%{rankup::prince}%" and "&8--+----------+--" to run:
                if player's money is more than or equal to {rankup::prince}:
                    set {custom::prefix::%player%} to "&9[&bPrincess&9]"
                    add 1 to {rank::pick::%player%}
                    add 1 to {maxhomes::%player%}
                    set {ranksssss::%player%} to "&9[&bPrincess&9]"
                    set {custom::prefix::%player%} to "&9[&bPrincess&9]"
                    remove {rankup::regent} from player's balance
                    broadcast "[&bRANKUP&f] &7%player% just rankup to &9[&bPrincess&9]"
                    close inventory of player
                else:
                    send "&c(&4!&c) &cYou need: &e%{rankup::prince}%&b to rankup!"
        if {ranksssss::%player%} is "&9[&bPrince&9]" or "&9[&bPrincess&9]":
            format gui slot 11 of player with green concrete named "&a&lRankup! &bKing" with lore "&8--+----------+--", "&7* Your rank %{custom::prefix::%player%}%", "&7* Next rank: &9[&bKing&9] or &9[&bQueen&9]", "&7* Cost: &e%{rankup::king}%" and "&8--+----------+--" to run:
                if player's money is more than or equal to {rankup::king}:
                    set {custom::prefix::%player%} to "&9[&bKing&9]"
                    add 1 to {rank::pick::%player%}
                    add 1 to {maxhomes::%player%}
                    set {ranksssss::%player%} to "&9[&bKing&9]"
                    set {custom::prefix::%player%} to "&9[&bKing&9]"
                    remove {rankup::regent} from player's balance
                    broadcast "[&bRANKUP&f] &7%player% just rankup to &9[&bKing&9]"
                    close inventory of player
                else:
                    send "&c(&4!&c) &cYou need: &e%{rankup::king}%&b to rankup!"
        if {ranksssss::%player%} is "&9[&bPrince&9]" or "&9[&bPrincess&9]":
            format gui slot 15 of player with green concrete named "&a&lRankup! &bQueen" with lore "&8--+----------+--", "&7* Your rank %{custom::prefix::%player%}%", "&7* Next rank: &9[&bKing&9] or &9[&bQueen&9]", "&7* Cost: &e%{rankup::king}%" and "&8--+----------+--" to run:
                if player's money is more than or equal to {rankup::king}:
                    set {custom::prefix::%player%} to "&9[&bQueen&9]"
                    add 1 to {rank::pick::%player%}
                    add 1 to {maxhomes::%player%}
                    set {ranksssss::%player%} to "&9[&bQueen&9]"
                    set {custom::prefix::%player%} to "&9[&bQueen&9]"
                    remove {rankup::regent} from player's balance
                    broadcast "[&bRANKUP&f] &7%player% just rankup to &9[&bQueen&9]"
                    close inventory of player
                else:
                    send "&c(&4!&c) &cYou need: &e%{rankup::king}%&b to rankup!"
command /ranks:
    trigger:
        open chest with 1 rows named "&2Ranks" to player
        if player's balance is less than or equal to {rankup::baron}:
            format gui slot 0 of player with red glass named "&bBaron" with lore "&4Rank Amount:", "    &f$%{rankup::baron}%", "", "&aRewards:", "    &a+ &fx2.5 Sell Multiplier", "    &a+ &f250 Claimblocks" and "    &a+ 1 home"
        if player's balance is more than or equal to {rankup::baron}:
            format gui slot 0 of player with green glass named "&bBaron" with lore "&4Rank Amount:", "    &f$%{rankup::baron}%", "", "&aRewards:", "    &a+ &fx2.5 Sell Multiplier", "    &a+ &f250 Claimblocks" and "    &a+ 1 home"
        if player's balance is less than or equal to {rankup::earl}:
            format gui slot 1 of player with red glass named "&bEarl" with lore "&4Rank Amount:", "    &f$%{rankup::earl}%", "", "&aRewards:", "    &a+ &fx4 Sell Multiplier", "    &a+ &f500 Claimblocks" and "    &a+ 1 home"
        if player's balance is more than or equal to {rankup::earl}:
            format gui slot 1 of player with green glass named "&bEarl" with lore "&4Rank Amount:", "    &f$%{rankup::earl}%", "", "&aRewards:", "    &a+ &fx4 Sell Multiplier", "    &a+ &f500 Claimblocks" and "    &a+ 1 home"
        if player's balance is less than or equal to {rankup::regent}:
            format gui slot 2 of player with red glass named "&bRegent" with lore "&4Rank Amount:", "    &f$%{rankup::regent}%", "", "&aRewards:", "    &a+ &fx5.5 Sell Multiplier", "    &a+ &f750 Claimblocks" and "    &a+ 1 home"
        if player's balance is more than or equal to {rankup::regent}:
            format gui slot 2 of player with green glass named "&bRegent" with lore "&4Rank Amount:", "    &f$%{rankup::regent}%", "", "&aRewards:", "    &a+ &fx5.5 Sell Multiplier", "    &a+ &f750 Claimblocks" and "    &a+ 1 home"
        if player's balance is less than or equal to {rankup::knight}:
            format gui slot 3 of player with red glass named "&bKnight/Lady" with lore "&4Rank Amount:", "    &f$%{rankup::knight}%", "", "&aRewards:", "    &a+ &fx7 Sell Multiplier", "    &a+ &f1000 Claimblocks" and "    &a+ 1 home"
        if player's balance is more than or equal to {rankup::regent}:
            format gui slot 3 of player with green glass named "&bKnight/Lady" with lore "&4Rank Amount:", "    &f$%{rankup::knight}%", "", "&aRewards:", "    &a+ &fx7 Sell Multiplier", "    &a+ &f1000 Claimblocks" and "    &a+ 1 home"
        if player's balance is less than or equal to {rankup::prince}:
            format gui slot 4 of player with red glass named "&bPrince/Princess" with lore "&4Rank Amount:", "    &f$%{rankup::prince}%", "", "&aRewards:", "    &a+ &fx8.5 Sell Multiplier", "    &a+ &f1500 Claimblocks" and "    &a+ 1 home"
        if player's balance is more than or equal to {rankup::prince}:
            format gui slot 4 of player with green glass named "&bPrince/Princess" with lore "&4Rank Amount:", "    &f$%{rankup::prince}%", "", "&aRewards:", "    &a+ &fx8.5 Sell Multiplier", "    &a+ &f1500 Claimblocks" and "    &a+ 1 home"
        if player's balance is less than or equal to {rankup::king}:
            format gui slot 5 of player with red glass named "&bKing/Queen" with lore "&4Rank Amount:", "    &f$%{rankup::king}%", "", "&aRewards:", "    &a+ &fx10 Sell Multiplier", "    &a+ &f2000 Claimblocks" and "    &a+ 1 home"
        if player's balance is more than or equal to {rankup::king}:
            format gui slot 5 of player with green glass named "&bKing/Queen" with lore "&4Rank Amount:", "    &f$%{rankup::king}%", "", "&aRewards:", "    &a+ &fx10 Sell Multiplier", "    &a+ &f2000 Claimblocks" and "    &a+ 1 home"
 
Status
Not open for further replies.