#help-development
1 messages · Page 807 of 1
make them do X shit that they are not naturally supposed to do
That’s a cool question i wonder what they are
idk like enemy will not go to melee range with you but will stay in range space and just aim at you
when they are aggro'd
whats the approach to this shit
Oh ur coding ur own game nice
whats the difference between BanList.Type.PROFILE and NAME? ChatGPT keeps telling me to use NAME or UUID but both seem to be deparcted
I mean what you can also do is create your own utility class with static strings for each color, then you can simply concatenate but it's kinda useless BUT at least a workaround 😆
helpful as always
dont forget to blame me for wasting ur precious time
actually good idea
PlayerProfile 💪🏻
that could be pretty useful
It can be but not if you only need that once yk
I guess
If you have a bigger plugin where you have a lot of messages it can be useful
I might actually integrate that into a Minigame library of mine lmao
how do I play 2 strings of messages in one line ingame
Dusk you're a type of guy that would never consider googling anything but relying on others lmao no front
Haha
You basically add two strings
fr
wouldnt that throw exception
no
Again ur not giving us any context
"a" + "b" = "ab"
They’re guessing
Why would that throw an exception
intuition?
Nice
Lacking abit in that part i suppose. It’ll get better no worries
Haha 💀
sorry for not being able to come up with the most efficient solution everytime
We’d love that
It's all good at least it's a bit amusing dont take it too seriously
true
issue
first try to google shit tho and otherwise ask with context
dont take it seriously we'll just mock you and trash you when you actually ask if something is okay with your code lol
.toString
ok thanks
Sounds about right
well then dont expect me to treat you any fair or seriously
thats fair
@storm crystal just preparing you for what comes to you when you go to stackoverflow with the way you're asking
Honestly that environment is much more hostile than we could ever be, were friendly compared to them mate
im not going to go there
the most ill ever do with programming in my lifetime career is scripts in python
id look up hiarachy charts and pseudocode, and project management; it will help put your ideas into actual code
or in shell
Okay
I mean you do know that it'd mean I wouldnt have to hold myself back with slurs too
so that wouldnt be as bad of environement
never hold back with slurs is my motto
Hello I am guys
Don’t think so
Iirc there is an event
how do I add "ColorChat.BOLD + ColorChat.RED" to database so that i could get it back as color into message
Convert em to string
?
I didnt ask for list of colors
Add §l§c to your database
Save the serialized component
yall told me to NOT use it
These constants are basically aliases for that
whats serialized
If you're doing that in code, sure, but if you want to save the formatted string to the db, it's okay
DuckDuckGo. Privacy, Simplified.
yes and coll sent the link
It actually can be handy to change it
Yes, I'm looking at it at this very moment 
mhm
so whats the example of serialization in spigot
interesting server that emoji comes from
Hololive fan server?
// Creating a new component
BaseComponent component = new TextComponent("Hello World");
// Serializing component to json
String json = ComponentSerializer.toString(component);
// Deserializing json to component
BaseComponent[] deserialized = ComponentSerializer.parse(json);
and how am I supposed to use it in ChatColors
or ColorChats w/e I dont remember them
Use MineDown
https://github.com/Phoenix616/MineDown
just fyi there is varying types of serializing, but essentially all it is, is just a way to combine the data or object into a representation that makes it easy to either store or move it elsewhere
Soon we can finally get rid of those pesky arrays 🥳
would you rather have 5 millions or cancer?
This sounds like shooting with canons after sparrows. This can be done with pure spigot as well.
cancer
im not going to rely on someone's external shit
:P minedown is great especially since most messages are parsed from configs
Shading a whole library just to serialize a text message. Meh.
possible, who knows
what happens if I dont serialize
I could also not be alive as well, I would never know
Maybe I missed context what are we using components for?
u can alr do new TextComponent(components) wdym
you're actually AI
ComponentBuilder creates an array
Instead of a single base Component
Dusk wants to save a message in a DB while not loosing the style of his message.
I dont want to save message in db
should store it as base64 then
Ohhhh I see nvm then my bad yeah bungee should do just fine
how base64
xd
was talkint bout frostalf
cant u serialize it to json
Then use MineDown minedown is great for parsing strings into styled messages
he took cancer over 5 million dollars
probably could, but with base64 it would remove some redundant things and other characters you generally don't need to store in a DB
makes it kind of like safer
its external library
ideally ud use bson or smth
but since the json serializer is built in
might as well
Where is the message created and why do you see the need to save and reuse it?
@wet breach if i have 5 million dollars, for 72 years how much can i spend a day
because its literally a name of the enemy with colors?
i would just recreate that on location
well you don't to store it as a binary object in a DB typically, but it depends which DB I suppose. MySQL you generally avoid blobs unless it can't be helped
store the raw name of the mob as like legacy text and rebuild the name from the variables where u need it
mongo
uses bson already
would be nice
Please close the chain of causality. Your message doesnt answer my question.
best jobs to be a pervert:
a dentist. if a bad girl came to my office, and got to put to sleep with her mouth wide open, idk mannn
approximately 192.25 a day
top 10 messages in #help-development
moooooooooooooooooooooooods
wake the fuck up
Basically my experience
tf?
you asked why I need it
I need it because its name of the enemy that I want to store
in db
SQLite
is there a reason you cant reformat the name
from the variables
when u need it
if u just need color id store it as legacy text btw
im not going to make separate method to spawn an enemy just to hardcode every color combination
How is this message created? Does a user choose the name (chat colors inclusive)?
I type it into database
You type the name of an "enemy" into a database by hand?
lol
and?
if u want a plain answer to ur question:
String name = ChatColor.RED + "enemy bob";
db.save("bob", name);
String formattedName = db.load("bob");
at this point, I don't think we should be surprised of anything
if ur using components use either like json or serialize to legacy text
wow I dont have every single thing in my plugin made by a manager
Idk. Im very confused on what he is actually trying to do in the first place.
I said I want to save a string, whatever this is, with colors in a single cell of database
You should use a config file for that. Databases are meant to store data. Not configurations.
@storm crystal u can just store the string
this is
literally
data
would it be easy to implement viaversion into minestom?
cant u put it on the proxy
If you have to manually write it into a database by hand, while the server is offline, then its configuration.
or does it not work like that
well i can if it worked
Probably not
yet nobody fucking helps in via support
rip
I can do it in real time via cache
one fucking response and it was a "yes."
but thats so hard besides point
idk its probably just really tedious
No it would not be easy. Mapping protocols is very tedious.
i cant imagine converting packets to be that hard logically
but just a lot of mappings to type out
ig
well would it be easier if im only using like 3 versions?
yes
it can be if there is no alternative
I was asking how do I parse it so that I could have it lying in database and take it so that it would produce a colored string when put into message for player
just latest version and its subs
Always go latest
I miss going to the gym
if ur server is 1 version
Data which is dynamically generated during runtime should be stored in a DB.
Defining templates, like custom mobs, should never be done through a DB.
and u want to support n client versions
wait
and n is like 2
if my server is 1.20.2
its n ot that hard
idk
I am not asking for that bro I dont care by a ton what I should or should not store in a database, it is as it is for now that's overseas besides the point
seems like the protocol is slightly different
dude just store the string
as you can see the protocol versions are different. Therefore 1.20.1 can't join 1.20.2
chat colors are just strings when u use them
theyre remembered
using the section sign unicode char
Well if you dont care about standards, then everything goes.
Just store your String with the § symbols in it.
no special shit going on
if I store it like §4§lThis then ill be trashed for using §'s because they apparently are bad
its data so format doesnt matter
u prob shouldnt type them out in your code
Rightfully so. But you dont care about standards, so why care about anything we say?
but ChatColor.RED + "hi" == §chi
you literally told me that there are dozens types of data containing types and I just chose one and made entire plugin around it
== ChatColor.translateColorCodes('&', "&chi")
I am not going to rewrite it entirely just so you'd be pleased that I used it in a correct way
it works? it works
I really dont care 🙂
You can take my advice or not. But dont whine about being scolded for writing atrocious code
if you dont value the help you receive.
wait is it translateAlternateColorCodes?
Yes
ive been using my own method for so long
I do that very frequently, yeah
I would be honest to my relatives so maybe
sometimes I'll even say it when it isn't helpful
retirement home speedrun any%
just two days ago I did the fortnite L dance on my sister
Your attitude tells me otherwise
I don’t think my relatives are going to put me in a retirement home when I’m old
Unless they are that one character from SpongeBob
retirement home? they'll take you out back with a shotgun so you can go live in a farm upstate
Nah we don’t have guns here
not legally
you can make shotguns with material from any hardware store, it's not a problem
^
shoutout to the us army improvised field weaponry or whatever that manual was called that shows you how to make a shotgun for $3 worth of materials
lol
when your family starts making a backyard for you you'll know what's up
oh we have summoned frostalf
the jezus of the spigot discord
The thing is that we dont have literally pure oxidizer as "stump remover" in our hardware stores like certain other countries 🙂
with another $3 you can make smoke grenades too
Same
dw I'm sure you can find the chemicals to make it with something else
not to mention even countries without guns frequently still allow you to just buy guns for hunting
At least where i live it is incredibly hard to get, unless you are fine with ending on a list
there's no second ammendment here but there is a boar problem
and you are free to go hunting for a solution
ah I see the loop hole now
just call them boars
Beleaguered Old Almost Retired Seniors
lol
last will hunting
I do wonder how many countries exist where you can't get guns even in the context of hunting
I'm sure they're out there
look at that
Fun
I'm surprised you can't go hunting in vatican city
Chin people wilding
Weird. Dont they have a bear problem?
I wonder in NK how hard it is to get your hands on a gun considering everyone is a part of the military
also considering the things I've seen from somalia I feel like they might've failed to enforce that one
What would you need a gun for in the first place when living there?
in NK?
y
no reason whatsoever, that place is a utopia in a dystopic world
everyone is so happy no one goes in and no one goes out
I mean this problem is not too scarce on the whole continent with some exceptions.
fewer exceptions with each passing decade as it would seem
I dont have enough knowledge about the geopolitical development over tha last few decades to make a statement about that tbh
(For Africa that is)
Somalia's government isn't capable of enforcing much of anything
if they could agree to one united gvt it would already be a big step up
at one point they did have one
at least last I checked that thing was devolving into a bunch of semi-independent states
but then it like died
the country just hasn't been the same since people started watching pirates of the caribbean
lmao
as long a speople get along why does it need to be one united government?
they are killing each other
that isnt getting along
yeah, shame there isn't some kind of government to sort that one out
Is there a method to spawn fake mobs?
How so?
And setVisibleByDefault
so I have known java for a while now and told my friend I'd make him a plugin having never made one before and I'm trying to code a cooldown for an item that has a coded effect when paired with shift+[RMB] I tried many iterations of both the runTaskLater and scheduleSyncDelayedTask methods (before realizing that scheduleSyncDelayedTask was deprecated) I've been running them inside a for loop and don't know how to properly initialize them for my purpose or if there's a different method I should be using.
it's done boys
seems weird you have known java for a while but yet don't know how to initialize objects or variables? o.O
Also uh just use a timestamp
Heyyy, so i often come in here with very simple problems that i just cant figure out cause im tired and i assume this is another one of those cases
I am currently getting a string from a yaml file and putting that into the page of a book and giving it to a player. Except no matter what i do i cant seem to get \n to actually create a new line and not just put the literal "\n" in the text of the book
i am just confused after looking at the documentation
w the fingers included?
and I dont know the library as i said
?scheduling
?jd-s
Is there a method to get the book item in a particular slot in the chiseled bookshelf?
I'm not seeing one
BukkitRunnable task = new BukkitRunnable() { @Override public void run() {}};
int id = task.getTaskId();
cooldown2.addPlayer(player);
for(double o = 0; o < 180; o++) {
task.runTaskLater(new _1_20_2(), 20L);
cooldown2.setProgress(o / 180);
Bukkit.getScheduler().cancelTask(id);
}
cooldown2.removePlayer(player);
onCooldown1 = false;
}```
Get the state and use that
Cast it to ChiseledBookshelf
What method are you using to add text to the book?
Bookmeta.addpage
What does your config look like?
PlayerName: woahh text in a file \n woah new line```
```Players:
PlayerName: woahh text in a file
woah new line```
i mean ive tried both of those if thats what you mean
Surround your text in double quotes.
You need the quotes if you are using escape sequences
yeah that worked
Ty 😅
You can also make a list and use that instead if you wanted to just import it that way. Wouldn’t have to worry about \n characters.
you can also use yaml's multi line strings to make it a bit more visually pleasing
I found a bug
Trying to get the slot of a chiseled bookshelf using hit vector, it's only returning the top row
is there any tutorial on how to structurize plugin correctly
You can make a ticket with reproduction code
?jira
?conventions
im asking about plugins specifically
there really isn't an appropriate structure other then needing the appropriate methods for you main class
its up to you to design your stuff how you see fit
but, the conventions and some other rules are basically what governs the overall things of a java program
you separate logic to their appropriate places as needed etc
Well apparently my entire plugin doesnt meet standards
which standards?
I probably wouldn't be too worried about standards for you right now
I mean sure you could try following a standard if you want, but you are still learning and right now standards shouldn't be on the top of prority list
Idk looks like all
trying to achieve hex colors in chat, why isn't this displaying properly? ```java
public static String translateHexColorCodes(String startTag, String message) {
startTag = startTag.replaceAll("#", "");
final String prefix = COLOR_CHAR + "x"
+ COLOR_CHAR + startTag.charAt(0) + COLOR_CHAR + startTag.charAt(1)
+ COLOR_CHAR + startTag.charAt(2) + COLOR_CHAR + startTag.charAt(3)
+ COLOR_CHAR + startTag.charAt(4) + COLOR_CHAR + startTag.charAt(5);
return net.md_5.bungee.api.ChatColor.translateAlternateColorCodes(COLOR_CHAR, startTag + message);```
my input is #deb440
you never use the prefix variable?
is ChatColor.COLOR_CHAR not it?
Also, if COLOR_CHAR is a section symbol then you don't need to use translateAlternateColorCodes() at all because it's already using section symbols
If it's a & then really there's no point in giving it a constant because you're just making your code longer :p
eagouenajge you're so right
Pretty sure it’s §
no its actually §
i love it when i'm casually writing my daily java code when i just eagouenajge
public static void eagouenajge(String[] eagouenajge)
I am not having a fun time managing maven repos
oh shit!
thanks md5, based
finally I look like the gamer I know I always was
he had this massive beard untill he shaved it
man I actually grew it back for xmas but the doc shaved it for my surgery while I was out
truly you could only get rid of this powerful beard while I was out
Woah. Keep it PG
i am SORRY
xqc got his youtube channel DISINTEGRATED
Uhhhh, I think VeinMiner does?
hm?
Well, yeah, it's Gradle, but it's hosted on a Maven repo
maven and gradle publishing is different
I'm gonna publish your face into my fist >:(
CHILD ABUSE
Yes I have four separate artifacts,
when you're updating the multimodule project do you ever run into issues where the managing repo fails to install / update because the children depend on the parent, and the parent can't install if the children don't install causing circular dependencies that can't update?
or do you not have a managing module
doesn't look like you do
this really annoys me because my only solution is to unlink the managing module's project from everything else so it can be installed when empty and then readding everything
and this is so dumb there surely is a way to do this that isn't like this
look at jefflib
also one of these days I will press the wrong button on the intellij prompt after unlinking and actually delete the entire f-ing thing
you need a dist module
I do have a dist module
make it work then
I think it works
I mean, it distributes just fine
but it itself has the manager for a parent
man I can't get over how good it feels to have my old nick back
@sterile axle hello fellow purple
do you have nickname perms now
no, my bribe donation message went out with some specific requests
kek
you got your name back neat
try to not lose it again 🙂
tbf I never did anything to lose it, much like happiness it seems to be something that one can't just hold on to with intentionality
if this is the case then you need to ensure the parent installs, typically in such scenarios you would build the parent in way that its only a core this way there really shouldn't be many instances in where it would in fact need an updated version
so like a profile for building the parent exclusively?
or build from the parent
I am building from the parent but the way the modules work it will not install if the children fail
well, you could just have the parent ignore build failures of the children
if the parent actually doesn't need the children
hmm
that sounds like a fun way to waste time 2 years from now when I forget you need to double install
lol, shouldn't need to double install, just need to change things around is all
this issue is fundamentally stupid
typically, the children should rely on the parent, not the parent relying on the children
I would agree
I wish that's how it worked
further when I install it I wish it installed from the top down
but I guess it wants a final jar
but, you could use one of the maven plugins to drop to a script too though if this is a weird setup where you could make sure stuff is prepared like it needs to be
Epic nick is back
bet it's set up such that helpers have higher color priority
I've never really looked behind the curtain too much, does spigot frequently access and modify fields that are private/protected in the source code?
sometimes
would a contribution that allows modification of boundingbox be potentially accepted? It's a private field in Entity
You’d have to provide proper api for it
But it won’t be client synced so it’d be kinda jank
yeah... hm
maybe not worth it considering since post-1.19.4 we have special entities that let you bypass this issue
Well you could always pr a time machine first
shame the client doesn't sync hitboxes though, that's very exploity
uh was there a way to get a plugin's version from the spigot api?
I'm pretty sure there was right
found it
how do i increase the font size of only the code editor in intellij?
bro I am like a googling fucking machine holy shit @quaint mantle
legit ctrl+c ctrl+v am I great
wait If I don't use google do I call it duckduckgoing xD
and I broke intellij again
I managed to make it forget a class exists
how does this even happen
better than mine :*), mine sometimes just randomly freezes and refuses to elaborate at all
what is this intellij
the greatest thread of all time holy
have you tried, like, importing it?
yes
god forbid manually importing classes
I did that
i do that but the font size doesnt stay
its different for every like tab
nvm
i need to save
it's very funny because it will autocomplete a suggestion for the class name when manually importing but then say "yo that don't exist"
that's because it's not literally zooming in, it's changing the font size
you're the one who's wrong
I think i'm going to give MD $10 for christmas this year
?paste
I heard y'all like switch statements
https://paste.md-5.net/ducisuveti.java
well how do you like them now
WTF
is it just me but stacking parentheses is super ugly
like the max amount of parentheses I'll have together is two
ugly but unavoidable unfortunately
wdym un avoidable
plus its better on the single line statements than making all of those multiline
I just make a variable
yeah what I really want it to create 10,000 variables every time anything gets hit
that's super cool and lit and very clever
Ok well I doubt that's going to have much impact
no joke it's one of the biggest issues with my main plugin right now, FMM is the first one where I've started actively optimizing declarations
how does it feel to be incredibly wrong
ok idk how you guys are doing it
but there's no way a local variable is keeping an object alive if you do it properly
Local variables go on the stack
^
yeah but doesn't the jvm clean it
this is the size of this plugin alone, and this does not include the fact that I am shading a plugin for NMS-constrained code and now using a different plugin to animate models exported from Blockbench
so true queen
I'm moving to switzerland before WW3 for that sweet sweet nutrality
I think switzerland felt like it missed out on ww2 considering it broke its neutrality to sanction russia
personally I'm going to madagascar instead, no one cares about madagascar
awhhh wtf
just got a text that I have a very wealthy relative who is lived in Nigera, they just died and I've come upon a great fortune. Once I pay the $200 transfer fee I will move their to cary on his legacy
$200? my nigerian relative was asking for $2000
well mine is dead and I simply just have to pay for the transfer fee
he had it in his will that I pay no more than that
so should I put event.getPlayer everywhete
no know when to use local variables
ah mine was the king and needed help moving stacks of gold bars
it can be beneficial to use them
really I was getting that straight cash probably why my transfer fee was much lower
it depends on what you're doing
I feel like the jvm inlines them anyway when you create a local variable like how I explained
if you're calling something on a player move event and you have 100 different fields declared every time you're going to have a bad time
java scopes it to be gc'd but there are as far as I know no special routines for clearing memory differently based on scope
there are also cases like
final GeneratorItem genItem = Registries.generatorItem().getOrNull(genItemKey);
Where obviously its better here to save this item in memory rather than use my registry every time
I mean such an example is in the snippet from earlier
I cached a get from my map
I do wish there was a cleaner way to negate instanceof though
dude fr
notinstanceof keyword when???
I wish I could still work out like I used to :*)
I feel like I'm 90 when saying shit like that
are you even older than me
what happened then, did you lose both legs
🤷♂️ I mean I can walk, but I can't do much more than that. My tendons are fucked pretty bad, was told I pretty much can't do shit about it till I'm done growing for whatever reason
what did bro do
doesn't sound like you're going to have to wait for very long then
well I used to be a 3 sport athlete and I kept playing through injuries
What sports
clever
which really isn't smart
Soccer, Basketball... Golf
golf's def the one that did the trick
mental injuries from getting shit talked too hard
hypertension due to high salt intakes
3 years likely
have any of you guys took Adderall
No I pretty much abstain from any drugs/medication unless absolutely necessary
yeah I only take something if things are truly dire
they can't do anything until then because the only way to correct such a thing if its a problem still when you are 25 is to shorten your tendons
do yall know what adderall is
ADHD medication usually
I'd be surprised if anyone doesn't know at this point
well they said it should kinda correct itself after I'm done growing. My tendons are extremely tight which causes a ton of pain when doing anything outside of walking, and even then walking can be painful sometimes too
doing the stretches and stuff they gave me only can do so much and I pretty much have to live with the pain until a later date Ig
when I was growing up I had growing pains so bad at one point that I ended up wheelchair-bound for over a month, it was insane
that type of stuff runs in my family too
luckily it seems I've avoided the worst of it
besides the leg fuckary
but I can still walk and stuff
aspirin ended up doing the trick though, took a month to find out
you just need to do some PT stretches then
well they said that helps right now, but the pain will persist till I'm done growing, but after I'm done I gotta keep doing them or I'll start having pain again
well yeah no one said it wouldn't be painful 🙂
mind over matter on that though
just don't care about it
yep
I got that down when I decided it'd be smart to play through injuries :P
as long as you can truly convince yourself that you don't care, it shouldn't be an issue
well it will be after the end of the day
but who cares about that, take some pain killers and zonk out XD
I don't take pain killers
I live in pain 24x7 🙂
I won't take them unless I get surgery done mostly because I realized its prob smart to listen to my body especially since its not giving my false signals
but what is awesome about that fact though is that it heightens your pain tolerance to insane levels 😄
even if you get surgery you still really don't need them. Whenever you do get surgery and odds are you probably won't really need it, your pain tolerance would probably be so high that you probably just need tylenol only or maybe just 1-2 days of painkillers unlike everyone else
man I am not even sure if I want to keep supporting modelengine but whatever
that is how it is with me. I have painkillers but I rarely take them
there are days however, where it is nice to have a break from all the pain XD
yeah swhat I'm taking when I get my wisdom teeth taken out just some over the counter tylonole for right after
prolly only have to take like 1 then I'll be fine
though last time I got teeth pulled I didn't even need pain meds so we'll see
also high pain tolerance is super handy in fights too 🙂
if you want to make people think your crazy and scare them too XD
frost is living out his fantasy of being a superhero vigilante
well I do have a pair of short swords
I'm pretty weak so I'm not good in fights :P I only have 1 fight story in highschool and its just kinda sad. Some kid kicked me in the back right on the spine and I just pinned him right away it wasn't even a fight it was just kinda sad and pathetic
you don't need to be strong when it comes to fighting
you just need to be smarter
he's pain man, and his skill is to make his enemies faint by making them feel a fraction of the pain he always feels
😂
his catchphrase is "I'm here to deliver the hurt"
literally
his suit is made out of bottles of painkillers
in most fights, you only need to have more endurance then your opponent. A worn out opponent is as weak as anyone else. Also, as long as you understand body mechanics and leverage you don't need much strength to toss people around, you just use their momentum and weight against them and with a bit of leverage you can fling people a good 15ft 😄
frostalf teaching kids how to fight so they can get shot .2 seconds into an encounter
if you need to hit them, use elbows and knees, they are one of the toughest spots on your body considering you don't have much nerves there anyways so you can hurt them a lot without you feeling anything as well
only in america 💟 the greatest country on earth
🔫 let's see your judo throw
when my brother did karate they taught you how to disarm gunman and short range though
depends on this, if you are within arms reach a gun isn't much use against an opponent that knows how to fight
they don't teach it properly and I don't recommend they rely on what they were taught
do know though, that if its 9mm, you have about 30-60 minutes before you are going to feel any pain especially if they hit a limb
so if for whatever reason it came to that, use that time wisely 😄
I heard if it's a clean headshot you might even never feel the pain
unless its the rare moment you come across someone that knows how to handle a handgun, no one is getting a head shot on a moving target
unless you stand still and give them time to aim
just hope they aren't an exmilitary marksman
even most ex military guys suck at weapon control
the ones that are actually decent are ones who had to train extensively with weapons, this isn't everyone in the military. So those who get attached to special operations for example typically receive more training or advanced training. Also, the longer you don't go to a shooting range the more you will suck at using a weapon in certain scenarios because your reaction time just wouldn't be there anymore
so says painman, deliverer of pain
he's out there all night every night dodging headshots
well for me, I just only need to think about if it hurts more then being blown up 🙂
some say he even slaps the bullets right out of the air
if it isn't going to hurt anymore then that, then I will live XD
BULLET STOP🖐️
painman merely absorbs the bullet into his hand and redirects the pain upon his opponent by using his scariest ability, not caring
lol
frost what is your pfp from
pain club
So, this picture was drawn lets see. I think in 2005-2006
nah what club was it tho
back when I was baby xD
the name of the club was called Legion Tech Club
club became so great and popular it basically controlled the events going on around the school. It was great and it received all kinds of donations to do cool stuff too 🙂
and then I left it, and it died after like 3-4 years when I left
that's sadge
I still ran all the website stuff even after I left, but now all I have left of it is this pfp
neat story
the background in my profile
I also created too
I created that background I would say around 2008
lol
I will say I'm decent at painting though
while many have given me good praises on my art, I dislike doing computer graphics ironically
is that an oil painting?
no its Acrylic*
oh interesting
I made an owl in pottery and painted it as well
maybe I can get you a picture of it at some point
I am only good at doing art of scenery and stuff
because its the only thing I ever draw
I remember in 8th grade I was forced to do art so every one of my projects was of the same scene just in different styles
I always did 2 hills and a tree with a backdrop of the sun setting
what material is your painting drawn on though?
canvas
I bought a couple for like $20
and painted on them
I never used acrylic on canvas before, only when doing pottery
I have a sun painting too, ironcially displayed right next to my moon its a package deal ig
the sun isn't as good though
I'm nowhere near as proud of it
def not in my mental to be, especially hard when my brother is extremely talented artist it can be disheartening though I'm sure you know its mostly about the mental not about what I actually can achieve
I suck at doing oil painting, not really my forte I suppose
you will be surprised in what the talented get jealous over
a negative psyche negatively effects the best outcome you can achieve
so should never really care if yours doesn't compare to theirs
yeah weirdly enough I apply such logic to pretty much everything else but art
I bet you would do really good in abstracts
maybe its the fact that I actually am somewhat decent so I'm much more cognisant of the heights I can't reach
and it wouldn't surprise me if your brother actually struggles with that
his forte is def realism
nailed it, so you are probably good with abstracts then
I'm also pretty good with scenery if I spend my time on it
because I love nature so much
mmm, its probably because you have a better eye for the details
I need to start playing piano again that was a great emotional outlet for me :P
I used to compose my own pieces yes not so much anymore, I do enjoy to just get lost in what others put together
for example behtoven is very moving to me
which piece?
Moonlight Sonata specifically
Ah, that is a very good one especially if you put your own spin on it 🙂
Waltz of the Flowers is one of my favorites
I prefer to play as the composer intended, I think its not that I lack personality in the pieces I play rather I feel like the composer arranges it in a way that allows it to be beautiful and speak for itself
even if its "generic"
I am a fan of believing you should make it your own if you are going to truely play it 🙂
can't really understand a piece if you can't do that or see its beauty, at least in my opinion
I actually did this with my last piece, I learned and played Bohemian Rhapsody
it was quite great on piano
it is one of the more difficult pieces to play too lol
its my favorite piece I've played
the song itself is beautiful say what you will about most of queens songs but I truly believe that song is beautiful
to think that was where I stopped too
I quit piano after playing it
why?
oh also Fur Elise is one of my favorites from Beethoven
I hated it, but I was talented
the ultimate dilemma. I felt like I wasn't doing it for fun anymore
interesting
you could always just switch to a new instrument 🙂
should give the violin a try 😉
I do love the piano I love how it sounds the pieces I played, I think I just need to stop doing it for my parents and instead do it for myself
I like to do everything I do out of the spotlight of people. I think that is when my playing is most meaningful to me
just have to learn to stop worrying about the spotlight 🙂
that is the only thing that I still strugle with when it comes to my anxiety disorder.
don't worry I have to remind myself as well
ultimately, it just doesn't matter what others think especially if you were never seeking their approval or opinion to begin with
me and my older brother have danced around in a mall in pink tutu's
I don't really care what others think I just hate being observed by others
so don't observe them
fair point I suppose that'd be a best mindset
I feel like for most that is easier said than done :P luckily I've reached the point where I'm in more control than my Anxiety
Well you could always play the piano upside down and give them a reason to observe
I love Fur Elise too this piece is truly amazing I think its my all time most played piece
they would be in awe that you are upside down, playing a piano and that just isn't normal
xD
I wonder if I can find a nice flac file for these pieces
the compression of spotify kills the beauty of it
I have premium so I don't have that issue
compared to hearing it when I played on a grand piano in person
same here, but it still isn't quite there
which piano you play on?
I have an electric at home, but I preformed always on a grand piano
I don't know what brand it was though
well there is different kinds of grand piano's
and they all require different ways to play and sound different
some are more forgiving while others are not lol
it was like this
ah the common one that can be found in places like a church
Steinway & Sons
mostly yes
why
its different and has a unique sound and something tells me it would be a good fit for you
I could be wrong, but still be a nice experience all the same
ahhh hopefully one day
it also has an additional half or full octave of keys too
buts only on the lower side that it does
I remember the first time I heard the song I was listening to right now I legit cried I thought it was so beautiful
lol
its wonderful when a musical piece speaks to you
the music itself is from an anime, but the music itself is so great. Its wonderfully composed
and the piano sounds beautiful
Bösendorfer - der Klang, der berührt
The Bösendorfer piano company in Vienna, Austria, is exemplary of the art of Viennese piano making and sound culture traditions. Since 1828, Bösendorfer has produced grand and upright pianos with the unique Bösendorfer sound for concert stages, educational institutions, pianists and music lovers worldwide.
...
ohhhh that sounds great
it is not as forgiving as a steinway in that if you miss a key or hit the wrong note it will most definitely be heard
on a steinway you can get away at times of hitting a wrong note and it not be heard or noticed lol
I notice even on steinway but maybe thats because I play xD
Most likely lol, but I do love the sound of a bosendorfer
indeed it is
heyo
alright my custom models plugin is working, integration with elitemobs is working
I just need to tweak a thing about folder hierarchy and how it relates to model ids and then I'm ready for the release
public Set<Chunk> getAllIntersectingChunks() {
final Set<Chunk> chunks = new HashSet<>();
final World world = worldOrThrow();
final Iterator<BlockVector> iterator = iterator();
BlockVector next;
while (iterator.hasNext()) {
next = iterator.next();
chunks.add(world.getChunkAt(next.getBlockX() >> 4, next.getBlockZ() >> 4));
}
return chunks;
}
``` is there really any better way to do this
I'm pretty sure I just have to do an O(n) loop
wait I can ignore Y values
so this can be slightly optimized
public Set<Chunk> getAllIntersectingChunks() {
final Set<Chunk> chunks = new HashSet<>();
final World world = worldOrThrow();
for (int x = (int) minX; x < (int) maxX; x++) {
for (int z = (int) minZ; z < (int) maxZ; z++) {
chunks.add(world.getChunkAt(x, z));
}
}
return chunks;
}```
Now I wonder if there is a better way to do this
wait I can get the four corners than just loop through and add the chunks between them
I keep answering my own question lmao
final Set<Chunk> chunks = new HashSet<>();
final World world = worldOrThrow();
final int minChunkX = ((int) minX) >> 4;
final int minChunkZ = ((int) minZ) >> 4;
final int maxChunkX = ((int) maxX) >> 4;
final int maxChunkZ = ((int) maxZ) >> 4;
for (int chunkX = minChunkX; chunkX < maxChunkX; chunkX++) {
for (int chunkZ = minChunkZ; chunkZ < maxChunkZ; chunkZ++) {
chunks.add(world.getChunkAt(chunkX, chunkZ));
}
}
return chunks;
``` ahh much better :P
does banPlayer also kick them if theyre online or do I need to do that myself?
it'll kick them
what is this purpose of this code?
/**
* Gets all intersecting chunks within this region
*
* @return the intersecting chunks of this region
*/
public Set<Chunk> getAllIntersectingChunks() {
final Set<Chunk> chunks = new HashSet<>();
final World world = worldOrThrow();
final int minChunkX = ((int) minX) >> 4;
final int minChunkZ = ((int) minZ) >> 4;
final int maxChunkX = ((int) maxX) >> 4;
final int maxChunkZ = ((int) maxZ) >> 4;
for (int chunkX = minChunkX; chunkX < maxChunkX; chunkX++) {
for (int chunkZ = minChunkZ; chunkZ < maxChunkZ; chunkZ++) {
chunks.add(world.getChunkAt(chunkX, chunkZ));
}
}
return chunks;
}```
feels good to work on something where I don't get stuck on a single feature for a week
Whats the method to unban a player? cant find it anywhere
declaration: package: org.bukkit, interface: BanList
alternatively
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/BanList.html#getBanEntry(T)
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/BanEntry.html#remove()
declaration: package: org.bukkit, interface: BanList
declaration: package: org.bukkit, interface: BanEntry
real quick does anyone know off the top of their heads what the highest value for the ids is for resource packs?
hm there's a precision loss above 16 million
that should give me some leeway lol
guess I'll start at 50k
How come its always not null? Wont it be null if the player does not exist?
This will return an object even if the player does not exist. To this method, all players will exist.```
who know what packet name use for block break sound ? in protocolLib
server-> player
Packetplayoutsound probably or smth
what?
I would like to copy a world named "gameworld" with the name "playing", including buildings and other data.
I would also appreciate if you could tell me how to delete the copied world.
Should I do pub in jedis asynchronously or not?
I'm not sure if there any point in this
whats the max amt of lines a scoreboard can have?
Hello,
I noticed "onPlayerMove" gets triggered before "onPlayerJoin" tasks are finished. How would I code a way to fix that?
kk
make a boolean to wait until the join tasks are finished
it’s 16 including the title!
Most of the times any database ops etc. should be handled off the main thread
@slim elbow
Alright, thanks
can someone help me make a simple sphere around a player of particles, i dont know the complex maths behind it
Google parametric equation of a sphere
why explode block drop 2 items I removed the block from the list
https://paste.md-5.net/huwebugize.cs
ok
here is a clearer version https://paste.md-5.net/ihajixider.cs
I was told to ping u for purple role
Where did ya get ur list
a
I am sorry for pinging again but can I get a simple example, I am not able to make use of that equation in my code
what do EntityChangeBlockEvent ? i dont undestand plugin detect player blockBreak or not when this event work
Called when any Entity changes a block and a more specific event is not available.
If a player breaks a block the EntityChangeBlockEvent is not fired.
if enderman do this event will detect?
example?
Can anyone help me generate a sphere of particles around player
Uh that's why Im asking someone to make a simple example so I can play around and learn with it
this exemple code - https://paste.md-5.net/xezaluqeba.cpp (chatGPT was generate it)
Thanks bro 🙏
thats not really a sphere. Yes it will spawn particles around the player, but in random positions
yes he was want exemple
it will be on the surface of a sphere, but random positions
ah ok
this is considered "bright red"
and this is just red
BlockFertilizeEvent need for wheat, carrots, potatoes, etc.?
do you have a example which will generate particles in a sphere around player?
use the example given
if you want a full sphere you would have to adjust it to place in a pattern instead of random
well yea i got that i need to change the math.random but i dont know that much math
https://paste.md-5.net/lokahepupi.cpp - maybe this? idk
yo thanks
oh no this
thanks
hello! i'm trying to create a plugin that uses javalin as an api. on local machine it works fine but on pterodactyl (docker) it says sh class org.eclipse.jetty.websocket.server.JettyWebSocketServletFactory can not implement org.eclipse.jetty.websocket.api.WebSocketPolicy, because it is not an interface (org.eclipse.jetty.websocket.api.WebSocketPolicy is in unnamed module of loader cpw.mod
hello there, im trying to make a plugin that menages the punishments of the staff, now i have 7 servers and i want to be able to target any player on the proxy(velocity)
all i need to know right now is how to get all of the players that are connected to the proxy, does someone know how to do it, or give me a direction?
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
the port is allowed and i tried setting it to primary too
Seems like jetty and javalin version mismatch
Are you shading jetty separatly?
Or some kind of version mismatch
shadowJar {
relocate 'io.javalin:javalin:5.6.3', 'shadow.io.javalin'
relocate 'org.slf4j:slf4j-simple:2.0.7', 'shadow.org.slf4j'
relocate 'com.fasterxml.jackson.core:jackson-databind:2.13.2', 'shadow.com.fasterxml.jackson.core'
}``` seems it isn't
what version should i shade?
Hi i was wondering if players can "change" the IP address recognized by bungeecord in player.getAddress().getAddress().getHostAddress()? like a kind of "IP Spoofing"
If a player can for example put anyone's IP
Not really afaik, they can use vpn tho
Ok so plugins like IP whitelists cannot be bypassed?
not unless u use a vpn ig
Ok thank !
does somebody know how i can open multiple windows of intellij with different plugins?
i misclicked and clicked on not ask again :(
i dont knwo how i can reverse the change
Idk guess u gotta find it in settings
Shift left click on the other project
thanks
To open a separate window
NMS """API"""
I want to forge and falsify all packets in the process of getting the UUID of the player. I am responsible for any conflicts between plugins that will occur on this. How can I handle this using NMS?
Inject a ChannelDuplexHandler in the player's netty pipeline @flint rune
or use packetevents/protocollib
how to do witeout nms?
you don't
using packetevents/protocollib
How can I handle this using NMS?
how to do without nms?
🤔
can i do this with only ProtocolLib?
yeah ithink
Change craftbukkit sourcecode🥱
you could probably do it with either of thethree, nms, packet events and protocol lib
i find the task with many times but i couldnt find it
Because no one does that
can i make it without change craftbukkit sourcecode and do only plugins?
No custom craftbukkit
in order to do it with nms you need to write an injector
paper luckily made this really easy to do, something i suggested to spigot years ago
but they didnt listen
so due to spigot we need to keep the over hundred line injector to listen to packets
paper its like a 5 liner injector
did you make a jira ticket about it
@rough drift since you mentioned injector
why
do you know how to do it?
Uuid handled by mojang api?
yes yes
is it difference in variable scope
i don’t remember but i remember bringing it up and they were against any assistance to using something thats not api
so 🤷♂️
makes sense for spigot
yeah, but people are gonna do it anyway and it fixes incompatibilities
what about it
maybe it from to api.mojang.com
do you want me to implement it or smt
there’s no point of paper’s improvements when i want my plugin to run on soigot too
have a paper and spigot release then
just thought what i said would be interesting to u
i want you to hear my wisdom
player.listenForPackets(packet -> {
});
Bros want to change uuid system
@rough drift that’s too much into the API
Bros have to modify api(s)
you'll probably need to fork Bukkit UUID is pretty deeply rooted
Paper has it similar to that
I mean packet would be just an interface
but its not part of a bukkit object