#help-development
1 messages Β· Page 120 of 1
stares in mirror
or well
I think they still keep object as the root ?
and then have sub classes for Q and L types ?
@EventHandler
public void onDeath(EntityDeathEvent event) {
if(event.getEntity() instanceof Player deceased) {
// Reset kills of deceased
}
Player killer = event.getEntity().getKiller();
if(killer == null) {
return;
}
// Killer killed a mob
}
Cries in java 1.8
jk
mukdukVictim
if there's one thing I'd like to see a bit more
just for fun
is people asking for help with very horrible variable names
ever decompiled a plugin and all variables were named in chinese?
Would be interesting to build a maven plugin which just puts your variable names through
google translate in 3 different languages and back.
ahhhh childhood memories
I'd like to update this plugin to <insert version here
budget: 5$
then you look, and it's nms with chinese naming
and comments that break google translate
average premium spigot plugin
PS: If you want a trivial approach then you can store the kills in the pdc of the player.
I personally would use the pdc only for persistence but you should be fine.
XD
I only use PDC when I don't feel like caching stuff
well idk what's wrong with my sonatype setup
was messing around with changing skins yesterday
I mean, especially player PDC is pretty damn cheap
used PDC to store the original player skin
some would say, not too far away from the hashmap solution
you skip the hashmap lookup for the uuid
it's fun because it says it works on the publish task, except it doesn't
pdc doesnt have a great performance.
I rather use an actual data structure and only persist the
data when the session is terminated.
where's the fun in that
has anyone actually ran benchmarks for a Map<UUID, Integer> vs a pre supplied PDC ?
one thing I gotta start doing less is abusing ConcurrentHashMap
Imagine not saving the data on another computer and then getting that data whenever itβs needed
your one map lookup is uuid vs the internal PDC data type lookup
average database moment
Do you have a "snapshot" in your name? Because then it wont be pushed to the releases repo iirc.
No no database
ah okay
and then the additional method call for "convert" a plain Integer to an Integer
just a very long sata cable
Just as a raw file
I am putting it on and off to test both
with snapshot on it it works just fine in uploading it to snapshots, without it it says it works but doesn't
and I am sending it to the right url as far as I can tell, I know there's two different ones
it is a profile setting for this as well as a configuration setting for the deploy plugin
yo magma when you streaming again btw?
lol
I might stream tomorrow
- 8 days ago
Depending on the implementation of the type this can be very slow. For integer probably not but for sure still more expensive than a map lookup.
look there's only so many times I can stream for 14h in a day before sort of not wanting to do that
and I probably shouldn't be streaming my sonatype access tokens anyway
Well yea obviously, if you have a complex type that needs complete conversion it takes time
but in the integer case
the hashmap approach should not be chosen based on performance
the diff is too small to care
especially on a death event
doesn't mean that it isn't better, as good as PDC here π
mfs obsessing over those extra 3 clock cycles yet they doing yml operations in the main thread π
could be mining crypto in those 3 clock cycles
yml operations on main thread isn't an issue so as long as the file remains in memory and isn't tossed away every time
Need those ShibaFroggyElonMoonCoins
big yml files take forever to load
had a yml databse with 250k entries
eh
only needs to be loaded once
shit took 5 minutes to load
I give up, people can just use the snapshots for now
so you should load them in the beginning anyways
But why though
people like pain
Hello guys I am going to start a smp what plugins do I really need I want a special smp
Let them eat cake
loaded within 1ms
sqlite is sobbing
do you really think I can make sql queries at 4am
Yes
I think I'm better writing regex than sql honestly
api is probably not fully stable anyway so it's not like it being a snapshot is bad
Any reason you dont just use JitPack?
for 250k entries
I only use regex like once a year
yeah, never heard of it
but it feels satisfying when the pattern works
what is the easiest way to make the targeted block a green block but when the block changes it becomes the block it was before so only the block that is looked on turns green
Slow
Ive never gotten jitpack to work
jitpack has started to suck, especially with its dumb caching when it fails on builds
Tho it does look good apart from that
huh?
Spares you all that devops nonsense. No Jenkins, Nexus etc headaches
eh it's already set up
Itβs pretty slow
if you really want jitpack to work, provide releases on your repo on github
it's fine I'm just moving on, I've been stuck on this stupid garbage for a week
this and automatically updating translation files
this way jitpack won't spend time compiling and just offers up the release you provided
it's been haunting my nightmares
In comparison to like central?
sometimes I wonder if mfs just being like "how do I make <insert commission they got hired for>"
Yeah
Ah this sounds like a fix to sources which use nms. Good to know.
Pretty much everyone
the spigot equivalent of asking stackoverflow to do your homework
can be yeah but usually if jitpack needs to compile first and this can cause the connection to fail if the build takes too long
Yes
you get the tageted block and it turns green thats easy but its just green as long a you look on it if it changes the block becomes normal again (the block it was before)
Fair
raytrace, send fake block
on raytrace block change, revert to original block by resending the original data
pretty sure I gave you code for that
at least I think it's different, idk I keep switching them
if it's a commission I'll only ask for like 95% royalties
did you send it for the td one?
do you know what i try to achieve?
ye
nah I don't do commissions
yeah same project then, using WE schematics to do fake block towers
me?
ye
I do this full time
didn't know that our country had tech jobs
and do you know how i can do this?
it'd be a massive spoon feed
so in theory yes
in practice, realistically, yes
when do fake blocks clear client-side, I assume that if a player's client stops rendering them (client view distance or world switch) it goes away, or is it more persistent than that?
but here right now, no
yeah it goes away
Just ray trace and send the player a fake block
just resend for new chunks
hm
so its hard to achieve?
onChunkLoad -> get blocks at chunk (my system caches it per chunk) -> send that
Keep sending until you donβt need em
yeah problem is these chunks don't unload
uhh
No
chunk packet send (to player)
do I just keep throwing these packets at my dudes until they're gone or smth?
do you know how i can do this?
also wouldn't sending packets on chunk load cause issues if the server view distance is 10 but the player view distance is like 2?
Not gonna spoon feed
If you keep track of the block then you can check each tick and see if the block changed since last tick
?jd-s
problem isn't the block changing on my end, I just want to make sure players with 2 view distance don't suddenly wonder where everything went every time they move around
yes exactly but how?
XD sorry
They told you how
you can cache the packets
only for new chunks within the view distance
Look at the docs for more information
pretty sure you get view distance info
Use a map for example
if i dont know what im looking for its hard
ok
They told you
who?
mans confused
Ray trace the blocks and then send a packet to the client
but there are no new chunks... ah whatever I'll just start with spamming packets and go from there
Thatβs how they learn to navigate the docs etc
Developing isnβt about writing code but solving problems
If you canβt even do that itβs not for you
so true
How to make a custom sheep? With its own name that displays over its head, health, etc.
@ebon ether where are my homing arrows
Like how do I manipulate entities
entity.setWhatever
public void onShoot(EntityShootBowEvent event) {
Player player = (Player) event.getEntity();
if (event.getEntity() instanceof Player) {
if (event.getProjectile() instanceof Arrow) {
Arrow arrow = (Arrow) event.getProjectile();
if (event.getProjectile() instanceof Arrow) {
BlockIterator i = new BlockIterator(player, 200);
Location l = player.getEyeLocation();
while(i.hasNext()) {
l = i.next().getLocation();
for (Entity w : l.getChunk().getEntities()) {
if (w.getLocation().equals(l)) {
}
}
}
}
}
}``` this is as far as i got
Sheep s = Bukkit.getWorld("world").spawnEntity(...);
OH HELL NAW
s.setWhatever();
go further
test lol
and u got me fucked up if im loading up mc on this laptop
that code is curvier than me like wtf man
ya its discord not me
hm yes indentation
I often encounter code like this: if (rowCount > rowIdx) { if (drc[rowIdx].Table.Columns.Contains("avalId")) { do { if (Attributes[attrVal.AttributeClassId] == null) { // do stuff } else { if (!(Attributes[attrVal.AttributeClassId] is Array...
how do I create the constructor for that shit tho
or wtv its called
oh
sheep is an import
nvm bro
public void onShoot(EntityShootBowEvent event) {
if (!(event.getEntity() instanceof Player player)) return;
Arrow arrow = (Arrow) event.getProjectile();
Location eye = player.getEyeLocation();
}
HOW
wow
still yucky
What?
Cringe
if (args.length == 2) {
if (args[0].equalsIgnoreCase("start")) {
Bukkit.broadcastMessage(ChatColor.GREEN + "Kill the Sheep has started!");
Sheep s = Bukkit.getWorld("world").spawn(Bukkit.getWorld("world").getSpawnLocation(), Sheep.class);
s.setCustomName(ChatColor.RED + "Kill me!");
s.setCustomNameVisible(true);
heres my sheep mf
You spawn the sheep on the spawn location of the world
π
no. -1 health = dead
π
ok
ill j spam 9's
that works to
oh
or
I can cancel the event
when they hit my sheep
that works
ill do that cause thne it wont take knockback
got it
public class SpawnSheepCommand implements SimpleCommand {
private static final Location SPAWN_LOC = new Location(Bukkit.getWorld("spawn"), 0, 128, 0);
@Override
public String getIdentifier() {
return "whatever.start.*.*";
}
@Override
public void onCommand(CommandSender sender, String[] args) {
String arg1 = args[0];
String arg2 = args[1];
// idk what to do with the args
World world = SPAWN_LOC.getWorld();
Sheep sheep = world.spawn(SPAWN_LOC, Sheep.class);
sheep.setCustomName("I am a sheep!");
sheep.setCustomNameVisible(true);
}
}
idk
no need to nest
so basically your saying its right, but like make it more organized?
yeh
ok
This static looks problematic
could be yeah
if I init the command before the world loads
just pass it to the constructor
this is just an example, I'm not gonna init a new location every time
could make a singleton type deal
that runs whenever the command runs
bit better
intentation
flat code
your eyes go up&down when reading code
I also like adding a ton of empty lines
makes it a bit more readable imo
I even do it when writing essays n stuff
Please use longer names for variables, one letter names are so misleading
Anyone?
I made an alternative to changing the block.
It uses invisible shulker packets with a glow effect.
oh thats a very cool idea thx so you just spawn a shulker at the block that is invisible and it has a glow effect right?
Well i dont actually spawn it. I just let the player think that the server spawned it.
hallucination
drugs
ok and how do i spawn packets? can you send me the docs link?
then i find it out myself
?howtopostathread
but how do i get there
That is all that they get
Im on goggel. How do i get to your minecraft so i can post? Please heelp
I made essentials in skript and want post
To be honest I very much expect such responses considering that at some point I blocked them
Hi, I'm trying to make a plugin that would spawn a villager, add it to a colored team, and then show the number of villagers in that team. So far I have a ready scoreboard (https://pastebin.com/NCSSkLzC) and now I'm thinking about how to spawn the villagers. I know that it can be done using spawnEntity, but I don't know how to put the entity in the team. Does anyone have any ideas?
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
lol u dumb af, its googgel not goggel
leave a like if i could help you
hi, im trying to do something like a kit that every time you get 5 kills your things get upgraded, but I dont know how to know if a player gets 5 kills more. anybody has an idea
Didnt we spoonfeed you half of that recently?
This in combination with pdc
?pdc
store the killcount in a map and check on increase if count%5=0
This reminds me of this one guy on the forums adding this "Please leave a like if I could help you" to every single one of his posts, which were just copied from some good answer before him lmao
hmm
hmm
ofc i forgot how all of my stuff works lol
._.
Imagine writing code to be "useful" and then forgetting how to use it... couldn't be me
hmm fun syntax too
i'd rate all their posts "funny"
wondering if node.token will be takes first and then node = node.next will be executed π
I got more likes from reviewing a time tracker, than my packet tutorials
it would set "node" to the next value, then get the token from that
it's the same as node = node.next; node.token
ah
I don't know how else you'd see it
why does all this code hates me
i invented some weird algorithm and ofc i forgot it
I used to be better at math when I was a kid honestly
was able to do decimal exponents out of my head on like 8th grade
now I need a calculator to do 100-5
Why can't I add effect bad omen with p.addPotionEffect(PotionType.BAD_OMEN) ?
because a PotionType is not a PotionEffect
Needs a strength and duration
a PotionEffect is a PotionType + duration + amplifier + more (optional)
oh thx
because your damn ide will screw at you lol?
declaration: package: org.bukkit.potion, class: PotionEffect
do people even read ide warnings
not ususlly
I mostly learned java just from the IDE yellin at me
sure I had some basic C# experience from when I was like 6
but the IDE is a great teacher and is generally better than you
ah yes, bots for flash games
yessir
I had soooo much money in club pengiun
played a sandbox game that was basically a 2d canvas where you placed blocks n shit
i dont know any of that stuff
club penguin was awesome
but it's hard to explain what it was
my igloo looked something like this lol
damn
we should make club penguin in minecraft
what if I made a flash renderer with my imageboard system
I can render like 20fps smooth
that's about as much as flash did
hey why spigot removed my resources?
from what a reason
i dont even get notified about it
where can i see a reason for removing my resources on spigot?
I still really want to conjure up some sort of primitive client-sided entity API
You usually get an alert. If you didn't, possible that you either missed it, or one wasn't sent by mistake
I'll check
is that club penguin?... was
i love friendly bytebufs
ok nvm my clientside entity api is purely protocollib-based lmao
You should have been notified. Excessive obfuscation. On two small free plugins? Come on man lol
oh man do you want to see my git resp?
You mean to tell me it's open source but you still obfuscated it? lol

choco if you really want to
i dont see any problem this is deobsf
and this is something I might regret later
we could maybe work together on a clientside entity api
and you clearly can see its not an harmful code
clientside entities are something I've done countless times
I downloaded the latest version
yet still keep writing from scratch
pls don't pull a half packet API into the api 
hardcode protocollib into spigot
clientside entities are so much better done by a library out there
sendBlockChange() goes brrr
that one already goes brrr
sendChunkChange is in PR stages so
sendBlockChange, hidePlayer, hideEntity
still gotta work on an official API for making fake blocks persist
That's the point of Bukkit. To abstract away packets. If you can send a client-sided entity via API, you should be able to do that
We want you to use API every step of the way wherever possible
On... the client...?
pasting it with bukkit and rendering is so slow
A client side entity would need a basically entirely new entity API, none of the existing classes are remotely close to support "virtual entities"
Why obfuscate your free plugins? There is probably nothing in there
that people didnt do already a hundred times.
Why not? Entity covers pretty much everything
pretty sure the current map api just sets each pixel manually
you know it was a plugin that was required by a person
and I literally mean calls setPixel(x, y, color) manually for each pixel
and this is what he asked for
and recalculates cursors for each pixel
entity expects to be in the world. Which would not be the case
it's god awful
Sounds like you have a PR to do Illusion 
half of its methods depend on the fact that it is linked to a world. What does getLocation do ? How is its state tracked
Whether or not you uploaded it to their specification isn't relevant π Their specification is against our rules on obfuscation
its grounded nowhere outside of the client
sec ill take alook into the rules
That's not necessarily true
do I really want to convert all of this to spigot
In NMS, Entity instances can exist without being in the world
yes
They have to be explicitly added via world#addEntity() (or whatever it's called)
in NMS yes.
My guy
crashing decompilers is against the rules I think
But does Bukkit have a differentiation for that?
Read it
You read it
Like, wtf is Entity#setVelocity gonna do on a client side entity ?
bukkit entities exist in the world iirc
I'm a moderator of like 3 years. And was a resource staff member for a year. I'm familiar with the rules
Yea but "very primitive" feels like "just leave to the community"
and there no string obfuscation
just enough to spawn entities and maybe make em look places
same with like permission implementation
client sided entities aren't meant to persist or be ticked by the server
just ease of use for the api
Yea but that is not defined in the API contract of existing entities
Allatori is allowed, but crashing decompilers is not
mine doesnt crash
if you get a Zombie instance from spawning a client side entity
My decompiler works just fine
who says we need to use the existing api
we can make a FakeEntity interface with half the methods

if your decompiler is setup not correctly
It actually says "You may not use string encryption on free resources"
mirroring API sounds great
yessir
I see string encryption
Just dont obfuscate your code. Its useless and there is nothing worth obfuscating.
?paste
evan your code probably isn't even that good to be worth safekeeping
realistically, spigot at one point just has to make a clear diff between a spawned and not spawned entity
arent included in demo version
after that "split" exists
he just tries to proof he is correct
when the mod is wrong
and they took down my Art for no reason
you could easily create a not spawned entity as a client side entity
Art
Dude I'm so ready to kick you'
Remove or loosen your obfuscation
It's not coming back otherwise
obfuscation most often only makes code slower
denuvo games that got cracked got much better performance after the crack

Is there any benefit to using a stream instead looping through a list to get a sum of all values.
ill go to the other markets
your plugin isn't the newest call of duty title, obfuscating a free plugin only brings crappy performance and nothing else
Have fun on BBB
streams slower
Have fun on MCBBS
what is mcbbs?
For something trivial like that, you're better off just using a for loop
i wanted to say smth but i will not kekw
ill go backwards to bukkit
yOu sHouLd cHeCk oUt hAnGaR fOr yOuR oBfuScaTed pLugIn 
Hey, I saw this very interesting plugin and I'd like to ask if I can re-upload it to MC-BBS (https://www.mc-bbs.net/), I'll give all credit to you, as the original author.
Thank you!
I'm just wondering in general. Besides sorting filtering etc is there any benefit as well?
readability
The Mod is always correct. Rules say so.
I mean depends
No real benefit. Use whatever is cleaner to read.
Streams have a little bit more overhead.
not on that level no
mister choco is considered a meme on this community but mans still got common sense
his obstufactor
his outdated
why do he even go against it its demo version

Streams are very, very useful. Though you should be using them situationally. For something extremely basic like this, you're going to benefit more from not having the overhead of a Stream instance
doesnt have string methods
Imagine obsf anyways
Arguing with the staff regardless isn't going to do much and is against the rules to do. Its either you play ball or not at all.
kinda cringe to obf smh
I think I've only used streams on a context where it's actually better to do so, once.
haters reported my shit
mans obfuscating his own code to hide how awfully it's written
Now that's a smart move
I've rebuilt obfuscated world generators, even updated the nms
I would do the same ngl
took me like 4 hours for a huge project
Anyone is free to report resources free or otherwise. We do have some people that review basically all the resources that get submitted for nefarious things. But you can choose its because people hate it or something lol
Yeah, I get if you obf shit like minecrafts src
But plugins
should I make clash of clans with imageboards
it was up for few months
It's not that hard to reverse engineer it
I'm actually considering it
so thats kinda bullshit
Just takes time
it isn't but like, I want proper variable namings in methods
and I don't wanna use loom parameter names
paperweight gives mostly nice names
You don't like p_w143 etc?
perfection
its also not the only resource on the site either, takes time for people to eventually review your stuff π
Without mappings thats what the src is :/
no one really checks them

i can find you few year old plugins that are obsfacted
It's not hard to understand the variables
But it's a headache
nah its not choco
I know 2 people who definitely do spend their time checking resources
i bet frostalf
I do that shit sometimes
It's funny seeing a minigame plugin with 5k lines on the main class
kinda messed up donated spigot any money at all
all staff are volunteers
why use an obfuscator to make decompiled code unreadable when you can just use kotlin
salary is the tears of people that obfuscate
I give a 4/5 for code quality and they start flaming me on my profile
Do people still have licenses for premium plugin
Why use a obfuscator when you can just make ur code shit
Java was never designed to protect code
Hence why it's easy to reverse engineer it
why crash decompilers when you can crash people's minds
kotlin is reveresable
lol
originally Java was marketed to the Enterprises where stealing comes with steeper penalties then it does for an individual and easier to check/verify of such things π
Dude you're dying on a hill that doesn't make any sense. You've obfuscated a free plugin that would have ended up being 7kb. Relax.
why people would decomplie my plugin in first place
is there a cafebabe command to list all embeds here?
Mostly just premium plugins
pull a Rollercoaster Tycoon move and write 99% of the code in assembly
To crack them
the resources i made was for the community that were suggest by people
To ensure maybe it doesn't do anything malicious since free plugins sometimes are malicious
in the community
good thing too because i wouldβve gone insane looking up documentation for everything instead of just ctrl+click
Fuck it i'm rewriting a minecraft server in c++
Just write native methods and provide dlls written in C
XD
I don't need to look at it. I am giving you appropriate valid answers to what you are complaining about or questioning
is there a cafebabe command to list all embeds here?
keep dreaming of begin a part of the staff here
you will volounteer as well
π
I already had my fame with being a Bukkit Dev Staff member π
go try hard here
ok so is everything if you try hard enough
too young for that :(
π
Btw discord helper when? 
reverse my sha512 hash
applications open for it again?
been waiting to at least apply for that XD
alr iβll get back to you in a couple trillion years
conclure shall remain best discord helper
you behave lkie a rat if you become a hero here this place will get on on fire
for real
7slime7 is the real hero
He's a swede so no
will you
They where only open once when they where introduced. And that was during my exams.
sounds like a norway based opinion
7smile and frostalf for discord helper or we riot 
I'm swedish myself
Shit country π€·ββοΈ
xD
I suppose it is fortunate that it isn't your decision on who is or is not staff π
Im a finn and can confirm
Finns are much worse
LOL
Especially when it comes to csgo
Much better
Ya'll are just a worse version of sweden
what is a finn?
And then i can let my neck beard come in. Ill just tell my gf that im a discord mod now and
that it gives me extra power.
Look at the ikea kΓΆttbuller talking
Ah ok that makes sense, wasn't thinking of that lol
You also have to gain 150lb
Minimum
and have discord kittens
It's a proven fact that you need to have them
Absolutely
ironically, there is something with people being mods on things internet wise and all the guys just having beards XD
Ah yes. And my little pony or some cringe anime pfp
Don't forget about your bio
it is a weird coincidence
I've had a beard since I was 15
That's the discord mod beard
some people are lucky to start early
Yeah
I've always been able to buy tobacco and alcohol products
Same hahah
now you are not counting as having a beard when its like strands of hair right?
No, a full grown one.
cashiers look at me weird when I pull the paypal card out of my wallet
ok, I had a friend who had a full grown one at that age
I would do the same lol
I can't grow any hair on my chest though
hit the gym > beard growth goes boom
when I was a cashier, I don't care how people pay as long as the system accepts it
Incorrect
only gains I got from the gym, were stretch marks
you really don't want hair there though
I know
as a man? wtf
My dad looks like he is 50 and 30 at the same time because of it
While some people can look good with hair there, that isn't why I said you don't want hair there
shouldn't just be some forrest imo
removing it entirely always irritates my skin like hell
the reason to not have hair on your chest is because for one it will make you sweat more and second because it makes you sweat more it means you will stink more easily
I had to id everyone even if they looked like 50
That's signs of growth though
Doesn't make you sweat more, however it sticks more.
fast growth*
while that is true, it means too rapid of growth
which is not good
^
Could be good
been to the gym a couple years and I barely have any besides gaining like 20kg
My whole back is full of stretch marks since I grew from 5'7 to 6'3 in a summer
They aren't that visible anymore though
the more hair you have (technically the longer the hair you have really since you have invisible hair everywhere), it becomes easier to sweat because that hair traps in heat.
You can only see em if you try
hair also absorbs liquids therefore it will make you stink more easily.
shower once a day
only if you been sweating, otherwise every other day. Showering too much when it isn't needed is actually harmful
No
Using soap is
not sure I know anyone who showers without soap
Shower gel etc
mostly when having sweat like hell I just do a short cold shower without soap and stuff
Don't talk to me about no sweat
A ice cold shower is the best thing in the morning
I kinda stopped using that stuff full of chemicals n shit
hot shower yes
No
π
I've tried clinical deodorants n shit
i like hot showers even in damn summer
nothing worky on me
doing it too much can dry ur skin like hell
π
technically supposed to do cold or moderately warm water when showering after sweating. This prevents the oil and dirt from getting in the pores since cold water makes your pores close. If you do use hot water, you should rinse off before getting out with cold water.(doesn't need to be super cold)
yea makes sense
Since most people don't do that, this is why some people break out more with acne from taking a shower
Better than being sweatman
dirtman
I got a disorder, makes me sweat 24/7
sweatman hehehe
you should then apply to be a test person for deodorant
paid 10$ for some tiny ass roll-on deodorant that makes my hands hella chalky for 5 minutes
we don't even have tech jobs here, much less R&D
there's one where you can't sweat iirc which can be quite dangerous as the body can't regulate its temperature properly
they pay good money for people to try on deodorant and let someone smell them
hmm smelling sweaty people
dream job
best job ever
My special needs brother has this. And you are absolutely correct
I got paid to do medical drugs
the 2 extremes
in my case, childhood was traumatic as people hated socially interacting with mister sweatyhands
oh damn :(
on the other extreme, mf is so hot he can't even cool down
I once got paid to try mdma at a medical research
its actually not too bad though. He can be outside and what not, but if we are sweating then that means he is hot and needs to be somewhere where it is cooler
but like, he isn't going to over heat immediately though
Worst hungover ever
ahh okay, does he start to feel sick when it gets too hot, or what kind of symptoms whould he get?
just a note on the regulating body temperature thing, while although most people notice or are more aware about the part of over heating. The other side effect that comes with it, is they can't properly heat themselves either.
so, just because he can't stay cool on his own, doesn't mean he can also stay warm lol
his skins starts the get real flush and he starts to get cranky more or fusses more
So winter isn't like better than summer for them
I can't tell if the worst part of constantly sweating is winters
ever had to sanitize your hands in the cold ass winter?
yeah it's like that but always
nope, because they typically can't keep themselves warm either if they can't keep themselves cool, its not like a one or the other thing with that condition like most people think.
so its common, while he is indoors, that he has a blanket on too lol
otherwise his arms and legs get too cold XD
lol :c
it is actually an odd thing to think about, that you can actually get hypothermia in the summer time
Doesn't modern medicine offer something to help with that?
nope, because that condition stems from the cerebrum
which isn't really an area that doctors can control or really do anything with lol
damn
he also has cerebral palsy
neuralink
well he has a list of other things too but like its too much to type here lol
he gets 6 different kinds of seizures, has optic dysplasia etc
geez
Considering myself lucky only having a house dust allergy at that point
considering myself lucky for having no allergies
everyone is allergic to dust
it is just a matter of being more sensitive to it or not
Sadly I'm sensitive af to it
For example, I am more sensitive to mosquito bites. I could say I am allergic but everyone is lol. If I scratch the bites, that small bump becomes the size of a baseball XD
at some point it was so bad that I woke up with sratched up arms and stuff
heck
ah, so you break out in hives then
Hi im trying to make a zombie with Redstone particle with color and im using a method for convert image to particle vector https://sourceb.in/EYvvDxdKBf but the image doesn't show on the Zombie
bro where i am now
no problem
that was some years ago, currently only thing noticeable is a stuffy nose, which is a HUGE improvement, I can live with that
take Benadryl then when you come into contact with some dust
just because your don't break out in hives, doesn't mean your body still doesn't release the chemicals that causes hives
just means your skin became used to it
Benadryl generally helps with such things though
yes I bet, should test for it again soon, my last test at how sensitive I am to it was like ~ 2 years ago
the scala went from 0 - 100 iirc and it just said "> 100" lmao
lol
the previous test was at around 80
What does particles.getParticles() do
gonna have a look at that
well at least it gave a number instead of like, well its too high for our scale to measure
ikr
Yeah and you shouldn't need to take a whole lot of it either if you do try it
it got noticeably better when I got one of those Dyson air cleaners too tbh
if you are going to use the liquid, shouldn't need anymore then 5-10ml's
if going for the tablets, then 1-2 tablets. Regardless of which, both take approximately 30 minutes to work
alright
Well for most people that have issues with dust, generally changing the air filter to a stronger filter is usually all that is needed as well as changing it more frequently
No im stupid and i didnβt put a line to convert the image to particle size
Ah lol
Most people that I know of, forget they even have air filters for their HVAC
should I post an imageboard api on spigot π€
yeah, the app always tells me when I should get a new one, cool thing ngl, eventhough it's kinda expensive
No!
wouldn't help me, I am one of those people that would still check it routinely even if I didn't need to XD
but it could also just be because I have been taking care of my special needs brother for so long lmao
oh ok im keeping it then
Send it to me though
hm yea could be haha
oh btw, most cars have a cabin filter too. You can get a filter that is just as strong as the one in house for your vehicle if it has a cabin filter π
nah
π¦
how can i stop a shulker from teleporting when he gets damage
declaration: package: org.bukkit.event.entity, class: EntityTeleportEvent
oh lol gotta check that
thx π
There should be a command that tells people to always:
- Check the Javadocs
- Google your problem
- Ask about your problem here
this
can I use team.addEntry to add mob to team?
Yeah
I donβt mind people asking but if your problem can be solved by looking at the docs or googling then itβs eh
Entry is a String, so you can literally put whatever you want in it
Is there a way to "lower" my plugin's command priority? There's another plugin having the same command and in that case I want the users to be able to use that other plugin's command before mine. For mine they'd need to do /<plugin name>:<command>
ok I will try it. And one more question. How can I display how many members are in team. Can I do it using:
public void getTeamMembers(Player player) {
blue.getEntries().size();
player.sendMessage(blue.getEntries().getSize);
}
and somehow make it string?
I think you can't register two same commands name. I'd recommend using the chat event or command event to do so
How can I disable slf4j-log4j12 logs?
Team#getEntries return the list of all entries. Then you just need to put the List#size int in a variable
To convert to string: String.valueOf
Why would you disable it?
It makes a lot of spam
how can I hide a entity completely without the particles?
Can you paste the spam it create ?
Player#hideEntity
wdym? is it an event? @agile anvil
Can I dm send a print?
?paste here
No ??@ it's a method in the Player class
Ctrl Maj C
Or just dm me a screenshot
My bad
oh sorry ok and can i do this to any entity?
Well if you don't want Player a to see Entity e, just a.hideEntity(pluginInstance, e)
so for all players, just loop over players
ok
I did, did you see?
Are you running spigot ?
yes
select anything you want and right click
what console lol
Why is the Shulker not glowing in game?
you could put your command registration into a task that runs at a later time when your plugin loads. Nothing says commands have to be registered immediately.
You should have activated a debug mode somewhere, or a plugin is doing it
dont you have to set it before spawning it? Or maybe there is an "update" funktion, idk
You sure it isn't? π
it is not
this plugin slf4j-log4j12
Sure the latest compiled version of your plugin is running?
yes
And the shulker spawns, right?
are you using /reload ?
JDA needs this plugin to work
slf4j-log4j12
after that this is comming
it teleports the shulker where the player is looking
so to the target block
its a runtasktimer
?
Does everything else work?
Does changing its display name work?
it looks like this
are you programming a plugin using JDA ?
Does it work with another entity type?
try to throw a glowing potion on it and tell us if it glows up
ok
Yes
?paste your code where you use JDA
is there a way to retrieve minecraft's default potion names?
getVanillaPotionName(PotionType.NIGHT_VISION) => returns "Potion of Night Vision"
Unfortunately there isn't
I dont find where a glowing potion is in creative
XDD
Just like for materials
Get the name of the enum, add first "Potion of ", and then remove the "_" and put lower case
not perfect for instant health tho
Otherwise, create a handmade map
that's what i'll do if i can't find an alternative ye
then, is there a way to override a potions DEFAULT effect?
for eg if i create a potion with the potionData of a night vision potions, it will always have the default 3:00 effect
(for thoses wondering, i'm trying to balance out potions so i need to be able to recreate them almost exactly)
would loading my plugin before that other plugin make the other plugin's command "override" priority?
so that mine becomes lower priority -> I'd have to use /<plugin name>:<command> ?
if your plugin loaded after. but really its about whichever registers the command first
what i'll do is make the lowercase thing and have a switch case for the exceptions beforehand
like awkward potion, instant health etc
good luck
not too bad actually
I'll try with delaying the command registration a bit if plugin XY is instealled too
Paste use for sending the issue ?paste
?paste
ye sorry
?stacktrace
there should be a command like that linking to some thread explaining on how to read stacktraces
Do you have domain ezperienc?
stacktrace: https://paste.md-5.net/enoyawegif.bash
at java.util.Objects.requireNonNull(Objects.java:208) ~[?:?]
at java.util.ImmutableCollections$List12.<init>(ImmutableCollections.java:564) ~[?:?]
at java.util.List.of(List.java:829) ~[?:?]
at me.tomkodev.nightwatch.gameplay.NWGame.<clinit>(NWGame.java:374) ~[NightWatch-1.0-shaded.jar:?]
at me.tomkodev.nightwatch.worldgen.WorldPreper.setupGame(WorldPreper.java:111) ~[NightWatch-1.0-shaded.jar:?]
at me.tomkodev.nightwatch.worldgen.WorldPreper.setupWorld(WorldPreper.java:100) ~[NightWatch-1.0-shaded.jar:?]
at me.tomkodev.nightwatch.worldgen.WorldPreper.prepareNewGame(WorldPreper.java:58) ~[NightWatch-1.0-shaded.jar:?]
at me.tomkodev.nightwatch.commands.JoinGame.onCommand(JoinGame.java:37) ~[NightWatch-1.0-shaded.jar:?]```
Let me look for you a link to learn how to read errors
well it just says mine arraylist is null
even tho I haven't touched it yet and just created constructor
ik how to read errors
just it points to places, where I didn't even use that List yet
where do you initialize that list?
JoinGame line 37
in my Main class NightWatch
can you show the snippet of that?
yee I was there few times
its just not active at all
Also please static getters π€’
what does prepareNewGame() do?
I would straightlly recommend learning and using DI. Dependency injection
^
run thru few voids
it all worked perfectly fine until yesterday, when all of sudden everything stopped working
?di
Guide to dependency injection: https://www.spigotmc.org/wiki/using-dependency-injection/
well you'd have to change something for it to not work anymore
Why is it bad to use getInstance?
don't think code decides on its own "aight, i don't get paid enough"
Class that extends JavaPlugin is singleton anyway
ended up rather simple :
public static String getVanillaPotionName(PotionType potionType) {
switch (potionType) {
case WATER: return "Water Bottle";
case MUNDANE: return "Mundane Potion";
case THICK: return "Thick Potion";
case AWKWARD: return "Awkward Potion";
case INSTANT_HEAL: return "Potion of Instant Health";
case JUMP: return "Potion of Leaping";
case REGEN: return "Potion of Regeneration";
case TURTLE_MASTER: return "Potion of the Turtle Master";
default:
break;
}
String name = "Potion of ";
for(String word : potionType.toString().toLowerCase().split("_")) name += word.replaceFirst(word.toCharArray()[0] + "", (word.toCharArray()[0] + "").toUpperCase());
return name;
}
well yesterday it was screaming for me, for not having initialized my main class
so I tried fixing it
You cannot compare spigot plugins with looking more like a profesional developer
What
There is nothing bad with using singleton pattern imo, I would like to hear your reasoning
how can i set the color of a glow?
Most likely the reload command - idk to be honest
I mean I havent seen profesional java devs using Singleton. Singleton its mostly used and recommend for libraries
Doubt that
Its something that people tells you but we dont really know why
But it isn't often that it makes sense to use singleton
Also there is JavaPlugin method for getting instance of main class
More respecto please im being polite with you
Sorry if that sounded rude lol
Though that one is classloader-bound
Singleton patterns are something learnt to devs and have nothing to worry while you'd need only one instance
Which I mean either way it will be
there is really no problem with it
Especially for libraries I'd argue that singletons make no sense
People usually tell people to use di because they abuse of static methods, but it's something very different
I mean I dont like static getters I think they cost more resources than just passing an instance thru a constructor
It is actually less I believe
And rolyn you are total ly right
Rolyn I was going to dm you but i think you blocked me
π
either teams or packets
not sure if theres another way than theses two
believe it or not invokestatic + getstatic is less resource intensive than getfield I believe
no way ππ
Nothing is bad done correctly π
(especially since the invokestatic is not present after JIT)
ok