#dev-general

1 messages · Page 2 of 1

brazen ether
#

mojang released a feature called trust status, and they mentioned "modified" messages. anyone know how this works yet?

static zealot
#

yes

brazen ether
#

does it allow you to modify the message content WITHOUT changing the signature or something?

cinder flare
#

i mean that would go against literally the entire point of signing messages lol

brazen ether
#

yea

#

so it sends an unsigned message right?

static zealot
#

yeah. there will be a gray line on the left of the message

#

wait, might not be gray, I Forgot the color

brazen ether
#

what's the difference between a not secure message and modified then

static zealot
#

but it will also show the old message on hover I believe

static zealot
brazen ether
#

also i'm guessing a system message would be not secure right?

brazen ether
static zealot
#

nah, it has a different type

brazen ether
#

does it show them as modified or not secure or just nothing since they are system messages

static zealot
#

System Messages, will appear as System Messages on the left

#

they have their own color

#

those are the gray ones

brazen ether
#

how does minecraft identify between player messages without signatures and system messages then?

sly sonnet
#

Has anyone found a way to bypass this new microsoft bs?

brazen ether
brazen ether
static zealot
oblique heath
#

nyet

obtuse gale
brazen ether
obtuse gale
#

Obviously that will eventually change in the future

oblique heath
#

potomushto tvoyo ymene ruskoyo

brazen ether
obtuse gale
#

chat plugins still work, and to maintain that api compatibility every message is unsigned

brazen ether
oblique heath
#

ponyatno

brazen ether
#

on 1.19+?

obtuse gale
#

for the time being, yes

brazen ether
#

that's awesome

sly sonnet
#

a cho vi govorite ne s russkimi bukvami?

oblique heath
#

potomushto lyen

brazen ether
#

and i can't really write in russian, just speak and read

sly sonnet
#

aaa, esli mi pishem ne s russkimi bukvami togda mi ne narushaem pravila

brazen ether
#

rip all of us about to get muted

static zealot
#

the rules say

Stick to English only.
not
stick to Latin Letters

static zealot
brazen ether
#

blitz gonna let that ban hammer RIP

static zealot
#

rule not really enforced unless you guys start swearing and saying crazy shit

#

at least on my part, if other staff members want to, I Can't really stop them

brazen ether
#

i might make a plugin to make a png image renderer

#

for minecraft

#

using fonts and stuff

sly sonnet
#

a nu togda imu pofigu

brazen ether
#

i feel like that would be really crazy

oblique heath
#

make a png image renderer for cyrillic characters

static zealot
oblique heath
#

to send russian texts

brazen ether
#

and color the squares

brazen ether
static zealot
#

you could. indeed

brazen ether
#

it would be completely useless and a waste of time of course

hot hull
half harness
#

💀

agile galleon
#

gotta love gradle, importing for 5min

frail glade
#

Doesn't look like we have a CraftBukkit NMS bump for this version, so that's good.

static zealot
#

that means if you used nms, you don't have to worry about having to update your plugin again

#

1.19.1 was released

static zealot
#

umm. anyone know if there's 3d party drivers for linux for the wireless G305 mouse?

#

found one called piper that I'll have to try

static zealot
brazen ether
#

thanks for the resource!

clear cradle
#

Wondering if anyone's heard of ArkGroovy/CobbleGroovy before?

still portal
#

And gifs

brittle leaf
surreal quarry
#

Anyone have issues on 1.19.1 sending commands? Just get this error, nothing in console lol

clear cradle
blissful sluice
#

So.. y'all know how leashes normally break due to distance- does this not occur when the distance is vertical only?

E.g. if ur flying and you have an animal leashed, it just hangs there

is there a way to disable this, make it so the vertical distance does cause it to break (NMS or API options)

karmic fjord
#

they are using this method to calculate that

#

but i think this should consider y coords too

#

its so confusing

karmic fjord
blissful sluice
potent nest
#

pretty sure it also happens vertically, e.g. if you're falling down with a chicken on a leash or moving up very fast

karmic fjord
#

maybe it is a version difference thing?

karmic fjord
potent nest
#

I assume there's some other functionality moving the entity towards the leash holder, and if the holder doesn't move fast enough, that functionality is "stronger"

karmic fjord
#

hmm

#

it checks the max distance first

potent nest
#

yeah so if it's below the max distance but above 6.0 it's going to move into the direction of the holder ig

karmic fjord
#

so it shouldn't happen in latest versions

potent nest
#

what shouldn't happen?

karmic fjord
#

i mean leash should break in vertical distance too

cinder flare
#

well so I think there's a kinda hidden effect that when you're like creative flying something into the air, it never gets outside the max distance since it can drag the entity up unbounded

#

whereas when you're on the ground, it can get caught on things and get stuck, therefore breaking the max distance

blissful sluice
#

The context I'm testing in is an attempt at a hanging plugin:

player on armorstand, bat on armorstand, leash is attached to bat and fence post directly above the armorstand

remove block below armorstand, the leash should break due to vertical distance (and i would use this leash break event to trigger certain things)

cinder flare
#

well no, the leash won't break due to vertical distance

#

because there's nothing moving it away besides gravity, and gravity is counteracted by the pull force

#

the only time leashes break is when the pull force can't pull closer, which, if unbounded by any blocks, always can in the air

blissful sluice
#

can you translate for the non-scientifically informed of us :p

cinder flare
#

the only way a leash can break is if there's something between you and the leash and it can't pull the animal closer to you

#

if it's in the air, going up and down, there's nothing to block it

blissful sluice
#

wouldn't the fact that the mob is a passenger of an armorstand create that effect tho, since the armorstand can't move closer to the leash holder (up, to the fence post) and thus the mob can't either

cinder flare
#

are you forcing the armorstand down?

cobalt marlin
#

just calculate

cinder flare
#

yeah you could just do a distance check lol

blissful sluice
cinder flare
#

ah see

#

that's what I was saying

#

gravity will never be enough to break a lead alone

#

cause the pull force pulls it back up before it can

blissful sluice
#

So my idea won't work ig

#

Can't really try and manipulate it using velocity or anything either im assuming

cobalt marlin
#

don't see why you would need it

#

just override the whole thing worst case

blissful sluice
#

wdym

cobalt marlin
#

check distance and break as needed

#

no need to fiddle with bats and armor stands

blissful sluice
#

How do you figure

#

The bat is there as much for the mechanic as for the visual aspect, js

cobalt marlin
#

you can still spawn a leash between entities

#

just not use it as your event trigger

blissful sluice
cobalt marlin
#

you dont need to depend on minecraft mechanics to check anything

#

use leash as a visual thing

#

and do all calculations yourself

blissful sluice
#

do all calculations of what though, i don't get what you mean

ruby dew
#

do people still use bukkit

hot hull
#

No

onyx loom
#

depends if u class them as "people"

half harness
#

Stack overflow down?????????

hot hull
#

The amount of people that would lose their job if that were the case

ruby dew
#

maybe for like a few minutes

old wyvern
#

It kept going down and coming back up

brazen ether
#

i'm working on an alchemy plugin and i want items to be accepted into the recipe by dropping them in the right place. what is the best way to do this? i just need a place to start or an event to work with and i'll be on my way

cobalt marlin
#

right place?

cobalt marlin
#

if inventory, you listen to inventory interact and inventory drag events

#

otherwise you listen to actual item drop event

brazen ether
#

no i'm talking

#

like on the ground

cobalt marlin
#

then just listen to item drop event

#

get item object from it and check its location

brazen ether
#

well then it would check at the location the item was dropped

#

and that wouldn't work

cobalt marlin
#

you can put a scheduler and check

#

after like 10 ticks or so

brazen ether
#

:/

#

is that the best way?

cobalt marlin
#

there might be another method lemme check

cobalt marlin
#

you could maybe listen to move event with id of the entity to check if its in the correct place

#

but both are equally heavy

#

you could probably also roughly calculate its dropping position

#

since you know where the player is looking at exactly

distant sun
#

Do you guys know a website to where I can direct some webhooks, reformat the data received and send it to another webhooks?

prisma wave
#

there's zapify but that's paid for a lot

distant sun
#

Yeah I know

pastel imp
#

uhm random question, does the structure look decent?

#

PS: SmartManager is just the name of the plugin, not actually a manger lol
PS2: HeadDB is a free alternative to HeadDatabase, they are not the same.

static zealot
#

my teacher would kill you for the extra s in the package names

obtuse gale
#

same

#

I would kill you too for the extra s in the package names

inner umbra
#

Extra "s"?

static zealot
#

no. extra s

#

there's no quotes in the package names as far as I can see

inner umbra
#

No I'm asking what you two are talking about? What extra "s"?

static zealot
#

what are you talking about? I never said anything about any extra "s". All I said was that my teacher would kill them for the extra s in the package names.

prisma wave
#

I would also kill you

inner umbra
lavish notch
static zealot
#

Yappers what's wrong with you today? Your head seems to be in the clouds

#

you're not paying attention

#

anymore

inner umbra
lavish notch
#

¯_(ツ)_/¯

#

Probs because it's more for like imports?

net.whatever.plugin.listener.SkullsListener

inner umbra
#

It's not a package of 1 class.

static zealot
#

well, my teacher would say something like this:
"its not a package of classes but rather its a class in a package"

#

so check mate

#

you can't argue with my teacher. he is smart. I Know that because he once told me he is smart

obtuse gale
#

I mean under that reasoning every package with more than a single class should be plural

static zealot
#

and I believe him

obtuse gale
#

java.utils

inner umbra
static zealot
#

You know, I'd be very impressed if he didn't know what shit is

prisma wave
#

packages are singularly named unless theyre homogenous

static zealot
#

I have no idea what homogenesis is

#

never heard of that word

static zealot
#

you tell him gaby! don't let him bully us

prisma wave
obtuse gale
#

"xmls"

inner umbra
obtuse gale
#

no it wouldn't lol

static zealot
inner umbra
obtuse gale
#

packages don't perform tasks to begin with

static zealot
#

man, I personally am a big fan of C# package (namespace) naming.

lavish notch
distant sun
#

java.util.Something makes more sense than java.utils.Something
Is like you are saying "Something is an util class"

static zealot
lavish notch
#

makes sense

static zealot
#

what does this have to do with homogenesis?

inner umbra
prisma wave
static zealot
#

I just want to know what homogenesis means

static zealot
prisma wave
#

yeah

inner umbra
#

In the end it's all preference anyways.

prisma wave
#

utils would imply that all the classes are instances of a Util

prisma wave
distant sun
#

Is that a real thing bm? Or is the hetero thing you said above

static zealot
#

I am amazed

prisma wave
#

well i found a popular SO post that agrees with me

#

so

distant sun
#

special other?

lavish notch
#

Just call the packages, 1, 2, 3, 4 and so on- who cares? laugh

static zealot
#

yeah. just manually obfuscate your code

distant sun
#

Obfuscation is better

lavish notch
static zealot
#

here yappers. I know you're afraid the links

prisma wave
#

yeah its pretty anal but there is a different implication

#

like i said, packaging by layer is a bigger issue than the s at the end

inner umbra
prisma wave
#

no it is not

obtuse gale
#

lmao

static zealot
#

what?

obtuse gale
#

didn't even read

inner umbra
prisma wave
#

"this collection is very nice"

#

singular

#

it's a single entity

static zealot
#

I'm pretty sure the prular of collection is collections in the english language

prisma wave
#

indeed

prisma wave
pastel imp
prisma wave
#

OI

static zealot
#

if collection is plural then collections is like prular but in 4th dimension or something

pastel imp
#

OH in the packages

#

oh

prisma wave
#

stop faffing around over s's and change ur package structure

static zealot
#

:))

inner umbra
#

There are multiple words that are the same singular as they are plural.

prisma wave
#

ok?

static zealot
#

Collection is not one of them

inner umbra
#

Collection can mean a collection of whatever and can be used in the singular sense as in 1 collection of whatever.

prisma wave
#

dude it really cant

#

this is just english grammar here

static zealot
prisma wave
#

the word "collection" is singular

pastel imp
prisma wave
#

right so

static zealot
#

instead of packing managers together, you pack everything skull related together

#

etc

#

I think

#

but bm is smarter, he'll explain

#

better

pastel imp
#

ye let the big brain explain

prisma wave
#

packaging by layer is what you're doing, you have all your commands in 1 package, all ur manages in another, etc

packaging by feature, which is better for a few reasons is when you put stuff in packages based on what it's to do with - so a config package which includes ConfigManager and ConfigType, etc

obtuse gale
#

shut up alex

prisma wave
#

shut up emily

#

i could beat u in a fight easily

static zealot
#

omg emily called alex by his real name!!!

obtuse gale
#

i'd like to see you try

static zealot
#

this must be serious

prisma wave
obtuse gale
#

alright

static zealot
#

@inner umbra on a serious note, are you a sentient AI that was made to just argue with people over anything they say? I'm very curious how you escaped, or are they still controlling you?

obtuse gale
#

lmfao

pastel imp
#

me waiting for the reasons

inner umbra
#

Maybe I am not explaining this right.

Collection -> 1,2,3
This is a collection of intergers (not writing code just showing an example.)

Collection -> [collection->1,2,3 | collection->4,5,6]
A collection of multiple collections.
This is my context.

prisma wave
prisma wave
obtuse gale
static zealot
#

so you're agreeing collections, is the plural of a collection

#

lmao

obtuse gale
#

lol

inner umbra
prisma wave
#

no thank you

#

i will pass

pastel imp
static zealot
#

are you saying I'm hot?

#

in a literal way?

prisma wave
inner umbra
prisma wave
#

just group similar features together rather than similar patterns

static zealot
obtuse gale
pastel imp
#

but I will try it I suppose

inner umbra
static zealot
#

yappers. a collection can not be a plural. literally. yes it can be formed of multiple collections, but it is 1 collection of collections.

#

it is not multiple collections of multiple collections

prisma wave
static zealot
#

yes. but a collection is not a plural. that was the whole argument we were having here

#

not that a collection can't be formed from multiple collections

inner umbra
#

Now you're going backwards.

pastel imp
#

a bit better? @prisma wave

#

there are some that I have no idea how I would separate them

#

(like the classes in the manager package or the Managers class itself)

static zealot
#

now the real question is. Should I work or should I play games. To turn the scales a bit, its 1 am.

pastel imp
#

that's my plan

static zealot
#

oh. that's a lot of play time

prisma wave
pastel imp
#

since when is that bad

pastel imp
prisma wave
#

i cant see much obvious difference

pastel imp
#

This is the old one

prisma wave
#

granted its hard to tell what's similar just from the class names

pastel imp
#

it did change

#

not much

#

there isn't much to change

prisma wave
#

ah ok

#

well then yeah thats a bit better i guess

pastel imp
#

but I want much better

#

😎

static zealot
#

here. side by side

#

bcz I'm bored

pastel imp
#

eh

#

eh

#

a bit of difference?

#

technically I could create a listener package inside the hook package

#

and group the listeners?

#

could also create a message package to put the MessageManager and ErrorManager

#

although I might merge them

#

and I still dislike the name and location of that Managers class lol

#

idk, out of ideas lol

prisma wave
#

well here's an example from a big project i did a few months ago

#

you do seem to have quite a few managers

#

but i guess thats a decent improvement

#

another massive example

barren veldt
#

my projects with just 7 classes with 1000 lines each

cobalt marlin
#

or like cmd manager anything but that

ocean quartz
#

Well I'm assuming it's not a command manager it's a /manager command

cobalt marlin
#

aah, that makes more sense if true

#

hoping that its true for my ocd's sake

pastel imp
#

it is

prisma wave
sick belfry
#

manager land

weary epoch
static zealot
#

holy shit. someone's mad today

onyx loom
#

🤓

prisma wave
ocean quartz
#

Lmao

humble silo
#

I just want to ask, why would ppl hate on kotlin? Its awesome, what languages are so much better?

obtuse gale
#

because

#

what languages are so much better?
I mean

#

many are, many aren't

#

you've heard this a million times already but it's true, languages are tools, the right tool for a job isn't the right tool for every job, "walk around with a hammer and everything looks like a nail"

sweet cipher
#

Besides the obvious exception Skript, which is the perfect tool for every job

ruby dew
sly sonnet
bitter crag
#

Hello , my intellj is weird , today morning i made a tasks folder and put the task code in there , idk what happend but after that , when i was trying to build project , it keeps on telling me that i Java: Package xxxx does not exist and java: symbol not found

and btw i accidentally pressed run build button and after that it when like this i think

prisma wave
#

I don't think anyone is seriously hating on kotlin

#

It's a joke

#

For the most part

static zealot
#

😮

queen saffron
ruby dew
ruby dew
static zealot
#

:))))))

#

gotta love the extra threatens just to be sure

including effort to contact FBI for this cyber crime

ruby dew
ruby dew
distant sun
#

what the fuck

ruby dew
#

omega sussssssssss'd

distant sun
#

for real haha

half harness
#

Is there something like spark but for regular java programs?

obtuse gale
#

jfr?

potent nest
#

async-profiler

#

That’s what spark uses (on Linux)

#

IntelliJ Ultimate has it integrated too, and they even have a windows port

half harness
#

Ty, I'll look into both 👍

keen cape
#

at jdk.internal.loader.Resource.getBytes(Resource.java:126) ~[?:?]
at jdk.internal.loader.URLClassPath$JarLoader$2.getBytes(URLClassPath.java:893) ~[?:?]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:519) ~[?:?]
at java.net.URLClassLoader$1.run(URLClassLoader.java:427) ~[?:?]
at java.net.URLClassLoader$1.run(URLClassLoader.java:421) ~[?:?]
at java.security.AccessController.doPrivileged(AccessController.java:712) ~[?:?]
at java.net.URLClassLoader.findClass(URLClassLoader.java:420) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[PlaceholderAPI-2.11.2.jar:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:405) ~[PlaceholderAPI-2.11.2.jar:?]
... 2 more

compact perchBOT
#
📋 Your paste: Narco Gam3X
https://paste.helpch.at/opidomelob

A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.

wind patio
#

How can you run a shell script in gradle after successful build?

obtuse gale
#

you can do anything to your heart's content

wind patio
#

teach me

prisma wave
static zealot
#

did he say touch me?

obtuse gale
queen saffron
wind patio
#

I'm on 3rd stack overflow page by now, so you know I'm desperate

obtuse gale
#

What are you trying to do exactly? Depending on the specifics there might be one better way or another

wind patio
#

well, I build the jar (shadowjar) and I want to upload it to the test server and restart it

#

figured out the rcon part yadayada

obtuse gale
wind patio
#

so I just dependOn shadowjar with this and we good?

obtuse gale
#

uh it's not a task, you can prolly do smth like

shadowJar {
  // ...
  doLast {
    exec {
      // ...
    }
  }
}
wind patio
#

well, I'l try, I really should learn groovy and shit, but thank you

obtuse gale
#

it's about the same syntax on kts for the actual exec stuff

wind patio
#

KOTLIN? 🤮

obtuse gale
#

true

prisma wave
#

🤢

ocean quartz
eager fern
#

DAMN

prisma wave
#

BASED

hot hull
#

Burn the goddamn heretic

prisma wave
#

Well the first part anyway

hot hull
#

Planning to learn:
How to tie a rope

static zealot
#

good plan

tame bane
#

I've seen this on a couple places for websites :)

distant sun
lavish notch
#

I have a feeling this is going to be a bit like the "What's the best anticheat" of Minecraft Servers, but what's the best way to store user generated text into a database?

#

Plain old MySQL btw

half harness
#

Wdym by user generated text?

lavish notch
#

Like text provided by a user.

#

An example would be a punishment reason for a punishment issued by a user.

prisma wave
#

TEXT / VARCHAR

lavish notch
prisma wave
#

why on earth would you do that

lavish notch
#

Well my current issue is that with my current SQL INSERT statement, it doesn't like when the user generated text contains ' .

prisma wave
#

oh dear me

#

then you should be using prepared statements

half harness
#

Don't prepared statements do smth abt this?

prisma wave
#

or you're gonna get a bobby tables incident

half harness
#

Sql injection

#

By staff

prisma wave
#

classic

half harness
#

💀

prisma wave
#

always assume the user input is malicious

lavish notch
half harness
#

🥲

#

I took the risk for you

#

:))

prisma wave
#

it's not stupid to be right lmao

half harness
#

No he was worried that he'd be wrong I think

prisma wave
#

but primitive input sanitisation like that is just asking for trouble, prepared statements are the solution

#

ah

lavish notch
half harness
#

Moral of the story: always use preparedstatements

#

:D

prisma wave
#

pretty much

half harness
#

C:

prisma wave
#

theyre often faster too

half harness
#

:>

half harness
lavish notch
half harness
#

Faster than raw?

half harness
#

I'm on mobile

#

So uh

lavish notch
half harness
#

Google

prisma wave
#

lmgtfy

half harness
#

:D

lavish notch
half harness
#

9of

lavish notch
#

Google it is.

half harness
#

Just got lmgtfy'd

prisma wave
#

you're most likely using them already anyway

#

with prepareStatement("Blah")

half harness
#

Hopefully*

rotund egret
#

Imaging preparing statements

prisma wave
half harness
#

Wait what

#

I always thought prepared statements translated into raw

prisma wave
#

nope

#

preparedstatements arent formatted at the client side, the database formats them

half harness
#

?!

prisma wave
#

thats the whole point

half harness
#

Oh

#

Interesting

#

!!

#

So it's like a diff endpoint?

prisma wave
#

plus since it's a more general query the database can cache it

half harness
#

If you know what I mean

prisma wave
#

idk about endpoints exactly, no idea how the protocol actually works

half harness
#

Well not really wndpoint

prisma wave
#

but generally the more work you can get the database to do, the better

#

theyre very clever

half harness
#

I see

#

Another question

#

If I only use a dB for one server, what's the point?

#

Json files are much more convinent

prisma wave
#

sure theyre easier

#

but databases are more performant and usually have a smaller disk footprint

#

whether that's worth the extra time is up to you

half harness
#

But don't u usually cache?

#

Or is that just me

prisma wave
#

well sure

half harness
#

Since I've seen ppl query every time

prisma wave
#

that is probably a bad idea

#

but lets say you have a massive data set of multiple megabytes or gigabytes, you cant really cache all of that at once, and parsing all those json files is gonna take a long time if you only need 1 small bit of data

#

it's about scalability mainly

#

it's not gonna really matter for small data sets

half harness
#

Oh

#

But then at the same time

#

U can have multiple json files

prisma wave
#

sure which again, might be perfectly reasonable

#

it's situational

#

hell that's basically what mongo is

#

json files with a bit of fluff

half harness
#

🤨

#

Aren't sql tables

prisma wave
#

thats not a joke

half harness
#

All 5ables

#

Tables

prisma wave
#

sql tables are tables yes

#

sorry dkim19375 that was rude and condescending

oblique heath
prisma wave
#

nah man

#

theyre super efficient

oblique heath
#

huh

sly sonnet
#

Is it just me or iJ keeps eating all memory and freezes after recent updates?

distant sun
#

No

oak peak
#

is it possible to center a text in yaml?

#

like adding <center> </center> inbetween text doesnt work

#

is there just like a built in way to do it or no

#

does the plugin have to have it coded in

distant sun
#

How would you expect that to work lol

main basin
#

it’s taken though

weary epoch
#

Crazy

tame bane
#
discord:
  command: /discord
  type: BROADCAST_TEXT
  text:
  - "&r"
  - "&#7289da&lDISCORD"
  - "&r"
  - "&7By joining our &#bac0daDiscord &7server, "
  - "&7you will be notified of important upcoming &#bac0daannouncments"
  - "&7and be able to interact with our &#bac0dacommunity&7!"
  - "&r"
  - "&#bac0da&lbit.ly/DoomSMPDiscord"
  - "&r"
  - "&r"
  permission-required: false
  register: true
  
buy:
  command: /buy
  type: BROADCAST_TEXT
  text:
  - "&r"
  - "&#15ce2d&lS&#18d330&lE&#1ad733&lR&#1ddc35&lV&#1fe138&lE&#22e63b&lR &#25ea3e&lS&#27ef41&lT&#2af443&lO&#2cf846&lR&#2ffd49&lE"
  - "&r"
  - "&7By purchasing from our &#a7d0a8Server Store"
  - "&7you can recieve special &#a7d0a8ranks &7that will unlock &#a7d0a8perks!" 
  - "&7Purchasing also helps the server be maintained and running as well!"
  - "&r"
  - "&#a7d0a8&lSTORE.DOOMSMP.NET"
  - "&r"
  permission-required: false
  register: true
  
vote:
  command: /vote
  type: BROADCAST_TEXT
  text:
  - "&r"
  - "&#15ce2d&lV&#1ad733&lO&#1fe138&lT&#25ea3e&lI&#2af443&lN&#2ffd49&lG"
  - "&r"
  - "&7Vote &#a7d0a8daily &7to recieve &#a7d0a8vote keys&7! "
  - "&7Type #a7d0a8/vote &7for more info!"
  - "&r"
  - "&#a7d0a8&l/VOTE"
  - "&r"
  permission-required: false
  register: true```

For some reason with using this with "MyCommand" plugin it comes out as the actually text rather than making it a gradient/text color

Know any fixes please get back to me ASAP!
pastel imp
tame bane
#

oops

ruby dew
ruby dew
quaint kestrel
#

how to register

#

i want to register

static zealot
quaint kestrel
static zealot
quaint kestrel
#

@pallid gale

#

please register me

weary epoch
lavish notch
#

SQL isn't my strong suit, but within the NodeJS MySQL package- is there a difference between ?? and ? for prepared statements? and would this be exclusive to the package or is this a sql standard?

potent nest
#

probably escaping

distant sun
#
#

Man, js is something special kek

exports.format = function format(sql, values, stringifyObjects, timeZone) {
  var SqlString = loadClass('SqlString');

  return SqlString.format(sql, values, stringifyObjects, timeZone);
};

loadClass calls require(something), and inside SqlString.js is literally module.exports = require('sqlstring');

lavish notch
#

Fun.

cinder flare
#

i figured it would be no harm to escape every parameter for obvious reasons

distant sun
#

no clue tbh

old wyvern
#

Cant wait to play some C#!!

static zealot
old wyvern
#

😌

static zealot
#

I actually can wait

#

don't miss it

cinder flare
prisma wave
#

Why is it not saga 3

#

What a silly name

cinder flare
#

well maybe it's the third bubble witch

#

but the extra special saga edition

old wyvern
#

Dont all windows users have those?

cinder flare
#

nah bro i got a script to uninstall those bad boys

old wyvern
#

lol

cinder flare
#

don't want candy crush on my pc nty

old wyvern
#

xD

#

I mean, I dont think its properly installed

cinder flare
#

oh if you're on Windows 10/11 and didn't uninstall it, it's properly installed lmao

old wyvern
#

😷

static zealot
#

imagine using windows tho

old wyvern
#

Imaging living tho

#

or rather

#

imagine wanting to live

wind patio
#

came preinstalled with laptop

#

unless dual boot

#

🤓

wind patio
#

?

static zealot
wind patio
distant sun
#

then do it 🙂

wind patio
#

can't

#

laptop came with all kind of proprietary software

#

cant get it on windows myself

distant sun
#

weird

wind patio
#

goverment company

#

extra security and shit

static zealot
#

at least they kinda care

wind patio
#

from coding minecraft plugins in my free time to getting a well-paid full-time job in a goverment company

#

😎

#

junior tho

#

🐌

distant sun
#

nice, nice

static zealot
#

as long as its well paid

pastel imp
#

which paper version would you guys recommend for a prison type server?

#

I am like unsure if I should use the latest.

prisma wave
#

3

pastel imp
sly sonnet
#

modern version?

pastel imp
#

(also sorry for ping)

sly sonnet
#

uhh

#

np about the ping

#

i use 1.17 nftworlds jar

#

havent had any issues yet

cobalt marlin
#

most new features you do not need in a prison server

#

and gameplay is not exactly mc

sly sonnet
#

ahh yes, supporting outdated minecraft versions

static zealot
#

must be nice

pastel imp
#

I refuse to use 1.8 lmao

cobalt marlin
#

once they fix the performance issue on later versions, i can see people moving

#

otherwise its legit not worth it

static zealot
#

people have already moved. its just the pvp lovers that haven't.

sly sonnet
#

performance is not that bad if you have actually usable server specs

pastel imp
#

fair enough

cobalt marlin
#

due to its client performance

pastel imp
#

we are speaking about server

#

not client

cobalt marlin
#

yes, but your users matter

sly sonnet
#

most users have decent computers to run normal mc versions

pastel imp
cobalt marlin
pastel imp
cobalt marlin
#

barely anyone uses later versions here for example

pastel imp
#

if I stay behind just to let people play in older versions I will never evolve.

sly sonnet
pastel imp
#

you can't rely on people.

cobalt marlin
#

turkey

cobalt marlin
pastel imp
#

tbh, my aim isn't turkey or western countries...

cobalt marlin
#

that mindset doesnt really work honestly

pastel imp
#

my main focus is central europe and US

distant sun
static zealot
#

if they can't afford a better pc, do you really think they'll afford to buy stuff on the server?

cobalt marlin
#

yes, check who you target

distant sun
cobalt marlin
#

no offense, but i find this view extremely limited

#

i myself prefer later versions but i also dont suffer from a potato pc

static zealot
distant sun
#

Will you get a new pc just for minecraft?

cobalt marlin
#

but server performance wise, there still is a big issue with later versions

pastel imp
#

my own potato pc runs 1.19

#

lol

cobalt marlin
#

"running" is not exactly what people want

#

they want to be able to do stuff in the meanwhile

static zealot
distant sun
cobalt marlin
#

even with optifine etc its not exactly great if your pc is from 2010 and was mediocre back then

static zealot
#

that has never been cleaned, and probably never been stopped

cobalt marlin
#

as long as you dont have villagers

#

1.19 etc is okay-ish

distant sun
cobalt marlin
#

but still heavier than older versions

distant sun
#

Yes obvious

pastel imp
#

although if I were to use 1.19 as server software, would probably add viaversion to support like 1.16+

#

or so

distant sun
cobalt marlin
#

feels way mroe scuffed than the other way around

static zealot
#

I mean yeah, but that's bcz of the crazy amount of features added since 1.8. considering that, 1.19 is not actually that bad. and if you optimize your server a bit, its actually great.

cobalt marlin
#

since blocks are replaced with others etc

pastel imp
#

also, speaking of 1.8, doesn't 1.8 have like a BUNCH of crash and exploits in it? lol

static zealot
distant sun
#

If you use via-backwards you could as well just use the lowest version you want to support

pastel imp
#

true

cobalt marlin
distant sun
#

Just imagine going inside the most OP mine and being full of stone because you are on 1.8 :))

pastel imp
#

pain

cobalt marlin
static zealot
static zealot
#

I Did it, and it worked just nicely. a lot of people did it and it worked pretty well for them.

distant sun
#

Features at the cost of some resources is worth imo

static zealot
#
  • you actually get good and modern plugins that you can use
#

and support

pastel imp
#

true

#

might use 1.18.2 tbh

static zealot
#

if you ever have a issue with the 1.8.8 paper jar, and go asking for support, they'll just tell you to fuck off. and I like it

pastel imp
#

1.19 is a bit new and 1.18 already has adventure and minimessage integrated sooo

#

PRO

cobalt marlin
#

if you use older versions on any software

pastel imp
static zealot
static zealot
cobalt marlin
#

it doesnt really affect my use case, but yes

#

if you cant handle it, then 100% go with newest

pastel imp
#

uhm random question is it useful to register events only when needed and unregister them afterwards?

sly sonnet
#

Why would you want to do that?

#

Register on startup and unregister on JavaPlugin#onDisable()

obtuse gale
obtuse gale
pastel imp
#

Ok good, it's not actually for me or my code, I just saw an open sourced project that welp, does it

#

lol

#

💀

#

anyways

winter iron
#

I have a sort of question and its a bit weirdo

#
enum class Reagent(
    private val data: BaseReagent,
    private val material: Material,
    private val modelData: Int = 0
) {
    WOOD(Wood(), Material.OAK_PLANKS)
}
#

so this is like my enum

#

and the Wood() is just a class holding data based on each reagent

#

but each reagent may have like different interfaces implemented

#

is this a good way to do it

#

or am i just overthinking it

#

a BaseReagent would just have data that all reagents will have

#

then there is like class WoodSword : CraftableReagent, DamagingReagent

#

i think this is fine

#

but at the same time it seems like there could be a better way

#

also each reagent may have its own implementation of an execution method in the future

#

so it seems like this would be the best way

prisma wave
#

what are you actually asking

winter iron
#

like is this a valid method of doing it or is there some other way i should be doing it

#

should i maybe put all the data in the enum

obtuse gale
#

composition > inheritance

winter iron
#

like more enum properties

#

whats composition

prisma wave
#

honestly i would go with a sealed class rather than trying to shoehorn everything into an enum

winter iron
#

the fuck is a sealed class

#

😢

prisma wave
#

spicy enum

winter iron
#

like jalapenos

#

?

prisma wave
#

yeah sure

winter iron
#

but like whats the difference here

#

man u making me do research D:

#

i wont be able to sleep now until i understand fucking sealed classes

prisma wave
#

yeah i am

winter iron
#

not good

prisma wave
#

have fun

winter iron
#

ok so i read a blog post on it

#

and now im thinking fuck that

#

ill try it next project

#

thanks

#

thats lowkey kinda made it easier

#

💀

#
  companion object {
        fun emptyUserMap() = values().associateWithTo(EnumMap(Reagent::class.java)) { 0 }

        val droppable = values().filter { it.isDroppable() }
        val damaging = values().filter { it.isDamaging() }
        val craftable = values().filter { it.isCraftable() }
    }

  fun isDroppable(): Boolean {
        return data is DroppableReagent
    }

    fun isDamaging(): Boolean {
        return data is DamagingReagent
    }

    fun isCraftable(): Boolean {
        return data is CraftableReagent
    }

i also have shit like this

#

and it makes it kinda nice to do

#

with the enums

blazing otter
#

DAMIT

#

wrong copy

#

srry

tame bane
#

Hello, I need support on figuring out on how to make a message in chat when someone buys off of my Tebex market.

I have already tried "/broadcast" but I cannot figure out how to make it send a null line at the top?

#

I can't provide an image so I will type it out -

#
WEBSTORE PURCHASE

|User: {their user}
|Package: {the package purchased}

GG's IN CHAT!```
#

Please get back to me when possible; thanks!

pallid gale
old wyvern
#

@prisma wave

#

@obtuse gale

obtuse gale
agile galleon
prisma wave
#

It's not c++

#

That's why

old wyvern
#

Not too sure tbh, I havent used c++ enough to comment much more

prisma wave
#

it has a specification that isn't the size of the bible

ruby dew
prisma wave
#

it's big enough

ruby dew
#

A picture is worth a thousand words

half harness
#

What about a video

static zealot
#

ez math

half harness
#

Average YouTube video length is 11.7 minutes or 702 seconds
The majority of videos are 30 fps
To compensate for 60 fps videos, I'll say the average is 40
Frames per video: 28080

Thus
An average video is worth about 28,080,000 words

static zealot
#

... kotlin = best is typing...

half harness
#

Ez

static zealot
half harness
#

I am not home

static zealot
#

and then join hyipxel, and then party invite me and then we play bedwars

half harness
#

🥲

static zealot
half harness
#

😭

#

My Waka time is finally going to say 0 hours on the weekly report

#

Or low amount

#

Maybe like 2 hours

pastel imp
#

Wakanda?

static zealot
pastel imp
tame bane
#

I am just going to repost this; since nobody responded
.

#

Hello, I need support on figuring out on how to make a message in chat when someone buys off of my Tebex market.

I have already tried "/broadcast" but I cannot figure out how to make it send a null line at the top?
I can't provide an image so I will type it out -

WEBSTORE PURCHASE

|User: {their user}
|Package: {the package purchased}

GG's IN CHAT!```
Please get back to me when possible; thanks!
old wyvern
#

A null line at top?

static zealot
tame bane
#

That's my bad

static zealot
# tame bane That's my bad

you can try broadcast &r maybe? but there's no broadcast command in the spigot server. so you'll need a plugin like EssentialsX to add that command

tame bane
#

And that worked perfectly!

static zealot
#

👍

static zealot
half harness
#

So I come back at like Monday or smth

#

Idk

#

Sometime theb

#

Theb

#

Then

static zealot
#

alright.

weary epoch
#

I’m just curious how would you assign patterns to a firework

weary epoch
#

Ohhhhh

static zealot
#

it takes in a FIreworkEFfect

#

which you can create using the static method FireworkEffect#builder

cinder flare
distant sun
#

^

prisma wave
#

<<*

#

🤓

cinder flare
#

oh shit you're so right

#

I actually literally don't know what I was thinking, that must've been like a Freudian slip or something

prisma wave
#

its not that deep

cinder flare
#

nah i know but just looking back, all the pain I went through with that and I forgot the most basic syntax that I hate

#

at least I remembered the double colon lmao

prisma wave
#

oh wow

#

free money

static zealot
#

but the link seems legit

prisma wave
#

theyre marked as part of the team too

half harness
#

U have to participate in the interview

#

Not just the survey

prisma wave
#

yea

#

still

#

$100

half harness
#

Tru

weary epoch
#

IM SO 5head I found a way to get viral videos if ur a machine learning programmer!!!!

#

Make a AI that looks at YouTube videos and train them to accurately guess if they went viral or crashed

#

And then you can put ur video u wanna post and see if it will go big

#

AMAZING idea

#

I’m gonna be a gigajillionaire

#

Now I just need to spend a couple months learning AI programmer and imma be a millionaire

#

This can probably be done somewhat easily at least on a level of titles and maybe thumbnails

#

But full videos would take for her

#

Forever

obtuse gale
#

literally youtube's algorithm based on the trending page but sure

weary epoch
#

Yeah but it’s not public as a content creator how do you know if a video will do well

boreal needle
#

do all the names not being monospace make this hard to read?

#

the layout of the children bit is temporary as well, i will be moving everything out to its own section

prisma wave
#

they do look a bit weird without the monospace

boreal needle
#

is that better?

#

i appreciate the font is ugly but i cba to get a nice font

prisma wave
#

not really a fan of "Public X" but everything else looks good

distant sun
#

use the same font and size for public class <package> and extends <class>

boreal needle
#

yeah that's just for now

#

how's that?

distant sun
distant sun
potent nest
boreal needle
#

it's only a placeholder, i'm planning on redoing that bit

potent nest
#

ah, fair enough

#

are you scraping html for that?

boreal needle
#

nope, it's a custom doclet

distant sun
#

now slap a dark theme on that bad boy

boreal needle
#

i already have

static zealot
#

how do you call something that can be formatted? formatable?

tranquil crane
#

formattable

static zealot
#

thanks

obtuse gale
#

@tranquil crane hi hru

tranquil crane
#

hi emi im good hru

obtuse gale
#

I'm alright, thanks for asking!

tranquil crane
#

:D

prisma wave
#

your welcome

tranquil crane
#

no, it's your welcome, not mine

prisma wave
#

no it is yours

potent nest
#

I'll just take it

cinder flare
distant sun
#

Nah looks like they translate them to russian

cinder flare
#

oh like they just put the word "bracket" in russian? lmao

#

cause I doubt that Cyrillic has those chars tbh

static zealot
#

it does actually

#

lmao. google translate is either very bad, or this is very funny

#

it translates to go and nah

cinder flare
#

see there it is

#

Ruby moment

weary epoch
#

Is it possible to just switch out my jar file to older version if I don’t have any plugins

#

Or do I need to change anything

prisma wave
#

try it and see

#

but most likely world file wont work

gusty glen
#

I might be asking a stupid question, but how to I escape | character in Kotlin KDocs?

Print 1: The source KDoc code
Print 2: The expected result
Print 3: The actual result (note that the table just doesn't render correctly the lines that have |)

distant sun
#

\| maybe?

#

Or `|`

tame bane
#

How do I make it so when kicked from a server in the proxxy it takes them to the main server (hub)

#

And how do I make it so doing /hub or /lobby sends them to hub

oblique heath
#

the simplest way to do /hub and /lobby is to make them aliases for /server lobby

#

only works if you allow players perms to use /server lobby though

warm stump
#

Someone help me, I want the DeluxeTags tag to appear in the nchat chat

pastel imp
#

uhm a bit lazy to test, so why not ask, maybe someone knows it from the top of their head idk, what's the difference between these three?

#

aka what do they reply exactly.

half harness
oblique heath
#

i am invisible 🥲

pastel imp
oblique heath
#

dont be greedy

half harness
tame bane
#

I need to find out on how if you get kicked from a proxxy server it takes you to hub

wanton umbra
last nacelle
#

why does getPotionEffect.getDuration() may produce NullPtrException? I null checked if they have the potion, what else does it want?

rotund egret
#

d; spigot getPotionEffect

ruby craterBOT
#
public abstract class PotionEffectType
extends Object
implements Keyed```
PotionEffectType has 1 extensions, 1 implementations, 1 all implementations, 1 sub classes, 17 methods, and  32 fields.
Description:

Represents a type of potion and its effect on an entity.

last nacelle
rotund egret
#

You don't need to

last nacelle
half harness
#

I'd make a variable storing getPotionEffect, then null heck that variable instead

#

Plus, it also makes intellij quiet

#

Wait will the duration ever be that long anyways?

#

Even if you do it on the same tick, mc limits it to 255 or 35k or smth like that iirc

#

Idk

last nacelle
#

yeah, setting some potion effects infinite or Integer_MAX_VALUE with some abilities, the code is linked to a join event, so idea is it will get removed if that have it

half harness
#

Why have the potion effect?

#

Oh

#

Wait removed when?

last nacelle
#

onJoin

half harness
#

But then will they be able to use the effect?

#

Or is it like

#

If they leave its gone

half harness
#

I mixed it up

last nacelle
# half harness If they leave its gone

almost right, if they leave they still have it, and the player will miss the hashmap clearing the potion effect for them. (once the ability is over). So trying to remove it from them on join back. You also just made me realize I could also remove it on quit.

#

regardless, quit or join, I believe I still have to check the duration if its infinite.

#

Anyways, your suggestion of setting to a var worked nicely, and made intelliJ shut up. Thanks 🙂

rotund egret
#

Scrogus

tame bane
#

Can anyone please tell me on how to make it so when kicked from a server you get sent back to the main server set for the proxxy?

last nacelle
tame bane
#

In spigot.yml?

#

or

#

what file

last nacelle
#

I assume bungees maybe? Cant exactly remember. I know it will send you there if another one of your servers on the network shuts down, but I am also thinking that a punishment plugin might play a role somewhere too, whether they get sent to the fallback_server or the title screen, on punishment.

tame bane
#

I found it!

#

also do you know how to

#

make void insta kill you in hub?

last nacelle
#

if you looking for an instant kill, maybe EntityDamageEvent with DamageCause.VOID, then set health 0

tame bane
#

Thanks for your help btw its so appreciated

last nacelle
#

i feel bad for your void players, you should tp them instead : (

tame bane
#

im evil HAHAHA

last nacelle
# tame bane How do I set this?

This is no config option as far as I am aware, also my bad I thought you were asking for development in a plugin, thats what my comment was for.

#

Maybe a void kill plugin somewhere on spigot?

tame bane
#

Hmm

distant sun
#

can you no longer add classic projects to repo?

noble gulch
#

Anyone know how to make forge mods

tawdry sundial
#

(mod development kit)

#

btw fabric > forge

obtuse gale
#

true

potent nest
#

very true

static zealot
#

I'm here to agree

jovial warren
#
Task :server:compileKotlin FAILED
e: Could not load module <Error module>
```I think I screwed up lol
#

I've had to clone and find in files in the compiler source to try and track down what the fuck I did and I still haven't figured it out lol

prisma wave
#

common kotlin L

jovial warren
#

never had an issue like this before

#

and that's the only compilation error message it provides

#

I've tracked down that it's an issue with the compiler trying to get the IR deserializer for the error module descriptor, but can't figure out where the error module descriptor is even coming from or where it's being provided in the descriptor of a symbol

weary epoch
#

would this work?

#

to show the dragons bossbard?

#

or is there a very obvious good way to do it im missing

hot hull
#

When spawning the dragon you probably want to enable that yes

weary epoch
#

alright

#

@hot hull that did not work at all ;-;

unreal briar
#

Any alternatives to this that still work?

pastel imp
#

What do you call someone that recommends supporting 1.8? 💀

prisma wave
#

a person that recommends supporting 1.8

#

or alternatively their name

pastel imp
#

🤔 big brain

modern stratus
#

Hi

#

Anyone know how to install pterodactyl on a vps

rotund egret