Skellett - The beast addon!

Addon Skellett - The beast addon! 2.0.10

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

HI @LimeGlass
I get the following error on server start:

Code:
[15:24:26] [Server thread/ERROR]: #!#! Stack trace:
[15:24:26] [Server thread/ERROR]: #!#! java.lang.IllegalStateException: zip file closed
[15:24:26] [Server thread/ERROR]: #!#!     at java.util.zip.ZipFile.ensureOpen(Unknown Source)
[15:24:26] [Server thread/ERROR]: #!#!     at java.util.zip.ZipFile.getEntry(Unknown Source)
[15:24:26] [Server thread/ERROR]: #!#!     at java.util.jar.JarFile.getEntry(Unknown Source)
[15:24:26] [Server thread/ERROR]: #!#!     at java.util.jar.JarFile.getJarEntry(Unknown Source)
[15:24:26] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:100)
[15:24:26] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:84)
[15:24:26] [Server thread/ERROR]: #!#!     at java.lang.ClassLoader.loadClass(Unknown Source)
[15:24:26] [Server thread/ERROR]: #!#!     at java.lang.ClassLoader.loadClass(Unknown Source)
[15:24:26] [Server thread/ERROR]: #!#!     at com.gmail.thelimeglass.MySQL.EffMySQLConnect.execute(EffMySQLConnect.java:35)
[15:24:26] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:52)
[15:24:26] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
[15:24:26] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[15:24:26] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:57)
[15:24:26] [Server thread/ERROR]: #!#!     at ch.njol.skript.events.EvtScript.register(EvtScript.java:61)
[15:24:26] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader$3.call(ScriptLoader.java:757)
[15:24:26] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader$3.call(ScriptLoader.java:1)
[15:24:26] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:776)
[15:24:26] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.lambda$1(ScriptLoader.java:409)
[15:24:26] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:428)
[15:24:26] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.lambda$0(ScriptLoader.java:350)
[15:24:26] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:380)
[15:24:26] [Server thread/ERROR]: #!#!     at ch.njol.skript.Skript$2.run(Skript.java:527)
[15:24:26] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftTask.run(CraftTask.java:82)
[15:24:26] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:449)
[15:24:26] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:1003)
[15:24:26] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:439)
[15:24:26] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:938)
[15:24:26] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:836)
[15:24:26] [Server thread/ERROR]: #!#!     at java.lang.Thread.run(Unknown Source)
[15:24:26] [Server thread/ERROR]: #!#!
[15:24:26] [Server thread/ERROR]: #!#! Version Information:
[15:24:26] [Server thread/ERROR]: #!#!   Skript: 2.3.5 (latest)
[15:24:26] [Server thread/ERROR]: #!#!     Flavor: skriptlang-github
[15:24:26] [Server thread/ERROR]: #!#!     Date: 2019-02-09
[15:24:26] [Server thread/ERROR]: #!#!   Bukkit: 1.13.2-R0.1-SNAPSHOT
[15:24:26] [Server thread/ERROR]: #!#!   Minecraft: 1.13.2
[15:24:26] [Server thread/ERROR]: #!#!   Java: 1.8.0_121 (Java HotSpot(TM) 64-Bit Server VM 25.121-b13)
[15:24:26] [Server thread/ERROR]: #!#!   OS: Windows 8.1 amd64 6.3
[15:24:26] [Server thread/ERROR]: #!#!
[15:24:26] [Server thread/ERROR]: #!#! Server platform: Paper
[15:24:26] [Server thread/ERROR]: #!#!
[15:24:26] [Server thread/ERROR]: #!#! Current node: null
[15:24:26] [Server thread/ERROR]: #!#! Current item: [skellett] connect [to] mysql

What does it mean?
I suggest using skript-db for MySQL rather than Skellett's and disabling Skelletts. It's old and outdated MySQL methods.
 
open book to player doesn't work on 1.13.2. @LimeGlass
This is the error:
Code:
06.02 09:42:55 [Server] WARN java.lang.NoSuchMethodException: net.minecraft.server.v1_13_R2.PacketPlayOutCustomPayload.<init>(java.lang.String, net.minecraft.server.v1_13_R2.PacketDataSerializer)
06.02 09:42:55 [Server] WARN at java.lang.Class.getConstructor0(Class.java:3082)
06.02 09:42:55 [Server] WARN at java.lang.Class.getConstructor(Class.java:1825)
06.02 09:42:55 [Server] WARN at com.gmail.thelimeglass.Books.EffOpenBook.execute(EffOpenBook.java:52)
06.02 09:42:55 [Server] WARN at ch.njol.skript.lang.Effect.run(Effect.java:52)

Here is a replacer for that effect using skript-mirror, if you still need it (1.13.2):
code_language.skript:
import:
    org.bukkit.Bukkit
    io.netty.buffer.Unpooled

option nms:
    get:
        set {_nms} to Bukkit.getServer().getClass().getPackage().getName().split("\.")[3]
        return "net.minecraft.server.%{_nms}%"

import:
    {@nms}.PacketPlayOutCustomPayload
    {@nms}.PacketDataSerializer
    {@nms}.EnumHand
    {@nms}.MinecraftKey


#will change to Open Book packet in 1.14: https://wiki.vg/Pre-release_protocol#Open_Book
effect open book %itemstack% to %player%:
    trigger:
        set {_p} to expression-2
        set {_held} to tool of {_p}
        set {_book} to expression-1

        set tool of {_p} to {_book}

        set {_serializer} to a new PacketDataSerializer(Unpooled.buffer()).a(EnumHand.MAIN_HAND!)
        set {_key} to MinecraftKey.a("minecraft:book_open")
        set {_packet} to a new PacketPlayOutCustomPayload({_key}, {_serializer})
        {_p}.getHandle().playerConnection!.sendPacket({_packet})

        set tool of {_p} to {_held}
 
@LimeGlass any plans on updating the plugin to work with latest 1.14 ? At the moment it seems to be broken. When plugin is installed you can not even login to the server.

[10:06:51] [Server thread/INFO]: player181717[/127.0.0.1:53671] logged in with entity id 177 at ([Lyria]-23.91385688722265, 120.11860873561204, -95.86006511194678)
[10:06:51] [Server thread/INFO]: player181717 lost connection: Internal Exception: java.lang.IllegalStateException: EvtPacket may only be triggered synchronously.
[10:06:51] [Server thread/INFO]: player181717 left the game
 
@LimeGlass any plans on updating the plugin to work with latest 1.14 ? At the moment it seems to be broken. When plugin is installed you can not even login to the server.

[10:06:51] [Server thread/INFO]: player181717[/127.0.0.1:53671] logged in with entity id 177 at ([Lyria]-23.91385688722265, 120.11860873561204, -95.86006511194678)
[10:06:51] [Server thread/INFO]: player181717 lost connection: Internal Exception: java.lang.IllegalStateException: EvtPacket may only be triggered synchronously.
[10:06:51] [Server thread/INFO]: player181717 left the game
Disable packets
 
im using skript 2.4 with skellett 1.9.8 on paperspigot 1.14.4
books not working i dont know why can you help me?

My skript
Code:
function openBook(p: player):
    set {_book} to a new written book
    set {_component} to a new text component with "     &6&lYAZ INDIRIMI%nl%%nl%&cClasy Indirim Fırsatı¿ %nl%%nl%Marketten istediğin eşyayı hemen indirimli olarak alabilirsin&o.%nl%%nl%   &2Özel Paket, VIP, %nl%       &cSpawner%nl%   ve daha fazlası%nl%%nl% "
    set {_component2} to a text component with "&4&nTıkla ve markete git!"
    add hover event with action SHOW_TEXT with text "&fBuraya tıklayarak sunucu sitesine gidebilirsin &o!" to text component {_component2}
    add click event with action OPEN_URL with link "https://clasy.network" to text component {_component2}
    add text component {_component} and {_component2} to book {_book}
    open book {_book} to {_p}

command /test:
    trigger:
        openBook(player)

Error when i reload
upload_2020-2-23_23-14-14.png
 
im using skript 2.4 with skellett 1.9.8 on paperspigot 1.14.4
books not working i dont know why can you help me?

My skript
Code:
function openBook(p: player):
    set {_book} to a new written book
    set {_component} to a new text component with "     &6&lYAZ INDIRIMI%nl%%nl%&cClasy Indirim Fırsatı¿ %nl%%nl%Marketten istediğin eşyayı hemen indirimli olarak alabilirsin&o.%nl%%nl%   &2Özel Paket, VIP, %nl%       &cSpawner%nl%   ve daha fazlası%nl%%nl% "
    set {_component2} to a text component with "&4&nTıkla ve markete git!"
    add hover event with action SHOW_TEXT with text "&fBuraya tıklayarak sunucu sitesine gidebilirsin &o!" to text component {_component2}
    add click event with action OPEN_URL with link "https://clasy.network" to text component {_component2}
    add text component {_component} and {_component2} to book {_book}
    open book {_book} to {_p}

command /test:
    trigger:
        openBook(player)

Error when i reload
View attachment 4247
Try just written book or book
 
Removed fireworks (I added them in vanilla Skript)

How was this implemented in vanilla Skript? The old script I have to launch random fireworks when a set block is clicked used:

Code:
launch fireworks at {_loc} with duration 2

But this will no longer work in 1.15.2 with Skript 2.4.1 and I'm not sure what to change it to as the documentation I can find doesn't seem to allow for random fireworks only a set one
 
Disguise stuff does not work anymore? Using latest skellett and LibsDisguise v9.8.0?

This does nothing:

Code:
on spawn of zombie:
    wait 1 second
    broadcast "disguising"
    set {_d} to a new disguise with type PLAYER with username "sevenhours"
    #set {_d} to a new disguise with type RABBIT
    set {_entity} to last spawned zombie
    set disguise of {_entity} to {_d}
 
Disguise stuff does not work anymore? Using latest skellett and LibsDisguise v9.8.0?

This does nothing:

Code:
on spawn of zombie:
    wait 1 second
    broadcast "disguising"
    set {_d} to a new disguise with type PLAYER with username "sevenhours"
    #set {_d} to a new disguise with type RABBIT
    set {_entity} to last spawned zombie
    set disguise of {_entity} to {_d}
I think the type PLAYER needs to be in a string, also make sure LibsDisguises is enabled in the config.yml
 
I think the type PLAYER needs to be in a string, also make sure LibsDisguises is enabled in the config.yml

For me it works when spawning a zombie via command and then disguise it, but not in "on spawn" event for some weird reason.
 
On latest version, placing of schematics no longer working?
Does not work:
paste schematic "myschematic" at player
 
Strange, I found it in the DOCS. However, will you be able to implement something like this? I can not find any other addon working with AsyncWorldEdit + Skript on 1.15.2
 
Strange, I found it in the DOCS. However, will you be able to implement something like this? I can not find any other addon working with AsyncWorldEdit + Skript on 1.15.2
You can with SkWaze addon and Builder plugin but it's block by block placed by NPC, I could implement pasting WorldEdit/Sponge schematics and NBT structures in a next update of SkWaze if you let me some time.
 
Suggestion:

Add a
Code:
update inventory of player
method.

What it does:
Uses the update inventory method in spigot - player#updateInventory