#help-development

1 messages · Page 94 of 1

shadow zinc
#

I successfully did it for all the other versions above but this version lacks a lot and is making it difficult

young knoll
#

Ah so you want to turn a string into a key

shadow zinc
#

No

#

I want to get the key

#

for v1_15_R1

#

the photo is code that was originally written in 1.19.1

young knoll
#

At

#

Ah

#

I guess the api didn’t have that method in 1.15

#

Why are you using an execute command to teleport a player

shadow zinc
#

Its for clickable text

young knoll
#

I see

#

Could always register a custom command and use that

#

Anyway if the getKey method didn’t exist then you probably need NMS

shadow zinc
#

I am using NMS

#

but nms is a bit tricky and 1.15 has stumped me

young knoll
#

Did worlds even have keys then

#

Idk 1.15 was so long ago :p

shadow zinc
#

thats what I'm wondering

#

would just using the world name work, I'm trying that now

young knoll
#

Could you even cross dim tp back then

wet breach
#

but the thing that worlds have always had though is UUID's

shadow zinc
#

it was an easier time when I only supported 1.19

wet breach
#

well it is up to you what you want to support

#

personally I only support latest versions in my plugins

#

it isn't my problem or concern if people choose to not update that is their choice, but that doesn't mean I have to support their choices in my development process

shadow zinc
#

ik but I made a really cool versioning framework and I want to use it with something

young knoll
#

Make your own tp command

#

That can use the world name or uuid

shadow zinc
#

yeah I was thinking about that

visual citrus
#

do you know how to create class to check entity location?

#

..help?

drowsy helm
#

entity#getLocation()?

visual citrus
#

i need to check armor stand move

#

there's no event that can be used for my plugin

lean monolith
#

how can I refresh a make it where a menu refreshes?

visual citrus
#

idk

hushed pawn
#

How to get if player's feet touching groud if only thing you can get is player's location? (player is not real)its an npc

drowsy helm
#

get location, y-1 and check if its solid

visual citrus
#

i will ask one more time

#

how to check armor stand is on ground?

#

= there's no event

shadow zinc
#

not everything has an event

#

spigot isn't all events

grizzled oasis
quaint mantle
#

Can Someone help me

#

how to add payment on spigotmc?

#

i want buy resoures on spigotmc but how to add payment in your account?

sullen marlin
#

you dont

#

payments are via paypal

quaint mantle
sullen marlin
#

by clicking the buy button

quaint mantle
shadow zinc
#

🙏

quaint mantle
shadow zinc
sullen marlin
#

what does the red message say at the top of that resource

shadow zinc
#

😛

quaint mantle
#

owh damn 😦

shadow zinc
#

F

#

How should I change my maven module java version so I don't get cannot access net.minecraft.world.level.WorldGenLevel (assuming thats the problem)

drowsy helm
#

Which dependency are you using

grizzled oasis
shadow zinc
# grizzled oasis thanks

np, it was really hard using https://google.com for a second and I think I should be compensated

grizzled oasis
grizzled oasis
amber bronze
#

Hi! I am trying to use spigot instead of spigot-api since it has net minecraft server in it but when i try to do it in maven it shows pom.xml
Could not find artifact org.spigotmc:spigot:pom:1.12.2-R0.1-SNAPSHOT in spigotmc-repo (https://hub.spigotmc.org/nexus/content/repositories/snapshots/)

I tried to use buildtools but

Exception in thread "main" org.eclipse.jgit.errors.RepositoryNotFoundException: repository not found: C:\Users\Remixiak\Downloads\Bukkit```
manic furnace
#

I register an objective like this after unregister it:

this.objective = scoreboard.registerNewObjective("edi-display", "dummy", ChatColor.GOLD + "EDInfo");

But for some reason, when I list myself all objectives of the scoreboard, it isn't there

amber bronze
manic furnace
#

yes

amber bronze
#

then idk

#
ScoreboardManager manager = Bukkit.getScoreboardManager();
                Scoreboard scoreboard = manager.getNewScoreboard();

                Objective o = scoreboard.registerNewObjective("pit", "dummy");
                o.setDisplayName(ChatColor.LIGHT_PURPLE.toString() + ChatColor.BOLD + "THE PIT");
                o.setDisplaySlot(DisplaySlot.SIDEBAR);

                o.getScore(ChatColor.LIGHT_PURPLE.toString()).setScore(7);
                o.getScore(ChatColor.WHITE + " XP: " + ChatColor.AQUA + playerData.getXp()).setScore(6);
                o.getScore(ChatColor.WHITE + " Gold: " + ChatColor.GOLD + playerData.getCoins()).setScore(5);
                o.getScore(ChatColor.AQUA.toString()).setScore(4);
                o.getScore(ChatColor.WHITE + " Status: " + ChatColor.RED + "SOON").setScore(3);
                o.getScore(ChatColor.WHITE + " Bounty: " + ChatColor.RED + "SOON").setScore(2);
                o.getScore(ChatColor.BLACK.toString()).setScore(1);
                o.getScore(ChatColor.LIGHT_PURPLE + "example.com").setScore(0);

                event.getPlayer().setScoreboard(scoreboard);```
#

i have it like this

manic furnace
#

Can have a play mulitple scoreboard?

fluid cypress
#

when i do Bukkit.getOfflinePlayer(UUID), where does it get the info from?
because, i have a plugin for selling regions that stores the owners uuids. the problem is that somehow i messed it up, and now the server doesnt know the name of a lot of uuids (unless they join the server again), and many regions owned by people who have not logged in for a long time have "unknown uuid" as the owner name
but worldguard saves its own cache of uuid -> name keyvalue pairs in profiles.sqlite, so maybe i could use that to fix it, but how? where does the getOfflinePlayer method get the data from? so i can manually set it

amber bronze
manic furnace
#

Like that a player has multiple scoreboards. Like one plugins sets the scoreboard, but a other one sets it too.

amber bronze
#

they gonna conflict

manic furnace
#

So wouldnt It be better to get the players scoreboard?

amber bronze
#

why cant u make it one plug

manic furnace
#

I mean just in Case another plugin that runs on the server do something with scoreboards too

agile anvil
quaint mantle
#

Alright, say there is Plugin A and Plugin B. How do you load Plugin B if it is shaded inside of Plugin A, and there isn't a physical .jar for Plugin B inside of the plugins folder.

agile anvil
agile anvil
quaint mantle
fluid cypress
agile anvil
amber bronze
quaint mantle
fluid cypress
#

there are some <uuid>.dat files inside each world playerdata/ folder

#

but which one does it uses? im using multiverse

#

also, those files seem to be just raw binary data or something

agile anvil
amber bronze
#

wait are you using some hashmap that have Player, Data?

fluid cypress
#

umm, i have the players database from worldguard

agile anvil
fluid cypress
#

it has all uuids with their names, so

fluid cypress
quaint mantle
amber bronze
#

why u get OfflinePlayer

fluid cypress
#

im not, its not my plugin

amber bronze
#

you should find data by UUID not OfflinePlayer

agile anvil
fluid cypress
#

but its getting the offline player to get the name

agile anvil
#

Oh that's not your plugin...

amber bronze
fluid cypress
#

so, ill try that

#

thanks

agile anvil
amber bronze
agile anvil
fluid cypress
#

yea, but then, the getName method

#

probably uses that json file

agile anvil
amber bronze
#

ye

fluid cypress
#

what does the expiresOn date mean?

hushed pawn
#

i did (byte)loc.getX(),(byte)loc.getY(),(byte)loc.getZ()

#

i guess did something wrong

quaint mantle
charred blaze
#

how can i spawn redstone block break particle in 1.12.2 api?
Player.spawnParticle(Particle.BLOCK_DUST, p.getLocation().add(0.0D, 1.0D, 0.0D), 30, Material.REDSTONE_BLOCK.getData());
^ gives me an error

quaint mantle
#

There is also overhead for every given plugin, and the more plugins that I add to a server the longer it'll take to startup

agile anvil
robust light
#

Is there a way to get the current potion duration of the player, as well as the duration of a potion they just drank?

quaint mantle
quaint mantle
grizzled oasis
hushed pawn
#

how to properly cast double into byte?

#

(byte)loc.getX(),(byte)loc.getY(),(byte)loc.getZ() is just like few blocks away

drowsy helm
#

Whats your usecase

hushed pawn
#

i want to sent packet to update npc position

drowsy helm
#

A byte only goes so high

hushed pawn
#

it requers byte, so i want to cast double into byte

drowsy helm
#

Which packet are you using

#

Theres a tp packet and a move packet

hushed pawn
#

PacketPlayOutEntity.PacketPlayOutRelEntityMove

drowsy helm
#

And it’s relative to cur position

#

I think max you cab move is around 20 blocks or so

hushed pawn
#

wait rel means relative

drowsy helm
#

Yep

hushed pawn
#

okay

charred blaze
# agile anvil What error ?

Caused by: java.lang.IllegalArgumentException: data should be class org.bukkit.material.MaterialData got class java.lang.Class

iron glade
#

Gosh spigot being so annoying
Crash plugins are against the rules just cause the troll plugin has one command that kicks the player and prevents him from joining back for 10 seconds, are you kidding? Now I gotta wait another 6 weeks to get this approved

grizzled oasis
#

a question i want generate custom structure inside my world generator i tried to do that from post and forum but none gives a result only crash, someone have a simple or some sort of generator with structure built in?

agile anvil
agile anvil
grizzled oasis
quaint mantle
# agile anvil What is your plugin meant to do actually, and what modules are you thinking of ?

Right now we are currently a 1 plugin server on all of our gamemodes, and because of this our plugins have gotten extremely large (our SkyBlock has just under 2500 class files). Alot of our gamemodes have very similar frameworks, with examples being our NPC System, Hologram Framework, Redis framework, Mongo framework, etc - so we had wanted to move all of these into an individual module that would be implemented as a dependency on our core plugins. The modules are not meant to have anything gamemode specific as they are on every gamemode, so the modules are just doing the heavy grunt work while the core plugin for the gamemode uses the modules to say create npcs and holograms

drowsy helm
#

sounds like a massive refactor

quaint mantle
agile anvil
#

If you're a server network, then you'll want to work like this:

  • having a "core" plugin that as all libraries (mongo, holograms, npc) and bring all the player data
  • having a plugin for each gamemode (in your case for instance the Skyblock plugin) that hooks in the core plugin
  • may be some other plugins that need to be separated such as AC or idk what
grizzled oasis
agile anvil
agile anvil
quaint mantle
misty ingot
#

how can I make a command tab complete on the first argument with all players who have ever joined the server?

iron glade
#

where do I open a report on spigot's website?

agile anvil
charred blaze
#

what am i doing wrong exactly?

quaint mantle
agile anvil
charred blaze
agile anvil
agile anvil
# charred blaze yes

57000 results in 0.5s

event.getPlayer().spawnParticle(Particle.BLOCK_DUST, placed.getLocation(), 5, blockInstance.getBlockData());
charred blaze
#

as someone told me

charred blaze
#

Particle.getDataType()?

agile anvil
#

You try to do a RESTONE dust ?

charred blaze
charred blaze
#

yes

#

Player.spawnParticle(Particle.BLOCK_DUST, p.getLocation().add(0.0D, 1.0D, 0.0D), 30, Particle.REDSTONE.getDataType());

#

so like this?

agile anvil
#

Maybe

#

You'll have to try yourself, and find out how to do

#

Or just update your plugin to last version

charred blaze
#

Caused by: java.lang.IllegalArgumentException: data should be class org.bukkit.material.MaterialData got class java.lang.Class

glad prawn
#

Is there a way to set health for offline player?

agile anvil
charred blaze
#

do i need to?

agile anvil
# misty ingot .

Create a tabexecutor, and for the first argument return the getOfflinePlayers that you filtered with the first few chars (I recommend requiring at least 3 to 4 chars)

agile anvil
charred blaze
agile anvil
charred blaze
grizzled oasis
#

someone know the last version can be usable in worldedit api

agile anvil
agile anvil
charred blaze
#

how do i check that?

agile anvil
#

Or check javadoc

grizzled oasis
# agile anvil Check the worldedit page and find the last version name

is 7.3.0 but going to install it do this

Failed to read artifact descriptor for com.sk89q.worldedit:worldedit-bukkit:jar:7.3.0-SNAPSHOT
Unresolved dependency: 'org.spigotmc:spigot-api:jar:1.18-R0.1-SNAPSHOT'
Unresolved dependency: 'co.aikar:acf-paper:jar:0.5.0-SNAPSHOT'
Unresolved dependency: 'com.sk89q.worldedit:worldedit-bukkit:jar:7.3.0-SNAPSHOT'
Unresolved dependency: 'commons-lang:commons-lang:jar:2.6'
Unresolved dependency: 'com.google.guava:guava:jar:31.0.1-jre'
Unresolved dependency: 'com.google.code.gson:gson:jar:2.8.8'
Unresolved dependency: 'net.md-5:bungeecord-chat:jar:1.16-R0.4'
Unresolved dependency: 'org.yaml:snakeyaml:jar:1.28'
Unresolved dependency: 'com.google.guava:failureaccess:jar:1.0.1'
Unresolved dependency: 'com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava'
Unresolved dependency: 'com.google.code.findbugs:jsr305:jar:3.0.2'
Unresolved dependency: 'org.checkerframework:checker-qual:jar:3.12.0'
Unresolved dependency: 'com.google.errorprone:error_prone_annotations:jar:2.7.1'
Unresolved dependency: 'com.google.j2objc:j2objc-annotations:jar:1.3'

charred blaze
#

org.bukkit.Particle.dataType

#

i think

agile anvil
#

So go to javadoc

charred blaze
#

Returns the required data type for the particle

shadow zinc
#

how can I use java 17 in my maven module but keep my project at java 8?

charred blaze
shadow zinc
agile anvil
charred blaze
agile anvil
#

Oh that's graddle sorry so idk 😂

shadow zinc
#

maven all the way boyz

agile anvil
#

The last argument

#

What is the type ?

charred blaze
misty ingot
agile anvil
#

It's MaterialData

#

So figure out how to cast a class to MaterialData

agile anvil
charred blaze
sturdy frigate
#

I've disabled BlockBreak and BlockPlace events on a world but using world edit to break or place is possible, is there a way to stop that?

chrome beacon
#

Hook the WorldEditAPI

sturdy frigate
#

ah okay

agile anvil
#

Read the error

charred blaze
# agile anvil Read the error

Caused by: java.lang.IllegalArgumentException: data should be class org.bukkit.material.MaterialData got class java.lang.Class

agile anvil
#

And what's the error when you cast to MaterialData

#

?

shadow zinc
#

I need help with this

quaint mantle
shadow zinc
hazy parrot
#

so you cant cast it

agile anvil
agile anvil
charred blaze
#

isnt it already MaterialData?

hazy parrot
#

its class

charred blaze
#

blockdata isnt in 1.12.2

#

i think

hazy parrot
#

¯_(ツ)_/¯

charred blaze
agile anvil
#

Did you try casting to MaterialData ?

hazy parrot
#

if you are using this, read what data means

charred blaze
#

why i have to when its already MaterialData

onyx fjord
charred blaze
onyx fjord
#

1.12 is old enough if you think about it

charred blaze
#

but it was same error

onyx fjord
#

Helping you with using deprecated methods isn't good advice

hazy parrot
#

Also I see no where #spawnParticle method that overloads with your number of arguments

#

i might be blind

#

you have only 4 args

maiden briar
#

If I call this constructor

public net.minecraft.network.protocol.game.ClientboundSystemChatPacket(net.kyori.adventure.text.Component,java.lang.String,boolean)

With these values

null, {"text":"§cPVP is OFF (example)"}, true

I get java.lang.IllegalArgumentException without any description

chrome beacon
#

That's not Spigot

buoyant viper
#

u sure u get the right constructor?

maiden briar
#

Yes, I have printed the constructor right before I've invoked it

maiden briar
#
System.out.println(constructor);
return new Reflection(constructor.newInstance(arguments));
chrome beacon
#

Why are are you using packets for messages?

hazy parrot
maiden briar
#

But that is not the question

chrome beacon
#

This has been in the api for ages

maiden briar
#

The question is, why can't I invoke the constructor

#

How I do it, is my business

chrome beacon
#

You didn't provide the full error nor the full code

maiden briar
#

Ok I can do that if you want

chrome beacon
#

And you're not using Spigot nor using the existing api

onyx fjord
#

is he using paper api

#

lol

chrome beacon
#

Yes

onyx fjord
#

lol

shadow zinc
#

?whereami

onyx fjord
#

💀

maiden briar
onyx fjord
#

you know you can do pretty much anything with spigot api that paper api can

charred blaze
#

dedicated

maiden briar
#

The issue is the same on Spigot, but then with BaseComponent[]

hazy parrot
maiden briar
#

The only thing that differs is the constructor

charred blaze
hazy parrot
#

yap

charred blaze
#

ah

#

right

#

ur blind 😄

chrome beacon
onyx fjord
#

intellij will tell you when you use which

shadow zinc
#

Can I get some help with this compilation error cannot access net.minecraft.world.level.WorldGenLevel

chrome beacon
#

There is no reason for nms packets

shadow zinc
#

its going something to do with java versions I think

maiden briar
onyx fjord
#

oh god c# codestyle

maiden briar
onyx fjord
#

not with that attitude

chrome beacon
#

^

#

Also you intercept packets not send them

maiden briar
#

Yes that's 100% true

chrome beacon
#

Done helping you now

shadow zinc
maiden briar
#

Ok I will find it out myself

chrome beacon
#

Since you want to make yourself suffer don't drag us in to it

shadow zinc
chrome beacon
shadow zinc
maiden briar
#

Seems that I have made a stupid mistake. I was inserting a List in the constructor, not an Object[]. That was everything. If you have looked at my code you might have noticed..... Maybe?

shadow zinc
# chrome beacon Main module Java 8 NMS module Java 17 Then shade

Tackling the first module that throws the error, 1_17_R1, I got this error ```java
invalid target release: 16

Module NeoUtils-1_17_R1 SDK 1.8 is not compatible with the source version 16.

Upgrade Module SDK in project settings to 16 or higher. Open project settings.

chrome beacon
chrome beacon
maiden briar
onyx fjord
#

you come here to spigot using paper api and expect support

chrome beacon
#

Also I doubt Paper would help with that

shadow zinc
maiden briar
#

The issue was an reflection issue

chrome beacon
#

They'd tell you the same thing

#

Reflection issue where you don't need reflection

obsidian drift
#

Is there any event I can use for disabling grass spreading?

onyx fjord
#

BlockSpreadEvent

#

? event#getSource() and check if its grass_block

shadow zinc
#

Compiling with java 17 for my NMS module java <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <source>17</source> <target>17</target> </configuration> </plugin>

maiden briar
obsidian drift
maiden briar
onyx fjord
#

doesnt matter if problem has to do or doesnt have to do with spigot

#

btw fyi posting paper only plugins on spigot is not allowed

maiden briar
chrome beacon
#

That was the fix for the error though

onyx fjord
#

but you use paper api dont you?

grim ice
#

why are you mad because of a recommendation

chrome beacon
#

Not using reflection in the first place

grim ice
#

skill issue

maiden briar
onyx fjord
#

spigot plugins work on paper though

maiden briar
onyx fjord
#

adventure also works on spigot

shadow zinc
#

@chrome beacon I changed it to java 17 but the error is practically identical, am I missing something crucial? ```java
invalid target release: 17

Module NeoUtils-1_17_R1 SDK 1.8 is not compatible with the source version 17.

Upgrade Module SDK in project settings to 17 or higher. Open project settings.```

onyx fjord
#

gotta shade it

maiden briar
shadow zinc
#

Oh do I need one of those little properties things for java 17?

grim ice
#

how sensitive kids are now

shadow zinc
grim ice
#

back in my day u would get screamed at brutally for not knowing java 😂

shadow zinc
#

that still happens

grim ice
#

having an ego when youre asking for help is straight up pathetic imo

maiden briar
# grim ice cry about it

Ok, then if you find it so funny, tell me ANOTHER way on how to solve the problem:

  1. A plugin is sending an action bar (ANOTHER plugin then my plugin) via the Spigot API
  2. My plugin intercepts that action bar (by packets) and replaces

(This is what my client requested)

grim ice
onyx fjord
#

people are like, to code plugisn you msut know every java keyword

grim ice
#

is just use a custom jar

chrome beacon
grim ice
#

would take a few minutes to do

#

or just edit the plugin that's doing it??

maiden briar
grim ice
#

then use

#

MixBukkit

#

a mixin library for bukkit and its forks

shadow zinc
shadow zinc
#

🙂

onyx fjord
#

i have 17 years of experience

maiden briar
grim ice
#

i have 32 years of experience, i learnt java when it released!!!

onyx fjord
#

i know skript

shadow zinc
onyx fjord
#

java skript

shadow zinc
#

mmm, you're lucky pal

onyx fjord
#

console.log("plugin started")

chrome beacon
#

You don't need a new instance

shadow zinc
#

?paste

undone axleBOT
maiden briar
maiden briar
grim ice
#

i told you a pretty good solution

#

use MixBukkit

chrome beacon
#

No reason to create that packet

maiden briar
#

So you say cancel the packet and then send the modified message?

shadow zinc
grim ice
#

tbh nowadays u barely need to use nms

#

there are a lot of libraries and stuff that abstract it

shadow zinc
#

like commons, obviously

grim ice
#

what are you trying to do?

maiden briar
grim ice
#

not really

#

he asked a maven question

shadow zinc
#

alright so, I got 1.8-1.19 nms modules but I get an error in my 1.17> modules saying cannot access net.minecraft.whatever. I deduced its a java version related problem so I figured I need to define my parent module to be 1.8 and all 1.17 and up NMS modules to be java 17.

#

My current pom gets me the following error

#
invalid target release: 17

Module NeoUtils-1_17_R1 SDK 1.8 is not compatible with the source version 17.

Upgrade Module SDK in project settings to 17 or higher. Open project settings.```
#

I've been basing a lot of my structure off other libraries, however, I still get this error

#

Just wondering where I should go from here to not f everything up

chrome beacon
#

Is this the same project you added me to yesterday?

shadow zinc
#

no

#

I fixed that yesterday

chrome beacon
#

Alright could you send the poms

shadow zinc
#

its public baby

opal juniper
#

so much nms PES_Hands

grim ice
#

use this to send links without embeds:
<google.com>

shadow zinc
#

I also want to make it clear that I only just learnt the principles of SOLID yesterday and I have been coding without knowing them for about 4 years

#

so if anything looks a bit funky, thats most likely why

onyx fjord
shadow zinc
#

you're done

pulsar parcel
#

Hello, I have this code with new Runnable() and I am trying to make respawn counter for five seconds. But if I will kill my self and then respawn, it don't run timer, and make nothing what in it. It make everything, what is out of run(), but it not run what is inside of run(). Can someone help me with it? Here is code: https://pastebin.com/R6vZRcgj

chrome beacon
#

ouch that code isn

#

't going to work very well

#

You need a timer per player

#

Also hardcoding those items like that isn't ideal

pulsar parcel
#

oh so make loop for Player p : Bukkit getOnlinePlayers?

chrome beacon
#

no

#

The timer int would be better off being stored in the runnable

#

Because right now every player shares the same timer int

#

that will cause issues

pulsar parcel
#

oh ok thanks

chrome beacon
#

Also the run method will only be triggered once

#

You probably want a repeating task instead

#

?scheduling

undone axleBOT
last ledge
#

☕ A coffee an hour keeps the bugs away.

pulsar parcel
shadow zinc
#

Oh shoot I forgot to push my code, alright if you look now you should see my current poms, sorry about that

chrome beacon
#

I'll have to check it later today

#

Don't have my tools setup on my laptop yet

opal juniper
#

whats the problem

opal juniper
#

i dont see why there would be a version issue

shadow zinc
#

me neither

#

but thats why I am here

opal juniper
#

i cant really even look cause i dont have all the nms versions lol

shadow zinc
#

lol that took an hour to build

#

never again

chrome beacon
#

Yeah I have all of that on my pc at home

#

I'll have access to it later today

opal juniper
#

you have every nms version

#

thats sad

chrome beacon
#

I built every Spigot version 1.8 - 1.19.2

opal juniper
#

i reiterate my previous comment 😝

shadow zinc
#

only true mega chads have every nms version

chrome beacon
#

You never know when it's needed

shadow zinc
#

how big is your .m2?

chrome beacon
#

🤷‍♂️

opal juniper
#

use illegal codemc repo thonkeng

shadow zinc
#

2.8G is the size of my .m2

opal juniper
shadow zinc
#

damn

opal juniper
#

thats like one node project

shadow zinc
#

I need to step up my game

chrome beacon
#

||/s||

opal juniper
#

fucking Microsoft truncates my name angryeyes

#

although i found a way around it - dont sign in with microsoft when you are setting up your pc and it will use the full name you give it. then just sign in when you are into windows

shadow zinc
#

microsoft is so good...

opal juniper
#

so my laptop is C:\Users\Ollie

#

so many .* dirs PES_Cry

shadow zinc
chrome beacon
#

.wurst 👀

opal juniper
#

naughty naughty naughty

#

ugh i really dont want to finish this paper lol

#

im at 3000 words and i need to get to 5k

shadow zinc
#

I was testing my anticheat honestly

grim ice
vocal cloud
#

Your computer is bad that's the issue

flint coyote
#

If it works in a vm you might just do a 1-2 hour trip to reinstall Windows and revocer all your files from an external drive at this point💀

flint coyote
#

I do that about once every 1 or 2 years anyway

grim ice
#

i dont have a clue on how to do that

#

lo

flint coyote
#

It's legit super easy

grim ice
#

how

flint coyote
#

Do you have a usb-stick > 8 GB?

grim ice
#

no

vocal cloud
#

You can reinstall windows without removing personal files

grim ice
#

how will reinstalling windows fix anything eitherway?

shadow zinc
#

depends

flint coyote
#

Because everything will be installed from scratch? So any bugs or corrupted files are gone

shadow zinc
#

I once broke my computer so bad that I couldn't actually reset it

#

or run the restore command

#

it was fucked

grim ice
#

i dont have a usb stick thats over 8gb

flint coyote
#

Order one from amazon. it's like 4€ lol

grim ice
#

i have a 4gb one

#

lol

shadow zinc
#

lol very specific

flint coyote
#

nah you need 8+😅

grim ice
flint coyote
#

Wat

#

where do you live? Point Nemo?

grim ice
#

in alaska

#

jk

#

anyways

flint coyote
#

and there aren't any tech shops?

grim ice
#

there are

#

i could prob buy one

flint coyote
#

then you just need something to store your files on

grim ice
#

ok, supposedly i have it

#

now what

snow compass
shadow zinc
#

just write down all the binary on paper and then re-enter it afterwards

flint coyote
#

Do you have 2 or more hdds/ssds/m2s?

vocal cloud
#

I think it's the computer just can't keep up with MC anymore

grim ice
#

no

flint coyote
#

or an external drive?

grim ice
#

i dont think its the computer's fault

shadow zinc
#

specs?

grim ice
#

and plus

#

it worked once when i did some certain jvm args

#

but then it randomly stopped

flint coyote
#

I mean you could try another jdk

grim ice
#

i tried that

shadow zinc
#

I told you 2Hex, those free asian dating ads aren't real

grim ice
#

wtf

shadow zinc
#

jokes

flint coyote
#

Did you try removing all other jdks? And setting your environment variables yourself?

#

Like manually instead of installer

grim ice
#

uh no

#

i just used the msi

#

installer one to override the other

flint coyote
#

try it manually with azul zulu jdk

grim ice
#

i do have azul zulu

#

its the same thing

flint coyote
#

didn't you have microsoft?

grim ice
#

microsoft build of it

#

wait

#

wtf

flint coyote
#

Can you download it from azul directly then? And just try to remove all jdks and install that one manually? Maybe your multiple installers messed something up

grim ice
#

i dont have azulu zulu but i could swear i installed it

flint coyote
#

that's why you don't use the msi xD

grim ice
#

ah right

#

i tried changing mc jre

#

to azulu zulu

#

didnt change anything

flint coyote
#

Well time to uninstall all java versions

grim ice
#

shouldnt i just

#

change the environment variables

#

lol

flint coyote
#

You could. I just dunno how to change it in mc

#

So I would want to be sure it's actually using the right one

#

Because I also had a scuffed jdk before and I couldn't compile something that usually takes a minute to compile in 30 min and my cpu was at 100% constantly

grim ice
#

so i just have to

#

run the azulu zulu installer?

flint coyote
#

no don't use the installer

grim ice
#

mc uses its own jre anyways unless u tell it not to

flint coyote
#

download zipped version

grim ice
flint coyote
#

Alright. Now go to C:/Program Files

#

and rename Java (so it won't find it anymore). Just do Java_Old or whatever

#

Close all java apps beforehand obviously

grim ice
#

okay

flint coyote
#

Create a new Java folder

grim ice
#

done

flint coyote
#

move in the content of the zip. So there's Java/<whatever name>/bin conf demo etc

#

you will need whatever name for the environment variables. I usually just go with jdk-17

grim ice
#

btw do i get the jdk

#

or jre

#

from azulu

flint coyote
#

Google for zulu jdk and you should already land on the right page

#

and jdk also contains a jre

grim ice
#

alright

grim ice
#

and ill have to change my environment variables tbh

#

since theyre messed up now

#

after changing shit

flint coyote
#

Now open you environment variable dialog

#

Ye we gonna do that now

#

You have a JAVA_HOME variable?

grim ice
#

yes

flint coyote
#

good point it to the Java/whatever name folder

#

C:\Program Files\Java\jdk-17 in my case

#

dang wrong slash xD

#

aight fixed it

grim ice
#

alright

flint coyote
#

next click edit on your variable named Path

#

should all be under system unless you installed java for only one user or whatever

grim ice
#

okay

flint coyote
#

Are there any lines that point to JAVA_HOME or previous jdks/jres in that Path?

grim ice
#

%JAVA_HOME%\bin;

flint coyote
#

ah that's fine

#

you can keep that

#

without the semicolon tho

#

any others?

grim ice
#

yes a lot others

#

of the other jres

#

i removed all of them

flint coyote
#

good

#

Check your users path aswell

#

just to be sure

grim ice
#

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0;%JAVA_HOME%\bin;C:\Users\pcc\Downloads\gradle-6.9.1-bin\gradle-6.9.1\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Gpg4win\..\GnuPG\bin

#

is this good

flint coyote
#

Don't think you need them but now you have them backed up anyway.

#

so you deleted all of those?

grim ice
#

no

#

this is after i deleted

flint coyote
#

I would remove the oracle one aswell

#

since it's another jdk or jre

#

besides that keep the rest

#

then open cmd (or powershell) and run java -version

grim ice
#

okay

quiet ice
#

Does anyone perchance know what eclipse or intelliJ uses to resolve the dependencies of a maven project?

flint coyote
#

Did it work? Does it show zulu?

flint coyote
quiet ice
#

What internals it uses

#

Correctly trying to write a maven plugin that adds a dependency to the maven project

#

While the maven-compiler-plugin recieves the dependency, eclipse and IntelliJ do not

flint coyote
#

I see. But idk sorry :/

grim ice
flint coyote
#

Alright then try minecraft again. Either tell it to use that jdk or set it to whatever the default setting was

grim ice
#

alright

quiet ice
amber bronze
#

is NMS on 1.12.2 not working or its just mr

#

me

quiet ice
#

How does it not work?

crystal palm
#

hellos. i've saved locations into the config using:

plugin.getConfig().set("RegisteredBlocks." + plugin.getConfig().getConfigurationSection("RegisteredBlocks").getKeys(false).size(), block.getLocation());```
now i want to check whether said block has already been registered every time this registerblock command is executed. any idea on how i could do that?
data file looks like
```yaml
RegisteredBlocks:
  '0':
    ==: org.bukkit.Location
    world: world
    x: -12.0
    y: 73.0
    z: -30.0
    pitch: 0.0
    yaw: 0.0

there will be multiple locations btw, so '0', '1' blah blah

amber bronze
quiet ice
#

What is the error when running BT?

eternal oxide
#

works fine if you use teh correct java

quiet ice
#

And if you are running BT in the correct folder

amber bronze
onyx fjord
#

too new java, perhaps?

#

no idea why you need 1.12

eternal oxide
#

Tested and ran fine ```Success! Everything completed successfully. Copying final .jar files now.
Copying craftbukkit-1.12.2-R0.1-SNAPSHOT.jar to P:\BuildTools\BuildTools..\craf
tbukkit-1.12.2.jar

  • Saved as ..\craftbukkit-1.12.2.jar
    Copying spigot-1.12.2-R0.1-SNAPSHOT.jar to P:\BuildTools\BuildTools..\spigot-1.
    12.2.jar
  • Saved as ..\spigot-1.12.2.jar```
flint coyote
grim ice
#

nah

#

sadly

grim ice
flint coyote
#

well. I would clean reinstall windows at this point. But you would need an external drive (or usb-stick if storage is sufficient) and another usb stick to install windows with

#

Worth it for minecraft🙂

vocal cloud
#

You don't need to wipe everything to reinstall windows

flint coyote
#

I really suggest doing that tho

vocal cloud
#

I still think the PC just can't handle the new MC features. If it was truly a PC problem why would old versions work fine

flint coyote
#

I know you don't but that's the only way to really get a clean state. Otherwise you will keep rubbish on your drive

grim ice
#

bro

#

my pc cant handle the main menu?

#

are you on drugs?

#

that makes no sense lol

vocal cloud
#

Other versions work fine right?

grim ice
#

yes

#

what are the new mc features that affect the main screen???

#

lmao

vocal cloud
#

The java version

grim ice
#

i use the same java versio nfor 1.17

#

works fine

vocal cloud
#

I thought you had issues with 1.17

grim ice
#

no

#

i have issues with 1.18 and above

eternal oxide
#

just build it with jav 8 or 11

amber bronze
#

i did

#

then i would get other message

chrome beacon
#

What message

amber bronze
#

that i am using wrong java version

vocal cloud
eternal oxide
#

if you have multiple java versions you have to specify a full path

#

I use ```bat
@echo off

mkdir BuildTools
cd BuildTools

SET JAVA_CURRENT="C:\Program Files\Eclipse Adoptium\jdk-17.0.1.12-hotspot\bin\java.exe"
SET JAVA_8="C:\Program Files\AdoptOpenJDK\jdk-8.0.252.09-hotspot\bin\java.exe"

SET BUILDTOOLS_URL="https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar"

curl -z BuildTools.jar -o BuildTools.jar %BUILDTOOLS_URL%

SET /p Input=Enter the version: || set Input=latest
for /f "tokens=1,2,3 delims=." %%a in ("%input%") do set major=%%a& set minor=%%b& set revision=%%c

IF "%major%"=="latest" (
SET cmd=%JAVA_CURRENT%
GOTO execute
)
IF "%major%"=="1" (
IF %minor% GEQ 17 SET cmd=%JAVA_CURRENT%
IF %minor% LEQ 16 SET cmd=%JAVA_8%
)

:execute
%cmd% -jar BuildTools.jar --generate-source --generate-docs --remapped --output-dir .. --rev %Input%

cd ..

pause

:: --generate-source --generate-docs --remapped```

grim ice
#

8

vocal cloud
#

Does f3 show anything sus?

grim ice
#

not really

amber bronze
#

but ill try

vocal cloud
crystal palm
vocal cloud
#

by using a database

#

or cache in memory

drowsy helm
#

Cache it

#

Configs suck for these sort of queries

echo basalt
#

I mean

#

you could just save data through the location key

crystal palm
echo basalt
#

or cache per chunk type deal

#

For my client-sided blocks system I did a chunk system and used chunksection hashes to fetch blocks per chunk n all

drowsy helm
#

Cache just means load the data to memory for quick access

crystal palm
#

into a map or something?

#

(yes, im new to this)

drowsy helm
#

Depends how you want to structure it

#

Like illusion said, a per chunk cache would probably be most efficient

wraith cradle
#

i need help with the nms api (minecraft 1.19)

Useful info:
PacketPlayOutPlayerInfo.EnumPlayerInfoAction.a is the obfuscated version of PacketPlayOutPlayerInfo.EnumPlayerInfoAction.ADD_PLAYER
PacketPlayOutPlayerInfo.EnumPlayerInfoAction.e is the obfuscated version of PacketPlayOutPlayerInfo.EnumPlayerInfoAction.REMOVE_PLAYER

its quite simple but i cant find any resources online:
Im making an npc by sending java connection.a(new PacketPlayOutPlayerInfo(PacketPlayOutPlayerInfo.EnumPlayerInfoAction.a, fakePlayer.getHandle())); (along with a couple others) to all nearby clients, then im trying to use the packet PacketPlayOutPlayerInfo.EnumPlayerInfoAction.e to remove the npc from the tablist without despawning it

The issue: After I call the packet to remove the npc, the skin of the npc gets removed, whats the actual way of removing an npc/player from the tablist?

drowsy helm
#

Destroy entiry

#

Entity

#

Whatever the nms packet is

wraith cradle
#

im not trying to destroy the entity tho

#

im trying to remove the npc from the tablist

echo basalt
#

add player and remove player should do the job

wraith cradle
#

it does work but as i said in the original post, it removes the skin of it as well

eternal oxide
#
    private static void showAll(Npc npc) {

        ClientboundPlayerInfoPacket playerInfoAdd = new ClientboundPlayerInfoPacket(ClientboundPlayerInfoPacket.Action.ADD_PLAYER, npc);
        ClientboundAddPlayerPacket playerSpawn = new ClientboundAddPlayerPacket(npc);
        ClientboundRotateHeadPacket headRotation = new ClientboundRotateHeadPacket(npc, (byte) Math.floor(npc.getYHeadRot() * 256f / 360f));
        ClientboundPlayerInfoPacket playerInfoRemove = new ClientboundPlayerInfoPacket(ClientboundPlayerInfoPacket.Action.REMOVE_PLAYER, npc);
        
        // For Entities (packet based) require this packet for skins.
        //ClientboundSetEntityDataPacket entityData = new ClientboundSetEntityDataPacket(npc.getId(), npc.getEntityData(), true);

        for (Player player : Bukkit.getOnlinePlayers()) {
            ServerGamePacketListenerImpl connection = ((ServerPlayer) NMSUtils.getServerPlayer(player)).connection;
            connection.send(playerInfoAdd);        // Inform client this Entity exists.
            connection.send(playerSpawn);    // Spawn this entity on the client.
            //connection.send(entityData);    // EntityData (Packet based Entity) to show skins.
            connection.send(headRotation);
            connection.send(playerInfoRemove);    // Remove from servers tab list
        }
    }```
#

spam but

#

thats spawning a fake player and removing from tab list

wraith cradle
#

that doesnt work tho

#

skins dont work with that

eternal oxide
#

works fine for me

#

double layer skins too

wraith cradle
#

wtf

eternal oxide
#

at least it did last I tested on 1.19.1

wraith cradle
#

im using 1.19.2

wraith cradle
eternal oxide
#

I can't test at the moment

grim ice
#

ill send u screenshots of both f3 and alt f3 later

limber owl
#

any idea why

tardy delta
#

your dad went to get milk?

limber owl
#

I can't send image

#

bruh

tardy delta
#

!verify

undone axleBOT
#

Usage: !verify <forums username>

limber owl
#

but, I have one project, opened it after some time

#

I can't verify because my other account was verified and it got deleted

#

and they won't unverify me

amber bronze
#

y it got deleted

limber owl
limber owl
amber bronze
limber owl
#

discord sent me email saying some bullcrap but it had nothing to do with it

amber bronze
#

so u can use nms

limber owl
amber bronze
#

added spigot jar to ur project?

limber owl
#

no, I don't think so, didn't have to do it beofre

amber bronze
#

its broken idk

#

i think you need to import jar to projrct

limber owl
#

ah, I hate doing that, it always messes it up

#

:/

lyric sinew
#

Hello everyone, its been a while that i've been combining resourcepack, but anyways IDK why it doesnt work can anybody help me about how I can merge/combine this 2 resourcepack?

eternal oxide
#

I think it was mfnalex that made a program to mrege packs

lost matrix
lost matrix
#

Unless... oh yeah you need to also merge the json files...
Gson can merge JsonTrees so this should also be possible.

eternal oxide
lyric sinew
#

OHHHH THANK YOU SO MUCH ALL ❤️

I love you 😍

tardy delta
#

what is a Handler?

#

Thread.setDefaultUncaughtExceptionHandler?

smoky oak
#
        at io.github.moterius.WaterColor.Commands.CommandTest.onCommand(CommandTest.java:35) ~[?:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[spigot-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        ... 23 more```
how to use remapped again
snow karma
#

can anyone help

lost matrix
#

?ask

undone axleBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

torn shuttle
#

is there a setting for the entity view distance server-side?

lost matrix
torn shuttle
#

no, I mean visually rendering an entity client-side

#

I have it tuned up to 500% on my client but it feels very short

lost matrix
#

Oh. Thats just the entity tracking distance.

torn shuttle
#

is it?

lost matrix
torn shuttle
#

aw heck yeah

#

thanks

tardy delta
#

what the

marble copper
#

which command to use to give someone essentials kit

echo basalt
#

👀

torn shuttle
#

I am not using nms

#

...yet

echo basalt
#

EntityCombustEvent

torn shuttle
#

I will once these bad boys start navigating

echo basalt
#

yessir

marble copper
#

fasttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt

#

fuck

#

no one ever ever help me in this server

echo basalt
#

sedboi

frail gale
#

there’s something very strange in one of my config files. Basically I have plugin which you’re able to create custom foods and then everything is handled through config but I don’t know why when you add one more new food without the plugin GUI it doesn’t detect the food

lost matrix
echo basalt
#

1 - we won't google for you
2 - yelling fastttttttttttttttttttttt doesn't make us think about helping you faster

echo basalt
#

We aren't paid to be your babysitter

torn shuttle
#

but will yelling fastttttttttttt make my A* algorithm run faster? Let's find out!

echo basalt
#

this will fix it

lost matrix
# marble copper i know

Then why do you spawn non-development related questions and expect an answer?
You are the kind of kid that asks his history teacher when you are starting to learn about multiplication.

marble copper
#

i just want 1 answer man

echo basalt
#

7smile what happened to your profile picture, did you stop touching grass?

wraith cradle
#

be patient

lost matrix
lost matrix
echo basalt
#

fancy

snow karma
#

pls help

smoky oak
#

uh
i did something and now it says it cant save the chunk

#

wrong channel man

marble copper
torn shuttle
#

gaming

echo basalt
#

I don't know whether to laugh or cry at all these questions

hybrid spoke
#

how can i hack hypixel? i have my cmd already open

echo basalt
#

magma you should make bloons TD but with actual monkes throwing darts

smoky oak
#

?paste

undone axleBOT
lost matrix
# snow karma

Which spigot version are you using and are you using a proxy (like bungeecord)

tardy delta
#

they're all burning :(

torn shuttle
#

man how is it everyone knows bloons but they don't know line tower wars

#

I need to fix that

echo basalt
#

bloons is popular

#

but did y'all play pokemon td

#

on newgrounds

#

that's the real question

lost matrix
#

Oh you are making a TD minigame. Noice.

torn shuttle
#

alright placement pathing and stuff is working, time to play around with the navigation, wish me luck

frail gale
#

does someone know why the plugin will not detect the new config section when the section have been created through text editor?

smoky oak
#

sure

smoky oak
frail gale
snow karma
echo basalt
#

well

#

there's the problem

#

mans using 1.8

marble copper
frail gale
grim ice
snow karma
tardy delta
#

?1.8

undone axleBOT
frail gale
#

this issue started happening on 1.19

lost matrix
snow karma
#

bro wait

#

then which version?

echo basalt
#

only network that I allow to run 1.8 (well 1.7 modified) is hypixel

snow karma
#

bro this happens in 1.16.5

echo basalt
#

and that's because their codebase is hella ancient

smoky oak
snow karma
#

bro its 1.16.5

echo basalt
#

although they're hiring resource pack devs so they might be working on new stuff?

marble copper
snow karma
#

now what to do

amber bronze
#

do i need to modify 1.8 to be here legally using it?

snow karma
#

what should i do

echo basalt
#

you must be a network that is so big, that you can't ever update because it takes longer to update than for mojang to release new versions

frail gale
smoky oak
#

shrug

young knoll
#

You must have a group of experienced devs that can deal with any issues that arise

echo basalt
#

well

#

I like shitting on clowns

worldly ingot
#

Do you? That's a weird interest but to each their own

echo basalt
#

oh god choco is typing

worldly ingot
#

I was going to say that I like pancakes but didn't get them this morning

marble copper
amber bronze
young knoll
#

I too enjoy auto clickers

echo basalt
marble copper
echo basalt
#

set your autoclicker to 1.9's values

robust light
#

How can I get information about a potion the player is drinking?

smoky oak
#

asking questions kinda useless rn

#

nobody answers anything

worldly ingot
#

drinking? Or has drank?

robust light
#

Has drank

young knoll
echo basalt
#

PlayerItemConsumeEvent -> PotionMeta

worldly ingot
#

PlayerItemConsumeEvent iirc, then you can get the item, check if it's a potion, get its meta, cast as PotionMeta

#

ye

echo basalt
#

or stuff that we know how to answer

#

like

#

check pins

smoky oak
#

point, this is a bit niche

echo basalt
#

I never messed with nms biomes so I'm not gonna clown myself

young knoll
#

I have

#

I just didn’t see the question

smoky oak
#

accompanied by this error [15:53:59] [Server thread/ERROR]: Unknown registry element in ResourceKey[minecraft:root / minecraft:worldgen/biome]:Direct{net.minecraft.world.level.biome.BiomeBase@1e146473} [15:53:59] [Server thread/ERROR]: Failed to save chunk -5,4 and a stacktrace to some nms methods

young knoll
#

Is the biome in the registry

smoky oak
#

i... dont think so?

young knoll
#

Put it in the registry

worldly ingot
#

Probably not because those registries get frozen after the registration period. It's non-writable

torn shuttle
#

anyone got a project I can copy from where you used gradle to add a version of the spigot api with mappings? the only way I've gotten that to work is through maven

young knoll
#

Biome one does not get frozen

robust light
young knoll
#

The biome registry is one of the fancy dynamic ones

torn shuttle
#

hm

echo basalt
#

There's paperweight but no official spigot method

young knoll
#

Because datapacks can register biomes

smoky oak
worldly ingot
#

Dude I just wish my messages would fucking send lol

smoky oak
#

im assuming the registry is some part of the world data

young knoll
#

No

echo basalt
#

you get access to the paper api and all

#

just don't use paper stuff

#

and you should be fine

torn shuttle
#

oh

#

hm

echo basalt
#

but hey you can locally test directly in your ide and all

young knoll
#

How long until someone makes a gradle plugin that yells at you for using paper api methods

#

XD

torn shuttle
#

so the trick is because paper uses spigot's mappings if you use paper you inherit that basically right

echo basalt
#

it provides some nice stuff

torn shuttle
#

well mojang's mappings but you get what I mean

young knoll
#

Mhm

torn shuttle
#

it's a neat trick...

young knoll
#

You do have to deal with being yelled at about deprecation a ton though

grim ice
torn shuttle
#

I'm guessing doing this but not using any of the actual paper methods would make it spigot compatible?

#

man it's tempting

pulsar parcel
#

Why is new Runnable() dark? Is it wrong?

grim ice
#

bro hes actually serious

#

wow

grim ice
#

you can use a lamdba, its simply a suggestion

pulsar parcel
grim ice
#

just do what intellij tells u to

robust light
undone axleBOT
torn shuttle
#

though hold on if I do that how do I deal with mappings changing from version to version?

young knoll
#

MojMap doesn’t really change

marble copper
#

For pinging for something that don't make sense @grim ice here double

worldly ingot
marble copper
young knoll
#

Apparently that gif is 35 million minutes long

#

You okay discord?

marble copper
#

Cuz music goes bye bye in 1 min

marble copper
#

But does ur video have epic music?

hybrid spoke
#

well, listen to it

#

all to the end

reef lagoon
#

Can I remove onDisable if I don't use it

marble copper
hybrid spoke
smoky oak
hybrid spoke
vale veldt
#

Hi 🙂 ,

I'm having a problem creating my API, I'm using the ServicesManager as Vault does, but it's not registering me to the service apparently, in my plugin it tells me it's registered but when I get the active services in another plugin it's not active, I don't know what I'm doing wrong. I depend on my plugin too.

My plugin: https://hastebin.com/liposewaki.kotlin
My class in my plugin: https://hastebin.com/orujumaxom.java

Other plugin: https://hastebin.com/kopuwobizu.kotlin

Api: https://hastebin.com/icecasawix.java

I am implementing my api dependencies in each plugin and I am not relocating any package.

eternal oxide
#

Loader? so not Spigot?

vale veldt
#

loader is an interface that I created, it is not relevant

eternal oxide
#

Its very relevant as we have no way of telling if ANY of your code is actually executed

#

do you see the System.out.println("Service: " + provider.getService()); message?

vale veldt
#

Everything is executed...

vale veldt
#

read the message I posted above

eternal oxide
#

ok I don;t work well with attitude. Good luck in finding help

vale veldt
ivory sleet
#

in what order do said plugins load?

#

cause I mean, if latter registers, but former tries to consume it you have the order in the wrong way

vale veldt
#

My plugin registers the service before the other plugin starts up, is that what you mean?

#

log

[16:39:29 INFO]: [SimpleBlockRegen] Enabling SimpleBlockRegen v0.2.0-SNAPSHOT
[16:39:29 INFO]: [SimpleBlockRegen] [STDOUT] Service: interface net.shibacraft.simpleblockregen.api.TestClazzImpl
[16:39:29 INFO]: [SimpleBlockRegen] [STDOUT] Version: 0.2.0```

```yaml
[16:39:31 INFO]: [SimpleDropInventory] Enabling SimpleDropInventory v0.0.9-SNAPSHOT
[16:39:31 INFO]: [SimpleDropInventory] [STDOUT] Null
[16:39:31 ERROR]: Error occurred while enabling SimpleDropInventory v0.0.9-SNAPSHOT (Is it up to date?)
java.lang.NullPointerException: Cannot invoke "net.shibacraft.simpleblockregen.api.TestClazzImpl.getVersion()" because "test" is null```
ivory sleet
#

yes

#

lets make it this way

#

your plugin that depends on said api, let it load after the plugin that provides the api

vale veldt
#

yes

eternal oxide
#

This code in your second plugin runs at instancing, before your load() method is run in your main plugin. Your this.testClazz is set before anything is registered ```java

public MainModule(SimpleDropInventory plugin){
    this.plugin = plugin;
    this.testClazz = getProvider(TestClazzImpl.class);
}```
ivory sleet
#

oh yeah that too btw

spring pollen
#

Can I ask you a question?

ivory sleet
#

ask away

young knoll
#

?ask

undone axleBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

hoary lance
#

@EventHandler
public void OnDamage(EntityDamageByEntityEvent event) {
Player player = (Player) event.getDamager();
if (event.getDamager() instanceof Player) {
if (player.getInventory().getItemInMainHand() == ItemManager.TNTSword) {
player.getWorld().createExplosion(event.getEntity().getLocation(), 1.5f);
}
}
}
why does this not work

young knoll
#

.isSimilar

#

Although even isSimilar will not work if the durability is different

spring pollen
#

How do I apply the NPC's skin layer? I've been doing it for 7 hours.. :((

vale veldt
eternal oxide
#

the constructor runs as soon as you instance the class. I have no idea what your Loader does, which is why it's relevant.