#1.20.6 issues

1 messages · Page 1 of 1 (latest)

prisma zealot
#

Hello,
I'm starting my server and I have this error:

java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
        at SkyWarsReloaded 5.6.32.jar/com.walrusone.skywarsreloaded.nms.NMSUtils.loadNMS(NMSUtils.java:19) ~[SkyWarsReloaded 5.6.32.jar:?]
        at SkyWarsReloaded 5.6.32.jar/com.walrusone.skywarsreloaded.SkyWarsReloaded.onEnable(SkyWarsReloaded.java:170) ~[SkyWarsReloaded 5.6.32.jar:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:287) ~[slimeworldmanager-api-1.20.6-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[slimeworldmanager-1.20.6.jar:1.20.6-16004-7c72925]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[slimeworldmanager-1.20.6.jar:1.20.6-16004-7c72925]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:519) ~[slimeworldmanager-api-1.20.6-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:604) ~[slimeworldmanager-1.20.6.jar:1.20.6-16004-7c72925]
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:553) ~[slimeworldmanager-1.20.6.jar:1.20.6-16004-7c72925]
        at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:693) ~[slimeworldmanager-1.20.6.jar:1.20.6-16004-7c72925]
        at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:437) ~[slimeworldmanager-1.20.6.jar:1.20.6-16004-7c72925]
        at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:323) ~[slimeworldmanager-1.20.6.jar:1.20.6-16004-7c72925]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1154) ~[slimeworldmanager-1.20.6.jar:1.20.6-16004-7c72925]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[slimeworldmanager-1.20.6.jar:1.20.6-16004-7c72925]
        at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]```

Server info: `1.20.6-16004-develop@7c72925` (asp)
rapid elbow
#

Hey @everyone, could you guys use the /about command and share the chat result with me?

#

It is likely something wrong with the formatting of your Spigot version? Are you using regular Spigot? Paper? Or something else?

prisma zealot
rapid elbow
#

Thanks! Could you test an update for me with a potential fix?

#

@prisma zealot

prisma zealot
#

You missed smth with config ```java
[14:42:23 ERROR]: Error occurred while enabling Skywars v5.6.32 (Is it up to date?)
java.lang.NullPointerException: Cannot invoke "com.walrusone.skywarsreloaded.config.Config.debugEnabled()" because the return value of "com.walrusone.skywarsreloaded.SkyWarsReloaded.getCfg()" is null
at com.walrusone.skywarsreloaded.nms.NMSUtils.loadNMS(NMSUtils.java:22) ~[SWR-latest.jar:?]
at com.walrusone.skywarsreloaded.SkyWarsReloaded.onEnable(SkyWarsReloaded.java:170) ~[SWR-latest.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:281) ~[slimeworldmanager-api-1.20.4-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:190) ~[slimeworldmanager-1.20.4.jar:git-SlimeWorldManager-15679]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[slimeworldmanager-1.20.4.jar:git-SlimeWorldManager-15679]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[slimeworldmanager-api-1.20.4-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugin(CraftServer.java:637) ~[slimeworldmanager-1.20.4.jar:git-SlimeWorldManager-15679]
at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugins(CraftServer.java:548) ~[slimeworldmanager-1.20.4.jar:git-SlimeWorldManager-15679]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:688) ~[slimeworldmanager-1.20.4.jar:git-SlimeWorldManager-15679]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:433) ~[slimeworldmanager-1.20.4.jar:git-SlimeWorldManager-15679]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:308) ~[slimeworldmanager-1.20.4.jar:git-SlimeWorldManager-15679]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1147) ~[slimeworldmanager-1.20.4.jar:git-SlimeWorldManager-15679]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:321) ~[slimeworldmanager-1.20.4.jar:git-SlimeWorldManager-15679]
at java.lang.Thread.run(Thread.java:1583) ~[?:?]

rapid elbow
#

lol...

#

my bad

#

@prisma zealot

prisma zealot
#

Yeah sorry

#

My disk is dying

#

50% of IO delay

rapid elbow
#

oof

prisma zealot
#

I need to spend 300 euros in a new disk

rapid elbow
#

they're not that expensive these days anymore right?

prisma zealot
#

No it's a specific disk

#

It's smth like 1000 euros for servers (crucial sucks)

rapid elbow
rapid elbow
#

@slow pollen

slow pollen
rapid elbow
#

Yes, please 🙂

slow pollen
#

Alright one more thing, do you support changing the chest block into anything else?

#

Like if I changed it into a lucky block, and handled the loot with my own plugin would that be possible?

rapid elbow
#

We don't support this natively. But you can always just decide to not place any chests inside the maps and just place lucky blocks / sponges and let your other plugin handle it for you

slow pollen
#

Alright I could do that thank you

#

Do you have an api?

#

Found it thank you 😊

rapid elbow
slow pollen
#

I might just fork the current version mean while to fit my needs

rapid elbow
#

that would work too!

rapid elbow
#

But it contains playable solo games at the moment, and I'm currently working on the event system

#

@slow pollen Did you manage to test the latest SWR file I sent in this chat?

slow pollen
rapid elbow
#

That's fine, don't worry

slow pollen
#

@rapid elbow what java version did you use for that jar?

#

22 I think?

rapid elbow
#

the base is compiled in Java 8, while later NMS versions are compiled in java 16, 17, and 22

slow pollen
#

Could you compile it in 21? D:

rapid elbow
#

There's an installation explanation in the readme.md file of the repository if you want to compile it yourself

slow pollen
#

Sure, it's just that most servers are on 21 as the latest for paper is currently 21

#

And most hosts do not support 22 to my knowledge currently

rapid elbow
#

which verison of MC are you on?

slow pollen
rapid elbow
#

Oh let me check. To my understanding, they used java 22 to compile

slow pollen
#

Well I'm running java 21 on my pc as well as the server currently which is on 1.21

rapid elbow
#

My bad, seems like Bukkit was still using Java 17. Must have looked wrong before.

slow pollen
#

Pretty sure everything else is using 21 for 1.21

#

Thank you though

#

Okay it launched this time, let me give it a test

rapid elbow
slow pollen
#

Hm

rapid elbow
slow pollen
#

Here look

#

Yeah

slow pollen
rapid elbow
#

hmm, that's weird

#

the thing is

#

we don't use any 1.21 specific code

slow pollen
#

Oh so you don't have a NMS profile for 1.21 ig?

rapid elbow
#

so it really doesn't matter for now in which java version it is compiled

#

might as well been compiled in java 8 lol

rapid elbow
slow pollen
#

Alright as long as it's not 22 😂

rapid elbow
slow pollen
#

😂 dope

rapid elbow
#

masterpiece fr

slow pollen
#

Professional work right there ✅

#

I just need to fork it so the chat works with my chat, need to adjust the party system not sure if this one even has one and just to change the custom chests

rapid elbow
#

i only needed to change the api version because they changed how itemflags are handled in v21

slow pollen
#

I also suggested most of this for v6

slow pollen
#

No more nbts from there on

rapid elbow
#

not necessarily that

#

but now when you add all item flags to an item, most of them are ignored if you have added "HIDE_ATTRIBUTES"

#

which is now a sort general term for adding the other ones individually (HIDE_ENCHANTMENTS, etc.)

slow pollen
#

Yup

rapid elbow
#

^ this broke basically the entire plugin

slow pollen
#

Oh 😂

#

I been using a lot of flags and such since I am running a custom server

#

With custom items, blocks and such

#

So the change was rough but yeah

#

I do like it though

#

One of the best ones is the size attribute for entities

rapid elbow
#

we were doing equal checks on itemstacks. Our cached one that contained all itemflag values, and the bukkit processed one that had them filtered

#

so in the equal check the flags didn't match, so none of the item interactions worked because the equal was always false 🫠

slow pollen
#

Ah I see

rapid elbow
slow pollen
#

Honestly these new changes are real nice for everything

#

Also I found these to use with the plugin which are gorgeous

#

Have you ever looked into custom stuff in MinecrafT?

rapid elbow
#

That looks sick! Are they free?

slow pollen
#

It's been getting a lot of popularity recently and has an enormous community for it

slow pollen
#

If you make sure V6 is compatible with customisation for custom stuff

rapid elbow
slow pollen
#

It could really boost the plugin

rapid elbow
#

Customization how?

slow pollen
#

You can even have a paid version, because these people spend so much on these custom servers

slow pollen
rapid elbow
#

I feel like SWR is already fully customizable in almost every aspect

slow pollen
#

Each server will use one of these plugins to manage their custom items

#

Nono, I mean like modded minecraft

slow pollen
#

Without mods

#

Look'

rapid elbow
#

for chest loot or blocks as well?

slow pollen
#

Well everything!

#

Maps could be made from custom blocks, but worldedit already handles that

rapid elbow
#

For chest loot it would be quite easy to implement

slow pollen
#

Chest blocks can be custom chests or lucky blocks and such as well

#

Then there is custom items, and custom menus

#

Are your menus customizable fully? Or do you even have menus

rapid elbow
#

As for blocks, that really depends on WorldEdit. Because in v6 we are using WorldEdit schematics to store the worlds

slow pollen
rapid elbow
#

so we don't have much influence on that aspect

slow pollen
#

Yeah that part is all good, WE already handles that

#

If you also use cages for WE that is good as well

rapid elbow
slow pollen
#

Menu titles?

rapid elbow
#

of course

slow pollen
#

Alright that's a good stage towards it

#

Because with custom menus you can do stuff like;

#

This is a really basic example;

rapid elbow
#

how would you achieve such a thing?

slow pollen
#

Here this is from origin realms

#

These are all in vanilla

#

All the buttons also work

rapid elbow
#

just resource packs?

slow pollen
#

Yup, and the plugin needs to handle it

#

So there are 3 things

#

Firstly, the buttons that you have in your menu, they need to allow a custom_model_data attribute, as well as the item being able to change fully, positions, the item it self, how many rows it takes

#

With the custom model data, you can make this item look like a CONFIRM or PLAY button

#

For the menu it self, it is the menu title, the player changes the menu title to a unicode which displays that menu

rapid elbow
#

You can fully customize all items in the menus to all extent, so a custom model data attribute would easily work

#

(i think)

slow pollen
#

For a large button, lets say 3 rows, the button image would be the first item then the second and third row would be for example a paper, with an invisible texture, whenever you click on these, any of the 3 items it does the same function

#

Where you get a button which is 3 rows big and you can click it on any part

slow pollen
#

These communities spend a lot of money in every part

#

They buy items, plugins, models, guis, sound effects even

#

Like a button click custom sound

rapid elbow
#

Do you have a (big) minecraft server?

slow pollen
#

Did, now I am reworking it for a network instead

#

Peaked at 400-500 conqurent players daily

rapid elbow
#

sickk

slow pollen
#

In dms, I can give you a fully setup example on how everything works

rapid elbow
#

why'd you stop?

slow pollen
#

From items to menus and such

slow pollen
#

I made enough from it and decided for a network instead

rapid elbow
#

makes sense

slow pollen
#

It's been a couple years since it's closing but yeah

rapid elbow
#

Are you an experienced dev?

slow pollen
#

I think I can manage a network better

#

I would say yeah around medium

#

I do code some stuff like extra plugins such as the lootboxes I told you about

#

As well as forking the jars we have and such

#

Minecraft wise though, I been in the community for 9 years 😂

rapid elbow
#

haha awesome. I could even add you to our V6 GitHub so you can take a look at implementing some of these features yourself (or even help with the general development of the plugin)

slow pollen
#

Let me download it

#

VR x java

rapid elbow
#

cool

slow pollen
#

Mojang introduced a lot of stuff that helps people make so much custom stuff

rapid elbow
#

really nice

slow pollen
#

I can send you a full example as well as give you resources that just show you how to add everything

#

I mean for items, it is as simple as implementing Oraxen, ItemsAdder and just letting their items be in loot

#

Such as for your items config you can do oraxen:bolt_sword, itemsadder:fire_sword

rapid elbow
#

ItemsAdder would be easy, have done that before

#

V6 already has a HeadDatabase integration which allows you to use their custom heads

slow pollen
#

For chests allow the block to be changed or use a block from one of the plugins

#

For example oraxen:big_crate

#

You can also get a partnership with mcmodels https://mcmodels.net/ or I can let the vendors know that you are making it compatible with custom resources

MCModels

Discover a vast selection of 3D models, textures, and graphics perfect for various applications. Join MCModels to access top-tier assets and enhance your creative projects.

#

Then they will make packs for your plugin, like skywars packs, and you can get more downloads

#

Perhaps sales

#

Like imagine these in your skywars server

rapid elbow
#

sounds good. Let's stay in touch

slow pollen
#

Sure, I'd be interested in using V6 in the network especially

rapid elbow
#

btw did it work?

slow pollen
#

Well the top one works so let me launch and actually test it

#

Since java is backwards compatible

rapid elbow
#

luckily haha

slow pollen
#

The other one is just not possible for me to use as it's 22

#

Anyways let me have a look, first time launching the plugin

rapid elbow
#

makes sense, that was my mistake

slow pollen
#

Nope, all good

rapid elbow
#

it works?

slow pollen
#

Well the other one works yeah

slow pollen
#

Just going to have a look at the configs and such to see eveyrthing

rapid elbow
#

doesn't matter, it's just the same anyway

#

but then I'm gonna push out the update

olive night
slow pollen
#

Or you can load it with an old client, save it as a schem using worledit as mod and upload it to a new world

olive night
#

I did this, loaded the maps in 1.8, saved and opened them again in 1.20.2 and it persisted

rapid elbow
#

i dont think the worlds are compatible between 1.8 and 1.20

#

probably should make a schematic and paste it to your 1.20 worlds

upper shale
#

Error occurred while enabling Skywars v5.6.32 (Is it up to date?)
java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
at SkyWarsReloaded 5.6.32.jar/com.walrusone.skywarsreloaded.nms.NMSUtils.loadNMS(NMSUtils.java:19) ~[SkyWarsReloaded 5.6.32.jar:?]
at SkyWarsReloaded 5.6.32.jar/com.walrusone.skywarsreloaded.SkyWarsReloaded.onEnable(SkyWarsReloaded.java:170) ~[SkyWarsReloaded 5.6.32.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:288) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[paper-1.20.6.jar:1.20.6-149-6e71f41]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.20.6.jar:1.20.6-149-6e71f41]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:626) ~[paper-1.20.6.jar:1.20.6-149-6e71f41]
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:575) ~[paper-1.20.6.jar:1.20.6-149-6e71f41]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:675) ~[paper-1.20.6.jar:1.20.6-149-6e71f41]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:437) ~[paper-1.20.6.jar:1.20.6-149-6e71f41]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:323) ~[paper-1.20.6.jar:1.20.6-149-6e71f41]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1136) ~[paper-1.20.6.jar:1.20.6-149-6e71f41]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[paper-1.20.6.jar:1.20.6-149-6e71f41]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

upper shale
#

Or are there any more dependencies?

#

am i dumb af?

rapid elbow
#

Hey @upper shale, this is an issue we tackled earlier in this chat. You can find a jar file there with a fix, or you can head over to SpigotMC now to download the version that contains the fix. Should be up now.

upper shale
mild chasm
#

Console15:41:36
[14:41:36] [INFO]:
INFO15:41:36
We found a newer version of SkyWarsReloaded!
Console15:41:36
[14:41:36] [INFO]:
INFO15:41:36
New version: 5.6.33
Your version: 5.6.32
Console15:41:36
[14:41:36] [INFO]:
INFO15:41:36
You can download it here:
https://my.gcnt.net/plugins/SkyWarsReloaded

#

WARN15:41:26
[org.bukkit.craftbukkit.legacy.CraftLegacy]: Initializing Legacy Material Support. Unless you have legacy plugins and/or data this is a bug!
and i keep getting this error, is this someting to do with skywars reloaded?

#

[Skywars]: Enabling Skywars v5.6.32
[Skywars]: Trying to load NMS support for server version 'craftbukkit (org.bukkit.craftbukkit)'...
[Skywars]: Loaded support for NMS server version craftbukkit using handler: v1_21_R1.
15:41:26
[Skywars]: Using Bukkit World Manager