#help-development

1 messages · Page 903 of 1

peak sapphire
#

😄😄😄

echo basalt
lost matrix
#

everything you say? squint

hybrid spoke
#

everything.

echo basalt
#

20$ is 20$

devout pivot
#

i see thanks everyone

bleak eagle
#

there's no getType on BlockData btw

#

it's getMaterial instead

lost matrix
#

How conveniently consistent

bleak eagle
#

xD

echo basalt
#

block.getType

bleak eagle
#

blockData.getMaterial

echo basalt
#

ezpz

#

both work

bleak eagle
#

yeah hey what's up with that

#

the api once once commited is set in stone xD it's too late to fix it now

echo basalt
#

there's probably a really poor excuse

bleak eagle
#

the api politics is always a good excuse

#

it breaks people's code

hybrid spoke
#

id say they've been made at different days

bleak eagle
#

one week i'm feelin like a getType and the other i'm more of a getMaterial guy

echo basalt
#

The true measure of how good you are is inversely proportional to the amount of times you look up java docs

bleak eagle
#

The true measure of how good you are is inversely proportional to the amount of times you look up java docs

#

excuse me

echo basalt
#

Eh

#

It's a weird curve

#

At some point you don't need the docs

hybrid spoke
#

wait docs for code exists?

echo basalt
#

Unless it's one of those methods with like 19 params

#

Like raytrace or createExplosion or potion effects

#

Builder pattern when

bleak eagle
echo basalt
#

Not always

bleak eagle
#

it was a halfjoke but hey

torn shuttle
#

tfw when you already did more than enough work for the day but don't really have anything else to do so you reopen the ide

echo basalt
#

Me asf after pulling 7 back to back 15 hour sessions

bleak eagle
#

russian sleep experiment

torn shuttle
#

15 hours? are you on a holiday?

echo basalt
#

No

hybrid spoke
torn shuttle
#

must be nice

hybrid spoke
#

id rather stare at the wall

echo basalt
#

Eh

bleak eagle
#

fake programmer

echo basalt
#

I stared at the ceiling after doing that last night

#

Passed out in like 2 mins

torn shuttle
#

man I actually started working on this feature just to prove to 1 person on stream that I could do it

#

this is some next level shit

echo basalt
#

Woke up half an hour later all lost

hybrid spoke
#

learnt java 3 weeks ago

torn shuttle
#

I can't even go to the gym, it's a rest day

#

I actually feel like I might go regardless just so I don't have to look at packets for another 5 hours

bleak eagle
#

i never learnt java

#

yet i'm apparently qualified enough to write a bukkit api

hybrid spoke
#

i did a crash course so now i know java

hybrid spoke
bleak eagle
#

i know other languages so i just assume java

hybrid spoke
#

but lost it years ago

devout pivot
#

Levelled blockLevelData = (Levelled) blockData;
so on this line blockData is being turned into Levelled variable? @bleak eagle

torn shuttle
bleak eagle
#

exactly

torn shuttle
#

this isn't even my final form

devout pivot
#

so (something) works as a converter

bleak eagle
#

yup

devout pivot
#

alright thanks

drowsy helm
#

Does the beard turn yellow in final form

torn shuttle
#

better yet, white

bleak eagle
#

but once again before writing that line make sure you have all the necessary if-checks to know if the blockData you're casting is indeed castable to Levelled @devout pivot

hybrid spoke
bleak eagle
#

i used "converted" to explain it

#

yes the official term is "casted" and "casting"

torn shuttle
#

also I'm trying new meals in my strict diet and they're garbage

#

I fucking hate tuna

#

that shit is nasty

lost matrix
drowsy helm
#

Tuna is fuxking great

#

Wdym

torn shuttle
#

it makes me want to pollute the oceans

hybrid spoke
devout pivot
#

i see i see

hybrid spoke
drowsy helm
#

Put tuna, rice and kewpie mayo together

torn shuttle
# hybrid spoke racist?

I don't think white makes you more powerful I think me becoming even whiter increases my power level

drowsy helm
#

It’s reallt good

torn shuttle
#

one day I will be able to do full snow camo without requiring any clothes

devout pivot
drowsy helm
hybrid spoke
drowsy helm
#

For future reference

hybrid spoke
#

so you have to explicity check

torn shuttle
#

I must be the person on here with the most selfies second only to mfnalex drunkposting

hybrid spoke
#

(which you should always do)

torn shuttle
#

I have a very public image

devout pivot
#

i see. so even if its levelled, other blockdata can be of other variable so i hv to first declare that its levelled to use the getLevel() method?

hybrid spoke
#

he wont hesitate

bleak eagle
#

that's what we were sorta discussing, cuz in the case of a composter you are already sure it's levelled if you just check if it's a composter

#

but others suggested a better practice is checking if it's levelled anyways as well as checking if it's a composter because mojang has the power to make a composter non-levelled for whatever reason whenever they want to

devout pivot
#

alright understood

echo basalt
drowsy helm
bleak eagle
#

mfnalex drunkposting? elaborate.

wet breach
echo basalt
#

all good ol' alex drunkposting

#

posting certified hood classics like putting a hole in the wall without looking

devout pivot
#

my question was that after we checked that my block is indeed composter, it still didnt let me use getBlockData().getLevel(). is it bcz the blockdata of other blocks can be of different variable so i hv to first declare that its levelled to be able to use the getLevel() method?

bleak eagle
#

exactly

echo basalt
#

or wine glass pics in the bathtub at 3am

drowsy helm
#

Quite often

torn shuttle
devout pivot
#

i see

torn shuttle
#

is he drinking again?

bleak eagle
#

computers are dumb and a Block is a Block, there's no specific Composter type that is Levelled, so you must check if the Block is indeed levelled and cast it

echo basalt
#

think he did rehab

#

like 3x

drowsy helm
#

Yeah he did

torn shuttle
#

yeah but I thought it failed every time

#

I've not been keeping up with my mfnalex lore

bleak eagle
#

holy shit ahha

#

i've gotten properly drunk maybe a few times in my life

hybrid spoke
#

and alex gets drunk a few times a week

tender shard
hybrid spoke
#

there he is

drowsy helm
#

Speaking of the man

young knoll
#

Boooo UnsafeValues

echo basalt
#

why use UnsafeValues when you can use Unsafe

torn shuttle
#

I've never been drunk, and I can count the individual alcoholic drinks I've had in my life in a single hand

young knoll
#

Gotta get that ItemType and BlockType merged so we don’t need UnsafeValues

echo basalt
#

I had a mini beer today

#

first of the year

torn shuttle
#

did it make the $5 pizza go down smoother?

young knoll
#

Then we can add a ton of new api methods for items and blocks

echo basalt
#

I haven't had 5$ pizza

#

for at least 2 days

#

I tried getting chicken yesterday but it was closed

#

I ordered lunch at like 6:30pm

echo basalt
#

whole gang was stressed

torn shuttle
#

this man will have clogged arteries and a beer belly by 35

drowsy helm
#

Got blackout in vietnam and woke up on a beach with all of my belongings thankfully

young knoll
#

Plot twist

torn shuttle
#

which to be fair is better than a dude I play dnd with who is 26 and already has a beer belly, que lenda

young knoll
#

The beach was in Florida

echo basalt
#

idk why magma judges my 5$ pizza habit I'm still eating like 1.8k calories a day

young knoll
#

Not exactly the healthiest 1.8k calories

echo basalt
#

it's still 1.8k

torn shuttle
#

and I'm sure when you break it down you're hitting the right macros

echo basalt
#

calorie is calorie

torn shuttle
#

don't worry illusion I'll bench press your casket at your funeral in your memory

echo basalt
#

sure buddy

torn shuttle
#

go eat 1.8k cal of salt

#

tell me how it goes

echo basalt
#

avg beach activity

drowsy helm
young knoll
#

That’s just playing league of legends

drowsy helm
#

what do i get for winning

torn shuttle
#

I bench press your casket at your funeral

#

It's a new service I am doing

drowsy helm
#

i weight like 75kg lmao not too hard

echo basalt
#

that's p easy to press

#

so yeah magma's legendary bench press can be achieved by a 14yo

#

go figure

lost matrix
#

75kg isnt easy to press

eternal night
echo basalt
#

sounds like you need to press more

hybrid spoke
eternal night
drowsy helm
#

i bet like 80% of males between 20-40 cant bench press 75kg

eternal night
#

ImIllusion on their second cycle

drowsy helm
#

tren fien

river oracle
#

In what world is 75kg easy bruh 💀

lost matrix
#

Ive worked out for 2y now. Im at 95kg with 16% body fat and a proper 75kg press with 10 reps is def not light.

hybrid spoke
echo basalt
#

I'm not a stick fym

torn shuttle
#

yeah all that $5 pizza won't make you a stick

hybrid spoke
echo basalt
#

.. no

hybrid spoke
#

stick.

drowsy helm
#

mofo how tall are you

echo basalt
#

prob 185+

river oracle
lost matrix
drowsy helm
#

dang you're just lean

echo basalt
#

and with good posture?

#

185?

hybrid spoke
torn shuttle
#

180 at 95kg is real heavy

echo basalt
#

depends on mass

drowsy helm
#

programmer + gym often = winning life

eternal night
torn shuttle
#

I'm 185 at 98kg and I'm probably taking it down to 90

echo basalt
#

ah yes the 3 pillars of life

hybrid spoke
echo basalt
#

mental sanity, money and health

#

most people can only achieve 2

eternal night
#

I achieve 0

#

checkmate

echo basalt
#

ezpz

torn shuttle
#

yeah I've seen plenty of people on the internet achieve 0

#

I've ever seen many of those people in here

drowsy helm
#

most sociable, active people who program in my uni course are like 10x better coders than the shutins, it's weird

young knoll
#

Skill issue tbh

echo basalt
#

the shutins are too addicted to honing their skills

lost matrix
echo basalt
#

the active sociable people already got past that phase

torn shuttle
#

I knew a shutin that was a great programmer

echo basalt
#

oo me me me

eternal night
torn shuttle
#

until he snapped and got committed to a mental asylum

hybrid spoke
torn shuttle
#

this is not a joke

echo basalt
#

oo not me

young knoll
#

Not yet*

drowsy helm
#

I'm lucky i started programming early, I got past that nerdy tism early, now I focus more on social skills

torn shuttle
#

he's my sister's ex, showed up at my house and I took him out for a coffee and told him if he did it again I'd call the cops

echo basalt
#

man all the haters saying I'd never be anything in life were right

torn shuttle
#

fun times

#

dude's proper crazy

echo basalt
hybrid spoke
drowsy helm
#

you're not nothing! You're some dude sitting at his computer talking on a minecraft development discord

#

that's.... something

echo basalt
#

think that my last pic was like.. june last year

#

and it was a parody of my homie's linkedin photo

drowsy helm
#

dang you have 63k messages on this server

torn shuttle
#

that's illusion on the left and me on the right

echo basalt
#

sure buddy

drowsy helm
#

magmachad

echo basalt
bleak eagle
#

he's literally hardcoding blocks and items into bukkit methods (with or without script, it's still hardcoded)

#

and the reason is i think that bukkit should not depend on craftbukkit

young knoll
#

We don’t talk about that

bleak eagle
#

it should be a full api definition and it should return edible Materials on isEdible(), no matter where you implement bukkit

young knoll
#

Material is bad

#

Do not look at it

bleak eagle
#

like someone could implement bukkit on top of different server software and not NMS if they really wanted to

echo basalt
#

sometimes you need mistakes to learn from

bleak eagle
#

and they shouldn't have to explicitly write methods that return predictable values

river oracle
#

Material is getting yeeted out who tf cares

#

🥳

young knoll
#

Those massive switch statements are all gone with ItemType/BlockType

lost matrix
#

OK this is really old. Pretty much one year ago when i still was fluffy

echo basalt
river oracle
#

Also I highly doubt it's hard coded I'd reckon MD more likely than not has a tool

echo basalt
#

smile is bigger than I thought

torn shuttle
#

told you

lost matrix
#

Now this +1 year

torn shuttle
#

95kg for 180 is heavy

young knoll
#

Look at all those big balls by the ceiling

torn shuttle
#

like to have that look I'd have to be at what, 110?

drowsy helm
#

smile so strong he has to replace his keyboard after every keystroke

echo basalt
#

magma you're 5cm taller

#

quit pretending like you have to duck when entering rooms

torn shuttle
#

I'm not

bleak eagle
torn shuttle
#

for years half of my dnd group was over 190

#

those guys were fucking tall

#

I'm just a normal size

echo basalt
#

sounds like a nerd group

torn shuttle
#

well they're all medical chemistry phds

#

and can't add up die for shit

#

so yeah

drowsy helm
#

die being the plural of dice annoys me so much

#

shouldbe dices

lost matrix
young knoll
#

Deece

echo basalt
#

deuce

torn shuttle
#

deese

echo basalt
#

nuts

drowsy helm
#

nuts

young knoll
#

Nuts

echo basalt
#

sniped

young knoll
shadow night
#

what

torn shuttle
#

I wonder why there aren't more women devs

river oracle
#

Yeah fr

lost matrix
echo basalt
drowsy helm
#

I can't stand most other developers

lost matrix
young knoll
#

If there were more female devs we wouldn’t all be single!

river oracle
#

I know multiple women devs I should introduce them to spigot

torn shuttle
#

hey @lost matrix how much do you leg press

lost matrix
#

110kg

torn shuttle
#

uh

#

no

#

leg press machine?

drowsy helm
#

you can def do more than that

young knoll
#

Actually there’s always the joke that programmers can’t get girlfriends so they become the girlfriend

echo basalt
#

yeah 110 leg press is not heavy

drowsy helm
#

is that including machine resistance

torn shuttle
#

110 is nothing

echo basalt
#

ayo

#

smile acting aggressive

shadow night
lost matrix
echo basalt
#

You're not usually unhinged

torn shuttle
#

I'm just upset that I backslid on my leg press after the surgery, I'm aiming for 400kg by the end of the year

lost matrix
#

My guys i dont lift weight to boast about numbers. I maximize muscle entropy.

echo basalt
#

I lift to not be a fatass ¯_(ツ)_/¯

lost matrix
#

Proper 10-15 reps with 3 sets on 110kg is heavy af

drowsy helm
#

i lift to get women

torn shuttle
#

I lift to not be at my desk for 2 hours a day every 2 days

bleak eagle
#

i'm not sure whether it should really be implemented this way, even though it's a lot cleaner

young knoll
#

It shouldn’t be

drowsy helm
#

imagine posting development related messages in help dev :/

icy beacon
#

true

young knoll
#

It should be put in ItemType

#

But that’s not merged yet :(

bleak eagle
#

blocks can be composted too

torn shuttle
#

if a developer develops their body at the gym are they not developing?

#

basically I'm saying I should also charge for the time I spend at the gym in projects

hybrid spoke
young knoll
#

Blocks that have an item form have an ItemType

lost matrix
echo basalt
#

I have a really easy solution that works well for me

hybrid spoke
#

damn im good

echo basalt
#

just.. don't

torn shuttle
#

I don't either

lost matrix
#

I also dont. I only made those bc gf nagged me to take some for her -.-
Thats why its a year old XD

young knoll
#

At least she let you keep the clothes on

echo basalt
#

so you're a superstar dev and you ha(d/ve) a girlfriend? huh

young knoll
#

👀

hybrid spoke
#

tbh that pic could also be 10 years old

torn shuttle
#

that multi-level flex

young knoll
#

Hey I had one too :(

torn shuttle
#

I bet there's no gf and the image is ai generated

young knoll
#

Her cat is in my profile picture

echo basalt
#

I lied about the 3 pillars

#

here are the 4:

#
  • mental stability
  • money
  • health
  • girlfriend
#

good luck finding someone that has all 4

lost matrix
hybrid spoke
torn shuttle
#

I fuckin' knew it

#

you're the guy who's making models for me!

echo basalt
#

get back to work

echo basalt
bleak eagle
echo basalt
#

because if you have a girlfriend all your money disappears

young knoll
#

I was gonna make that joke

echo basalt
#

and when she's gone so is your mental stability for a while

young knoll
#

Dangit

torn shuttle
#

the fourth pillar is a lie

echo basalt
#

they all compliment each other except the last one

slender elbow
#

god forbid women have hobbies

echo basalt
#

go back to analysing jdk internals

torn shuttle
#

lmao we did it guys

#

we are working to make that 99.9% a true 100%

echo basalt
#

hell yeah

young knoll
#

See Emily took the become the girlfriend route

torn shuttle
#

I am the 100%

echo basalt
#

we all know girls have cooties

young knoll
#

I wanna become the girlfriend

#

Girls are cute

torn shuttle
#

it's amazing the lengths I am willing to go to not look at the code that is not generating display entities right now

icy beacon
eternal night
young knoll
#

Kek

#

Is that the pipeline

eternal night
#

idk all rust developers I know are cute 🥰

echo basalt
torn shuttle
#

there's 55 game engines written in rust and 3 games

river oracle
#

It's real

lost matrix
young knoll
#

Dang what happens past C++

icy beacon
#

Well, rust

bleak eagle
#

after rust?

torn shuttle
river oracle
bleak eagle
#

finally, bukkit

young knoll
#

Y2k furry?

river oracle
torn shuttle
#

yo @echo basalt is it just me or is it an insanely warm day today

#

I have the windows open and I think I might have to turn the ac on

young knoll
#

It do be kinda crazy how male dominated programming is though

#

My college course had like 3 women

echo basalt
#

solid 22C here

torn shuttle
#

what kind of february weather is this

echo basalt
#

but it's sunny like it's summer

bleak eagle
icy beacon
lost matrix
torn shuttle
#

if they told me this was what global warming was about I'd have gone for this way earlier

bleak eagle
echo basalt
#

can't wait for the 40C+ summer

torn shuttle
#

I love 40c summer

icy beacon
bleak eagle
torn shuttle
#

that's when you make puddles when you work out

young knoll
torn shuttle
#

that's when you feel really alive

bleak eagle
icy beacon
#

please tell me someone here likes cold weather

bleak eagle
#

i do

#

!!

icy beacon
echo basalt
#

I like cold weather

#

shame it rains like twice a year

torn shuttle
#

I loathe cold weather

echo basalt
#

and it's feb already so uh

#

see you in december

lost matrix
#

I only like dry, quiet snow days. Damp or wet cold weather is garbage.

icy beacon
#

it's like impossible to survive i nsummer

echo basalt
#

imagine having snow lmao

icy beacon
#

winter is inf better

echo basalt
#

winter is chill

icy beacon
#

literally

torn shuttle
#

portugal has dry heat, it's great

#

very dry, very hot

echo basalt
#

shut up magma you live up north it's bearable there

#

come to the south that's the real shit

torn shuttle
#

north

lost matrix
torn shuttle
#

we're like what, 4 hours away or some garbage

#

maybe 5h

echo basalt
#

7 hours?

undone spindle
#

hey has anyone ever used protocollib?

icy beacon
echo basalt
#

sumn like that

icy beacon
echo basalt
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
#

7 hours?

echo basalt
#

yeah

torn shuttle
#

I really don't think so

bleak eagle
echo basalt
#

4hrs through the highway interesting

lost matrix
#

My Dogo on the first snowy day this winter

echo basalt
#

5hrs by train

#

huh

torn shuttle
echo basalt
#

92hr walk

torn shuttle
#

the country isn't large enough

#

and we don't even have good highways

bleak eagle
echo basalt
#

rip gtg

torn shuttle
#

have fun eating rotisserie chicken

echo basalt
#

imma eat a chicken toast

#

with guac

#

cucumber, tomato

#

uh

#

mayo

#

iced coffee

torn shuttle
#

out of all of those I can eat chicken and tomato

#

and only chicken breasts

lost matrix
#

The rest you dont like?

torn shuttle
#

no, the rest aren't in the list my nutritionist gave me

torn shuttle
#

you know, it's a $30/mo thing which I feel is maybe not quite as fancy as you might imagine

#

and I end up saving way more than that in that I am eating just about the cheapest food you can find

lost matrix
#

I just try to get my 200g or protein in and the rest is whatever fits into my calories still

torn shuttle
#

I started a month ago, I'm happy with it

echo basalt
#

My breakfast was a monster and m&ms im missing out

torn shuttle
#

got a ton of definition in just a month

#

and I'm lifting way more

#

(but I was in recovery so it's kinda cheating)

lost matrix
#

Imagine cutting down and not just bulking 24/7

torn shuttle
#

I'm on 2200cal

#

not really losing weight just building muscle

lost matrix
#

I would be hungry all day on that

torn shuttle
#

I have a hard time downing it most days tbh

lost matrix
#

I mean if its only lean meat and vegetables then it can be a lot

torn shuttle
#

2200cal of healthy food is a volume of food much larger than 2200 of random less healthy food

#

lean cuts, boiled vegatables and rice 90% of the time

#

trying out pasta and tuna with vegetables but man I hate it

#

I'll finish what I have and then never again

lost matrix
#

sigh. Its a rest day but all that got me a bit worked up. gonna go work out, see ya guys

torn shuttle
#

damn I also want to go

#

it's also a rest day

#

eh I can't let him outdo me, peace

undone spindle
# echo basalt ask away homie

alright so im using a packet listener PacketType.Play.Server.ENTITY_EQUIPMENT
and am trying to make a kinda anti cheat to stop people from seeing other people their durability
but yeah it doessnt work i have been trying to search it but nothing is really comming out of it
https://paste.md-5.net/anayohonit.java

proud badge
#

can I not get a JsonObject from a JsonArray?

#

Isnt a JsonArray a list of JsonObjects?

#

Nvm

#

JsonObject extrends JsonElement

pallid oxide
proud badge
#

Interesting

worldly ingot
#

Constants, yes. Methods, maybe? Depends who's implementing them tbh. It's definitely automatable with a test (because we usually include a test case anyways)

hazy parrot
slender elbow
#

lol no

hazy parrot
#

Nvm I'm acoustic

slender elbow
#

bruh

torn shuttle
#

@chrome beacon you idiot that's not even an acoustic guitar

worldly ingot
young knoll
#

Death to material!

torn shuttle
#

I really need to make my configuration engine system into a library, this is dire

#

I have as many versions of this thing as I have plugins

young knoll
#

I need to update BlockType/ItemType again 😩

#

I blame @eternal night's PR for all the things I need to fix smh

torn shuttle
#

does anyone know if meg4 supports bedrock somehow?

young knoll
#

doubt it

#

?tas I guess

undone axleBOT
torn shuttle
#

I mean via protocol hackery

#

I don't have meg4

young knoll
#

Use the free version

torn shuttle
#

I also don't have a bedrock client to test it with

young knoll
#

You should have bedrock for win10

torn shuttle
#

it doesn't really matter just vaguely wondering as I write my own solution

torn shuttle
#

iirc it uses display entities but those straight up don't exist for bedrock so I was just wondering if it does what I am about to do which is fallback to armor stands for those clients only

icy beacon
#

why the fuck is nitro so expensive

chrome beacon
#

Yeah not worth

icy beacon
#

agree

hybrid spoke
torn shuttle
#

I have nitro classic just for longer text posts and upload sizes for release stuff

#

it's cheaper than that iirc

hybrid spoke
#

its $5

icy beacon
#

i bought normal nitro for like 2.5$

young knoll
#

Classic is like

#

dead

icy beacon
#

ars is the meta

young knoll
#

But basic exists

icy beacon
torn shuttle
#

I just wanted the upload size so I have more flexibility for my work stuff

slender elbow
#

add like 40% taxes on top of that cuz dólar mep brrrr

icy beacon
#

so like a dollar

flint warren
#

okay so, ive got a little problem

    @EventHandler
    public void onPlayerDrop(PlayerDropItemEvent event){
        Player player = event.getPlayer();
        player.sendMessage(ChatColor.RED + "YOU CANNOT DROP ITEMS ON THIS SERVER");

        event.setCancelled(true);
    }

that code works, the problem is that if i hold Q key, minecraft drops it many times meaning that the chat gets flooded with the message even tho im just holding the key, is there any way to stop it completely even if im holding the Q key.

im on mc 1.20.1 btw

undone spindle
eternal night
#

for each player

flint warren
#

wym

eternal night
#

the client is trying to drop the items there so, you have to "compensate" for it on the server side

eternal night
#

^

flint warren
#

okay

#

ty

#

so, there are no actual ways to stop an event from happening?

undone spindle
devout pivot
#

@EventHandler
public void onPlayerInteract(PlayerInteractEvent event) {
Block clickedBlock = event.getClickedBlock();
BlockData blockData = clickedBlock.getBlockData();
if (clickedBlock == null){
return;
}

    if (!(blockData instanceof Levelled)){
        return;
    }

    if (!blockData.getMaterial().equals(Material.COMPOSTER)) {
        return;
    }

    Levelled blockLevelData = (Levelled) blockData;
    int composterLevel = blockLevelData.getLevel();

    if (composterLevel > 1){
        blockLevelData.setLevel(7);
        Bukkit.getLogger().info("Level: " + composterLevel);
    } else {
        Bukkit.getLogger().info("Level: " + composterLevel);
    }
}

why isnt setLevel() working?

flint warren
hybrid spoke
#

they will figure

flint warren
#

okay whatever 🤫

#

they won't know ^^

undone axleBOT
#

"Does not working" is a useless statement. Please describe what exactly is not working, what you expect it to do, and what actually happens. If you get any console errors, also ?paste the entire stacktrace.

hybrid spoke
flint warren
#

yh

hybrid spoke
#

but thats just me

icy beacon
#

Make players able to disable/enable receiving this message

#

🙂

undone spindle
icy beacon
#

Or/and make it configurable for the entire server

hybrid spoke
#

its like javadocing a getter

#

getPlayer <- gets the player

#

cant drop an item <- you cant drop items

#

no shit sherlock

undone spindle
#

we don't know in what context they are going to use it 👀

hybrid spoke
#

just kick the player if he tries to drop an item

#

should be enough feedback

icy beacon
#

Delete all server files when a player tries to drop an item

#

Then install a backdoor on the host pc

hybrid spoke
#

yeah sure, then hack the nasa and let a rocket hit the house of the player

icy beacon
#

Yup!

short plover
hollow nebula
#

use hackclient to crashserver

quaint mantle
#

any ideas?

devout pivot
past sun
#

anyone know where the blocked commands section is in combatlogx?

chrome beacon
#

/plugins/CombatLogX/expansions/CheatPrevention/commands.yml

sand spire
#

Can someone please show me a method that checks if a List of ItemStacks fits in the players inventory so I can rewrite it in my own way, I've been trying for 6 hours but I really can't figure it out

I've tried searching for all empty slots + if a slot still has space for similar items. Which worked when I only need empty slots for all ItemStacks, or when I only need slots with similar items for all ItemStacks, but when I for example have 1 empty slot, and 1 slot that still has space for similar items it returns false because I can't figure out how to combine both situations
||https://pastes.dev/QElKYZJbPX||

I also tried using the Map<Integer, ItemStack> return value from player.getInventory().addItem(itemStack); but unfortunately I don't think there is a way to cancel the adding of the item so I tried removing the added items if the map is not empty but whatever I tried it always removed the wrong amount. Also this shows the item for a split second before its removed so I don't really like this method and it might create dupes if I ever want to save inventories
||No pastesdev because this code cannot be saved||

flint coyote
#

you could check the implementation of the addItem() check in spigots code

sand spire
#

So you're saying what i'm trying to do is so complicated you call it impossible

#

Cause I know I can drop overflow items but I want to make a claim rewards button that specifically only works when the inventory has enough space

#

I could keep it like this cause it works when you have enough empty slots or slots with similar items and space but I'm a perfectionist so I really hope its possible

flint coyote
sand spire
#

Also I don't I will be able understand how spigot is coded

valid basin
#

Is it possible to add fog or change biome for player?

#

I want to do it only for single player not entire server

#

Is it possible with packets or spigot in 1.20.4?

past sun
chrome beacon
past sun
#

what expansion do i need?

chrome beacon
#

CheatPrevention

chrome beacon
valid basin
past sun
flint coyote
#

Could probably copy and paste it to chatgpt and let it do the required changes or explain you certain things, too in case you can't follow it.

sand spire
chrome beacon
chrome beacon
past sun
chrome beacon
past sun
#

but i cannot open it

chrome beacon
past sun
#

oh

#

does it come up in the commands section afteri add it?

chrome beacon
#

The commands.yml will be generated after a restart

past sun
#

okay tysm

deep herald
#

can anyone tell me what to do? i have no idea how to use profiles

chrome beacon
proud badge
#

Will this ensure that the mob wont spawn with armour?

#

Or no

chrome beacon
#

No that would be the second argument in the spawn method

bleak eagle
#

when you modify a BlockData in this case our Levelled BlockData, you gotta set it back to the block

#

it's not done for you

#

getLevel doesn't need this since you aren't actually changing anything

zinc moat
#

is there a achievement event?

rough ibex
#

yes

zinc moat
#

thanks

rough ibex
#

why not

#

if you say 1.8 im going to dismantle you

zinc moat
#

because like .notify() i cant cancel it

rough ibex
#

ah okay

zinc moat
rough ibex
#

just revoke it right after

zinc moat
#

jdk?

rough ibex
#

i guess that too

zinc moat
#

im using 17 jdk

rough ibex
#

yeah good

#

but yeah just revoke the advancement as soon as you hear the event

#

effectively cancelling it

bleak eagle
zinc moat
#

i've been reading that shit alot

bleak eagle
#

in this case it was just typing 'advancement' into the search bar and looking at the classes

zinc moat
#

but i couldnt find

#

Can someone help me i dont understand whats wrong i can usally find it easy but i dont get whats wrong i tried to update to the latest version but it doesnt work

#

im using minehut so its paper only 😭

chrome beacon
#

Cannot find main class `me.dean.aokiboxcore.AokiBoxCore'

zinc moat
#

HOW THE FUCK IS THAT POSSIBLE???

chrome beacon
#

Did you accidentally add ` to your plugin.yml

quaint mantle
#

Damn

#

Quicksort is surprisingly easy

#

Is that the hardest sorting algorithm or nah

eternal oxide
#

hardest?

#

theres really annoying ones

#

like bubble sort

tardy delta
#

that one is just slow

quaint mantle
#

lmao

eternal oxide
#

It depends. It's slow when run once. If run over a mostly sorted list it's faster than quick sort

#

So for cases where you are adding new entries to an already sorted list it's fast

quaint mantle
#

Ye I read

zinc moat
#

well some like that

deep herald
#

does anyone know if i can still use legacy items?

chrome beacon
chrome beacon
deep herald
#

is it possible tho?

chrome beacon
#

if you're porting a plugin do it properly

#

Spigot 1.18.1 added the new PlayerProfiles class, which finally allows us to use custom heads without needing any reflection! You can obtain them as normal items, or actually place them down into the world. I’ll show you how both works: Creating a new PlayerProfile First, we gotta create a new PlayerProfile object. To do so,...

deep herald
#

no not for that

#

im using it for something else

chrome beacon
#

There is no reason to use them

cyan wadi
#

Hello, Its Cj here. I have just started using my new pc and tried using the Spigot.exe software and i have run into an issue where the automated api is stuck on the "HEAD is now at 7bb34ddc6 CraftBukkit $ Tue Feb 20 18:47:27 GMT 2024
Applying patches to Spigot-Server...
" text

#

can anyone help?

deep herald
#

im just asking

chrome beacon
#

Try it and see

clear elm
#

how to make hotbar messages

deep herald
chrome beacon
#

You mean the actionbar?

clear elm
#

yea

rough drift
#

player.spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText("message"));

clear elm
#

ty

#

yay it works

spare mason
#

interpolation of block displays are in ticks or seconds?

winter galleon
#

how can i save datas in a .db file?

celest notch
#

How would I detect hacks using spigot, for example flyhack etc

brazen badge
#

I created a plugin in this version, to change it just change here and the plugin.yml (and obviously check the code)?

chrome beacon
#

yes

chrome beacon
celest notch
# chrome beacon Use SQLite

Olivo whats the advantage of using a database rather than like a yml file or something that is easier to set up

chrome beacon
#

It's better for larger amounts of data

#

takes less space and you don't have to load all of it at once in to memory

celest notch
chrome beacon
#

Not always

#

You can use a local database like SQLite

quaint mantle
#

getting this error while trying to run my craftbukkit plugin:
java.lang.NoClassDefFoundError: net/dv8tion/jda/api/JDABuilder

Relevant code:

private JDA jda;

    @Override
    public void onEnable() {
        Bukkit.getServer().getPluginManager().registerEvents(this, this);

        try {
            jda = JDABuilder.createDefault("token")
            .build();

            jda.addEventListener(new DiscordListener());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Override
    public void onDisable() {
        if (jda != null) {
            jda.shutdown();
        }
    }```
tender shard
#

are you using maven or gradle?

quaint mantle
#

using command prompt

chrome beacon
#

Shading would make the plugin too large for Spigot (to be posted as a plugin)

#

You can use the library loader feature

tender shard
quaint mantle
#

javac -cp bukkit.jar;jda5.jar plugin.java

tender shard
#

lol

chrome beacon
#

👀 First time I've seen a javac user here

tender shard
#

yeah anyway, you can use the library loader as olivo said if you only support 1.16.5+

#

if you want to support 1.16.4 and earlier you have to shade JDA

quaint mantle
quaint mantle
tender shard
#

you have to include JDA into your .jar, otherwise how is the server supposed to find those classes?

chrome beacon
#

^^ code that doesn't exist cannot run

quaint mantle
#

the jda5.jar is inside of it

#

woops

#

sry

slender elbow
#

xd

quaint mantle
#

forgot abt the link

#

inside of it

chrome beacon
#

gains 💪

quaint mantle
#

name: DiscordIntegration
version: 2.0
main: DiscordIntegration
author: blahblah
class-path: jda5.jar

orchid brook
tender shard
#

as I said, easiest way is to shade JDA using maven's shade plugin or gradle's shadowJar

#

or the library loader for 1.16.5+

chrome beacon
#

And yes it's a good approach

orchid brook
#

oh yeah right lmao sorry

quaint mantle
tender shard
quaint mantle
#

my command prompt?

chrome beacon
#

no

#

The IDE

#

like Intellij for example

quaint mantle
#

I am using literally just command prompt

#

for windows

chrome beacon
#

How are you writing the java files

#

notepad?

quaint mantle
#

++

chrome beacon
#

._.

tender shard
#

good luck then

quaint mantle
#

lol

#

what other ide's can I use?

#

will codeblocks do the job?

dry hazel
#

intellij or eclipse at least

minor jetty
#

How to check if bungee is in onlinemode?

quaint mantle
minor jetty
#

Read

tender shard
#

that's the only option available in the api

minor jetty
#

Imagine marking something as Depracted and not giving second option @quiet ice good job

dry hazel
#

what lol

#

there's a reason why the class is deprecated, it can change without notice

#

doesn't mean you can't ignore the warning though

minor jetty
#

Marking something as @Depracted means that this option is no longer supported so you should use other option because this one will be deleted or shall not be used in the next release

When you mark something as @Depracted and you do not give second option this annotation does not really make sens because you still need to use it and it's not really depracted cuz there is not other option

tender shard
#

Deprecated doesn’t automatically mean its going to be removed

rough ibex
#

the entire class is subject to rapid change

#

see top of javadoc

#

Deprecated.
This class is subject to rapid change between releases

tender shard
#

(Even though it never happened since it was added kek)

#

(In 2013)

minor jetty
minor jetty
tender shard
#

well the API isn't perfect. You are free to open pull requests to improve it

minor jetty
tender shard
#

wdym?

short plover
#

How should I go about checking if a block is already being powered by another block on BlockPlaceEvent

#

Like for example when I place a redstone torch, it would get the blocks around, and it would get if those blocks are already being powered by another block other than the block I placed

young knoll
#

Block has various methods to check power levels

short plover
#

yeah but the thing is I don't wanna check the power level, I wanna check if the block is already being powered by another block other than the block I placed

young knoll
#

Pretty sure block place event is called before the actual place happens

chrome beacon
#

^^

young knoll
#

So the values won't include the effect of the redstone torch you are placing

bleak eagle
rough ibex
#

where exe

bleak eagle
#

what is a buildtool

young knoll
#

Everyone also asks what is buildtool but no one asks how is buildtool

chrome beacon
#

A tool that builds something. Spigot BuildTools for example builds the Spigot jar

#

Maven and Gradle builds your project

bleak eagle
#

joke!

#

@tender shard i wish i could just force my commits into your pr because i'm such a fucking control freak rahhh i want spigot to be all my code

tender shard
#

this works fine btw - you can check if a block is powered directly in BLockPlaceEvent

chrome beacon
#

You need to add \j in here, people really do ask questions like that :p

young knoll
#

At least we stopped using deprecated for everything in spigot

#

We have discovered ApiStatus

lost matrix
#

Ay

tender shard
bleak eagle
#

precondition

#

it tickles me the wrong way you aren't using it

#

when everything else is

tender shard
#

i dont think it makes sense to let it fail

bleak eagle
#

ok that tickling part sounded wrong

bleak eagle
#

developer passes a noncompostable material to it, the function doesn't error like it should to warn the dev early, dev is confused on why the chance is always 0. leads to bad code and these checks are everywhere else in the api for the same reason, as far as i can tell

bleak eagle
short plover
tender shard
bleak eagle
#

let's make it not do that as well then, cuz we're evil >:)

#

but it's not that bad, maybe you're right

#

especially with the doc above pleading devs to check first

tender shard
#

the idea is that the method returns whatever chance a material has to change the composter level and that's 0 for all non-compostable items

bleak eagle
#

not explicitly

#

the game itself never checks the chance for noncompostables

#

and if nms were to do it i think it would indeed explode

#

i haven't read the code though lol

tender shard
#

well addItem doesn't check it. it just checks if the chance is > 0.0 and if yes, it creates a random double and checks if it's >= the chance and if yes it raises the level. if the chacne is <= 0 it just does nothing

bleak eagle
#

mojang developers are slightly less stupid than spigot plugin developers though

#

but it isn't uncalled for so it's all good

#

returning 0 isn't that bad the more i think about it (/srs)

#

no need to talk about it further because i will cry (/j)

#

i just have to add these my messages all sound sarcastic as fuck for no reason

tender shard
#

wtf is a brush

bleak eagle
#

one more thing, what's the supposed magical ItemType that is to be added

#

that little thing

#

for finding the stuff in the sand

slender elbow
#

archeology ✨

bleak eagle
tender shard
tender shard
bleak eagle
#

yeah it's a new update

#

i haven't been in the loop either

#

you can use it on sand to find some items or something

tender shard
#

fancy

short plover
# tender shard whut

there was an archeology update, u brush suspicious gravel/sand and du get stuff

tender shard
#

oh i should play minecraft more often

slender elbow
#

you can get crap like sticks out of gravel

tender shard
#

finally I can be indiana jones

slender elbow
#

or dyes

#

or stained glass panes

bleak eagle
#

just what i wanted. light gray dye.

bleak eagle
tender shard
#

can I also find goat horns

bleak eagle
#

it really adds to the minecraft lore

lost matrix
#

Idea for a server: One gravel instead of oneblock where you simply brush a single block which upgrades and drops new stuff

tender shard
#

if the brush can't find goat horns then it's the worst addition ever, literally useless!1

bleak eagle
#

shards of colored glass in sand implies people have been living there before

bleak eagle
#

i don't know what you can exactly get with brushing

#

also what's with the whole oneblock craze i haven't heard of it before like yesterday

lost matrix
#

Isnt that dead already? It was a thing years ago

short plover
young knoll
#

You can edit the LootTable of brushing

#

So it can give anything

bleak eagle
#

too bad

#

it;'s no longer vanilla then

#

and that's just laaame.

young knoll
#

Neither is one block

bleak eagle
#

oneblock is not vanilla but custom loot tables are not vanilla vanilla

young knoll
#

You can do both with datapacks

#

Therefor

#

Valid

bleak eagle
#

nevermind

#

misread

tender shard
#

well Items.DIRT, mb

bleak eagle
#

no actually it still stands

#

okay so Items are blocks and items, and Block s are just blocks

tender shard
#

no. In NMS, there's Blocks.DIRT which is a placed Dirt, and Items.DIRT which is the dirt in your inventory.

In Bukkit, there's only Material.DIRT which represents both. It returns true for isItem AND isBlock because it exists both as item and block.

a Material.DIAMOND_PICKAXE only returns true for isItem because there's no nms Blocks.DIAMOND_PICKAXE. And almost every block has an item variant except for stuff like HANGING_SIGNS, WALL_TORCH etc

bleak eagle
#

rahh gotcha

#

thanks for having the patience to explain

tender shard
#

np lol

bleak eagle
#

just a bit of a noob but i hope to at least contribute something useful back to spigot since i've been using it for so long

#

lots of new stuff that is a little hard to understand but hey

bleak eagle
young knoll
#

This is why we have the PR :p

bleak eagle
#

what's stopping it from being merged

lost matrix
#

md

bleak eagle
#

why

lost matrix
#

bc it needs to get reviewed by enough people and then approved

young knoll
#

Still needs work

bleak eagle
#

can i work on it

#

and if so, how?

young knoll
#

I still choose to blame Lynx!

eternal night
#

wtfff ????

bleak eagle
young knoll
#

I believe my branch is public

#

So you can PR to my PR essentially

lost matrix
eternal night
bleak eagle
#

or are you pring to a pr too

young knoll
#

Technically

bleak eagle
#

i don't want to add to the mess

#

a bit scared

young knoll
#

Although the original code is from the enum PR

bleak eagle
#

and theeeese areeee

#

919

#

660

#

926

#

fucking hell that's a mess

#

they all conflict

young knoll
#

We’re trying to split the enum PR up since it’s such a big change

#

Some stuff has already been merged

bleak eagle
#

aha

#

i'll have to re-learn git for this

rough ibex
#

a good sacrifice

bleak eagle
#

are prs merged from newest to oldest or oldest to newest? does it make a difference

eternal night
#

merged whenever they feel ready

bleak eagle
#

but my question still stands

#

my brain's a little fried at the moment so i'd appreciate someone to do the thinking for me

young knoll
#

Yeah pretty much whenever they are ready

bleak eagle
#

if two are ready and conflicting, what is done

tender shard
bleak eagle
#

fuck it, if three are ready and conflicting, what is done?

#

i'm a good boy

#

i don't do stuff like that

young knoll
#

Which ever gets merged first is the lucky one :p

bleak eagle
#

and then?

young knoll
#

Then the other 2 get to have fun rebasing

bleak eagle
#

right

#

and they rebase on top of master again?

#

or wherever the pr was merged

eternal night
#

--force-with-lease 🙏

#

and yea

young knoll
#

Yeah always rebase to master

bleak eagle
#

how's the process of rebasing look like with conflicts involved?

#

one sec

young knoll
#

On normal classes it’s just the same as any other rebase

#

On patches you basically have to redo them

eternal night
#

from time to time

#

sometimes you don't

#

but yea, rebasing patches is fun

bleak eagle
#

example.txt

my cool file
my awesome file

dev1 commits

my cool file
my awesome file that is sick

and opens pr1

dev2 commits

my cool file
my awesome file that is great

and opens pr2

pr1 gets merged
dev2 of pr2 notices and runs git rebase master
what next?? is dev2 supposed to edit the second like to add both "sick" and "great" and then resolve the conflict that way? or is there something else that's done and i'm just being dumb?

eternal night
#

you do what makes sense

bleak eagle
#

right

#

what does git even output when the rebase is run

young knoll
#

Generally people don’t end up editing the exact same thing

bleak eagle
#

man i should make a test repo for this and stop bothering you

rough ibex
#

It's okay to ask questions

#

and to find your way

eternal night
#

ehhh

#
<<<<<<< HEAD
my cool file that is sick
=======
my cool file that is great
>>>>>>> 3bad716 (Great)
bleak eagle
#

aha

#

and then it goes "fuck you just resolve this"

#

and when you do you rebase again?

young knoll
#

Pretty much

eternal night
#

hm ?

bleak eagle
#

or commit n push and then rebase?

eternal night
#

you fix the issues

bleak eagle
#

after that

eternal night
#

and git rebase --continue

bleak eagle
#

yees that's it

eternal night
#

then it applies the next commit

#

until its done

#

and then you force push to your branch

young knoll
#

Sometimes you can just pick to resolve using your changes or resolve using their changes

#

Sometimes you have to merge changes by hand like a peasant

bleak eagle
#

riiight

#

so it interactively prompts you like which one you want?

eternal night
#

well

#

your IDE might

#

on terminal, you'd either just manually edit the file

#

vim is quite good at it

#

]c and [c means you can move around changes

#

:diffg RE to accept remote changes, BA for BASE and LO for local

bleak eagle
#

that's neat and also a little scary sounding

#

not yet ready for vim, though i know the basics of it :P

eternal night
#

IntelliJ has a great UI for this

#

the second it is a bit more complex, use it

bleak eagle
#

yeah i'll check it out

rough ibex
#

intellIJs git UI is fantastic

#

selective staging is amazing

eternal night
#

at least its mergeconflict ui

bleak eagle
#

does anyone know of a repo or ppa for ubuntu with idea community edition

#

i have the flatpak of course but it's a pain sometimes

#

i want to get rid of it and use a normal package

#

i can just periodically download it from jetbrains but i have to keep track of updates then, and i'm too lazy and unorganized for that

#

whoop found one nevermind

eternal night
#

jetbrains toolbox that shit

bleak eagle
#

yeahh i saw that but it seems so unnecessary to me

#

i found an official ppa it's just hidden away and not in their docs anywhere

#

nvm it's broken, i'll just toolbox it, you're right

#

jetbrains marketing really is like
INTELLIJ IDEA ULTIMATE EDITION

(ᶦⁿᵗᵉˡˡᶦʲ ᶦᵈᵉᵃ ᶜᵒᵐᵐᵘⁿᶦᵗʸ ᵉᵈᶦᵗᶦᵒⁿ)

charred blaze
#

Hey so i was just trying to load old project from eclipse to intelij. i failed so i moved out the old project folder out of the IdeaProjects. now im trying to create new project and im getting stuck on this screen each time. i tried invalidate and restart, deleted kotlin plugin. please help

wet breach
#

Probably need to kill it with task manager

orchid brook
young knoll
#

You would need to transfer it to and from the item

#

EntityPlaceEvent for the placement, not sure about the removal though

bright pelican
#

if im making an item like a flamethrower and i want fire to spawn wherever im looking when i right click howe would i do that? Fire Charge Etc. and how would i set off the Fire charges

drowsy helm
wraith apex
#

I got a question about NMS Enchantments,
I've managed to get a custom enchant to pass as a vanilla one so it works well in the anvil and can be obtained from the enchant table. How do I add enchantments that conflict with it? Or does minecraft do conflict checking differently?

I saw this Holder.c<Enchantment> variable and figured it might be some list/set to do with it?

#

I had a look in Holder$c and thought the TagKey might have something, but printing it out yielded nothing