#dev-general
1 messages · Page 2 of 1
yes
does it allow you to modify the message content WITHOUT changing the signature or something?
nope
i mean that would go against literally the entire point of signing messages lol
yeah. there will be a gray line on the left of the message
wait, might not be gray, I Forgot the color
what's the difference between a not secure message and modified then
but it will also show the old message on hover I believe
the colored line on the left, and it will also show the original message on hover
also i'm guessing a system message would be not secure right?
how does that affect chat plugins?
nah, it has a different type
does it show them as modified or not secure or just nothing since they are system messages
System Messages, will appear as System Messages on the left
they have their own color
those are the gray ones
how does minecraft identify between player messages without signatures and system messages then?
Has anyone found a way to bypass this new microsoft bs?
yea just get a plugin/mod to remove signatures from messages
. can someone answer this because i think its pretty important
ugh, the player unsigned messages have other colors. not gray. I just don't remember what it was
nyet
It doesn't, Spigot didn't implement anything about chat signing and sends everything as system message
zachem tut po rusky govorit?
Obviously that will eventually change in the future
potomushto tvoyo ymene ruskoyo
so chat plugins still work right? you can still get the Sender from a message correct?
chat plugins still work, and to maintain that api compatibility every message is unsigned
ah da ya zabuel etto pamenyat
ponyatno
wait so all spigot/paper/bukkit servers now have unsigned messages?
on 1.19+?
for the time being, yes
that's awesome
a cho vi govorite ne s russkimi bukvami?
potomushto lyen
i dont have a russian keyboard
and i can't really write in russian, just speak and read
yes you do
rip all of us about to get muted
the rules say
Stick to English only.
not
stick to Latin Letters
nah
blitz gonna let that ban hammer RIP
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
i might make a plugin to make a png image renderer
for minecraft
using fonts and stuff
a nu togda imu pofigu
i feel like that would be really crazy
make a png image renderer for cyrillic characters
I mean, with fonts all you have to do is replace one character with an image and minecraft will render it for you
to send russian texts
yea but like i could use white squares at different ascent values
and color the squares
you can already send characters from other languages in chat
you could. indeed
it would be completely useless and a waste of time of course
bos ti vidu ruske bukve
resource packs with fonts:
💀
gotta love gradle, importing for 5min
Doesn't look like we have a CraftBukkit NMS bump for this version, so that's good.
whats that mean?
that means if you used nms, you don't have to worry about having to update your plugin again
1.19.1 was released
ah alr
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
@brazen ether https://gist.github.com/kennytv/ed783dd244ca0321bbd882c347892874#modifying-chat-messages-through-chat-previews, this explains how all the new chat stuff works. thanks to emily for sharing it
thanks for the resource!
Wondering if anyone's heard of ArkGroovy/CobbleGroovy before?
I finally got that working for larger images now
And gifs
isnt that a developer for mchub or something?
Anyone have issues on 1.19.1 sending commands? Just get this error, nothing in console lol
It's something that's used on MCHub, Arkham, Cosmic etc.
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)
they are using this method to calculate that
but i think this should consider y coords too
its so confusing
are you sure that is the vanilla behaviour
it seems so
pretty sure it also happens vertically, e.g. if you're falling down with a chicken on a leash or moving up very fast
maybe it is a version difference thing?
this one is for 1.19
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"
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
so it shouldn't happen in latest versions
what shouldn't happen?
i mean leash should break in vertical distance too
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
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)
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
can you translate for the non-scientifically informed of us :p
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
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
are you forcing the armorstand down?
i mean what you are doing is a glorified distance check
just calculate
yeah you could just do a distance check lol
gravity is
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
So my idea won't work ig
Can't really try and manipulate it using velocity or anything either im assuming
wdym
How do you figure
The bat is there as much for the mechanic as for the visual aspect, js
you can still spawn a leash between entities
just not use it as your event trigger
Wait override what- am so confused
you dont need to depend on minecraft mechanics to check anything
use leash as a visual thing
and do all calculations yourself
do all calculations of what though, i don't get what you mean
do people still use bukkit
No
depends if u class them as "people"
Stack overflow down?????????
The amount of people that would lose their job if that were the case
spigot was down tho
maybe for like a few minutes
It was, for my region for almost the whole of yesterday
It kept going down and coming back up
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
right place?
^
if inventory, you listen to inventory interact and inventory drag events
otherwise you listen to actual item drop event
then just listen to item drop event
get item object from it and check its location
well then it would check at the location the item was dropped
and that wouldn't work
there might be another method lemme check
i mean since the item is an entity
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
Do you guys know a website to where I can direct some webhooks, reformat the data received and send it to another webhooks?
there's zapify but that's paid for a lot
Yeah I know
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.
my teacher would kill you for the extra s in the package names
Extra "s"?
No I'm asking what you two are talking about? What extra "s"?
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.
I would also kill you
What are you talking about? ...
I think he means like listeners should be listener for example
Yappers what's wrong with you today? Your head seems to be in the clouds
you're not paying attention
anymore
I thought so but that makes no sense lol
It's a package of multiple classes you add the "s" for plural.
¯_(ツ)_/¯
Probs because it's more for like imports?
net.whatever.plugin.listener.SkullsListener
Even that looks bad.
It's not a package of 1 class.
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
I mean under that reasoning every package with more than a single class should be plural
and I believe him
java.utils
Most teachers learn as they teach, so your teacher probs doesn't know shit lol
You know, I'd be very impressed if he didn't know what shit is
packages are singularly named unless theyre homogenous
No lol
you tell him gaby! don't let him bully us
"xmls"
utils or utilities would be a better package name ;)
no it wouldn't lol
that still doesn't explain what homogenesis and heterogenesis means tho?
So that package only preforms a single task?
packages don't perform tasks to begin with
man, I personally am a big fan of C# package (namespace) naming.
you don't say you have "friend" when you have many, you say you have "friends". 
java.util.Something makes more sense than java.utils.Something
Is like you are saying "Something is an util class"
ok. but I Don't have any friends?
makes sense
what does this have to do with homogenesis?
Exactly... packages contain a single or multiple classes that do tasks. So name accordingly lol
homogenous = the same type, heterogenous = a different type
I just want to know what homogenesis means
I see. Thank you
This is my logic at least
yeah
In the end it's all preference anyways.
utils would imply that all the classes are instances of a Util
on a more serious note, packaging by feature > packaging by layer
Is that a real thing bm? Or is the hetero thing you said above
actually, the post that Brister Misten has an amazing explanation. Please read it.
I am amazed
special other?
Just call the packages, 1, 2, 3, 4 and so on- who cares? 
yeah. just manually obfuscate your code
Obfuscation is better

here yappers. I know you're afraid the links
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
Collection is plural...
no it is not
lmao
what?
didn't even read
So it's means 1 of what ever is collected?
I'm pretty sure the prular of collection is collections in the english language
indeed
what?
no idea what to call it, ManagerHandler? idk
OI
if collection is plural then collections is like prular but in 4th dimension or something
stop faffing around over s's and change ur package structure
:))
There are multiple words that are the same singular as they are plural.
ok?
Collection is not one of them
Collection can mean a collection of whatever and can be used in the singular sense as in 1 collection of whatever.
the word "collection" is singular
could elaborate? don't understand what you mean
right so
instead of packing managers together, you pack everything skull related together
etc
I think
but bm is smarter, he'll explain
better
ye let the big brain explain
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
shut up alex
what are those reasons :3
omg emily called alex by his real name!!!
i'd like to see you try
this must be serious
meet me in the park on wednesday and we'll see
alright
@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?
lmfao
me waiting for the reasons
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.
technically it's personal preference, but packaging by feature makes things easier to think about as you've got all the code for 1 component of the program in 1 place.
ok sure but what does that have to do with anything
They are talking about the actual literal English word "collection"
you literally just said "collections" in your sentence
so you're agreeing collections, is the plural of a collection
lmao
lol
Read the screens hot blitz posted
tbh, I can't see myself organizing things by feature, I legit don't know how I would do it lmao
i gave an example using your code lmao
Yes it can be both plural and singular depending on context
just group similar features together rather than similar patterns
am I a bad person for combining these 2?
No, "collection" as a literal English word, as a pure meaningless noun is singular and "collections" is plural
yes ik, idk, I will check it, it just seems weird to work with...
but I will try it I suppose
Read above. (Not being rude I just gave the context above)
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
no i do it by layer for small things when they dont really fit
Now youre getting it.
yeah. same
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
Now you're going backwards.
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)
now the real question is. Should I work or should I play games. To turn the scales a bit, its 1 am.
1am?, work till 2am, then play after 2am till bed time
that's my plan
oh. that's a lot of play time
what did you even change lmao
since when is that bad
WDYM
i cant see much obvious difference
This is the old one
granted its hard to tell what's similar just from the class names
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
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
my projects with just 7 classes with 1000 lines each

hypocrite
please rename managercommand to commandmanager
or like cmd manager anything but that
Well I'm assuming it's not a command manager it's a /manager command
it is
sorry
manager land
Find a way to die please
holy shit. someone's mad today
🤓
calmest kotlin fan
Lmao
I just want to ask, why would ppl hate on kotlin? Its awesome, what languages are so much better?
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"
The seemingly self-evident advice to “use the right tool for the job” is more subtle and more complex than it first appears
Besides the obvious exception Skript, which is the perfect tool for every job
:nojava:
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
I don't think anyone is seriously hating on kotlin
It's a joke
For the most part
😮
im hating on anime
:))))))
gotta love the extra threatens just to be sure
including effort to contact FBI for this cyber crime
follow the website and fill the TARF form man
what the fuck
for real haha
Is there something like spark but for regular java programs?
jfr?
async-profiler
That’s what spark uses (on Linux)
IntelliJ Ultimate has it integrated too, and they even have a windows port
Ty, I'll look into both 👍
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
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
How can you run a shell script in gradle after successful build?
you can do anything to your heart's content
teach me
did he say touch me?

well, no, but let's say yes, it will be easier
I'm on 3rd stack overflow page by now, so you know I'm desperate
What are you trying to do exactly? Depending on the specifics there might be one better way or another
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
you can use exec, there's probably a user guide page specific to that but idk where, lol, you can probably get the gist of it from this https://stackoverflow.com/a/13661410/8083725
so I just dependOn shadowjar with this and we good?
uh it's not a task, you can prolly do smth like
shadowJar {
// ...
doLast {
exec {
// ...
}
}
}
well, I'l try, I really should learn groovy and shit, but thank you
it's about the same syntax on kts for the actual exec stuff
KOTLIN? 🤮
true
🤢
HMMMM
DAMN
BASED
Burn the goddamn heretic
Well the first part anyway
Planning to learn:
How to tie a rope
good plan
Anyone know some Tebex CC's that looks similar to store.minerival.org?
I've seen this on a couple places for websites :)
See if any of these looks like what you want https://www.mc-market.org/resources/authors/76477/ @tame bane
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
Wdym by user generated text?
Like text provided by a user.
An example would be a punishment reason for a punishment issued by a user.
TEXT / VARCHAR
I mean more like, uh- turning the text into base64 as an example.
why on earth would you do that
Well my current issue is that with my current SQL INSERT statement, it doesn't like when the user generated text contains ' .
Don't prepared statements do smth abt this?
or you're gonna get a bobby tables incident
classic
💀
always assume the user input is malicious
Was going to mention that as well, but didn't want to be called an idiot.
it's not stupid to be right lmao
No he was worried that he'd be wrong I think
but primitive input sanitisation like that is just asking for trouble, prepared statements are the solution
ah
I'm not all too familiar with the SQL scene, so I wasn't too sure if it was something patched ages ago.
pretty much
C:
theyre often faster too
:>
How?
Mind providing an example / reference documentation?
Faster than raw?
Uhhhh
I'm on mobile
So uh
lmgtfy
:D
😔
9of
Google it is.
Just got lmgtfy'd
Hopefully*
Imaging preparing statements
pretty sure, the database can handle the arguments directly rather than having to extract them from the query
nope
preparedstatements arent formatted at the client side, the database formats them
?!
thats the whole point
plus since it's a more general query the database can cache it
If you know what I mean
idk about endpoints exactly, no idea how the protocol actually works
Well not really wndpoint
but generally the more work you can get the database to do, the better
theyre very clever
I see
Another question
If I only use a dB for one server, what's the point?
Json files are much more convinent
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
well sure
Since I've seen ppl query every time
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
sure which again, might be perfectly reasonable
it's situational
hell that's basically what mongo is
json files with a bit of fluff
thats not a joke
i would think databases have a larger disk footprint
huh
Is it just me or iJ keeps eating all memory and freezes after recent updates?
No
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
How would you expect that to work lol
Crazy
discord:
command: /discord
type: BROADCAST_TEXT
text:
- "&r"
- "ᱹda&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"
- "ce2d&lSd330&lEad733&lRddc35&lVfe138&lEe63b&lR ea3e&lSef41&lTaf443&lOcf846&lRffd49&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"
- "ce2d&lVad733&lOfe138&lTea3e&lIaf443&lNffd49&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!
Uhhh think this is meant to be in #general-plugins
oops
crazy
crazy
register what or where?
message @pallid gale. if his discord DMs are closed you can message him on spigot.
Did not read the message at all 💀
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?
probably escaping
ye
Man, js is something special 
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');
Fun.
does that distinction exist in JDBC too?
i figured it would be no harm to escape every parameter for obvious reasons
no clue tbh
https://github.com/mysqljs/sqlstring/blob/master/lib/SqlString.js#L98 looks like a thing made by these guys
Cant wait to play some C#!!
ah yes
😌
damn bro you got Bubble Witch 3 Saga, i'm jelly
lmao
Dont all windows users have those?
nah bro i got a script to uninstall those bad boys
lol
don't want candy crush on my pc nty
oh if you're on Windows 10/11 and didn't uninstall it, it's properly installed lmao
😷
imagine using windows tho
forced to use ubuntu for my work 💀
came preinstalled with laptop
unless dual boot
🤓
?
still better than windows.
everyone and their grandma knows you can download w10 4free
then do it 🙂
can't
laptop came with all kind of proprietary software
cant get it on windows myself
weird
at least they kinda care
from coding minecraft plugins in my free time to getting a well-paid full-time job in a goverment company
😎
junior tho
🐌
nice, nice
as long as its well paid
which paper version would you guys recommend for a prison type server?
I am like unsure if I should use the latest.
3
1.16+?
any specific reasons?
modern version?
fair enough but what about performance?
(also sorry for ping)
1.8 open to all versions
most new features you do not need in a prison server
and gameplay is not exactly mc
ahh yes, supporting outdated minecraft versions
must be nice
I refuse to use 1.8 lmao
once they fix the performance issue on later versions, i can see people moving
otherwise its legit not worth it
people have already moved. its just the pvp lovers that haven't.
performance is not that bad if you have actually usable server specs
fair enough
its extremely false, in a lot of non western countries 1.8 rules still
due to its client performance
yes, but your users matter
most users have decent computers to run normal mc versions
also
not in non western countries
yes but I can't rely on them.
barely anyone uses later versions here for example
if I stay behind just to let people play in older versions I will never evolve.
which country do you live in?
you can't rely on people.
turkey
its your customers though
tbh, my aim isn't turkey or western countries...
that mindset doesnt really work honestly
my main focus is central europe and US
Why have mines with unique blocks when you can have the same 3 ores and random blocks in all 
if they can't afford a better pc, do you really think they'll afford to buy stuff on the server?
yes, check who you target
except that they do
You live in romanian man, 10$ for a rank is way less than 1000$ for a PC
no offense, but i find this view extremely limited
i myself prefer later versions but i also dont suffer from a potato pc
you don't need 1000$ to run minecraft 1.19...
Will you get a new pc just for minecraft?
but server performance wise, there still is a big issue with later versions
"running" is not exactly what people want
they want to be able to do stuff in the meanwhile
you don't need to? like what kind of pc do you need to have to not be able to run mc 1.19? on my 10 years old pc, with a cpu and integrated gpu, I Can run it with 40 fps.
Nah, I think 1.19 is just fine for prison, is not open world, not many entities or any at all and tones of blocks
even with optifine etc its not exactly great if your pc is from 2010 and was mediocre back then
Smh blitz
and that's a 10 years old pc with no graphics card.
that has never been cleaned, and probably never been stopped
yes, but same can be said i feel like for not using it
as long as you dont have villagers
1.19 etc is okay-ish

but still heavier than older versions
Yes obvious
although if I were to use 1.19 as server software, would probably add viaversion to support like 1.16+
or so

the issue is, connecting to a new version from an old one
feels way mroe scuffed than the other way around
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.
since blocks are replaced with others etc
also, speaking of 1.8, doesn't 1.8 have like a BUNCH of crash and exploits in it? lol
I Mean just don't allow that.
If you use via-backwards you could as well just use the lowest version you want to support
true
yes and no, yes in the base jar plenty exists but most already got patched through plugins
Just imagine going inside the most OP mine and being full of stone because you are on 1.8 :))
pain
not exactly a good solution now is it
imagine having to install plugins to make sure people can't use exploits. :)))
its an amazing solution
I Did it, and it worked just nicely. a lot of people did it and it worked pretty well for them.
Features at the cost of some resources is worth imo
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
but no frogs 😦
as it should be, feel like you accept that you will get no support if you run into issues
if you use older versions on any software
true.... although unsure if it's useful in a prison server xD
yes. and that's an extra reason to not go with old versions.
smh. frogs are always useful
it doesnt really affect my use case, but yes
if you cant handle it, then 100% go with newest
uhm random question is it useful to register events only when needed and unregister them afterwards?
Why would you want to do that?
Register on startup and unregister on JavaPlugin#onDisable()
you don't even need to unregister, the plugin manager will do that for you
absolutely not, outside of onEnable you need to rebake the handler list for whichever events you're unregistering listeners and all that, it's just not worth the hassle, either just add a boolean check or keep your own managed internal set of Consumers for the events
Ok good, it's not actually for me or my code, I just saw an open sourced project that welp, does it
lol
💀
anyways
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
what are you actually asking
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
composition > inheritance
honestly i would go with a sealed class rather than trying to shoehorn everything into an enum
spicy enum
yeah sure
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
yeah i am
not good
have fun
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
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!
dm me a username and email address you'd like
@prisma wave
@obtuse gale

I have browsed the readme but i couldnt find any reason to use carbon over C++
Hmmm, consistent features, readable, good interop, possibly single compiler so you dont have to worry about the differences with each..etc...?
Not too sure tbh, I havent used c++ enough to comment much more
it has a specification that isn't the size of the bible
A bible is not that big
it's big enough
A picture is worth a thousand words
What about a video
well you take the amount of frames the video has and multiply it by 1000
ez math
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
... kotlin = best is typing...
Ez
how about you shut up and launch minecraft?
I am not home
and then join hyipxel, and then party invite me and then we play bedwars
🥲
oh 😦
😭
My Waka time is finally going to say 0 hours on the weekly report
Or low amount
Maybe like 2 hours
Wakanda?
Forever
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!
A null line at top?
null line? you mean an empty line?
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
Great idea, thanks!
And that worked perfectly!
👍
2 hours and 30 minutes have passed
No I meant that I'd have 2 hours logged in the coding report since I'm at a trip atm
So I come back at like Monday or smth
Idk
Sometime theb
Theb
Then
alright.
I’m just curious how would you assign patterns to a firework
FireworkMeta
Ohhhhh
you get the firework meta, and use #setEffect.
it takes in a FIreworkEFfect
which you can create using the static method FireworkEffect#builder
no header files and no std::cout << "blah" is the best part
^
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
its not that deep
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
wait. this is legit? for a second I thought its a scam
but the link seems legit
theyre marked as part of the team too
Tru
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
literally youtube's algorithm based on the trending page but sure
Yeah but it’s not public as a content creator how do you know if a video will do well
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
they do look a bit weird without the monospace
not really a fan of "Public X" but everything else looks good
use the same font and size for public class <package> and extends <class>
minus this

looks ok
why is it called children? members would be a more common name
it's only a placeholder, i'm planning on redoing that bit
nope, it's a custom doclet
now slap a dark theme on that bad boy
i already have
how do you call something that can be formatted? formatable?
formattable
thanks
@tranquil crane hi hru
hi emi im good hru
I'm alright, thanks for asking!
:D
your welcome
no, it's your welcome, not mine
no it is yours
I'll just take it
they also made it a non-bracketed lang? lol, looks like they have some ends there
Nah looks like they translate them to russian
oh like they just put the word "bracket" in russian? lmao
cause I doubt that Cyrillic has those chars tbh
it does actually
lmao. google translate is either very bad, or this is very funny
it translates to go and nah
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
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 |)
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
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
Someone help me, I want the DeluxeTags tag to appear in the nchat chat
.
please help
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.
Was Ivan not helping you?
i am invisible 🥲
you only answered one of his questions
dont be greedy
Ohh I did not notice
ye
I need to find out on how if you get kicked from a proxxy server it takes you to hub
id assume get version gets the plugin version in the plugin.yml, the bukkit version gets the nms version like 1.19-R-0 or something like that and the minecraft version is probably just 1.19
why does getPotionEffect.getDuration() may produce NullPtrException? I null checked if they have the potion, what else does it want?
d; spigot getPotionEffect
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.
Represents a type of potion and its effect on an entity.
You don't need to
😢
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
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
onJoin
But then will they be able to use the effect?
Or is it like
If they leave its gone
Nvm that's amplifier
I mixed it up
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 🙂
Scrogus
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?
if its bungeecord, my minds a bit foggy since I haven't used bungee in a bit, but isn't there a config option called fallback_server?
Oooo
In spigot.yml?
or
what file
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.
Thanks!
I found it!
also do you know how to
make void insta kill you in hub?
if you looking for an instant kill, maybe EntityDamageEvent with DamageCause.VOID, then set health 0
How do I set this?
Thanks for your help btw its so appreciated
i feel bad for your void players, you should tp them instead : (
nope.
im evil HAHAHA
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?
Hmm
can you no longer add classic projects to repo?
Anyone know how to make forge mods
download the forge mdk
(mod development kit)
btw fabric > forge
true
very true
I'm here to agree
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
common kotlin L
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
would this work?
to show the dragons bossbard?
or is there a very obvious good way to do it im missing
When spawning the dragon you probably want to enable that yes
Any alternatives to this that still work?
What do you call someone that recommends supporting 1.8? 💀
🤔 big brain
idiot
😦




