#help-development

1 messages · Page 1935 of 1

tender shard
#
Person person = new Mfnalex();
// NOW we have a real person
quiet ice
#

person may not have been initalized

weak kayak
#

eclipse flashbacks

smoky oak
#

how the fuck doesnt this set it to something

quiet ice
#

That is javac

smoky oak
#

a string that iterates over all keys

#

in the for loop

quiet ice
#

a string cannot iterate

tender shard
#

then that key is not a configurationsection

smoky oak
#

it is the iterator

#

not the list to iterate over

#

that section exists

tender shard
#
a: "123"
b:
  c: "123"
#

a is NOT a configurationsection

#

b is

#

so getConfigurationSectino("a") returns null

smoky oak
#

ah

#

so what is it then

tender shard
#

a string

#

in this case

quiet ice
#

and b.c isn't a configurationsection either

tender shard
#

"a" in this case is a Key that has string associated to it

#

"b" is a key whith a configurationsection associated to it

smoky oak
#

the issue is in that example my string is asking for whats behind b

#

like using 'b' as key

#

and i know the config i use isnt null

tender shard
#

I have a headache, I should drink some jägermeister

smoky oak
#

imma try something similar

#

if(!isSection) continue

vocal cloud
#

All the best German beer on speed dial my man goes for jager

smoky oak
#

ah i found the issue

#

typo in config

#

anyways

#

how do colours work again? Throwing a &2 at the client does NOT change it for some reason

vocal cloud
#

Use ChatColor

tender shard
smoky oak
#

i only want part of the message to be coloured tho

vocal cloud
#

Bungee has hex now so 👀

tender shard
#

you could also directly use § but you don't want to use that

weak kayak
smoky oak
#

?

weak kayak
tender shard
smoky oak
#

urgh the numbers dont work

dire marsh
#
Minecraft Wiki

A book showing the possible formatting options with the character that performs them.
Formatting codes (also known as color codes) add color and modifications to text in-game.
Text in Minecraft can be formatted with the section sign (§). In Bedrock Edition, the section sign can be entered into signs, world names, books, renaming items and ...

smoky oak
#

thats why im asking

tender shard
smoky oak
#
 colour = cs.getBoolean("implemented") ? "&2" : "&4";
            msg += colour + s + "\n";
tender shard
#

?jd

quiet ice
#

Can the objects stored in AtomicReferences get garbage collected?

tender shard
smoky oak
#

msg += ChatColor.translateAlternateColorCodes('&', colour + s + "\n)");

quiet ice
#

so if the atomic reference is the only way to obtain the object it will get GC'ed eventually?

tender shard
tender shard
quiet ice
#

thanks!

tender shard
#

GC just removes everything that isn't referenced from anywhere

smoky oak
#

works now thanks

tender shard
#

everything that has a "pointer" to it (it's in a map, in a field, in an AtomicReference...) is not collected

smoky oak
#

nevermind &r isnt getting applied for some reason

muted sand
#

do items have their own uuid or
how would i save them into a database, and spawn them later or something? (they're saved in region files afaik)

tender shard
#

you have to serialize them

#

e.g. BukkitObjectOutputStream or however it's called

#

one sec

quiet ice
#

Ye, BukkitObjectOutputStream

tender shard
tender shard
smoky oak
#

so msg = ChatColor.translateAlternateColorCodes('&',msg); does correctly parse the colors but not the &r for some bizarre reason...

tender shard
quiet ice
#
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try (BukkitObjectOutputStream boos = new BukkitObjectOutputStream(baos)) {
    boos.writeObject(itemstack);
}
byte[] bytes = baos.toByteArray(); // Then convert these bytes to a base 36 string or whatever you want
hybrid ledge
#

Are there any good, uptodate libraries for inventory menus with lots of tweaks and stuff? Some must-have, all-in

tender shard
smoky oak
#

wait how exactly does &r work

tender shard
tender shard
#

or wait

#

not white, but uncolored

#

e.g. purple in lore, white in chat

quiet ice
#

I personally use the inventoryGUI lib from phoenix616, but idk how up-to-date it is

smoky oak
#

ah

quiet ice
#

it certainly works, but is lacking in stuff like adventure support

tender shard
muted sand
dire marsh
#

and it has adventure support ^

hybrid ledge
#

IF is looking very very nice, thanks!

blazing scarab
tender shard
blazing scarab
#

Whst stops you from doing public plugins with paper support

tender shard
#

so your plugin will only work with paper

blazing scarab
#

abstract out it

torn oyster
#

how would i make 1 minigame instance per server (create a server when i want to start a minigame, close it when it ends)

quiet ice
#

Use MethodHandles to support both

tender shard
#

or just directly use the output stream. I guess paper does the same anyway

blazing scarab
#

no it doesnt

#

paper's serialization goes through DFU

quiet ice
#

Hm, interesting. I'll keep that in mind next time I need to serialize something

#

Though honestly, DFU bad

blazing scarab
#

Spigot ones just use ConfigurationSerializable, which, rh, is not thst good

quiet ice
#

I thought it used java serialisation

#

which uhm, would be even worse

dire marsh
blazing scarab
sleek pond
#

anyone know why the sysout doesn't fire? Doesn't make any sense to me:

#
@Override
    public void onEnable() {
        // Plugin startup logic

        getServer().getPluginManager().registerEvents(this, this);

        System.out.println("BedBreaker9001 is starting up.");
    }

    @Override
    public void onDisable() {
        // Plugin shutdown logic
        System.out.println("BedBreaker9001 is shutting down.");
    }

    @EventHandler
    public void onBedEnter(PlayerBedEnterEvent e){
        System.out.println("Bed Enter");
        if(e.getBedEnterResult() == PlayerBedEnterEvent.BedEnterResult.NOT_POSSIBLE_HERE) {
            System.out.println("Illegal");
            e.setUseBed(Event.Result.DENY);
            // Cancel so that spawn isn't set
            e.setCancelled(true);
        }
    }
#

I have another event in the same class that does work

#
@EventHandler
    public void onEndCrystalExplode(EntityDamageEvent e){
        if(e.getEntityType() == EntityType.ENDER_CRYSTAL){
            // Remove entity so there's no damage and cancel the damage event
            e.getEntity().remove();
            e.setCancelled(true);
        }
    }
dusk flicker
#

which sysout

sleek pond
#

the "bed enter"

dusk flicker
#

you implementing Listener?

#

I would presume so

sleek pond
#

public final class BedBreaker9001 extends JavaPlugin implements Listener {

dusk flicker
#

hmm

tall dragon
#

JavaPlugin doesnt even need to implement listener im pretty sure

sleek pond
#

implementations aren't the issue cuz that onEndCrystalExplode is in the same class

sleek pond
#

so it doesn't make sense why one works and the other doesn't

tall dragon
#

ah im wrong then

dusk flicker
#

how are you testing it?

sleek pond
#

setting it to night and sleeping

weak kayak
midnight shore
sleek pond
#

the sysout above it doesn't work either

weak kayak
#

which sysout

#

oh

#

the bed enter one?

sleek pond
#

mhm

weak kayak
#

hm

midnight shore
#

So probably the problem is that that event does not fire when it is supposed to

#

Are you sure that’s the right event?

dusk flicker
#

What server ver are you running, and is it updated?

weak kayak
hybrid spoke
#

This event is fired when the player is almost about to enter the bed.
so when does it fire now

weak kayak
#

i'm pretty sure it activates when a player interacts with a bed

dusk flicker
#

I presume so

hybrid spoke
#

it spams if he stands near a bed 5Head

midnight shore
#

*almost != when

tender shard
quiet ice
#

Data fixer upper

tender shard
quiet ice
#

Mojank's serialisation thing

weak kayak
#

so this must be the one

sleek pond
#

ok so

blazing scarab
hybrid spoke
#

its not about drive

midnight shore
#

The fact is that it does not fire

weak kayak
tender shard
sleek pond
#

it sys outs the stuff now, must've been a faulty build or something. however it doesn't stop the player from sleeping in the nether and hence blowing up

weak kayak
blazing scarab
hybrid spoke
sleek pond
#

hmmm interesting

tranquil viper
#
    public void onMobSpawn(EntitySpawnEvent event) {
        Location location = event.getLocation();
        List<Entity> nearbyEntites = (List<Entity>) location.getWorld().getNearbyEntities(location, 8, 8, 8);
        System.out.println(nearbyEntites);
        System.out.println(event.getEntity());
        System.out.println(nearbyEntites.contains(event.getEntity()));

        if(nearbyEntites.contains(event.getEntity())) {
           event.setCancelled(true);
           System.out.println("Nearby same-entity-type found, event cancelled.");
        }
    }```

Anyone know why `nearbyEntites.contains(event.getEntity())` always returns false?

Console prints out 
```[13:37:50 INFO]: [CraftCow, CraftPlayer{name=PrayRNGesus}, CraftCow, CraftCow, CraftCow, CraftCow, CraftCow]
[13:37:50 INFO]: CraftCow

This in theory should return true?

sleek pond
#

I saw some github thing aboutb it and it used this instead of the interact event

#

but it must've been wrong

quiet ice
#

because it could be different cows?

torn oyster
#

is 1 month and a half enough to get an entire network up and running with only 1 developer with mostly custom plugins

sullen marlin
#

youre checking same entities, not same entity type

tender shard
tranquil viper
quiet ice
#

Unless the plugins have already been written. If that is the case it is probably more doable

midnight shore
#

Guys is there a way to get when the world spawns an entity and change it?

hybrid spoke
#

it really depends on what network you are planning to do

#

a simple SMP? probably

hybrid spoke
#

a high quality MMORPG? nah

weak kayak
tranquil viper
#

How would I go about getting the type though of the nearby entities?

midnight shore
#

I’m stupid

weak kayak
midnight shore
weak kayak
midnight shore
#

Cause I want to make a sort of naturally generated mobs

tender shard
midnight shore
#

Ty

sullen marlin
tranquil viper
weak kayak
tender shard
midnight shore
tender shard
#

ugm well

weak kayak
tender shard
#
@EventHandler
    public void onSpawn(EntitySpawnEvent event) {
        event.setCancelled(true);
    }
tender shard
#

by cancelling it

weak kayak
#

there's no event.getCause to check if it's naturally spawning or not

tender shard
#

CreatureSpawnEvent

#

then check the SpawnReason

midnight shore
#

Perfect

tender shard
#

e.g. /summon is SpawnReason-COMMAND

#

what do you actually want to cancel?

weak kayak
#

i think they only want natural generation

midnight shore
#

I just want to get when a zombie spawns naturally and with some chance change it to be a super zombie

tender shard
#

okay there's SpawnReason.NATURAL and SpawnReason.CHUNK_GEN although the latter is deprecated

#

but

#

if it's just about zombies

#

don't worry, they aren't spawned during world gen IIRC

weak kayak
#

yeah i think they don't spawn from world gen

midnight shore
#

I’ll try! Ty both

tender shard
#

np

weak kayak
#

i accidentally misspelt "np" as "no" 💀

quaint mantle
#

Cannot resolve the trustAnchors parameter must be non-empty Why i get this error when i start a new spigot project?

#

Maven

quiet ice
#

Could you provide a bit more context about the code?

tender shard
#

that is definitely not a message that maven has produced

sullen marlin
#

something related to https

#

but hard to tell without the full error

weak kayak
tender shard
quaint mantle
#

im on windows

weak kayak
#

ah yes windows

#

the most outdated linux distro of all

tender shard
#

where does that error come from? when does it happen?

#

pls send a screenshot or sth

quiet ice
#

Use eclipse to solve all the errors \s

weak kayak
#

eclipse superioryt

quaint mantle
#

When i create the project and maven finishes installing dependencies

tender shard
#

good one

weak kayak
#

(i'm joking eclipse sucks)

undone axleBOT
weak kayak
fast temple
#

is there any way to get the location of a block in a block place event then get that location in a block break event? im trying to make it so that a specific block drop changes to something else

quiet ice
#

then you haven't use it for long enough

quaint mantle
quaint mantle
#

Don't mind on project name xD

weak kayak
#

you could also use a hashmap

quiet ice
#

outside of the sonatype repo it looks fine by me

tender shard
fast temple
#

still my question is the same, how would i pull that meta data (which was set in the block place event) onto a block break event

tender shard
#

please send the FULL error log @quaint mantle

tender shard
midnight shore
#

Is there some way to save data to a block? Like you would do with tags regarding entities?

tender shard
#

oh you already did

quaint mantle
#
Unresolved dependency: 'org.spigotmc:spigot-api:jar:1.18.1-R0.1-SNAPSHOT'
Unresolved plugin: 'org.apache.maven.plugins:maven-shade-plugin:3.2.4'
tender shard
#

okay I suggest you to use my library that adds "meta data" to blocks @fast temple

tender shard
quiet ice
fast temple
#

oh

tender shard
fast temple
#

this block that i have already has meta data though

#

im just confused on how to check

#

omg

tender shard
fast temple
#

wait i think im just stupid

weak kayak
#

yk

#

the one built into spigot

#

i think it's pretty reliable

fast temple
tender shard
quaint mantle
#

No lol

midnight shore
#

How do I import a library without having maven?

weak kayak
quiet ice
#

Running latest windows vista update

weak kayak
#

guys i personally use ms-dos ngl

#

best programming environment

quiet ice
tender shard
tender shard
midnight shore
#

I just created a project

tender shard
quiet ice
#

So you are probably using JDT

tender shard
#

because if not, this is the perfect time to learn it. it only takes 5 minutes

#

and it will save you a TON of trouble in the future

midnight shore
#

I have this problem with eclipse, when I use maven it crushes

weak kayak
#

try gradle

quiet ice
#

Rightclick your project > Configure > Add gradle nature

weak kayak
fast temple
#

if i do... b.getDrops().clear; b.getDrops().ad(ItemStack);

midnight shore
fast temple
#

would that work?

weak kayak
#

block

fast temple
#

oh sorry lmfao

fast temple
#

block

weak kayak
#

bad naming

tender shard
quiet ice
#

Then rightclick your project again > show in > terminal > type "gradle init"

fast temple
#

ok so how can i remove the original drop then add my own itemstack

weak kayak
tender shard
weak kayak
#

oh wait

tender shard
weak kayak
#

that's not the on break event

#

mb

quaint mantle
#

This doesn't work even with Gradle

#

wtf

weak kayak
tender shard
tender shard
#

that method doesn't even exist

quiet ice
#

Go to gradle tasks > click on project > build setup > init

midnight shore
#

INTELLIJ is really weird, I’m just addicted to eclipse 😂

fast temple
tender shard
weak kayak
tender shard
#

I tried both

#

I switched to IntelliJ after 8 years of eclipse

#

so I am safe to say that I wasn't biased when I say IntelliJ is superior 😛

weak kayak
#

intellij is superior but i'm too lazy to switch

midnight shore
#

The only time I used IntelliJ I literally deleted my desktop directory for an error

quiet ice
#

I have tried intelliJ a few times and it is not that it is bad, it just more that it is hard to get comfy with

tender shard
fast temple
quiet ice
#

oh no

tender shard
dusk flicker
#

1.8 ALERT 1.8 ALERT

fast temple
sullen marlin
tender shard
#

well you're fucked then

dusk flicker
#

update

sullen marlin
#

oh no

#

the site is ded

tender shard
#

haha

fast temple
#

but i know its possible to do

dusk flicker
#

NOOOO

weak kayak
sullen marlin
#

what will we do

tender shard
quaint mantle
#

1.8 is old but gold

dusk flicker
quaint mantle
#

where pvp mechanics like 1.8

fast temple
#

im using it because pvp mechanics r better

weak kayak
#

1.17.10 ftw

muted sand
#

why

weak kayak
muted sand
#

just use 1.0

sullen marlin
#

tfw 1.8 is gonna be played by people who are younger than it soon

dusk flicker
#

soon? It's already happening id bet

tender shard
weak kayak
#

infdev minecraft superiority

fast temple
#

well how do i change the drop of an item in 1.8

tender shard
#

if that even exists back then

hasty prawn
weak kayak
#

minecraft 1.8 was released in september of 2014

#

that's like 7 years ago

#

very old

quiet ice
#

Oh jesus I am getting old

tender shard
quiet ice
#

Life is too long

weak kayak
tender shard
#

well 2013

tender shard
#

you're too young

weak kayak
weak kayak
tender shard
#

nah

#

I'm just a pg and you're a b00n

weak kayak
tender shard
#

my first windows... was windows 3.1

hasty prawn
weak kayak
#

very old

tender shard
#

but I couldnt read back then

#

the first windows I used when I could read was 95 or 98

weak kayak
#

my first windows pc (or rather, my uncles') was windows xp

tender shard
#

XP came out in 2001

weak kayak
#

yes

#

yes it did

tender shard
#

yeah that's about the time I learnt to read

#

but we didn't immediately have windows XP when it was released, so yeah - must have been win 98 or 95

weak kayak
#

should we go to #general

terse ore
#

?scheduling

undone axleBOT
fast temple
#

i figured it out

#

just 1 really weird issue

#

my block break event is happening twice any fixes?

tender shard
#

huh?

#

show your BLockBreakEvent code pls

weak kayak
#

maybe you're registering it twice?

#

probably not

fast temple
#

ok

#

wait

weak kayak
#

but it's worth double-checking

fast temple
#

that actually i think is the issue

#

omg 😭

#

thanks lmfao

weak kayak
#

no problem 💀

fast temple
#

i was accidentally registering the events in there 2 times

#

lmfao

weak kayak
#

lmao

muted sand
fast temple
#

@tender shard i wasnt fucked lol i figured it out lets go

weak kayak
#

it happens 💀

tender shard
#

"I wasnt fucked" I'm not sure if I can help with that lol

fast temple
#

you said when i asked how to do it in 1.8 that i was fucked

tender shard
quiet ice
tender shard
#

what's your workaround?

tender shard
young knoll
#

It might uhh

quiet ice
#

I think we went over this

young knoll
#

Start skynet

fast temple
#

basically i made it so that it set the drop from the item to air and then naturally drop the itemstack on the player

tender shard
muted sand
tender shard
#

didn't you mention you wanted only custom placed blocks to do custom drops?

fast temple
#

i already told u my block already had metadata

#

thats when i said that i realized something

#

that i could just check if it had that metadata

tender shard
#

yeah sure, if that's enough for you

#

but now imagine you want custom drops for a dirt block

young knoll
#

Metadata is a poor mans PDC

#

Even if it serves a different purpose

tender shard
#

and only for certain dirt blocks

#

then you're fucked

#

also isn't the metadata you mentioned lost on server restart?

young knoll
#

(Yes)

fast temple
#

oh

tender shard
#

yeah

#

as said you're fucked 😛

fast temple
#

how do i not make it lose it on server restart?

young knoll
#

Save it somewhere

tender shard
#

you have to use dirty workarounds like save it to file, mysql, ...

#

or a proper workaround, like update to minecraft 1.14+

young knoll
#

I mean that’s not really a dirty workaround

tender shard
young knoll
#

Databases are still preferred over PDC if you have a ton of data

tender shard
#

and it only seems to be for a certain block type / tile entity

young knoll
#

Ah

#

Yeah that’s probably fine

muted sand
#

I thought pdc doesn't save data for non tileable bloks

ancient jackal
#

why not just listen for block place event and then use the data container

tender shard
tender shard
#

1.16.3+ for chunks / blocks

young knoll
young knoll
#

Using the xyz as a key

tender shard
young knoll
#

How many bytes do you jam the xyz into

#

32?

tender shard
tender shard
young knoll
#

Well, yeah that’s true

#

But if it was numeric

tender shard
#

it gets stored as x12y-54z3 for example

tender shard
#

if it WOULD support something else as keys, it would easily fit into a short

young knoll
#

Really?

tender shard
#

since chunk coordinates are only 0-15, -64 to maxBuildHeight, 0-15

#

okay maybe not a short since the new build height

young knoll
#

4 bytes for x, 4 for z, and 11? For the y

tender shard
#

maybe it would require an int

young knoll
#

Yeah

tender shard
#

but yeah my CustomBlockData is perfect for stuff like the following

  1. Store a certain ItemStack in a block that will get drop upon mining that block
  2. Store the UUID + timestamp of the last player who placed this block
  3. Store whether this block was playerplaced or not

It's not a good way if you want to

  1. store a history of ALL block changes this block ever experienced
  2. .... tbh I don't have any more ideas
young knoll
#

Storing a string key is a good usage

#

Which you can then map to something in code

tender shard
#

oh I got another idea

#

custom containers

#

e.g. a "weed/drug" plant that can store certain potion effects lol

young knoll
#

Heh

tender shard
#

you name it... small stuff = fine, large stuff = better don't

young knoll
#

Imma use it to store a crop type for custom crops

tender shard
#

yeah exactly that would be totally fine

#

I still wonder why there's no PersistentDataType.BOOLEAN

#

I know @waxen plinth will now say "uuugh it doesn't support collections" and they are right about that

waxen plinth
#

Just store a JSON string in pdc 🧠

#

That's what I do

tender shard
#

but I'm actually quite proud of CustomBlockData. I had the idea of abusing the chunk while I was dreaming and now even big plugins like oraxen are using it :3

tender shard
waxen plinth
#

CustomBlockData?

tender shard
waxen plinth
#

Yeah my library has one of those too lol

tender shard
waxen plinth
#

🤔

#

What do you have against optic

tender shard
#

nothing

#

it's internet love

waxen plinth
#

ok

#

Mine works pretty differently though

tender shard
#

internet love = mock each other and both know it's meant in a good way

waxen plinth
#

It can be backed by either PDC or SQLite

#

SQLite for versions before PDC was around

tender shard
#

or for large stuff

waxen plinth
#

That too I guess

tender shard
#

like when you want to save 100MB inside a block, it would kill the server probably

#

maybe not kill it, but... chunk loads are still synced in spigot IIRC

young knoll
#

Plus you can overload a chunk

#

In which case mc will just nope

tender shard
#

Redempt lemme DM you

young knoll
#

He tryna slide into those dms

golden turret
#

im spawining my armor stand insed a block

#

when i teleport it to like

#

0.1 block above

#

the armor stand goes to the top

#

how could i fix that?

#

nvm

#

messing with variables

tender shard
waxen plinth
#

I am a certified leg haver

young knoll
#

I don’t know what that means

tender shard
quaint mantle
tender shard
#

quick question

#

what do you people do against users who mess up their config?

#

just let your plugin throw exceptions and use the default config?

#

or do you try to parse the config because it gets loaded and send a proper message to the admin?

young knoll
#

I try and do some parsing

#

But in the end there are so many ways to mess up the config

tender shard
#

yeah sure, so do you e.g. send a chat message to OPs if the config is broken?

young knoll
#

Console

paper viper
#

i mean you may want to send a message to ops

#

it annoys them

#

so they can fix it

young knoll
#

Heh

tender shard
#

yeah but

paper viper
#

cause a single message in console might get flooded

#

and easy to overlook

tender shard
#

there are so many noobs, they don't even see / understand console errors

terse ore
#

Hello

young knoll
#

It’s nice and red

#

I guess I can store it and send it to ops too

#

When they join

paper viper
#

well chances are they have a lot of other red things too

#

💀

#

cause its a server owner noob

tender shard
#

I currently do stuff like this but yeah somehow many admins still just ignore that message and tell me "their config is fine" and "angelchest is broken"

young knoll
#

Fix the header

paper viper
#

yea it looks a bit whack

#

dont use that

#

lol

tender shard
#

it's not about how it looks

young knoll
#

You have no space between ! and W but you do have one between G and !

terse ore
tender shard
#

yeah I get it, it could look nicer

young knoll
#

It bothers me

tender shard
#

but how can one oversee this?

delicate lynx
#

im sure someone looks passed it

young knoll
#

I mean

tender shard
#

the console prints the same warning twice

young knoll
#

What if the users are smart and don’t use op

tender shard
#

I guess if people still don't get it, they are just not worth to use paid plugins I guess

young knoll
#

Still plz fix the spacing

tender shard
waxen plinth
#

"if you can't understand this error, your life is worth less than the money you paid for this plugin"

young knoll
#

Endless line?

tender shard
#

yeah no line breaks

waxen plinth
#

!WARNING !

tender shard
#

I either have to manually add line breaks so that the console looks fine, or not do that and make the chat look nice

young knoll
#

^

waxen plinth
young knoll
#

Yes

paper viper
#

all programmers should take an art course

#

lol

waxen plinth
#

I did once

#

I learned that I'm not good at art :)

tender shard
paper viper
#

please dont drunk program

#

🙂

waxen plinth
#

a drunkard made this plugin

tender shard
#

unacceptable

paper viper
#

im not russian

young knoll
waxen plinth
#

do drunk program but only the right amount of drunk

tender shard
#

but ballmer had more like a cocaine peak

young knoll
#

Great now I need to get a breathalyzer

tender shard
#

ahaha

#

I hit the ballmer peak like pretty close

#

ballmer peak is like 1.4 and I got 1.45

young knoll
#

Nope too high

tender shard
tender shard
#

1.45 might as well be 1.38

young knoll
#

I have no context for what .138 is

#

Isn’t the limit for driving in the US like

#

.06?

waxen plinth
#

.08 I thought

tender shard
#

germany uses ‰ instead of %

#

so

delicate lynx
#

it's .08

tender shard
#

1.45‰ = 0.145%

waxen plinth
#

drunk

#

was pulled over driving with a blood alcohol content of 90%

tender shard
#

our limit is >0.5 (0.05) to drive a car

1.1 (0.11) to drive a car without it being a serious crime, and
1.5 (0.15) to use a bicycle

young knoll
#

<*

tender shard
#

oh yes

#

sorry

#

I was confused by your weird % notation for BAC

#

it makes no sense to use % if it's always below 1%

young knoll
#

You MUST be over .05 to drive

#

Or else

tender shard
#

yeah in russia lol

#

"you are BELOW 0.5‰? The dvice must be broken!"

ancient jackal
#

what if you were really really fat

tender shard
#

I'm only 60kg

#

If i lose 3 kg my BMI would be unhealthy

young knoll
#

Jesus

ancient jackal
#

but you'd have consequences as if you were a skinny skinny person who would be tipsy over something you dont get tipsy over

waxen plinth
#

I'm slightly underweight

young knoll
#

I’m like 70kg

#

And 5’6”

tender shard
young knoll
#

Yes

waxen plinth
#

I'm 6'4 and 71kg (158lbs)

tender shard
#

0.1% = 0.1%

ancient jackal
tender shard
#

someone twice my wheight can drink (in theory) twice the amount of alcohol and we'd have the same BAC

young knoll
waxen plinth
#

yes I am slenderman

tender shard
#

I am 185cm and 60kg

sullen marlin
#

Jeez

young knoll
#

I feel fat now

#

And short

tender shard
#

lmao

#

we need a library for this

waxen plinth
#

Relative to me, most people are

young knoll
#

Am smol

waxen plinth
#

pat pat

young knoll
#

Shortest person I know is 5’

tender shard
waxen plinth
#

I knew someone who stopped growing at 4'11

#

But yea that is very short

ancient jackal
#

knew

waxen plinth
#

Don't keep in touch with her anymore

tender shard
#

does australia use proper units for height and wheight?

young knoll
#

My first gf was 4’11”

#

But she may have grown a bit since

ancient jackal
#

only america uses proper units and the world knows that

waxen plinth
#

My only gf was 5'3

young knoll
#

My crush is 5’

#

Short grills are cute

tender shard
waxen plinth
tender shard
#

like "oh yeah sure, my house is like 2 square gunter's chains in size"

waxen plinth
#

and normal height ones honestly

#

women pretty 🤤

young knoll
#

Fair

#

I definitely have my type tho

waxen plinth
#

he wants a pocket gf

young knoll
#

Exactly

#

Very convenient

tender shard
#
public enum NippleOwnerGender {
  MALE, FEMALE, DIFFERENT
}```
waxen plinth
#

🤔

tender shard
#

it's not wrong though

waxen plinth
#

Gender is like Color

#

Not an enum

tender shard
#

oh yeah sorry

waxen plinth
#

Except it's mfx instead of rgb

young knoll
#

Color can be an enum

waxen plinth
#

Or something

young knoll
#

Just a very big one

tender shard
#

it must be "expandable" in runtime

young knoll
#

16.5 million enum entires is fine

waxen plinth
#

The human eye can't distinguish that many genders anyways

tender shard
#

I again started a discussion that actually would belong to #general

#

I don't know why this always happens to me

waxen plinth
#

drunk

tender shard
#

I am not drunk

waxen plinth
#

"I don't why"

weak kayak
# waxen plinth Gender is like Color
public class Gender {
  private int r;
  private int g;
  private int b;

  public Gender(int r, int g, int b) {
    this.r = r;
    this.g = g;
    this.b = b;
  }

  public int getR() {
    return r;
  }

  public int getG() {
    return g;
  }

  public int getB() {
    return b;
  }
}```
tender shard
#

I literally sent proof that I'm not drunk

waxen plinth
young knoll
weak kayak
#

should probably make it a byte type

#

the r g b thingies

young knoll
#

Does that even work

tender shard
waxen plinth
#

No

young knoll
#

Since bytes are signed

waxen plinth
#

Cause byte is signed

#

Yea

#
public record Gender(short m, short f, short x) {}```
weak kayak
#

damnit why no java have unsigned keyword

waxen plinth
#

God I fucking love records

young knoll
#

I nipples a lot

waxen plinth
#

I many nipples*

tender shard
#

in australian it probably even makes sense

waxen plinth
#

jeff

#

have you tried my commands

tender shard
#

"Yo m8 wanna nipple around the kangaroo?" - "Ehh m8 suuure bruh"

young knoll
#

My name Jeff

tender shard
#

australian = the disney version of american canadians

tender shard
waxen plinth
#

my command lib

young knoll
#

It uses files

#

0/10

#

<3

waxen plinth
#

unlike all others

burnt raven
#

hey, im using the nbt api and im getting this error,
i used build tools to create my server, and ran the following command: java -jar BuildTools.jar --rev 1.8
im getting this error when using nbt

https://pastebin.com/KCV5GJH1

waxen plinth
#

which do not use files

tender shard
waxen plinth
#

Let's trade

#

I introduce you to a core part of my library and you do the same for me

tender shard
young knoll
#

Too many libraries

#

Ahhh

waxen plinth
#

k

#

I'll DM you

tender shard
#

but let's do it in about 30 minutes

waxen plinth
#

k

#

I'll DM you in 30 minutes

tender shard
#

I currently got some task I have to do -.-

tender shard
waxen plinth
#

be prepared.

burnt raven
young knoll
#

I haven’t actually gotten to commands yet

waxen plinth
#

In my lib?

young knoll
#

Ye

waxen plinth
#

Do you want to

#

I can show you at the same time as alex

#

We could just make a thread here

tender shard
young knoll
#

I think I can manage with the wiki

tender shard
#

NBT / NMS is not part of Spigot API and you won't get any support for it here

waxen plinth
#

Ok

young knoll
#

Seems well documented enough

waxen plinth
#

Yeah it goes over all the major stuff

tender shard
burnt raven
waxen plinth
#

Yes of course there is

young knoll
#

Yes

waxen plinth
#

All servers use NMS

tender shard
young knoll
#

The server has to have NMS

waxen plinth
#

It is literally the base server

weak kayak
young knoll
#

Or it isn’t a server

weak kayak
young knoll
#

Well I guess it could be like, minestorm

waxen plinth
#

It's like asking "does my car support an engine"

young knoll
#

But that’s beside the point

burnt raven
young knoll
#

Yes

waxen plinth
#

Should be doing 1.8.8 but whatever

young knoll
#

Anything spigot(or forks) has NMS

waxen plinth
#

Well no actually should be doing 1.18.1

young knoll
#

I could see nbtapi not supporting base 1.8

#

Because who the heck uses that

burnt raven
#

so the command im running is wrong @waxen plinth

river oracle
#

1.18.1 is basically 1.8.8 if you think about it they both have 8's. One of them is significantly better though 😄

waxen plinth
#

Use --rev 1.8.8

river oracle
weak kayak
#

hm

#

i can't argue against that

burnt raven
#

so im downloading it with 1.8.8

river oracle
burnt raven
river oracle
dusk flicker
#

Y2K hes using 1.8, you cant change that lmao

river oracle
#

though I'd reccomend using 1.18.1 over 1.8.8. If your concerned about pvp there are some great plugins out there for that

burnt raven
#

@river oracle my 1.8 client still works with the server even though i ran build tools with 1.8.8

buoyant viper
#

1.8 through 1.8.9 have the same protocol

dusk flicker
#

you should be running a 1.8.9 client

buoyant viper
#

^

#

1.8.8 server with 1.8.9 clients 😎

burnt raven
dusk flicker
#

then yeah you'd be fine

young knoll
#

Yes

#

1.8.9 is client only

tender shard
dusk flicker
#

do you mean like 1.8.9 or 1.18.1

#

not sure if you mean latest ver per version or overall

tender shard
#

I totally understand people driving 10 year old cars. But I don't understand anyone running 10 year old software

#

updates are free

young knoll
#

But muh PvP

#

And muh FPS

buoyant viper
#

what about a 10 year old tesla

weak kayak
#

1.13+ are FPS killers for old PCs

eternal oxide
#

my car is 22 years old

buoyant viper
#

or do they still get updates

dusk flicker
#

I run 1.18.1 for my server, but if I'm doing like hypixel or some shit I'll use 1.8

tender shard
buoyant viper
#

alex forgets cars existed?

tender shard
weak kayak
#

maybe with an engine

buoyant viper
#

better be a toyota

#

or a honda

eternal oxide
#

I wish, Citroen

dusk flicker
#

the fuck is that

weak kayak
#

vroom vroom

weak kayak
eternal oxide
#

French junk

dusk flicker
#

oh its french based

buoyant viper
#

heard of that one time in like a donut media video

tender shard
#

if you have a car that's still running after 20 years, it'll probably be still running in 30 years from now too lol

weak kayak
#

a baguette car :o

tender shard
#

MC definitely needs olive trees

formal egret
#

Hey, I don't exactly know how to word this so it makes entire sense, but which version of Minecraft was it when Spigot changed to the new code? For example:

1.8.8:

Material material = Material.LOG, 2

1.__

Material material = Material.BIRCH_LOG
dusk flicker
#

1.13 iirc

young knoll
#

1.13

dusk flicker
#

👏 Coll

young knoll
#

Shh

#

Phone keyboards are wack

formal egret
#

ah perfect thank you, i wasnt sure as i wish to update my plugin and server however couldnt remember. Thank you all 👍

tender shard
#

1.13 was the version that dropped all the shitty legacy code

young knoll
#

Welllll...

dusk flicker
#

"all"

young knoll
#

Legacy materials still exist

tender shard
dusk flicker
#

one of my plugins uses a legacy material and I have yet to track it down

#

lol

tender shard
#

you can either say "I support 1.8+" or "I support 1.16+"

#

everything else is non-existent (except maybe 1.12.2)

young knoll
#

I support 1.5

#

Only

buoyant viper
#

1.12.2 is no excuse, just update

tender shard
#

1.16.5+ is the way to go

#

well 1.12 still has 7%

formal egret
#

yeah probably 1.16. If i really want to push it, then ill do 1.14 or 1.15 but 1.16 is how ill do it.

young knoll
#

What the hell is that 1.16.4

tender shard
dusk flicker
#

that graph needs help

#

1.14 = worst performance

#

EVER

tender shard
#

either support 1.12+, or 1.8+, or 1.16+

dusk flicker
#

^

tender shard
#

all versions inbetween are totally dead

dusk flicker
#

those are the main vers

young knoll
#

1.19+

formal egret
#

i did forget the performance 1.14 had. ok ill just do 1.16+ then

#

thanks again

tender shard
#

np

azure imp
#

How can I make a kit not be seen if it does not have a certain range?

tender shard
#

I mean... hypixel still uses 1.8 and they are like 50% of all players

young knoll
#

Kits have range?

tender shard
azure imp
eternal oxide
#

what do you mean by kit, and range?

azure imp
#

I put that it is blocked and I create a permission, I give it to the range and the other ranges continue to be seen

azure imp
eternal oxide
#

do you mean rank?

azure imp
#

Yes a kit for a rank

eternal oxide
tranquil viper
#

Would I need to learn NMS to make a proper spawner stacking plugin?

azure imp
#

Okey

tranquil viper
# young knoll No

How could I track and drop the proper spawners when someone breaks a spawner then?

young knoll
#

PDC

#

Or BlockStateMeta

tranquil viper
#

Ah I forgot pdc was a thing

#

lol

#

thank you

young knoll
#

Don’t need to be

#

Spawners are te’s

#

So 1.14+ is enough

tranquil viper
buoyant viper
#

waht version is the server

#

wait this isnt help server

tranquil viper
buoyant viper
#

ignore my questio

#

i read the wrong channel name

tranquil viper
#

Anyone know if there is a support server for the Holographic Displays api

#

cant seem to find one anywhere

vernal minnow
#

can i send a list of Strings over a plugin messaging channel?

minor vapor
#

You could serialize it into a json upon sending it and then deserialize it when receiving

heavy sapphire
#

would anybody know how to get the entity the player is looking at?

#

I could just use dot products, but I want to see if anybody has a set answer

sullen marlin
#

player#rayTraceEntity

elfin atlas
#

Is there a way to check if a player who sits on armorstand pressed W or A Or Spacebar?

golden turret
#

can i change the itemframe yaw using the teleport?

young knoll
#

Item frames can only face NSEW

golden turret
#

yes yes

#

i was asking about that

#

but i found

tranquil viper
#

Is there a built in method that tells you what type of spawner a spawner is?

dusk flicker
tranquil viper
#

What a lifesaver

#

thank you so much

dusk flicker
#

No problem

hardy swan
young knoll
#

Oh yeah

hardy swan
dusk flicker
#

eh

#

Creature prob reveres to all non player mobs

#

As Players are entities, but you cant spawn them

hardy swan
#

it can spawn evoker fangs, snowballs, fireballs, arrows, armor stands etc

dusk flicker
#

in that case yeah

hardy swan
#

yea that description doesn't cover everything it can spawn

next stratus
#

Am I just stupid or are custom currencies a bit fiddly to do?

young knoll
#

Fiddly how

next stratus
#

Like the storage side of it

#

I just want a thing where I can get / add / remove / set an amount but its hard. I don't know sql so more fun

young knoll
#

Just a simple map <uuid, double>

#

And then storing that however you see fit

next stratus
#

I could do it in one big json file couldn't I?

hardy swan
#

Don't recommend

#

sql systems are built for fast data retrieval

young knoll
#

But yes, you could

worldly ingot
#

+1 on SQL for that

#

SQLite if you have to

next stratus
#

Idk sql

young knoll
#

Learn it

dusk flicker
#

?learnsql

young knoll
#

?learnsql

dusk flicker
#

lmao

young knoll
#

Aww

next stratus
#

It's pretty hard to learn

worldly ingot
#

It's a must know if you want to get into any sort of data storage at all

dusk flicker
#

not really

young knoll
#

Do you want this giant book I have

dusk flicker
#

If you know Java SQL should be a walk in the park

#

lol

quaint mantle
#

how could both of you did the same command lol

next stratus
#

It made no sense to me :/

young knoll
#

“SQL queries for mere mortals”

minor otter
#

I got the error org/bukkit/event/block/BlockDamageAbortEvent does not exist.
and I'm not entirely sure why because everything seems to be on the right version and it was working on an identical different server

next stratus
#

I know 0 sql

worldly ingot
#

It was added like yesterday, Finefit

#

Or a day or two ago

young knoll
#

Is the server up to date

dusk flicker
#

run /ver to see

young knoll
#

Like really up to date

hardy swan
#

no more packets handling yay

young knoll
#

No you still have to use packets

#

Only you tho

hardy swan
#

huh

minor otter
#

its just weird because it worked on one server but not on the other the only difference being the hosts, same version and everything

young knoll
#

/ver

#

I bet they aren’t the same

next stratus
minor otter
#

Ill check but I was very sure

young knoll
next stratus
#

Yay

hardy swan
worldly ingot
#

You're not going to know a lot of things if you never take the opportunity to learn anything ;p

#

Sit down for a day or two and you can pack in a lot of SQL knowledge. At least the basics of it

hardy swan
worldly ingot
#

Yeah, college is a waste of money for software lol

next stratus
#

Yeah, I know I didn't learn OOP for 7 years lol

young knoll
#

7 years

next stratus
#

Don't even

young knoll
#

How long is your college

next stratus
#

College never taught coding, I self taught

young knoll
#

Ah

hardy swan