#help-development

1 messages · Page 1657 of 1

torpid matrix
#

directories?

vale ember
#

directory tree

#

ye

#

some code?

torpid matrix
quiet ice
#

how do you export the jar?

lost matrix
#

If you are new to programming then you dont even understand what a dependency is. And then using a dependency manager
is like building a woodworking factory just to sharpen a stick.

grim ice
#

thats not how u send code my guy

quaint mantle
#

is anyone privvy to what the DataWatcherObject object does?

vale ember
#

do u use some dependencies?

lost matrix
quaint mantle
lost matrix
vale ember
#

can u show onEnable method

grim ice
#

anyone that for some reason wants to come and check my like 15 classes to tell me how could I make them better?

torpid matrix
#

.-.

stone sinew
quiet ice
#

Are you sure that you also included com.notablenoah.tourneymanager.listeners.JoinListener in your jar?

quaint mantle
#

i am very tired though i could have skipped over it

vale ember
#

and also JoinListener

quaint mantle
#
    private static final DataWatcherObject<Integer> bU;```
@lost matrix this is whati need to access
#

seems like a rabbithole to go down bU = DataWatcher.a(EntitySlime.class, DataWatcherRegistry.b);

rigid hazel
#

Thanks @lost matrix! That wasn't the fix for the error, but I realized the error, because of your idea.

torpid matrix
#

Isn't this supposed to be .class instead of .java

lost matrix
vale ember
torpid matrix
#

in eclipse

#

I dont think it worked

vale ember
eternal oxide
#

Export is teh correct option

torpid matrix
#

w2hat options do i click

eternal oxide
#

ensure you tick plugin.yml and config.yml

torpid matrix
#

ik that much

lost matrix
eternal oxide
#

thats all

torpid matrix
eternal oxide
#

correct

vale ember
eternal oxide
#

you can untick project and classpath

torpid matrix
quaint mantle
#

@lost matrix how would i search for the correct watcherobject

vale ember
torpid matrix
#

I havent exported yet

keen obsidian
#

I am making that a armor stand wil change the head position but only the player who clicked can see the rotation. Does anyone know how I can solve this? https://pastebin.com/sdYKbLEh

torpid matrix
#

idk if thats correct

eternal oxide
#

export

vale ember
#

the thing that theres no .class file is not normal i think

#

cuz server just cant load .java file

eternal oxide
#

No its not, it will build on export

#

you can force a build in the project menu

torpid matrix
#

no this is exported I turned the jar into a zip to check if it is a .class

#

its still the same

#

so it exported wrong

eternal oxide
#

goto Project menu, Build all

torpid matrix
#

its grey

eternal oxide
#

ensure your project is selected in the left

torpid matrix
#

lef?

eternal oxide
#

is Build automatically ticked?

torpid matrix
grim ice
#

Anyone wants to spend some time helping me checkout my code? I know the plugin.yml and main arent registering the commands, i will do it later
Yes i know its all a mess but please dm me stuff to make it better (I havent tested it yet and i prob will have 1k bugs when i do lmao)
if so,
https://github.com/2Hex/Teams
sorry for being selfish

torpid matrix
#

ok I clicked build all

eternal oxide
#

now you can export

#

If you tick the Build automatically in the Project menu, you don;t neeed to manually build

#

it should be selected by default

torpid matrix
#

its still not a class file when I export it

eternal oxide
#

check your logs window

#

Console

#

any errors?

torpid matrix
#

where are the logs

eternal oxide
#

Console tab, usually below the code

arctic moth
#

whats the player joining event called

#

lol i forgot

hexed hatch
#

PlayerJoinEvent

torpid matrix
#

I dont have the console tab

eternal oxide
#

how about the Problems tab?

torpid matrix
#

0 items

eternal oxide
#

what happened when you clicked build all?

torpid matrix
#

nothing

eternal oxide
#

go Project -> clean

torpid matrix
#

I just assumed it did something

eternal oxide
#

then build all

torpid matrix
eternal oxide
#

then you have something really funky going on with your Eclipse

torpid matrix
#

;-;

#

what do i do

arctic moth
#

tryna set a player's max health when they join but SetMaxHealth is deprecated

eternal oxide
#

Project menu -> properties

torpid matrix
#

I cant click that

eternal oxide
#

select the builders

torpid matrix
#

oh wait

eternal oxide
#

then click on yoru project first

torpid matrix
#

nvm

chrome beacon
torpid matrix
eternal oxide
#

in your builders, do you see a Java Builder, and its ticked?

torpid matrix
#

yes

#

ticked

eternal oxide
#

Then I see no reason for you to be having problems

torpid matrix
#

-.-

eternal oxide
#

browse to your project folder (in windows)

#

what folders are in there?

torpid matrix
eternal oxide
#

thats your project folder?

torpid matrix
#

mhmm

eternal oxide
#

ok, whats inside bin? it shoudl be compiled class files

torpid matrix
#

folder is empty

eternal oxide
#

I'd say reinstall Eclipse and import your project again then

#

No clue why but your IDE is not building your project.

torpid matrix
#

I cant be bothered could I just get someone to compile this stuff for me

eternal oxide
#

We can;t be bothered either

torpid matrix
#

;-;

#

I don't want to reinstall eclipse

eternal oxide
#

its not exactly difficult, its unzipping a folder

torpid matrix
arctic moth
#

im getting an error saying jar does not contain plugin.yml but i checked and there is a valid plugin.yml

torpid matrix
eternal oxide
arctic moth
#

in the jar itself

#

its there

torpid matrix
#

-.-

#

nothing makes sense

arctic moth
#

lol

eternal oxide
#

Then your error message probably has more to it and says its corrupt or missing

arctic moth
#

ill send it

#
[10:36:28 ERROR]: Could not load 'plugins\Half Heart Survival.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:178) ~[patched_1.17.1.jar:git-Paper-187]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:160) ~[patched_1.17.1.jar:git-Paper-187]
        at org.bukkit.craftbukkit.v1_17_R1.CraftServer.loadPlugins(CraftServer.java:404) ~[patched_1.17.1.jar:git-Paper-187]
        at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:276) ~[patched_1.17.1.jar:git-Paper-187]
        at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1126) ~[patched_1.17.1.jar:git-Paper-187]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[patched_1.17.1.jar:git-Paper-187]
        at java.lang.Thread.run(Thread.java:831) [?:?]
Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
        ... 7 more
#

it says jar does not contain plugin.yml

eternal oxide
#

yep, no plugin.yml

#

send your jar

#

if you are able

arctic moth
#

wait lol its in the package im so stupid

eternal oxide
#

Yeah, I did say root 🙂

minor garnet
#

how i can sort the tablist players by playrs group using a array?

eternal oxide
#

sort them before you put them in the array

arctic moth
#
[10:39:04 ERROR]: Could not load 'plugins\Half Heart Survival.jar' in folder 'plugins': uses the space-character (0x20) in its name
#

lol

#

can plugins have spaces

eternal oxide
#

nope

arctic moth
#

im guessing not

minor garnet
arctic moth
#

😦

minor garnet
#

like owner to member understand

eternal oxide
#

You would have to manually sort or write a Comparator

arctic moth
minor garnet
#

what do you mean sort manually ?

eternal oxide
#

loop over and sort them

arctic moth
#

cuz the plugin.yml is spaced

torpid matrix
#

I think I found out why it wont compile

arctic moth
#

is the jar allowed spaces or is the plugin.yml allowed spaces

#

lol

minor garnet
#

i think about doing this, but i dont know make do this organized straight from a list, so I can do a foreach

minor garnet
#

😮

#

I was looking for a while

eternal oxide
#

that example just sorts alphabetically, but you can easily change it to sort by groups then name

minor garnet
#

that's what I needed for the group, but there's not here

quaint mantle
#

ok

#

i did a boomer moment right

silver shuttle
#

somehow I am too stupid to make a full command run asynchronously,
I tried just putting it into a BukkitScheduler (runTaskAsynchronously), but that said Cannot resolve method 'runTaskAsynchronously(me.konstanius.konstanius.konstanius, <lambda expression>)'
Then I tried to google for how to run commands asynchronously but that didn't yield any good results

quaint mantle
#

my cursor on Eclipse just turned into something idk how to change it back

#

it looks like: :

#

out of curiosity since im struggling to get my slimes working, is there a better way to resize/reposition armour stands on entities?

minor garnet
#

press insert @quaint mantle

torpid matrix
quaint mantle
eternal oxide
torpid matrix
#

how does one do that

quaint mantle
eternal oxide
eternal oxide
quaint mantle
tardy delta
#

fix what?

quaint mantle
#

things dont auto-tab, and it doesnt auto-complete

#

the very odd writing indicator

tardy delta
#

tried resetting something?

quaint mantle
#

tried it all

#

unless i missed something??

#

its not Insert

#

well it is, but its just "Insert" mode??

silver shuttle
# eternal oxide why not?

because I know how runTaskAsynchronously works, but I am getting the error I sent previously, even though I am not accessing anything like player inventories, blocks, locations etc

eternal oxide
#

ah because you are trying to use a lambda

torpid matrix
silver shuttle
#

I am pretty sure there is no lambda in my entire command

eternal oxide
silver shuttle
#

String.valueOf(player.getInventory().getItemInMainHand().getType()); Found a problem .-.

eternal oxide
silver shuttle
eternal oxide
#

sec and I'll test

silver shuttle
#

it can't, these interactions won't work in async

torpid matrix
eternal oxide
#

Why are you running it async if the code you want to run can;t run async?

silver shuttle
#

I realized just now that I am getting the item in main hand in the middle of it so I can't run it async

eternal oxide
#

There is very little in the Bukkit API you can safely access async

lean gull
#

can someone help? idk why this is happening, but earlier there were two related problems on intellij but when i restarted it's no longer there

[17:11:10 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'hatscatalog' in plugin MakaCore v1.0.0
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.17.1.jar:git-Paper-205]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.17.1.jar:git-Paper-205]
        at org.bukkit.craftbukkit.v1_17_R1.CraftServer.dispatchCommand(CraftServer.java:832) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.server.network.PlayerConnection.handleCommand(PlayerConnection.java:2169) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1980) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1961) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:46) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:6) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$ensureRunningOnSameThread$1(PlayerConnectionUtils.java:36) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.server.TickTask.run(TickTask.java:18) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.util.thread.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:149) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.executeTask(IAsyncTaskHandlerReentrant.java:23) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.server.MinecraftServer.executeTask(MinecraftServer.java:1348) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.server.MinecraftServer.executeTask(MinecraftServer.java:190) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.util.thread.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:122) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.server.MinecraftServer.bf(MinecraftServer.java:1327) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.server.MinecraftServer.executeNext(MinecraftServer.java:1320) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.util.thread.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:132) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.server.MinecraftServer.sleepForTick(MinecraftServer.java:1281) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1192) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[patched_1.17.1.jar:git-Paper-205]
>       at java.lang.Thread.run(Thread.java:831) [?:?]
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 54 out of bounds for length 54
        at java.util.Arrays$ArrayList.set(Arrays.java:4169) ~[?:?]
        at net.minecraft.core.NonNullList.set(NonNullList.java:54) ~[patched_1.17.1.jar:git-Paper-205]
        at org.bukkit.craftbukkit.v1_17_R1.inventory.CraftInventoryCustom$MinecraftInventory.setItem(CraftInventoryCustom.java:141) ~[patched_1.17.1.jar:git-Paper-205]
        at org.bukkit.craftbukkit.v1_17_R1.inventory.CraftInventory.setItem(CraftInventory.java:99) ~[patched_1.17.1.jar:git-Paper-205]
        at com.buenny.makacore.hats.HatsCatalog.init(HatsCatalog.java:32) ~[MakaCore.jar:?]
        at com.buenny.makacore.hats.HatsCatalog.<init>(HatsCatalog.java:23) ~[MakaCore.jar:?]
        at com.buenny.makacore.hats.HatsCatalogCommand.onCommand(HatsCatalogCommand.java:20) ~[MakaCore.jar:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.17.1.jar:git-Paper-205]
        ... 21 more```
eternal oxide
#

?paste delete that

undone axleBOT
lean gull
#

whoever just said that, you're blocked for me, so don't bother helping

torpid matrix
#

where do I even get the bukkit jar that I import

eternal oxide
#

lol

chrome beacon
#

Aight not helping you

eternal oxide
undone axleBOT
quaint mantle
#

casn osmeone help me with Eclipse

#

because

stone sinew
quaint mantle
#

idfk, nobody's helping me without doing ?google or telling me to switch to IntelliJ

torpid matrix
quaint mantle
#

idk how to get it back to the normal cursor

eternal oxide
#

I have never seen an eclipse cursor like that

quaint mantle
#

ya

#

i'm googling and googling

#

its soemthing to do with Insert..??

#

i cant turn Insert off im pretty sure

eternal oxide
#

Eclipse has | and a block when inserting

quaint mantle
#

i dont remmeber it always being "Insert"

quaint mantle
#

if i turn Insert Overwrite mode on, yeah its the fat bar that replaces characters

#

but thats appearently just "insert"

eternal oxide
#

yep

quaint mantle
#

which i'm doing as google instructs.. and pressing my Insert key

#

which isnt doing anything but turning Overwrite on and off

arctic moth
#

nothing happens when i respawn anyone know why? (no errors btw)

@EventHandler
    public void onPlayerRespawn(PlayerRespawnEvent event) {
        Player p = event.getPlayer();
        p.setHealth(1);
    }
eternal oxide
arctic moth
#

o

lean gull
#

worked for me before with 54, but when i added init(); everythin went to heck

quaint mantle
#

@eternal oxide is there anything i can do because idk

lean gull
jade perch
eternal oxide
quaint mantle
lean gull
# stone sinew An item is being set at slot 54 when the max slot any doublechest can have is 53
[18:00:54 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'hatscatalog' in plugin MakaCore v1.0.0
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.17.1.jar:git-Paper-205]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.17.1.jar:git-Paper-205]
        at org.bukkit.craftbukkit.v1_17_R1.CraftServer.dispatchCommand(CraftServer.java:832) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.server.network.PlayerConnection.handleCommand(PlayerConnection.java:2169) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1980) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1961) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:46) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:6) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$ensureRunningOnSameThread$1(PlayerConnectionUtils.java:36) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.server.TickTask.run(TickTask.java:18) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.util.thread.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:149) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.executeTask(IAsyncTaskHandlerReentrant.java:23) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.server.MinecraftServer.executeTask(MinecraftServer.java:1348) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.server.MinecraftServer.executeTask(MinecraftServer.java:190) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.util.thread.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:122) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.server.MinecraftServer.bf(MinecraftServer.java:1327) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.server.MinecraftServer.executeNext(MinecraftServer.java:1320) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.util.thread.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:132) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.server.MinecraftServer.sleepForTick(MinecraftServer.java:1281) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1192) ~[patched_1.17.1.jar:git-Paper-205]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[patched_1.17.1.jar:git-Paper-205]
        at java.lang.Thread.run(Thread.java:831) [?:?]
Caused by: java.lang.IllegalArgumentException: Size for custom inventory must be a multiple of 9 between 9 and 54 slots (got 53)
        at org.apache.commons.lang.Validate.isTrue(Validate.java:136) ~[patched_1.17.1.jar:git-Paper-205]
        at org.bukkit.craftbukkit.v1_17_R1.CraftServer.createInventory(CraftServer.java:1969) ~[patched_1.17.1.jar:git-Paper-205]
        at org.bukkit.Bukkit.createInventory(Bukkit.java:1380) ~[patched_1.17.1.jar:git-Paper-205]
        at com.buenny.makacore.hats.HatsCatalog.<init>(HatsCatalog.java:22) ~[MakaCore.jar:?]
        at com.buenny.makacore.hats.HatsCatalogCommand.onCommand(HatsCatalogCommand.java:20) ~[MakaCore.jar:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.17.1.jar:git-Paper-205]
        ... 21 more```emphazie on
`Caused by: java.lang.IllegalArgumentException: Size for custom inventory must be a multiple of 9 between 9 and 54 slots (got 53)`
eternal oxide
#

oh my

lean gull
#

emphasize* idk

quaint mantle
#

fixed idk what that is

#

oh god

eternal oxide
#

a page and a half

quaint mantle
#

@lean gull do you know how to do inventories

torpid matrix
#

I need this

#

?

quaint mantle
#

so the size for inventories is how many slots

lean gull
#

yes, i'm following a tutorial that has worked before

stone sinew
quaint mantle
#

so i'd do (9*the amount of rows you want)

eternal oxide
#

that was 2 pages and a half

lean gull
quaint mantle
#

i would just do (9*the amount of rows)

rustic gale
#

Is there a way to allow players to put sharpness books on other items like pickaxes and shovels?

lean gull
#

i did 54 before and it worked, but then i added init(); to add my items to the gui and now this is what i get

quaint mantle
#

then dont init();

lean gull
#

but then how do i have my items

quaint mantle
#

by adding them to the inventory

jade perch
arctic moth
#

what are you supposed to put here?

Bukkit.getScheduler().runTaskLater(something, () -> {
            p.setHealth(1);
        }, 20L);
jade perch
#

?paste

undone axleBOT
lean gull
#

i have a lot of code

lean gull
#

which part do you want

quaint mantle
undone axleBOT
quaint mantle
#

all of it

lean gull
#

i like my code not stolen, thanks

quaint mantle
#

ok

arctic moth
quaint mantle
#

thanks for asking for help but we cant help

jade perch
#

You're literally copying a tutorial

arctic moth
#

lol

quaint mantle
lean gull
#

no im using a tutorial to do the template

jade perch
#

Also why would we want to steal your code

eternal oxide
quaint mantle
jade perch
#

that makes no sense

#

It doesn't even work -.-

quaint mantle
#

LOL

lean gull
#

because you can fix it and steal my ideas?

quaint mantle
#

you're paranoid

#

lmfao

lean gull
#

i am

quaint mantle
#

you tryna hide something???

jade perch
#

Okay if you're going to be cynical then find it out yourself

lean gull
#

i literally just agreed with you that i am paranoid

quaint mantle
#

ya

jade perch
#

trying to guess your issue is annoying and time consuming

quaint mantle
#

just

lean gull
#

alr if you're gonna be mean: don't

quaint mantle
#

?google

undone axleBOT
quaint mantle
eternal oxide
#

No one is going to steal your ideas. I guarantee its been thought of and posted here before.

rustic gale
torpid matrix
#

now what

eternal oxide
lean gull
#

i tried putting init in one of the methods, didn't work

jade perch
rustic gale
arctic moth
#

when i do this still nothing happens when i respawn

@EventHandler
    public void onPlayerRespawn(PlayerRespawnEvent event) {
        Player p = event.getPlayer();
        Bukkit.getScheduler().runTaskLater(this, () -> {
            p.setHealth(1);
        }, 1);
torpid matrix
#

or will that not work

eternal oxide
ancient plank
#

oh is this buenny person the one who blocked everyone in #help-development for trying to help them

lean gull
#

nah i blocked everyone for being mean

tardy delta
#

lolol

arctic moth
jade perch
lean gull
#

i might be stubborn but i do not like meanies

hybrid spoke
lean gull
#

cough

stone sinew
#

@lean gull you're command is named "hatscatalog" you realize HeadDataBase and a whole bunch of other alternatives exist right?

tardy delta
#

god is not friendly

hybrid spoke
#

i am very friendly

jade perch
lean gull
#

honestly i did not know that was a thing

torpid matrix
quaint mantle
lean gull
#

can i do /catalog hat

quaint mantle
#

im gonna copy it now

#

thank u

lean gull
#

or /catalog hats

quaint mantle
undone axleBOT
jade perch
eternal oxide
lean gull
#

blocked

quaint mantle
#

LOL

#

IM TRYING TO HELP

eternal oxide
#

haha

#

he blocked about 10 of us last time

torpid matrix
quaint mantle
eternal oxide
#

Yep

torpid matrix
jade perch
quaint mantle
#

i love it

eternal oxide
#

he blocks anyone who he feels didn;t speak nice enough to him

quaint mantle
#

doesnt know spigot

stone sinew
#

How can I set that the ender dragon has already been killed? Cause I don't want the ender dragon or any portals to spawn in my end world.
All I found is World.getEnderDragonBattle().hasBeenPrviouslyKilled()

quaint mantle
#

asks for help

#

has to work to get help

#

💢 💢 💢 💢 💢

jade perch
arctic moth
#

i also tried that with join and its also not triggered

eternal oxide
arctic moth
#

o

stone sinew
jade perch
torpid matrix
#

where

#

why

#

how

#

what

#

when

#

and whyyyyyyy

ancient plank
#

spekaing
like
this
does
not
get
your
point
across

stone sinew
torpid matrix
vale ember
lean gull
#

I
still
need
help

no
meanies
please

arctic moth
jade perch
arctic moth
#

i just did it like yesterday with another plugin lol

vale ember
jade perch
#

open the file and look

vale ember
jade perch
#

it's literally at the very bottom

vale ember
#

i was looking from discord

torpid matrix
#

WHhhYyy Isss there aLWAys a god damn error

#

I hate my life

#

curse this dumb java

#

I hate it

eternal oxide
# torpid matrix and whyyyyyyy

Move BuildTools to a folder thats not on your desktop. a Folder on C:\ Your paths are getting mighty long and will likely be causing issues.

torpid matrix
#

I don't want to do this anymore

#

I have lost hopw

#

hope

arctic moth
#

how do u register the main class as a listener

eternal oxide
#

cut down not across

ancient plank
#

pls no spam :(

stone sinew
# torpid matrix hope

Download/Stream "EVERYBODY" here: http://smarturl.it/LogicEverybody?iqid=yt
Director - Andy Hines
Executive producer- Luga Podesta & Brandon Bonfiglio
Producer- Andrew Lerios & Alex Randall
Director of photography- Jeff Bierman
Production Designer - Hannah Beachler
Edited by Joe Calardo
Casting - German Legarreta
Assistant production supervi...

▶ Play video
arctic moth
ancient plank
#

no

#

spekaing to the people spamming :)

arctic moth
#

lol

tardy delta
eternal oxide
torpid matrix
arctic moth
#

wait where do i put that it doesnt work in just the class

lean gull
# tardy delta what is not working?

from what i understand, if i put the init method in my main method of the class, it will break everything, if i don't, i will get an empty gui

eternal oxide
arctic moth
#

o

#

that makes sense lol

tardy delta
ancient plank
#

the most I'll steal are your shoes

lean gull
#

eh whatever i just want my code to work

arctic moth
lean gull
#

!paste

eternal oxide
#

ready for the spam

lean gull
#

how do i do the paste thing

vale ember
ancient plank
#

?paste

undone axleBOT
hybrid spoke
#

?paste

tardy delta
#

well if you don't show what isn't working we won't see

lean gull
#

ty

stone sinew
tardy delta
#

wait what did i just say

lean gull
stone sinew
ancient plank
#

yikes

lean gull
#

oh i see now

tardy delta
#

first of all set this to 54

inv = Bukkit.createInventory(this, 53, "ʜᴀᴛѕ ᴄᴀᴛᴀʟᴏɢ");
lean gull
#

what

arctic moth
#
incompatible types: com.tristandasavage.halfheartsurvival.HalfHeartSurvival cannot be converted to org.bukkit.event.Listener
lean gull
#

sorry i don't know what's a constructor yet

ancient plank
#

haven't you been learning java for like 4 months

tardy delta
#
public HatsCatalog() {
        inv = Bukkit.createInventory(this, 53, "ʜᴀᴛѕ ᴄᴀᴛᴀʟᴏɢ");
        init();
    }

constructor

hybrid spoke
#

?learnjava

undone axleBOT
lean gull
tardy delta
#

my discord hates me

ancient plank
#

rip

tardy delta
lean gull
#

espically when the servers i get to to get help are full of meanies

tardy delta
#

go away kss

ancient plank
#

go hover over the eyes @tardy delta, the reaction in chat the popup is from

tardy delta
#

ah its gone

arctic moth
# eternal oxide in onEnable

incompatible types: com.tristandasavage.halfheartsurvival.HalfHeartSurvival cannot be converted to org.bukkit.event.Listener

#

why cant it be converted

eternal oxide
vale ember
#

Buenny inventory slot count must be divisable by 9

tardy delta
#

you don't have to do this check, lore can be set to null @lean gull

if (lore != null) {
            meta.setLore(lore);
        }
#

wew
Collections.singletonList(null)

ancient plank
lean gull
#

people are telling me to do 53 and 54

#

am confusion

quaint mantle
eternal oxide
tardy delta
#

its 54 in the Bukkit.createInv and 53 is the maximum index of the chest

#

indexes start with 0 👀

lean gull
#

works

#

i did 54

tardy delta
#

for the index? thats not possible

lean gull
#

inv = Bukkit.createInventory(this, 54, "ʜᴀᴛѕ ᴄᴀᴛᴀʟᴏɢ");

tardy delta
#

if you do inventory.get(54) that will throw an error

#

yea thats fine

#

54 is the size

#

so 54 slots

lean gull
#

btw im getting some errors

tardy delta
#

which ones?

lean gull
#

i don't understand errors

#

rimshot

undone axleBOT
lean gull
#

-_-

#

do that one more time and ya blocked too

opal sluice
#

?learnjava

vale ember
#

show com.buenny.makacore.hats.HatsSlotPlacement.RightClickEvent(HatsSlotPlacement.java:30)

lean gull
#

gud bai

tardy delta
#

you are trying to get a slot that doesnt exist

lean gull
#

both of ya

opal sluice
#

?learnjava

ancient plank
#

pls

#

dont spam the command

arctic moth
#

ok i made a new listeners class and migrated my events over but im getting this

tardy delta
#

lol 2 times now

opal sluice
#

ok sry ^^'

vale ember
dreamy chasm
#

hi, I am getting a java.lang.SecurityException: Invalid signature file digest for Manifest main attributes but only when I set the output directory of my artifact to my plugins folder, any ideas why?

tardy delta
vale ember
arctic moth
#

so basically the main class

vale ember
#

ye

tardy delta
#

yea

opal sluice
vale ember
opal sluice
#

Cause, they should inject

eternal oxide
#

?di

undone axleBOT
tardy delta
#

isnt field injection or how its called something?

#

?

arctic moth
tardy delta
#

main class

vale ember
arctic moth
#

o like the main again

#

lol

#

im stupid

opal sluice
tardy delta
vale ember
tardy delta
#

idk i thought i used it

undone axleBOT
tardy delta
#

lmao the same link is like 20 messages above

vale ember
# opal sluice Ew
package com.aregcraft.customcrates.utils;

import com.aregcraft.customcrates.CustomCrates;
import org.bukkit.Server;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.command.TabCompleter;
import org.bukkit.event.HandlerList;
import org.bukkit.event.Listener;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.PluginManager;
import org.bukkit.command.PluginCommand;

import java.util.Objects;

public class Common {
    public static final CustomCrates PLUGIN = CustomCrates.getPlugin(CustomCrates.class);
    public static final Server SERVER = PLUGIN.getServer();
    public static final PluginManager PLUGIN_MANAGER = SERVER.getPluginManager();
    public static final ConsoleCommandSender CONSOLE_SENDER = SERVER.getConsoleSender();
    public static final int CHAT_LENGTH = 53;

    public static void registerEvents(Listener listener) {
        PLUGIN_MANAGER.registerEvents(listener, PLUGIN);
    }

    public static void unregisterEvents(Listener listener) {
        HandlerList.unregisterAll(listener);
    }

    public static void setCommandExecutor(String name, CommandExecutor executor) {
        Objects.requireNonNull(PLUGIN.getCommand(name)).setExecutor(executor);
    }

    public static void setCommandCompleter(String name, TabCompleter completer) {
        Objects.requireNonNull(PLUGIN.getCommand(name)).setTabCompleter(completer);
    }
}
opal sluice
#

?paste

undone axleBOT
tardy delta
#

Objects.requireNonNull 👀

opal sluice
#

Lmao

tardy delta
#

thats just the same as throwing nullptr

quaint mantle
#

dont be toxic

lean gull
vale ember
tardy delta
#

yea same

quaint mantle
#

dont use IntelliJ :)

tardy delta
opal sluice
tardy delta
#

no

lean gull
#

yup

#

even when it was tested

#

weird

tardy delta
#

whats there

opal sluice
#

Even the spigot tutorial isn't like that

quaint mantle
#

be nice

vale ember
tardy delta
#

is there something as default lore

lean gull
#
    // creates items
    public static ItemStack createItem(String name, Material mat, List<String> lore, Integer cmd) {
        ItemStack item = new ItemStack(mat, 1);
        ItemMeta meta = item.getItemMeta();
        meta.setDisplayName(name);
        meta.setLore(lore);
        if (cmd != 0) {
            meta.setCustomModelData(cmd);
        }
        item.setItemMeta(meta);
        return item;
    }```
vale ember
opal sluice
quaint mantle
#

nopppp

tardy delta
#

and why Integer and not just int

quaint mantle
#

telling someone to not speak isn't very nice

tardy delta
#

whats the message or something

lean gull
#

this is what i set the lore to
Collections.singletonList(null)

opal sluice
tardy delta
#

just put null smh

quaint mantle
#

wtf lmfao, toxicity again tbh

vale ember
opal sluice
opal sluice
undone axleBOT
opal sluice
#

But that's a bad habit and later, you'll see that statics can just make you lose time trying to troubleshoot your code when you would simply DI and didn't get any problem

quaint mantle
#

that isnt how you use the command

#

nah its just ?google

dreamy chasm
#

Anyone know what could be causing security exceptions when I build my plugin in my plugins folder? I have looked on SO and tried all the things they try with maven shade etc but still keep getting the issue?

opal sluice
#

Moreover, you're on java, it's object oriented. Well, as I said, that's long to explain x)

quaint mantle
#

bruh

tardy delta
#

?google

undone axleBOT
tardy delta
#

ugh

lean gull
#

kay so i read the error and it says the item is null, why is that

opal sluice
#

There should be a command with the lmgtfy api to make it directly

lean gull
#
public class HatsSlotPlacement implements Listener {

    @EventHandler
    public void RightClickEvent(PlayerInteractEvent e) {
        Player player = (Player) e.getPlayer();

        HatsCatalog item = new HatsCatalog();
        List<String> lore = new ArrayList<>();
        lore.add(ChatColor.translateAlternateColorCodes('&', ""));
        lore.add(ChatColor.translateAlternateColorCodes('&', "&aᴄᴏᴍᴍᴏɴ"));
        ItemStack headband = HatsCatalog.createItem(ChatColor.translateAlternateColorCodes('&', "&3ʜᴇᴀᴅʙᴀɴᴅ")
                , Material.PAPER
                , lore
                , 1);
        
        if (e.getItem().equals(headband)) {
            if (player.getInventory().getItem(5).equals(new ItemStack(Material.AIR))) {
                player.getInventory().setItem(player.getInventory().getHeldItemSlot(), new ItemStack(Material.AIR));
            }
        }
    }
}```here's the code btw
quaint mantle
tardy delta
#

just null? : (

quaint mantle
#

NPE

tardy delta
#

for lore?

lean gull
#

wdym

tardy delta
#

i always set it to null

quaint mantle
#

nvm

#

im thinking of config stuff

tardy delta
#

xd

lean gull
#

so can anybody help?

#

player.getInventory().setItem(45, headband); this doesn't do anything either

ancient plank
#

I think you've blocked everyone who can/would have helped you

lean gull
#

i don't want help from meanies

#

not worth it

ancient plank
#

unfortunate that all the "meanies" are everyone who tried to help

lean gull
#

foruteenbrush is still here ¯_(ツ)_/¯

tardy delta
quaint mantle
#

hes not gonna get help if he doesnt accept it

lean gull
#

what?

tardy delta
#

im bored

#

xd

lean gull
#

can you explain it in a dum dum version

tardy delta
#

im waiting for the timer in my game 🥺

ancient plank
#

if ur bored just make a system for me to check between discord tags or discord IDs dga_fischl_dab

quaint mantle
#

sensitive weakling who cant accept criticism

tardy delta
#

i already have xd

#

js

#

in my discord bot

#

who is dead now

#

😂

ancient plank
#

a plugin I'm working on, for linking discord accounts to their minecraft accounts on the server, saves user's accounts using the discord tag instead of the account IDs 🤮 so im working on fixing that

tardy delta
#

lol

ancient plank
#

ye i do too

tardy delta
#

the good old times

#

FBI Agent Fourteen 🥺 😳

arctic moth
#

lol i think i just found a glitch

#

so i gave myself max level regen and i have an onHealthRegainEvent that makes ur health half a heart and if u take fall damage and click respawn you basically come back to life in the same place you died

#

xD

tardy delta
#

uhh my brain

lean gull
#

Integer slot = player.getInventory().getHeldItemSlot();
if (player.getInventory().getItem(slot).equals(headband)) {
pls help idk what im doing

undone axleBOT
tardy delta
#

int slot not Integer

lean gull
#

wdym

tardy delta
#

😳

#

pog

lean gull
#

if someone could help, please message me.
i'll be working on something else for now

tardy delta
#

lol

grim ice
#

why are none of my cmds not working

#

i aint gonna debugg like 15 commands aaaaaaaaaaaaaaaaaaaa

#

someone pls help

stone sinew
#

A string

tardy delta
#

lololo

opal sluice
#

rip String.valueof(b)

grim ice
#

its really okay its proob better than mine

stone sinew
grim ice
#

Lombok?>>>>>

#

TF DO U MEAN

#

isnt that some advaanced shit

stone sinew
#

The field isn't static.

unreal quartz
#

lombok, yikes

eternal oxide
unreal quartz
#

lombok sucks
runs

arctic moth
#

how do you tell if a sender is the console

stone sinew
eternal oxide
#

You register ONE executor for the main command, then parse teh args in that for your sub commands.

grim ice
#

yes

#

very descriptive

grim ice
#

how

#

what u wnt me to do then

eternal oxide
#

One

grim ice
#

oh god

#

ok

eternal oxide
#

you can have them in seperate classes

grim ice
eternal oxide
#

but you only register the root command "teams" with Bukkit

tardy delta
#

let them extend a command class with the onCmd method

#

and set the executor for each of the classes

eternal oxide
#

you then parse args with a switch statement and pass the event to teh relevant class

grim ice
#

hmmmm

#

h o w

eternal oxide
#

I just told you

grim ice
#

i get the point

#

but i dont know hwo to do it

eternal oxide
#

This is where you have to start using more grey matter

#

rub those brain cells together 🙂

#

both of them 🙂

grim ice
#

lol

#

ok

eternal oxide
#

its actually not hard

#

register yoru "teams" command

#

then in the teams onCommand you add a switch statement

grim ice
#

o

#

yeah but how do i set the executor

#

in a command class

eternal oxide
#

you could even use Class.forName to pass the event to teh correct class

#

you don;t

#

you only set teams

grim ice
#

what

eternal oxide
#

you have ONE root command, so thats the ONLY command you can register with spigot

stone sinew
#

Wow even after setting isCreateDragonBattle() to false it still spawns the fucking dragon

#

No event for when a DragonBattle is created either

grim ice
#

@eternal oxide lmao i still cant figure it out

eternal oxide
#

all of your sub commands will not be known to spigot. they are your own, you don;t register them

#

The only command spigot knows about is "teams"

grim ice
#

yeah i know the problem

#

but i cant figure out a solution

#

:D

eternal oxide
#

So you have to implement a way for your teams onCommand to parse what is typed in args to pick the correct command to run the code for

grim ice
#

o

eternal oxide
#

so basically at teh real bottom of the heap is if (args[0].equalsIgnoreCase("leave")) { }

#

don;t do that though

#

you don;t actually want to hard code any commands

#

You have a couple of ways of doing it.

grim ice
#

switch (args[0]){
case "create":
create();
}
return true;
}
public void create(){
plugin.getCommand("create").setExecutor(new Create());
}

#

maybe smth like dis

eternal oxide
#

You either have to register each of your commands with your own command handler (I wouldn;t)

eternal oxide
stone sinew
#

JavaPlugin.getCommand(String) reads from plugin.yml

grim ice
#

ajgrabgrjbargrjgjgrjgjbgjgjbgbgbfjfbffhfjfjjfjfjfjfjfjfjfjfjfjejefjfenefknfekfe

eternal oxide
#

or you could use reflection to automatically find all yrou commands

stone sinew
#

I just pass my sub commands to another class.

grim ice
#

whats the best way

eternal oxide
#

well best is subjective

grim ice
#

easiest

eternal oxide
#

reflection is more complex but allows you to never have to modify yoru command class and it will find any commands you add

grim ice
#

but will it take long to do

stone sinew
#
List<String> newArgs = new ArrayList<>();
for(int i = 1; i<args.length; i++) {
    newArgs.add(args[i]);
}
SubCommands.get().onCommand(newArgs.stream().toArray(String[]::new), sender);
eternal oxide
#

else you build a map of yoru commands

#

which is hard coding them

#

the map is simplest

grim ice
#

ok ,ap

#

map

eternal oxide
#

ok tehn Map<String, CommandExecutor> commands = new HashMap<>();

grim ice
#

o

eternal oxide
#

that goes in your teams class

grim ice
#

o

eternal oxide
#

as a Field

#

then in teh conmstructor (add one if you don;t have one) of yrou teams class....

grim ice
#

ok

eternal oxide
#

commands.put("create", new Create(plugin));

#

do same for each of yoru commands

grim ice
#

o ok

eternal oxide
#

now in your onCommand

arctic moth
#

?paste

undone axleBOT
eternal oxide
#

CommandExecutor subCommand = commands.get(args[0].toLowercase());

arctic moth
grim ice
#

o

eternal oxide
#

if (subCommand != null) subCommand.onCommand(fill in values from onCommand);

grim ice
#

i do that for every subcommand right

eternal oxide
#

no

grim ice
#

one class?

eternal oxide
#

?

#

you do exactly as I typed

grim ice
#

yeh but where

eternal oxide
#

those two lines in your onCommand in your "teams" class

#

all yoru other command classes stay as they are

grim ice
#

ok

torpid matrix
#

:0 how are you still helping people ElgarL, you must have some major patience! well done!

eternal oxide
#

No life

torpid matrix
#

damn thats a sad response ;-;

eternal oxide
#

You may want to use Map<String, ? extends CommandExecutor> commands = new HashMap<>();

grim ice
#

o

eternal oxide
#

may not need it though

grim ice
eternal oxide
#

doing it all from my head

torpid matrix
eternal oxide
#

lol a month, Yep that long

grim ice
#

too big for humans

#

Required type:
capture of ? extends CommandExecutor
Provided:
Create

#

e

eternal oxide
#

then leave it as CommandExecutor

grim ice
#

ok

eternal oxide
#

?paste your teams class so I can make sure its all correct

undone axleBOT
grim ice
#

o

#

ok

eternal oxide
#

you may want to change this bit to java if (subCommand == null) return false; return subCommand.onCommand(sender, command, label, args);

#

sec

#

better

grim ice
#

o ok

eternal oxide
#

that "should" work

#

give it a try

grim ice
#

o ok thanks

#

ill test it

tardy delta
#

uwu

#

ternary operator is pretty awesome

#

mhm?

#

oh

#

Discord.getInstance() :/

#

event.getMember() (:

#

there is an api

#

it works with events

#

oh ):

lusty cipher
#

Can I use Gson with records? Say

public record SomeRecord(@SerializedName("id") recordId) {}
hybrid spoke
#

singleton 🤢

quaint mantle
#

pretty sure they just get compiled to objects anyways

torn shuttle
#

finally found the bug I've been chasing for two weeks, feels good man

lusty cipher
# quaint mantle try it

in this case it was kinda hard to try but from some Java spec it seems that the annotation is just copied over to the field

#

The concern I have is that the fields are private final, idk how Gson would handle that

torn shuttle
#

it was really dumb too

#

an oversight on my core system when I added a new subsystem

#

during a rewrite

#

would only cause issues if a very specific sequence of events happens in a certain order then got interrupted in a certain way and only in some cases

#

this has to be one of my top 3 bugs in how nightmarish it was to even figure out what was going on thus far

tardy delta
#

💀

regal lake
#

Does command alias don't use the auto complete on bungeecoord plugins ?

vale ember
#

whats the usage of mojang's server mapping?

lusty cipher
#

wtf

#

Ah I guess the reason is that Gson isn't being properly maintained anymore.... :(

lament minnow
#

Is it possible to use getResource to extract an entire folder from a plugin jar?

grim ice
#

@eternal oxide

#

the command is 'Unkown' now

vale ember
grim ice
#

is it cuz i dont have getCommand("team").setExecuter(this);

undone axleBOT
eternal oxide
#

I did say you register the root command only

grim ice
#

o

vale ember
#

checked it, but i still have a question is there a way to make intellij idk import mapping to auto change names in ide?

lean geyser
#

Guys i have big issue,when i join or any member in the server it automaticlly crashes,then restarts.

tardy delta
#

wut

#

errors?

lean geyser
#

literally i cant find errors it shows this

#

w8

#

wait

tardy delta
#

u dutch?

lean geyser
#
[17:14:12] [PaperSpigot Watchdog Thread/ERROR]: Please report this to PaperSpigot directly!
[17:14:12] [PaperSpigot Watchdog Thread/ERROR]: Be sure to include ALL relevant console errors and Minecraft crash reports
[17:14:12] [PaperSpigot Watchdog Thread/ERROR]: PaperSpigot version: git-PaperSpigot-"4c7641d" (MC: 1.8.8)
[17:14:12] [PaperSpigot Watchdog Thread/ERROR]: ------------------------------
[17:14:12] [PaperSpigot Watchdog Thread/ERROR]: Server thread dump (Look for plugins here before reporting to PaperSpigot!):
[17:14:12] [PaperSpigot Watchdog Thread/ERROR]: ------------------------------
[17:14:12] [PaperSpigot Watchdog Thread/ERROR]: Current Thread: Server thread
[17:14:12] [PaperSpigot Watchdog Thread/ERROR]:     PID: 17 | Suspended: false | Native: false | State: RUNNABLE
[17:14:12] [PaperSpigot Watchdog Thread/ERROR]:     Stack:
[17:14:12] [PaperSpigot Watchdog Thread/ERROR]:         net.minecraft.server.v1_8_R3.Chunk.a(Chunk.java:1002)
[17:14:12] [PaperSpigot Watchdog Thread/ERROR]:         net.minecraft.server.v1_8_R3.World.a(World.java:2621)
[17:14:12] [PaperSpigot Watchdog Thread/ERROR]:         net.minecraft.server.v1_8_R3.World.getEntities(World.java:2608)
[17:14:12] [PaperSpigot Watchdog Thread/ERROR]:         net.minecraft.server.v1_8_R3.EntityArrow.t_(EntityArrow.java:183)
[17:14:12] [PaperSpigot Watchdog Thread/ERROR]:         net.minecraft.server.v1_8_R3.World.entityJoinedWorld(World.java:1650)
[17:14:12] [PaperSpigot Watchdog Thread/ERROR]:         net.minecraft.server.v1_8_R3.World.g(World.java:1617)
[17:14:12] [PaperSpigot Watchdog Thread/ERROR]:         net.minecraft.server.v1_8_R3.World.tickEntities(World.java:1450)
[17:14:12] [PaperSpigot Watchdog Thread/ERROR]:         net.minecraft.server.v1_8_R3.WorldServer.tickEntities(WorldServer.java:600)
[17:14:12] [PaperSpigot Watchdog Thread/ERROR]:         net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:846)
[17:14:12] [PaperSpigot Watchdog Thread/ERROR]:         net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378)
[17:14:12] [PaperSpigot Watchdog Thread/ERROR]:         net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713)
[17:14:12] [PaperSpigot Watchdog Thread/ERROR]:         net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616)
[17:14:12] [PaperSpigot Watchdog Thread/ERROR]:         java.lang.Thread.run(Thread.java:748)
[17:14:12] [PaperSpigot Watchdog Thread/ERROR]: ------------------------------```
#

i was told to come here :/

unreal quartz
#

paper spigot, 1.8

#

and you’ve come to spigot

grim ice
#

?paste

undone axleBOT
grim ice
#

oh 1s

#
String worldName = plugin.getConfig().getString("warps." + args[0] + ".world", player.getWorld().getName());
            World world = Bukkit.getWorld(worldName);
            Location loc = new Location(world, plugin.getConfig().getDouble("warps." + args[0] + ".x"), plugin.getConfig().getDouble("warps." + args[0] + ".y"), plugin.getConfig().getDouble("warps." + args[0] + ".z"));
            player.teleport(loc);```
#

HOW CAN IT BE NULL

#

I HAVE A DEFAULT VALUE

tardy delta
#

caps

grim ice
#

String worldName = plugin.getConfig().getString("warps." + args[0] + ".world", player.getWorld().getName());

#

HOW TF IS IT NULL

#

THATS ILLEGAL

#

its smth related to worlds

#

it worked before when i didnt include it

torn shuttle
#

ok now

grim ice
#

wat

torn shuttle
#

I feel like I'm getting trolled by the rating system on spigot

#

5x 5 star reviews and the score doesn't budge, 1 4 star review and it goes down by 0.01

#

I mean I can but it's not like you can really get a historical view of the score

grim ice
#

@eternal oxide btw unkown command

eternal oxide
torn shuttle
#

anyone happen to remember off the top of their heads how to detect entities from the sentinel plugin

#

I had a thing for it somewhere but it seems like I might've lost it in the rewrite

grim ice
eternal oxide
#

You told me absolutely nothing I can do anything with "unknown command"

grim ice
#

it says unkown command, even tho i registered it

eternal oxide
#

more

#

what command are you typing?

grim ice
#

/team

eternal oxide
#

ok, You need an args length check to see if it has any args

#

^

grim ice
#

whwat

eternal oxide
#

use teh same command name as you have in yoru plugin.yml

grim ice
#

getCommand("team").setExecutor(this);

#

no

#

commands:
team:
description: Team Related Commands.

eternal oxide
#

?paste class

undone axleBOT
grim ice
#

ok 1s

eternal oxide
#

currently if you just type /team it shoudl throw an index out of bounds error

grim ice
#

o

eternal oxide
#

on line 44

grim ice
#

o

#

o

#

but there are no errors

eternal oxide
#

you can use just public class Teams extends JavaPlugin

#

JavaPlugin already implements CommandExecutor

#

take final off teh class

grim ice
#

o

#

o k

#

do i add if(!(args.length > 0)) return true;

eternal oxide
#

or false, whatever you like. if you return false it will say an error with the command. if you return tru then it will just be ignored

#

and no

#

use math 🙂 if (args.length == 0) return true;

grim ice
#

o

#

@eternal oxide sorry for ping but why dou think loc is null

            World world = Bukkit.getWorld(worldName);
            Location loc = new Location(world, plugin.getConfig().getDouble("warps." + args[0] + ".x"), plugin.getConfig().getDouble("warps." + args[0] + ".y"), plugin.getConfig().getDouble("warps." + args[0] + ".z"));
            player.teleport(loc);```
eternal oxide
#

theres 3 lines there, any of them can be null

grim ice
#

its smth related to world

#

not loc

eternal oxide
#

sysout world

#

not teh string, the world object

grim ice
#

o

#

ok

dreamy chasm
#

Anyone know how I can use dependencies like Vault without getting a SecurityException error? it has just started happening and im not sure why

#

I just get this java.lang.SecurityException: Invalid signature file digest for Manifest main attributes I have tried the exclusions for maven shade like it says online everywhere but does not work

#

yes I use maven

eternal oxide
#

why are you trying to shade vault?

dreamy chasm
#

I am not trying to shade it, I just added it as a maven dependency and now I am getting this error

eternal oxide
#

did you add a scope?

dreamy chasm
#

and when I look online it is a shade issue

grim ice
#

?paste

undone axleBOT
dreamy chasm
grim ice
eternal oxide
#

yes scope provided

grim ice
#

Elgar

dreamy chasm
#

yes it is scope provided

eternal oxide
#

You are doing somethign funky. Never seen that error before

eternal oxide
dreamy chasm
eternal oxide
#

Have you shown us the full error?

dreamy chasm
#

let me paste the full thing

#

?paste

undone axleBOT
dreamy chasm
grim ice
#

yes

eternal oxide
grim ice
#

wait i didnt

#

i did private final Teams plugin;

#

f

#

i legit just

#

omg im so dumb

eternal oxide
#

If I had an Internet gun I would shoot you

grim ice
#

btw

#

world is null

eternal oxide
grim ice
#

is it becuz i didnt load the world or smth

lost matrix
grim ice
#

idk i dont work with worlds much

eternal oxide
dreamy chasm
grim ice
eternal oxide
quaint mantle
dreamy chasm
eternal oxide
quaint mantle
grim ice
#

im in a special world and it works, but in the default one (which no one is in rn) its not

#

lmao

eternal oxide
quaint mantle
dreamy chasm
grim ice
#

its a default worled

#

world

waxen plinth
#

The madman

#

He actually made a linked list

quaint mantle
waxen plinth
#

I don't wanna dig through the code for bugs though

#

Add debug output

#

The 3 has to be disappearing somewhere

#

Print stuff out at each step and see where it goes missing

dreamy chasm
#

still getting the same error

grim ice
eternal oxide
#

do you have a Manifest file?

dreamy chasm
#

not that I can see

#

I wasnt having this issue yesterday then I boot up the server today and it just starts throwing this error

eternal oxide
#

I'd say delete your shade plugin section of your pom then. You do no shading so don;t need it. then you'll know if its the shade doing it

grim ice
#

anyone there

#

pls help

#

a Bukkit.getWorld() is returning null

#

idk why

#

do i have to load smth or smth

#

idk

eternal oxide
#

fully explain your issue

#

what world?

grim ice
#

wdym what a world

eternal oxide
#

whats the world name

grim ice
#

world

#

im in a different world

eternal oxide
#

doesn;t matter, world can not be unloaded

#

its impossible for Bukkit.getWorld("world") to return null, no matter where you are.

grim ice
#

uh what the fuck

#

what the actual fuck

eternal oxide
#

So long as they IS the name of the main world as specified in your server.properties

grim ice
#

wtf

#

wtf

#

wtf

#

wt

#

f

#

world: !!org.bukkit.craftbukkit.v1_8_R3.CraftWorld
PVP: true
ambientSpawnLimit: 15
animalSpawnLimit: 15
autoSave: true
difficulty: EASY
environment: NORMAL
fullTime: 56104
keepSpawnInMemory: true
monsterSpawnLimit: 70
thunderDuration: 62490
thundering: false
time: 8104
waterAnimalSpawnLimit: 5
weatherDuration: 39615

#

i just checked my config and i find this

eternal oxide
#

looks like you tried to save a world to yoru config, not a location

grim ice
#

OH MY FUCKING GOD

#

plugin.getConfig().set("warps." + args[0] + ".world", player.getWorld());

#

🤦

eternal oxide
#

you do know config have getLocation

#

and you can set a Locations straight to a config

grim ice
#

o

dreamy chasm
#

removing shade didnt change anything unfortunately 😦

#

could something in my project structure be wrong or is that just made from pom.xml etc?

eternal oxide
#

I see no reason for your project to be causing this error

dreamy chasm
#

yup, me neither, might just remove all the dependencies, start all that stuff from scratch and just add it one by one see what breaks it

#

are all my dependencies meant to be in this artifacts section?

earnest lark
#
        ItemStack p = new ItemStack(Material.POTION);
        ItemMeta meta = p.getItemMeta();
        meta.setDisplayName(ChatColor.BLUE + "" + ChatColor.BOLD + player.getName());

        return
    }

what do i retur in this statement

hybrid spoke
#

p

hybrid spoke
#

but you also need to set the meta back

earnest lark
#

ik

hybrid spoke
#

otherwise nothing will be changed

earnest lark
#

ik

#

doing that

eternal oxide
dreamy chasm
earnest lark
#
        ItemStack p = new ItemStack(Material.POTION);
        ItemMeta meta = p.getItemMeta();
        meta.setDisplayName(ChatColor.BLUE + "" + ChatColor.BOLD + player.getName());

        List<String> lore = new ArrayList<>();
        lore.add(ChatColor.AQUA + "death potion of " + ChatColor.BOLD + player.getName());
        meta.setLore(lore);
        p.setItemMeta(meta);

        return p;
    }```this should work right
dreamy chasm
earnest lark
#

yep just checking

quaint mantle
#

Hi guys !
How to do multi-version compatibility include pre-1.17 and 1.17+ versions ?
I'm not asking about how to find my way in the new NMS structure
My question is about:
- Which version of the Java SDK should I use when compiling my plugin (and which version of gradle accordingly) ?
- Which api-version should I put in the plugin.yml file ?

earnest lark
#

for some reson when i try to compile my plugin it says that it cannor reach import net.minecraft.core.BlockPosition;

paper viper
#

Btw pre-1.17, you don’t mean like 1.8 tho right

chrome beacon
#

He does probably

paper viper
#

Yikes

quaint mantle
paper viper
#

That’s better

quaint mantle
earnest lark
#

ok i have java 16 so i should switch the version and ittl be all good right?

eternal oxide
#

yep