#help-development

1 messages · Page 1993 of 1

smoky oak
#

but I'd need some way to convert them into a Block[][][]array

tardy delta
#

its not the java.awt one you need, its md5 package

#

lemme look real quick

smoky oak
#

so my question is more like 'can i read in structures or schematics as Block[][][] array'

tardy delta
#

net.md_5.bungee.api.chat.TextComponent

lavish hemlock
#

I mean you can import WorldEdit... but don't.

smoky oak
#

time to do it manually i guess

lavish hemlock
#

The alternative is just reading schematic data manually via an NBT library.

smoky oak
#

can you recommend one?

lavish hemlock
last tulip
lavish hemlock
#

I've never really liked NBT tbh

smoky oak
#

oh scrape

lavish hemlock
smoky oak
#

the request for structure handlers on JIRA dates back to 2016

#

we aint getting that

tardy delta
#

you can use TextComponentBuilder tho if you need more complicated stuff

lavish hemlock
#

R.I.P.

lavish hemlock
tardy delta
#

oh right havent used it in a while

lavish hemlock
#

Most of the time, legacy text is just kinda better anyway :p

tardy delta
#

i should create a wrapper around that lol to make it more easily to use

lavish hemlock
#

Like

#

I have a util in a project I made called Messager

#

That is basically a wrapper around RedLib's Messages that also allows for multiline and string formatting

tardy delta
#

i read Massager lmao

lavish hemlock
#

And uhh it originally used the component API

#

but I found it made it harder to actually work with

#

('specially since Messages handles & legacy color codes)

tardy delta
#

😍

smoky oak
#

how to name the class extending JavaPlugin

lavish hemlock
#

<your plugin>Plugin

rough drift
hybrid spoke
rough drift
#

yep

#

btw cipher i made some progress

lavish hemlock
#

The problem with ComponentBuilder is how strange it is.

hybrid spoke
rough drift
#

i am working on making commands work

lavish hemlock
#

It defies common expectations for builders

rough drift
hybrid spoke
#

so make one

tardy delta
#

it only applies stuff on the previously added component and that confused me for a while

hybrid spoke
#

i need to flame your commits

rough drift
#

yeah i just need to remove an old package to never show the world what i made there

#

and then i am good

hybrid spoke
#

'll wait

rough drift
#

done that

lavish hemlock
#

Not me

#

Please no-

tardy delta
#

kekw

lavish hemlock
#

FGF;KGF

tardy delta
#

just look at it

opal juniper
#

it doesnt seem that bad

jagged thicket
#

so does anyone here know how to use "canvas" the spigot gui api?

lavish hemlock
#

M A T H

tardy delta
#

these things are giving me headaches sometimes

lavish hemlock
tardy delta
#

private methods true.. i mean...

lavish hemlock
tardy delta
#

create a static factory method and override the private method and here we go 🧝

#

i got confused with a few things lol

lavish hemlock
#

Oh nvm this test is shit

rough drift
#

actually its public

tardy delta
#

even better rawr

lavish hemlock
#

furry

tardy delta
#

how is it called

rough drift
#

its still old readme

#

i meant to make it a plugin core but i am just making it a libs lib

lavish hemlock
#

I... hmm

#

I looked into the serialization package

tardy delta
#

oh cant find it on your profile lol

lavish hemlock
#

I saw Satan

rough drift
#

you mean the stack serializer?

lavish hemlock
#

Yes

rough drift
#

yes

#

i could handle it better

#

obv

#

Its first iteration however

tardy delta
#

whoa

lavish hemlock
#

Also we don't need more command libs imo, Lamp is the best one lol

rough drift
#

look at how clean mine is atm

lavish hemlock
#

@SubCommand(value = "list", previous = "info")

tardy delta
#

hmm where are the brackets mate ._.

rough drift
lavish hemlock
rough drift
#

this makes a sub command

lavish hemlock
#

Lemme just

#

Lamp:
@Subcommand("info list")

rough drift
#

whose name is list, and the previous node is the sub command "info"

rough drift
#

why did i not do this

#

i need to do that

lavish hemlock
#

So basically you're just gonna reimplement Lamp now?

rough drift
#

no

lavish hemlock
#

Seriously, use Lamp lmao

#

Also I wish Revxrsal was in this server

rough drift
#

Mine is much more flexible than lamp (in my todo list ofc)

lavish hemlock
#

I'd love to talk to them

tardy delta
#

free shrugs

#

¯_(ツ)_/¯

rough drift
#

anyways brb

#

gotta eat

tardy delta
#

programmers dont eat

rough drift
#

its pasta

#

and i am italian

#

i have my priorities straight

lavish hemlock
#

I am part-Italian

smoky oak
#

where in the single player world folder do structures get saved?

tardy delta
#
return providers.computeIfAbsent(plugin, PluginInventoryProvider::new).register(id);```kekw ![uwu](https://cdn.discordapp.com/emojis/910442589151445044.webp?size=128 "uwu")
jagged thicket
#

Help with canvas spigot gui api

tardy delta
#

i like doing code reviews lol

#

😂

jagged thicket
lavish hemlock
#

Most of my projects have decent code.

jagged thicket
#

smh

tardy delta
#

i like the inventory thing lol gets me thinking at redlibs inventory thing

sacred scaffold
#

ok

#

i made a new server and how do i [portfoward it

#

again'

#

i forgot how i did my old one

lavish hemlock
#

Maybe you should ask Google

tardy delta
#

lets try my new command handling thing, probably a bunch of errors uwu

sacred scaffold
#

ok

#

i accidenta;ly opend the .dat file with notepad

#

will that effect anything

#

cuz my server is saying that its overloarding

tardy delta
#

nah unless you edited stuff

#

let it just take some time first

sacred scaffold
#

okok

#

ty

tardy delta
#

oh no i found the old code i've written

grim ice
tardy delta
#

wait i forgot the plugin

#

im bad lmao

#

doesnt computeIfAbsent also puts?

#

i thought so

grim ice
#

computeIfAbsent doesnt do that

#

it doesnt put anything

tardy delta
#

lol it does

#

if absent

#

If the specified key is not already associated with a value (or is mapped to null), attempts to compute its value using the given mapping function and *enters it into this map unless null.*

#

commandhandler thinks nah lol

#

week of work

ebon coral
#

How do I obtain WorldServer :>

#

Trying to create a fake ServerPlayer

young knoll
#

Cast world to craftworld and then getHandle

jagged thicket
#

does anyone know any api that allows texcomponent to run a method

#

on click

opal juniper
#

no

tardy delta
#

lol i havent set comments so i forgot what my method does lol

grim ice
hybrid spoke
opal juniper
grim ice
#

name is misleading

tardy delta
#

have to figure out what this is doing 🤔

jagged thicket
#

what if i make it run a command that triggers that method

hybrid spoke
#

and returns the index of previous in shouldMatch

tardy delta
#

im getting an arrayoutofbounds for the str = ...

hybrid spoke
#

however, the index is misleading since if it can't find any match the index will be 1

#

and yeah

#

it will continue till it found something

grim ice
#

and u can get an arrayoutofbounds too

tardy delta
#

probably have to change the loop condition to && index < shouldMatch.length

grim ice
#

ye

opal juniper
hybrid spoke
#

then change the condition

#
  • break the while if found
#

/ return directly

grim ice
#

How do you add a recipe to the player knowledge book without an actual recipe

#

as you're using events

#

is it only possible with nms?

tardy delta
#

im confused

ebon coral
#

Creating a team via NMS... hoooow would I go about that with the remapped 1.18 NMS?

visual tide
#

use the api

worldly ingot
#

Scoreboard API has existed since forever

tardy delta
worldly ingot
#

No excuse whatsoever to use NMS for it

tardy delta
#

just searching for the string i assume

grim ice
#

Is it possible to see spigot code?

#

I wanna see how discoverRecipe is implemented

tardy delta
#

decompile it

grim ice
#

is that fine

tardy delta
#

however that is implemented in nms code

#

so CraftPlayer

grim ice
#

ik

ebon coral
#

What if I don't want it to like actually create the teams and mess with other plugins- or has that been fixed?

tardy delta
#

i do it sometimes lol

grim ice
#

wasnt there some website

#

with the code in it

#

this right

tardy delta
#

i dont find a discoverRecipe method in my version lol

grim ice
#

its CraftHumanEntity

#

pain

#

so its actually impossible to add a recipe to a player recipe book, without an actual recipe

grim ice
#

Nvm

smoky oak
#

i compiled a plugin with the remapped mojang plugin, which of the three files is the one i am allowed to publish

#

theres <name>-remapped.obf.jar, <name>.jar and original-<name>.jar

rough drift
#

iirc its <name> and original-<name>

smoky oak
#

do you know whats the difference is?

rough drift
#

the name for ex has shaded libs

#

if you use original you get the compiled code + maven's text replacing stuff

#

such as adding ${project.version} in the plugin.yml

smoky oak
#

thanks

last tulip
#
Location location = player.getLocation();
player.playSound(location, Sound.ENTITY_GHAST_SCREAM, 1, 2);```
how to set the sound pitch into float? like 2.5
ivory sleet
#

2.5f

manic delta
#

Guys, does anyone know how I can reduce the size of my .jar? I'm using JDA for my plugin and it weighed 10MB, I removed some things from opus because I'm not going to work with audio but it still weighs 8MB and I can't upload it to spigot

smoky oak
#

wdym cant upload it

rough drift
manic delta
smoky oak
#

oh you said spigot

rough drift
#

are you using 1.16 and up tho

manic delta
#

yea

#

1.18

smoky oak
#

I'm interested in this too

manic delta
#

do you wan't to see my pom?

rough drift
#

no

#

no need

manic delta
#

okay

rough drift
#

in your plugin.yml

libraries:
  - groupId:artifactId:version

you can have multiple, here's an example in my plugin:

libraries:
  - org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlin.version}
#

now, to upload just upload original-ProjectName.jar

#

done

manic delta
#

so i need to do it just with jda right?

rough drift
#

yeah

manic delta
#

okay i'll try

rough drift
#

it must be on maven central tho

manic delta
#

is there

rough drift
#

yes

#

example for jda:

libraries:
  - net.dv8tion:JDA:5.0.0-alpha.9
manic delta
#

i need to remove it from pom?

rough drift
#

nope

#

keep it there

#

otherwise you won't be able to use it

manic delta
#

oh okay

#

now time to compile right?

visual tide
#

but set it as provided

rough drift
#

maven will generate the following files in target/

FILENAME.jar
original-FILENAME.jar

#

use original-FILENAME

#

you can also rename it

rough drift
manic delta
#

ok 1sec

rough drift
minor garnet
#
            List<String> gun_lore = yamlFile.getStringList("header " + ".item.lore");
            plugin.sendMessage("size:" + gun_lore.size());

            if (gun_lore != null) gun.setLore(gun_lore);```
why the size is 0
manic delta
rough drift
#

i am really sorry

#

what

#

did you run mvn clean build

manic delta
#

im using ide

#

intellij

rough drift
#

yeah

#

on the right

#

maven -> lifecycle

#

either package or install

#

i forgot which

manic delta
#

i will try both

ebon coral
#

What happened to EntityPlayer?

#

I tried ServerPlayer but it doesn't go so well

rough drift
#

ill brb

lost matrix
manic delta
#

i got one 8kb

#

now time to try if it works

ebon coral
#

When I build the plugin I have to re-obfuscate all the remapped classes? Or something like that?

manic delta
ebon coral
#

That's a good start

#

T_T

lost matrix
manic delta
#

nah

ebon coral
#

Or you forgot to throw it in the JAR

#

T_T

manic delta
naive bolt
manic delta
ebon coral
manic delta
naive bolt
lost matrix
ebon coral
lost matrix
lyric shore
#

Guys how to craft hearts

lost matrix
#

You mean a heart of the sea?

manic delta
#

no one knows how i can add the plugin.yml and config to the compiler?

#

😔

lyric shore
#

no a normal heart

lost matrix
manic delta
#

let me try

lost matrix
lyric shore
#

no i added lifesteal plugin

lost matrix
minor garnet
lost matrix
minor garnet
#

Ty

naive bolt
#

whats wrong with <<<<<<<

lost matrix
manic delta
naive bolt
#

it’s a forked respotory it should work

lost matrix
manic delta
#

is a external jar

#

how should i do

lost matrix
#

Dont ever use external jars when working with maven.

manic delta
#

uh

#

but this library is not in maven-central and I need it

lost matrix
#

Dont add them to your project for artifact building. In fact remove every dependency that you added manually.

manic delta
#

okay

lost matrix
#

If you use maven then you should not tinker with anything but your pom.xml

manic delta
#

this library is not in maven-central

#

🤔

smoky oak
#

is it better do to Bukkit.getPluginManager.getPlugin() or to store a copy of the plugin instance and do MainClass.getPluginInstance()

lost matrix
quiet ice
manic delta
quiet ice
#

Not quite sure how it got into the repo you pulled

lost matrix
manic delta
#

this onehttps://github.com/Itzzbenzz/KOTH/releases

GitHub

Premium KOTH plugin. Contribute to Itzzbenzz/KOTH development by creating an account on GitHub.

lost matrix
#

Ok this is not a maven project which makes depending on it a bit hard. Let me write you a
quick command

sacred scaffold
#

I cant launch my minecraft server

#

it shows alot of errors in console

manic delta
#

for my plugin i need to use spigot 1.18, JDA, and the one from above

#

I think the 2 first are done on pom

lost matrix
# manic delta Okay thanks

Go into the folder that has the KOTHAPI.jar in it.
Shift + Rightclick -> Open Powershell here
Then type in:

mvn install:install-file -Dfile="KOTHAPI.jar" -DgroupId="KOTH-API" -DartifactId="com.benzimmer123" -Dversion="2.4" -Dpackaging="jar"

After that you add it in your pom:

    <dependency>
      <groupId>com.benzimmer123</groupId>
      <artifactId>KOTH-API</artifactId>
      <version>2.4</version>
    </dependency>
lost matrix
manic delta
#

Okay

#

That's how I learned

#

💀

lost matrix
#

Thats fine. But you need to adapt when using new tools.

manic delta
#

Okay thanks

#

I will try later

manic delta
#

I want to know to do it on my own later

solid forge
#

ayy man
spigot isSimilar just does not work
even if i take two diamond swords out from creative
just does not work they are not similar

#

but they are same item

#

spigot isSimilar method is broken

dusk flicker
#

I doubt that

lost matrix
dusk flicker
#

It has been around for a long time, more than likely you just screwed it up

solid forge
#

or maybe the serialization broke it

#

like one diamond sword is serialized into yml and reloaded into ItemStack

lost matrix
solid forge
#

bruh

#

I need info more than just me screwing up,if any of you have experience in using isSimilar

vocal cloud
#

?jd

solid forge
#

wth

lost matrix
vocal cloud
#

Looks like it's working as intended

solid forge
#

but it just doesnt work for me lol

vocal cloud
#

Maybe read what it says

solid forge
#

did you all try yml serialization with one of the stack

lost matrix
#

You are probably misusing it

vocal cloud
#

No I didn't because I know that won't work

solid forge
vocal cloud
#

Apparently you don't understand it though

solid forge
solid forge
#

im using isSimilar not equals

#

Yes i know that part where size is ignored

vocal cloud
#

You're pretty insufferable

solid forge
#

what?you are trollng

vocal cloud
#

You claim to have read it but you haven't?

solid forge
#

THEN WHICH PART IS WRONG OMG

#

I KNOW

vocal cloud
#

What does the docs say about isSimilar

solid forge
#

This method is the same as equals,but does not consider stack size(amount).
Yes OMG I KNOW
And I checked the other item is not null,so nullable does not sheild the effect of false

vocal cloud
#

What does equals do

solid forge
#

are you trolling?

ebon coral
#

Damn dawg why you raging at someone tryna help you

vocal cloud
#

I'm trying to walk you through this

smoky oak
#

depends on the equals

vocal cloud
#

You have 2 items.

solid forge
#

yes.

#

two vanilla,no itemmeta or whatsoever diamond sword.

#

one serialized before and one is dragged out of creative mode.

#

equals compare with like all the values of a certain object,instead of comparing the memory address like ==

#

I know what it means

rough drift
#

no, == compares instance

ebon coral
#

Memory address?? LMFAO what

solid forge
#

yes,which is the memory address,but whatever
yes instance

rough drift
#

no

#

its not

#

lmfao

solid forge
#

dude whatever i dont care pls

ebon coral
#

?????????????????????

#

I see

solid forge
rough drift
#

that you aint a dev

ebon coral
lost matrix
solid forge
rough drift
ebon coral
solid forge
#

wait hold up

ebon coral
#

Holy

next stratus
#

Hey, so I've got some blockvector3 locations from a world edit region I've looped in the onEnable stage and I'd like to get bukkit world location stuff once i pasted it anybody able to help?

solid forge
ebon coral
rough drift
#

oh no!

smoky oak
#

oh No!

#

anyways

next stratus
#

I guess I came in at a bad time?

rough drift
ebon coral
rough drift
#

please learn to use a computer

ebon coral
rough drift
#

make a threaed

#

thread

next stratus
ebon coral
#

Haven't checked it out in a bit but yeah

ebon coral
#

So just do like

next stratus
#

Ah shit, should I make a thread? I didn't know that existed

ebon coral
#

new Location(bv3.getX()

#

etc

solid forge
#

@lost matrix @vocal cloud sorry for being emotional or whatsoever but heres part of the code

    if(qoua.getFirst()!=null&&ai.getItem(0)!=null&&((original1.isSimilar(qoua.getFirst())||ConfigSettings.USE_WEAK_ITEM_CHECK)&&(!ConfigSettings.USE_WEAK_ITEM_CHECK||QuestValidater.weakItemCheck(original1, ai.getItem(0), true)))) {
                Bukkit.getLogger().info(original1.getItemMeta().toString());
                Bukkit.getLogger().info(ai.getItem(0).getItemMeta().toString());
                Bukkit.getLogger().info("rejected 0");
                owner.getInventory().addItem(ai.getItem(0),qoua.getFirst().clone());    
                return false;
                
            }

lost matrix
ebon coral
#

What the

#

Christ

solid forge
#

but bruh the code is like so long

rough drift
next stratus
vocal cloud
#

Here is the answer to your question

solid forge
#

such as repair cost and such

lost matrix
solid forge
#

but the two I am comparing are the same

vocal cloud
#

In other words the method works fine you've made a mistake

rough drift
#

i accidentally put ice covered water on my headset

solid forge
#

two are both dragged from creative mode
but one is serialized and deserialized

rough drift
#

now i gotta clean

vocal cloud
#

Then your method is messed up

ebon coral
solid forge
rough drift
solid forge
#

alr imma run another check

#

thx for all ya help man

rough drift
#

np

solid forge
rough drift
ebon coral
rough drift
#

use that

ebon coral
#

But all the server owners who try to come and spam channels for answers are just a fiesta of terror

vocal cloud
rough drift
#

yes

ebon coral
#

Skript, Java, all the same community on their end

solid forge
rough drift
ebon coral
#

Yeah me too

#

I was a maker and all that

#

Got bored though

#

Still probably have a few MBs of skripts on my drive

rough drift
#

what happens when you become a maker?

ebon coral
#

Minehut pays you to post content and stuff

#

You gotta get accepted by them blah blah

#

Was really poorly done by their end sadly

rough drift
#

i think its better now tho

ebon coral
#

Ehh not gonna go back

#

Community is dreadful

rough drift
#

ik

ebon coral
#

Not the same like it was in 2016

smoky oak
#

can i ask a programming related question?

rough drift
#

go for it

smoky oak
#

does anyone know if this library has javadoc? I'm still trying to turn structure.nbt files into arrays of blocks
I just dont know how to properly parse the nbt
https://github.com/Querz/NBT

rough drift
#

doesn't seem so

smoky oak
#

also i know its possible because opening the files in intelliJ gives me a decompressed file that looks a lot like json

#

issue is

#

y'know

smoky oak
#

parsing it

#

?paste

undone axleBOT
smoky oak
rough drift
#

it is json

smoky oak
#

are you sure about that

rough drift
#

use this to parse

<dependency>
    <groupId>com.google.code.gson</groupId>
    <artifactId>gson</artifactId>
    <version>2.9.0</version>
</dependency>
```Lib name is GSon
rough drift
#

its json but without the ""

ebon coral
rough drift
#

idk if gson can parse it

ebon coral
#

It is different from the JSON format; hence, any JSON used in NBT, such as raw JSON text, must be enclosed within a string tag.

dusk flicker
#

thats a sketchy url lol

rough drift
#

well its really similar

#

a json library could parse it

ebon coral
#

Has a few hundred k users so not sure

dusk flicker
#

I know, but still lol

ebon coral
#

I'll implement it into my website soon so it doesn't look sketchy lol

rough drift
#

its just missing the "" around tags imo

grim ice
#

give ideas for libraries

rough drift
#

I am working on a lib

#

won't give you my ideas

#

YOU'LL NEVER CATCH ME ALI-

#

no but srsly

#

ig what are you good at?

ebon coral
#

Lmao I am doing the same thing

grim ice
rough drift
#

NOO

ebon coral
#

I have a channel of stuff I'm gonna implement, like 200 things

grim ice
#

7s literally gave u the idea while he was giving it to me lel

rough drift
#

lmfao

ebon coral
#

Working on custom tablists rn

#

Not very fun

grim ice
#

i just need a good new iea

#

idea

rough drift
#

come up with one

grim ice
#

cant

ivory sleet
# grim ice give ideas for libraries

Bukkit geomoetry api, so for instance create stuff like BlockPopulators with a workload distributor option, as well as regions, and not just classic AABB regions

dusk flicker
#

who names a thread named Thread

rough drift
#

me

ivory sleet
#

Please rename them

rough drift
#

i can't

ivory sleet
#

It’s very unhelpful for people who might look at them in the future

ebon coral
#

@rough drift Do you work with NMS or ProtocolLib by any chance

#

Uh oh

rough drift
#

no but i can probs help

ebon coral
#

I see Minehut player

#

Just kidding

grim ice
rough drift
#

I am not the best at NMS but i am sorta familiar with it

ebon coral
#

NMS makes me cry

misty current
#

hey, i am trying to disable mongo logging by using
((LoggerContext) LoggerFactory.getILoggerFactory()).getLogger("org.mongodb.driver").setLevel(Level.WARN);
But i'm getting a classcastexception

ivory sleet
rough drift
misty current
#
Caused by: java.lang.ClassCastException: class org.apache.logging.slf4j.Log4jLoggerFactory cannot be cast to class ch.qos.logback.classic.LoggerContext (org.apache.logging.slf4j.Log4jLoggerFactory is in unnamed module of loader java.net.URLClassLoader @504bae78; ch.qos.logback.classic.LoggerContext is in unnamed module of loader 'cosmicsky-1.0-SNAPSHOT.jar' @3ae0ea7b)
    at me.kill05.cosmicsky.mongo.MongoManager.<clinit>(MongoManager.java:40) ~[cosmicsky-1.0-SNAPSHOT.jar:?]
    ... 12 more
grim ice
ebon coral
#

Hmph why would you disable logging that way?

#

Isn't there a way via the MongoClient?

ivory sleet
#

A region is a set of blocks, a closed dimension of blocks basically

misty current
#

i've done some research and i wasn't able to find any other way

grim ice
#

ic

misty current
#

it seems strange to me too

ebon coral
#

One moment let me look into my old Mongo stuff

ivory sleet
#

Block populators are just objects that store a set of configurations for you and they have a populate method to populate a given area/dimension based on the settings given

ivory sleet
#

I’ve seen one lib which had that before but it was vulgar and underdeveloped

solid forge
#

the worst part about nms is that they renamed all the classes and put it in a bundler or some sort of thing

ivory sleet
#

Or block state/ block data manipulation

rough drift
#

oh

#

welp

misty current
ebon coral
#

Did not mean to code that lol

rough drift
ivory sleet
#

Veri nice

misty current
#

i also remember it used to work for another project of mine

#

very strange

ebon coral
#

Wot tf

celest isle
#

I have a question, what do I fill in for $BUNGEE_IP ?

solid forge
#

yes its now confirmed that my complex logic messed the isSimilar all up

rough drift
#

ip of your bungee server

grim ice
ivory sleet
#

It is

solid forge
#

thankyou so much @lost matrix @vocal cloud

ebon coral
#

omegalol

celest isle
solid forge
#

too confident with my brain

ivory sleet
#

If you incorporate stuff like schematics, nice api and what not

#

It’d be quite useful

rough drift
#

I am doing that alr

#

I wanna get a big lib of everything that useful done

ebon coral
#

There's so many but you gotta have stuff people just haven't thought of

misty current
#

so any ideas

grim ice
#

i would make many libs instead of one big lib

ivory sleet
#

And there’s not really a big competition on this @grim ice sure WE and FAWE provides apis to do this, but not standalone framework classes

rough drift
#

theres no code for the lib itself

#

its just a boundle

grim ice
#

ic

ivory sleet
#

(New ones) Command libs, inventory libs will scarcely be useful because the competition is already extremely sharp

rough drift
ivory sleet
grim ice
#

any other idea maybe

ebon coral
#

So many command libs

ivory sleet
#

Myes

ebon coral
#

GEOMETRY!?!?!

grim ice
#

its a cool idea tho ill store that

ivory sleet
#

Yet I use the default spigot command api

rough drift
grim ice
#

ACF

ebon coral
#

Na

#

Never that

#

Gotta use the ones that implement Minecraft's new command framework

#

What's it called lemme think

rough drift
ebon coral
#

brigadier

#

that

#

yeah

ivory sleet
#

ACF is good but somewhat pro-annotations which I don’t prefer

rough drift
#

and i gotta make my todo list better

ivory sleet
#

Nice

ebon coral
#

The CommandAPI one is fire but I don't wanna use it just as a CommandAPI in one whole plugin

ivory sleet
#

Meh

#

I use commodore instead

#

Works fine

grim ice
#

EntitySerializer idea was a cool one imo tho

ebon coral
#

Is that a lucko thing

#

Sounds luckoey

grim ice
#

it also worked from first try so yeah that was a very hot experience

ivory sleet
#

Yeah

#

It is

ebon coral
#

Thhhaattt guyyy

grim ice
#

whats luckoey

ebon coral
#

A clutch to the community

ivory sleet
#

He writes quite good code yeah

grim ice
#

wait

ebon coral
#

I just thought about that like how much I use his stuff

ivory sleet
#

Lucko

grim ice
#

some person alr made EntitySerializer?

ebon coral
#

LuckPerms and Spark especially

#

So fire

ivory sleet
#

myeah

grim ice
#

o

#

where

last tulip
#

hi, im making 2 file, main.java and alpha.java

main.java extend JavaPlugin

but alpha.java also need extend JavaPlugin, because i run .scheduleSyncDelayedTask on that

i tried put this inside alpha.java

    private Plugin plugin;

    public alpha(Plugin plugin) {
        this.plugin = plugin;
    }```
but still show `Cannot resolve method 'scheduleSyncDelayedTask(com.vanezzz.ngckevent.alpha, anonymous java.lang.Runnable, long)'`
ebon coral
#

He also has helper which a lot of networks nowadays look for skills with it in developers

ivory sleet
#

Helper is decent, somewhat too coupled for my taste but yeah

ebon coral
#

Yeah

#

I can't work with other people's API's too much for some reason

#

I like my own feel and touch to things

#

Even if I adapt it off of theirs

ivory sleet
#

I mean, I do very much hate libraries that offer bad apis

solid forge
#

such as nms

ebon coral
#

Some just have too many annotations, some just are a bit offputting with how they impl things

#

NMS isn't an API lol

ivory sleet
#

Some of the nms is excellent

ebon coral
#

NMS is clutch in certain situations but

#

A pain

ivory sleet
#

And some of the nms is code you’d just throw away if that would be your code

ebon coral
#

I'm heavily stuck on NMS right now

#

Actually building this plugin now which I never had an issue with

ivory sleet
grim ice
#

you dont always need nms

ebon coral
#

For a custom tablist?

ivory sleet
#

It has its own abstraction layers internally

grim ice
#

e.g EntitySerializer lib i made

solid forge
#

its a kind of library but not intended for others' use

grim ice
#

it would be impossible to get that idea without gizmonster tho

ivory sleet
#

So in that sense it offers api for itself, between layers

ebon coral
#

You can do this without NMS?

#

1s

solid forge
#

tablist is now possible without nms

ebon coral
#

Nonono

#

That

#

Not header and footer lol

solid forge
#

wth

ebon coral
#

Custom tablists

solid forge
#

you can do that without nms?

ebon coral
#

Exactly

#

You cannot

#

That is my point

ivory sleet
#

I believe the spigot api provides methods to do it tho

solid forge
#

yeah that needs packets 100%

ebon coral
#

Ehhh I haven't found any

grim ice
#

for that

ebon coral
#

No

grim ice
#

YO

ebon coral
#

Well

#

There was

#

Plennnntyyy

grim ice
#

and what happened?

ebon coral
#

I even bought like $200 in libs back in the day for it

#

They haven't been updated since 1.17

#

Sadly

rough drift
#

conclure i am getting working on it

grim ice
#

YO

#

MY TIME

ebon coral
#

Working on it rn too fool

#

Smh

grim ice
#

o

ivory sleet
#

No?

grim ice
#

a lib for it?

ivory sleet
ebon coral
#

Yes

#

I am

#

SMH

grim ice
#

o

rough drift
#

almost got rectangular regions

grim ice
#

ok then i wont do it

rough drift
#

with populators

ivory sleet
#

That’s nice

ebon coral
#

Nah I'm jk do whatever

grim ice
#

r u making it tho

ebon coral
#

Nah this is for my network

#

Not public

grim ice
#

Good

ebon coral
#

T_T

#

Actual pain

sacred scaffold
#

can i talk about my problem about port here

misty current
#

kodi did u look at ur code for that mongo thing

ebon coral
misty current
#

thats the page i had checked and i had tested various methods

ebon coral
#

How do I fix this error FFS

grim ice
misty current
#

the only one that worked was the one i have sent code fo

grim ice
#

only header and footer

misty current
#

it used to not throw a classcastex

ivory sleet
ebon coral
#

That is my point :)

misty current
#

i love nms

#

i don't love the obfuscation

ivory sleet
#

Mojmaps

misty current
misty current
ebon coral
#

Just wait till I beautify it lol

#

That's just a test

lost matrix
misty current
#

10 times better

rough drift
ebon coral
#

You can make them look rlly ood

ebon coral
#

HELP ME

ivory sleet
ebon coral
#

Yeah but are your skins gray

grim ice
ebon coral
#

👀

#

Jk it's lightwork i know

grim ice
#

you alr amde that

lost matrix
ebon coral
#

I'm using EntityPlayer's and then a tablist display name

#

Trying to figure out teams for sorting but I accidently messed my Intelli up and now I cant compile absolutely anything

lost matrix
#

Oh im not using teams for sorting

ebon coral
#

How are you sorting them?

#

Just by their regular names?

lost matrix
#

one moment

#
    final GameProfile profile = new GameProfile(playerID, " " + index);
    final MinecraftServer server = ((CraftServer) Bukkit.getServer()).getServer();
    final WorldServer worldServer = ((CraftWorld) Bukkit.getWorlds().get(0)).getHandle();

    final EntityPlayer player = new EntityPlayer(server, worldServer, profile);
    player.listName = new ChatMessage(display);

This: The name of the profile is just an incremented index while the listName can be different.
This way i can just get a line in the tab list by index and edit it whenever i want without missing
up the structure.

ebon coral
#

Ah alright, well I want the name to be displayed something differently without messing up it's order.

rough drift
#

Alright, got a working rectangular region

ebon coral
#

Wait would that work then?

lost matrix
lost matrix
rough drift
#

Basically

#

but

#

you can do something like

ebon coral
#

Or would it not...

#

Because can player names clash?

rough drift
#
Region#populate(RegionPopulator);
```Every region has that
#

it gives you block and region you are populating

ebon coral
#

I'll have to look into it tbh

rough drift
#

tho it only returns mat for now

lost matrix
ebon coral
#

Hmmm I see

#

Alright yeah I'll look into it, hopefully I can get my uhhhhhhhh compiling working again

#

player.listName = new ChatMessage(display);

#

How does that work lol wot

lost matrix
#

Its a 1.17 snippet without using mappings. So the names are different.

ebon coral
#

Ah

grim ice
#

ill make a

#

or wait

#

nvm that prob is alr made

visual tide
grim ice
#

is it possible to copy a block

visual tide
#

u can copy the blockstate

#

change the position

#

and then update

grim ice
#

are there libs for t

visual tide
#

no

#

its 3 lines lmao

grim ice
#

yeah thats sad

visual tide
#

.getState

grim ice
#

i wish it was harder

visual tide
#

the like set location idk what the method is

#

then .update()

lost matrix
visual tide
#

i was a bit scared 😅

grim ice
#

i wanna make a world copier but this also exists

#

yikes

#

WAIT

#

is there a library for copying chunks?

#

:)

vocal cloud
#

I've seen a few floating around

#

But mostly people use world edit

rough drift
#

Anyways regions are now added

#

gotta add polygonal regions

#

i think thats their name

#

wait

#

yep not that

#

just polygon

#

ok

#

I half expected it to not be that

brave goblet
#

How could i remove an item from a players inventory every second?

#

so i could make a "timer" with items

undone axleBOT
brave goblet
grim ice
rough drift
#

well its called omni lib

grim ice
#

copyinglib uwu

rough drift
#

nahhhhhhhhhhhhhhhhhhhhhhhhhhh

#

anyways i just got polygons working

brave goblet
#

I get this error when trying to summon tnt at a players location

tender shard
#

why do I always get random pings in this channel

#

and why doesn't discord let me jump to the latest ping in a channel?

glossy venture
#

on a different thread

#

or anything like that

grim ice
#

BTW

#

how do i copy a repo to my device

brave goblet
tender shard
brave goblet
hoary pawn
#

UHMMMMM thats not good is it?

grim ice
#

you cant interact with the server off thread*

hoary pawn
brave goblet
hoary pawn
#

this might be what causing it but not sure

kindred briar
#

Hi, how to update update spigot libraries in intellij ?

brave goblet
#

update update?

#

wym?

#

u just change the spigot .jar? or uh

visual tide
smoky oak
#

ummmmmmmm

#

java.lang.NoClassDefFoundError: net/querz/nbt/io/NBTUtil

#

so thing is

#

i followed the installation instructions

hoary pawn
visual tide
#

the itemstack cast

#

the string cast

#

line 1 & 3

kindred briar
#

I'm new to java

brave goblet
#

i just followed a tutorial

hoary pawn
# visual tide line 1 & 3

ahh yes, thats to get the persistentdatacontainer, might be able to compress it a bit but should that really make java crash?

brave goblet
#

and they said just paste in the jar

#

ill find the vid

kindred briar
#

just download and replace ?

brave goblet
#

well ye

#

i think so

#

but

visual tide
brave goblet
#

don't listen to me

#

wait till some one else can actually help u

visual tide
#

getItemMeta already returns itemMeta

#

get with datatype string already returns string

hoary pawn
visual tide
#

the damaged entity and the itemstack weapon also dont need to be cast

lean gull
#

i still need help with this btw

rough drift
#

say i have

static {
  // register new instance of this class
}
```and in another class i have
```java
// Inside a method
MyClassWithStatic inst = Registry.get(MyClassWithStatic.class);
#

Would the static method be callsed before the method runs

#

or after

#

I honestly forgot

#

wait nvm i can just test it

vernal basalt
#

do 1.18 plugins need to be on java 17

brave goblet
#

block break event?

lean gull
brave goblet
#

well

#

UH

#

yes got u

#

tnt

#

could break a block :')

lean gull
#

im also placing them not on walls

#

which means if they update, they break

#

oh and i don't think i can use nms or packets

grim ice
#

how do i get these 2 points

#

from a chunk

spiral light
#

0,world.getMinY(),0
and
15,world.getHeight-world.getMinY,15

rough drift
#

you got it faster than me

spiral light
#

😛

brave goblet
lean gull
#

i checked all the block related spigot events, i didn't find anything

grim ice
spiral light
#

dont know how its implemented.... but maxHeight would be the maxY probably and then its just that

brave goblet
#
 @EventHandler
  public void onExplode(BlockExplodeEvent e) {
    e.setCancelled(true);
  }```? @lean gull
grim ice
#

and why do u do -world.getMinY()

lean gull
spiral light
#

getHeight would be the range of the world ... subtract( means to add minY) would give you the maxY too

spiral light
brave goblet
#

e

lean gull
#

i need an event or smth for general breaking, like when it breaks not when it gets broken by something

grim ice
#

so is

        final int minX = chunk.getX() << 4;
        final int minZ = chunk.getZ() << 4;
        final int minY = world.getMaxHeight() - world.getMinHeight();
        final int maxX = minX | 15;
        final int maxY = world.getMaxHeight();
        final int maxZ = minZ | 15;

Fine

red sedge
#

hey i need some advice for design
im trying to make a plugin and i want to provide maximum customisability
im just not sure including everything in the config is very practical
should i like
make a wiki and make users add the values as they want to the config or have the values pre set in the config

grim ice
#

to get the chunk borders

grim ice
#

like the whole chunk

rough drift
#

with alot of comments

#

otherwise people won't figure it out

#

they still won't

#

but it will help a bit

red sedge
#

yeah but like

#

some stuff are not stuff that many people will even need to use

tender shard
red sedge
#

i just provide them for the sake of it

lean gull
#

make an ingame gui for changing data

rough drift
#

that's what i did

grim ice
red sedge
#

so pre-set it is?

rough drift
#

yep

#

mine is like

#

Desc

Default

option: value

#

for every single one

#

even ones that have specific names

red sedge
#

okay so practically a wiki in the config

grim ice
#

im trying to make a structure out of a chunk

rough drift
#

if you have

toggleThisToEnableThisVerySpecificPartOfThePlugin

#

document it

#

people won't know what it means

#

even if you write a sentence as an option

#

they still won't

red sedge
#

set-this-to-true-to-enable-the-plugin:

rough drift
#

yeah they won't figure what that means

#

believe me

#

people where so dumb they where changing the comments for the options

#

THE COMMENTS

red sedge
#

type-true-right-after-the-":"-to-enable-the-plugin-enabling-the-plugin-will-allow-you-to-use-the-plugin-if-you-dont-change-anything-it-should-be-true-anyways: true

rough drift
#

nope won't udnerstand

red sedge
#

.__.

rough drift
#

thats the kind of people i deal with

#

and my staff deals with

#

its annoying

short harbor
rough drift
red sedge
rough drift
#

my support disc

red sedge
#

dm me a link

#

id love to laugh at some people

rough drift
#

kk

smoky oak
#

um
18:32:50.070 <log4j:Event logger="dzb" timestamp="1646501570069" level="INFO" thread="Render thread"> <log4j:Message><![CDATA[[CHAT] �����j�0��+Kv�����Y;g���(�D;X����!��n����;�^B�_�Ed�����7�lu��f-��^��0�s�-/���Tp������O<w7�,��&Lk01�����v���aX;k��g]0� �u��.���������qg0������w�uy� �0l>0l>0l>0l>0�����Ak����l%�����%����Y_OCL��4�i������y^�a�5��\�4��rRxs�]]></log4j:Message> </log4j:Event> 18:32:50.070 XML_ERROR_PARSING_CDATA

narrow berry
#

Hello, I need help with this error, I have bungeecord version 1.18, java 8 to 17, premium minecraft launcher - **Internal Exception: io.netty.hadler.codec.DecoderException: java.lang.IndexOutOfBoundsException: Index 83 out of bounds for length 5 **, error only applies to connection via public IP address. What may be the problem?

red sedge
#

How can I differenciate between a config value being an int and a list

delicate lynx
waxen plinth
tender shard
red sedge
tender shard
#

that's builtin

wanton atlas
#

do I need NMS for creating an NPC?

tender shard
#

yes

dusk flicker
#

you could use a library

hexed hatch
#

I plan on storing several types of information in all monster entities that spawn. Should I create a PersistentDataType for this to store in their PDC, or just create multiple containers and store the information with existing types

tender shard
dusk flicker
#

yeah

wanton atlas
#

can u send me one?