#help-development
1 messages · Page 1122 of 1
yea completablefuture is good for that if im not mistaken?
im not sure, idk how to use completable future
but that wouldnt really help make the code look any better
like adding completable future is just gonna add more code that makes it look complicated
i guess i will just stick with the warning
i see
??
insane
what
logic
Well, imo the completablefuture would be more suitable because in case it's chaining calls with one another
i dont think it would make it more complex
its chaining because its in a loop yeah
also CF just looks like a fancy supplier of sorts
if you have a bit of time, could you write up a quick example of how this code could be written more clearly with CF?
Actually, reading more into the context, I don't think CF would help this unless is it some sorta api?
that users want to do something before or after
Ah I see that makes more sense
Sry mb then that's fine
but CF is very useful in general
so when i first saw that i was a bit confused lmao
and even if it was in an api, how would it help
provide users with a way to chain calls after its completion
like the calls are sync and instant, because its dealing with a known byte array at runtime
.supplyAsync, .runAsync, .supply, .run, .handle
you can just ignore the warning
add a comment explaining why
// Empty body, just need to exhaust this
I wish there was a way to just add some sort of code so that IJ will ignore the warning
you can
like an annotation or whatever
@SupressWarnings
oh
lmao
and I assume that has arguments for the warning type?
Yeah
//noinspection
i think the annotation has more support accross different IDE's tho
not sure
but noinspection can mark more stuff
me when leaving the warning in is cmopletely fine
alr I cant really find the inspection I need so im just gonna leave it like this
thanks for answering 😄
hey so im trying to look for somewhere i can speak to more experienced spigot devs than me, I've run into an issue and im seeking help but honestly not really sure where to go, google hasnt helped a lot lol
If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!
very glad to know that! lol i was getting kinda lost thank you
so not very sure how to explain this im pretty new to java, but using persistent data containers im trying to save an int value to an item which is just pretty much cooldown, issue is that everytime the item updates the cooldown it animates it in the view model as if I switched it out for a new item, and I want to know how or if I can stop that animation from playing, it doesnt really effect how the item is used but is very distracting
instead of storing an int and counting down, store a Long which holds teh time the cooldown expires.
any change you make to teh PDC will cause an item update, which will cause it to animate as if you switched weapon
so long as you are just reading the long it will not alter anythign, so no animation
i had a feeling it would be something simple lol, when i get stuck like this creative solutions like that always seem to be the best, when i get to coding later on today ill see if i can code it on my own, thank you though this is very helpful!
you have a pom so you should be using maven not exporting
although you pom looks broken
fix your pom then right click and maven build
you don;t need a user setting file
nothing
?paste your pom
pom looks fine
right click pom, run as, maven build
you have two missing/broken dependencies
I have no idea what those dependencies are. Never heard of them
I guess slook where you got the code from, there may be a read.me about them
no
those dependencies are nothing to do with spigot
they are custom dependencies
Alrighty soooooo (I'm very new to this so please don't judge) I'm trying to save the block data (coordinates of each block and the block type) of a specified area and save that into a hashmap. How on earth do I save the blockdata of the area (which will be defined with set coordinates but will be across a single Y level) to the list?!
WAIT HOLD
nevermind guys I'm in the wrong discord server I'm using paper
that's not a paper specific issue but alr
Does anyone know why this is happening?
Okay. I just replaced System.lineSeparator() with \n
And work fine
now send the 16.8 million colors
if hats kyori you can just use .appendNewLine()
whack
Well they aren’t using the component builder
On windows line separator is two characters, mc client only understands one
Yay carriage return + linefeed
Thanks typewriters
I'm still waiting for the TextComponent in the item lore using Spigot 🥺
Yeah choco
yeah...
anybody know?
or like how to reset the boat's rotation & rotation speed? I'm able to reset its rotation, but the speed of the rotation continues
https://cdn.discordapp.com/attachments/706186227493109860/1274892580844339272/2024-08-18_19-46-08.mp4?ex=66d65cbd&is=66d50b3d&hm=fe65a13a558c27d090ee77445f393238b40db6bd2389fed47624ef224b808854&
probably should be thanking printers in this case
them old style printers where you have to tear the edges are the ones that utilize linefeed's
if you didn't send a linefeed and only a carriage return, the printer carriage would move left but the paper wouldn't move up a line
md was actually just thanking typewritters totally independently from the surrounding conversation
He really likes typewriters
Ping spam me this next weekend and I'll update it
is it possible to get more than one result from a get method?
so i have multiple rewards in a file. and want to give them all at once. is how i should phrase it
You're looking either for a Collection (or subtype thereof) or just a custom data type that has some fields in it
Depends on what you want
oh I didn't know he really liked them that much
You think you know a guy, right? 
You type too correct to be a guy 🧌
Well I'm AI, so
😂
So maybe an hashmap with a record public rewards(Material material, int amount) {}
then store that in my task instance
Not sure if a Map is necessary. A simple List (ArrayList) would probably suffice
But yes, you've got the right idea
I tried a Map(Material, Integer); That failed horribly 😂
I mean if your rewards are as simple as a material and a quantity, you absolutely could do a Map<Material, Integer>
guys revolutionary idea
Bukkit ItemStack in a nutshell
public record ItemStack(Material, ItemMeta, Int)
But the most future-proof way to do it would be to have a list of an object that you could then later update if you add a new type of reward
Or a new variable piece of data to the existing rewards - like a reward name or something
imho the best way to do rewards is to abstract away the idea of what the reward is completely
and just do a giveReward method
that is given a player
Generally I agree, yeah
I'm just a newbie 🤷♂️
Also totally suitable
If you want Weighted selection e.g. certain rewards are weighted you can implement a WeightedRandom
Its kinda cool once everything ya'll been teaching me gets easier to do and understand, thank you!
This is true though, it made my brain feel so mushy in the beginning
How many times do you think guys I've assisted in my pets death before this result? 😳
At least 12
lol
bro is just abusing animals in his test area
anyway, I have a problem Im trying to figure out
I am trying to replicate this effect
where I can see myself even though I have invisibility
I cant seem to figure out how this is happening
I have tried hidePlayer() but nothing is working
and my team has old code that has done this, but we can't replicate the effect even when looking at that code
is an effect where others on your team can see you?
because if so, then its simply a teams setting where players can't see you unless on your team
Well this effect is only meant to be something I can see in perspective mode. The effect though is meant to show me as transparent but not entirely invisible.
the only way I can see that being possible is if they changed your skin
png does support transparency so it seems like an effective way to do that
it's a teams thing where you can see invisible players including yourself
ah so it was a teams thing like I had thought
sure buddy
anyways, seems like you have more then one way to accomplish the effect now
have fun

make a 3d engine that uses display entity billboards or whatever they're called
lol
they support transparency iirc
ok, so 3 ways now
some easier than others
wait skins support transparency?
I thought its only the outer layer
else I would expect a lot of people walking around invisible
It is only the outer layer
No, this is an effect you can get via Spigot. The screenshot shows my skin is transparent. I just don't know how they created this effect
changing someones skin is part of the spigot api
but illusion above already said how it is done
and then even offered another solution so you have 3 different ways to do this
all of which are supported by the api
Thank you
Is there a way to make a command hidden? Like when the player does /loremipsum it shows as red but it actually gets handled
that would probably have to include some sort of a custom command system or something if i had to guess if it's possible at all
at least if i had to guess
Kinda general java question but i really don't know how to google it, but if I do:
PlayerData data = this.playerDataManager.get(player.getUniqueId());
data.setLastKnownName("LastKnownName");
Will this update in the manager?
Like: is data only a pointer or does this return a PlayerData instance which is essentially copied to the data variable and i would have to set the PlayerData entry in the PlayerDataManager-Map again?
I have done something like this and it did work
If get returns a Data instance and not a clone. Sure
If ur keeping the instance around
Get method gives the pointer not clone of the object
aight thanks :D
Well we can hope it does
i think i finally understood that stuff then
private final Map<K, V> dataMap = new ConcurrentHashMap<>();
public V get(K key) {
return dataMap.get(key);
}
Is the get method (abstract super class)
K is UUID and V is PlayerData
Same thing
If you define it as ```java
new Yourobject<UUID, PlayerData>
huh
yeah just wanted to show that regarding @rotund ravine 's message
@hybrid turret Tip: Java is always pass by reference except for primitives (iirc), unless something manually clones an object, it will always be the same instance
now to confuse you more, java is actually pass by value
just dont worry about it too much
java does a lot of work so that you dont have to worry about it too much
for method parameters
right?
ykw yeah i just wont worry
😎
Why can GameProfiles contain more than 1 texture property for skins??
?jd-s
second layer?
oh that would be an extra skin??
i thought that would just be included in the first entry
idk like what else would it be
Damn this is kinda cringe
xd
yea
yeah this adds up
my skin has a front helmet in the sense of a mask and it's all in one file
hm
weird
i mean i guess it's just mojang wanting an array
i mean maybe if down scaled lol
can someone remind me of what I need to do to make sure the when in main hand text doesn't show up
thanks
Hey guys i got a question. Me and my friend are making a server and we want to make it so blazes don't take damage in water, dont move and are forced down. Were basically doing this for the first time so we are pretty fresh to everything and want to know about how to tackle this
Hmmmmm do you already know the basics of java?
absolutely not basically starting from scratch
i do have a few friends who can code in java tho
Hmmmmmm
I feel like learning the java-basics are a good way to start
About spigot:
?jd-s
those are the javadocs for spigot where (almost ig) everything the api offers is listed an described
?learnjava could perhaps be useful
For Beginners:
Codecademy - Learn Java: Interactive Java programming course from basics to more advanced concepts. Perfect for absolute beginners.
https://www.codecademy.com/learn/learn-java
JetBrains Academy - Java Developer Track: Learn by doing with projects and challenges. It covers Java fundamentals to advanced topics.
https://www.jetbrains.com/academy/
Udemy - Java Programming Masterclass for Software Developers: Updated courses that cover Java 8 to Java 17 features. Suitable for those who prefer structured learning.
https://www.udemy.com/course/java-the-complete-java-developer-course/
For Intermediate to Advanced Learners:
Oracle Java Tutorials: The official guides by Oracle for Java programming—great for understanding the depth of Java.
https://docs.oracle.com/javase/tutorial/
Baeldung - Learn Java and Spring: Focus on Spring Framework and modern Java technologies. Best for intermediate learners aiming to expand their knowledge.
https://www.baeldung.com/
Practice and Hands-on Learning:
Exercism - Java Track: Solve exercises and get feedback from mentors. Great for practicing coding skills.
https://exercism.io/tracks/java
LeetCode: Practice your coding skills and prepare for technical interviews with Java.
https://leetcode.com/
Free Resources and Documentation:
Java Programming and Documentation: A comprehensive collection of Java programming guides, tutorials, and API documentation.
https://docs.oracle.com/en/java/
Community and Support:
Stack Overflow: A vast community of developers. Great for getting help with specific problems or understanding concepts.
https://stackoverflow.com/questions/tagged/java
r/learnjava on Reddit: Join the community of Java learners and get advice, share resources, and discuss projects.
https://www.reddit.com/r/learnjava/
Remember: Learning to program takes practice and patience. Don't hesitate to experiment with code and participate in community discussions. Happy coding! 🎉
yea it's a bit annoying but helpful
ok imma pin this and start hacking at it
start hacking java
yeah do that. The jdocs for spigot helped me a TON.
Ofc if you have any questions and stuff you can just ask here
just make sure to search in the docs first :))
thanks :3
meow
some dude here had a repo with lots and lots of cat pics
i might have saved it somewhere
yesss voss does
i do
HI VOSS
maybe idk
i have a website called the catbase
then i'll know
catbase.siea.dev
yeah i think that was it
i have to update it some time ngl
hmmmm
@blazing ocean remind me to update when im home friday
i can try to rember
I just wasted over an hour scrolling through the reels of exactly one insta page
rember
not good, i feel u tho
happens to me on tiktok a bit too often
@valid burrow i'll send you some cars when you're back home
yay
found the message
can't forgor actual macking cheese
LOL
you have just increased my life quality by 200%
very dev conversation rn
lmao
lmao
YAYYY
us three are the cat people
lmao
but what kind
that is not fih
idk why, just thought of spamton
YEEEEEEEES UNDERTALE FANDOM RISE
!!!
Yeah I am kinda bored in the family vacation so I need to throw some time
Idk why I keep not looking the channel name today when posting random messages
...
family vacation, ngl kinda miss that but also don't
lmao
tbf we're saying shit here rn too
Yesterday was cool, but tbh it mostly is just staring at my phone, wall or pool for hours
but eh admins sleeping ig 😎
nobody really cares tbh
And I really wanna go code on some software

where r u?
learn kotlin.
you are seeing absolutely nothing
And I have some heavy FOMO because nothing happened in the whole summer holidays and now in the last week there are suddenly just 5 parties spawning out of nowhere /:
I am at lake garda in Italy
thought for a sec fomo was a deez nuts joke
damnnnnnn go in the lake then :3
You don't really wanna bath in the lake lol
and you're in italy you mean?
Yeah
but i'm kinda glad i'm past the family vacation stage.
going in vacation with my gf since last year
BRUH
That sounds awesome
every 5 weeks? that's kinda of a lot 💀
remember, you're on a minecraft development server lmao
Whenever I go to a party and it is amazing, the next day I am sad because I now have to wait forever to get to the next one
But we got a huge houseparty rollin' in 12 days, already so excited for that
imagine getting invited to parties tbh
damn can i come? 😎
(dont tell strangers your home address please)
I mean I also never got invited to houseparties besides my one best homie so far, but things are getting better
that's nice
The party of the homie caused me to upgrade to a better school system(very complex story), and there I kinda learnt doing shit by myself and socializing to some degree
Mostly it's public parties
i agree
This party is gonna get crazy again
And I am trying to make a birthday party for my birthday I guess, just anxious that it's gonna be weird or nobody comes
Probably gonna post in grade group chat, either nobody comes or my house is full of 50 people
Anyway, sorry to kinda shit on the party rn but apparently i didnt ask my question so i'll do that now:
What exactly is the permissions object in the plugin.yml for?
Should i add ALL the permissions for my plugin in that?
I think I can trust in 5-10 people coming, but more is just gonna be gamble and hopefully I am a good host
damn
you can add those programmatically
Yeah
wouldn't think about that too much tbh. you're probably a good host and if those ppl like you they won't mind mistakes
u mean registering them in onEnable or sum?
listOf(
"my.permission"
).forEach { server.pluginManager.addPermission(Permission("myplugin.$it", PermissionDefault.OP))
}
this is how i do it
Hello! How can I do item enchantable on anvil with custom echant? I added StoredEnchant but can't enchant item on anvil. I need to create events for anvil or there could be another way?
wadafak
oh
this is kotlin
right?
Sadly yes
shut
All my homies hate kotlin
Bukkit#getPluginManager#addPermission
right
but why clunk up the onEnable if i could just add them as dictionary/object (whatever you wanna call it) in the yaml file
manual labor
I never used that stuff, does it actually allow proper checks and return messages?
what
I handle permissions in my custom command microframework
🗿
would it be something like:
permissions:
plugin.*:
default: "op"
description: "Wildcard"
children:
plugin.command1:
default: "op"
.....
Can someone help please?
no
or have several main permissions?
permissions:
plugin.op:
default: op
description: hi
never seen anyone manually declare wildcard permissions
e.g. i have instance.create, instance.join, instance.close in there and give myself instance.* in lp
yeah i was just confused bc it was in the resource
so i just add the permissions in general and add children to a main permission if there are some
ig
If I have something like plugin.enderchest.admin and plugin.enderchest and one allows you to view your own enderchest and the other allows you ADDITIONALLY to view enderchests of other players
Would plugin.enderchest.admin be the child or plugin.enderchest be the child?
uhm
never heard of that issue
and locally hosted servers can't really have latency
(at least not notable latency)
e.g. i do this in my plugins
listOf(
"instance.list",
"instance.create",
"instance.close",
"instance.join",
"instance.pause",
"instance.unpause",
"instance.inspect",
"instance.data.get",
"instance.closeall",
"instance.data.merge",
"hubothers",
).forEach {
server.pluginManager.addPermission(Permission("redacted.$it", PermissionDefault.OP))
}
and i give myself redacted.instance.* and then have access to all those subcommands
someone can help me with itemsadders?
but when i give myself redacted.* i have access to all
i'm sorry but the kotlin syntax confuses me 💀
oh
is $it the current element?
yes
so it's redacted.instance.join for example?
yes
ohhh
now it makes sense
tbh yeah i might do that with a helper
i'm sorry but i have no idea tbh. doesn't make sense at all 🤔
maybe some firewall issue or sum? but then you wouldn't even be able to join...
weird
what's itemsadders?
1.20.5
oh damn
maybe try using java 21 instead
j22 is buggy on so many levels
badlion 💀
generally don't use experimental java versions
22 ain't expiremental
Use an LTS version
lts or not really does not make a difference unless you want corporate support service
oracle java 🗿
what is even the difference between all the stupid java versions (not versions but like adoptium, oracle etc)
Just play minecraft forge 1.12.2 and learn what fun in minecraft actually looks like again
the vendor
ngl 1.12 had some good modpacks tho
vendors can choose to offer different support schemes, timelines, etc
1.16 too
Is there an objectively "considered best" one?
Or just preference?
temurin and adoptium are the most popular ones for 21 iirc
It's still undoubtly the best version for modded minecraft
With a huge margin
oh really?
i thought u were being sarcastic
No
mainly bc rad keeps reacting with a skull emote lmao
no his takes are just that shit
It's actually the case
For context, me and rad literally disagree on almost every topic you could imagine
idk if that was 1.12 (probably 1.16) but ATM5TTS was amazing
HAHAHAHA
yea
XD
wtf is 5tts
no way java 22 is THAT BAD
atm6 my beloved
all the mods 5 to the sky
We used to agree on music but he found a new artist and I shitted on it so now that's gone too
ok buddy
porter is great
How do I get a block display's boundingbox?
No sir.
i wish the all the mods team would develop those modpacks for fabric
i think there's at least one for fabric
maybe
a.... hwhat?
I am currently developing a new 1.12.2 Forge Modpack, good times
can u recommend some good 1.12 modpacks?
What style do you like?
atm6
similar to atm ig?
i love tech
magic is pretty cool
BIG fan of skyblock
feist opinions on my banner
I could advertise myself for a certain style but otherwise, if you want expert, e2e is great. If skyblock, go play Project Ozone 3 right now
If kitchensink non-skyblock, go on e2
im not a big "i run around until i find stuff and endlessly mine underground" type of guy
If you like a mix between e2 and e2e, go play my modpack
at least not in modpacks
stoneblock 🗿
e2?
i really liked enigmatica 6 expert, its not skyblock
You don't really mine anymore after like 5 hours of gameplay anyways
but it has a ton of mods and quests
That's not 1.12.2 so it's bad
:)
Enigmatica 2
I LOVE FTBIESEM lmao
you are not 1.12, so you are bad 🙂
1.7.10 is also cool
Bump
was cool for pvp but it's so bad when it comes to optimization
so idk what you on about
And they got ported to vanilla+ hell
i just miss DE
And to "I require 800 mods with 50 gigs of ram to just slightly get any modded feeling" hell
Dw modern mc is way worse with optimization
https://www.spigotmc.org/threads/show-structure-block-bounding-box-in-survival.564979/
I found this ig? i have no idea tho sorry
i literally get more fps on 1.21 than 1.8
with adrenaline
I don't
what?
This is not about fos though
config issue then
You get a lot more crashes, they eat a lot of more ram, generally waaay higher requirements to get stuff running
I think it got ported to modern mc but it obviously isn't the same
So it's shit
Just play 1.12.2
Easy
real
is there a version and skyblock filter on CF?
I think so ye
I'd recommend Project Ozone 3, great pack(except for lordcraft and abyssalcraft ffs)
i recommend playing it together
Yes
then it doesnt matter what you do, playing mc together is always more fun
Way more fun in multiplayer
But it requires friends
bc i never finished it
So that is an issue
but i'd need a schmol server
bc i can NOT play a modpack like this in single player
lots of ppl are shitting on abyssalcraft
i think it's kinda cool tbh
but tbf
i did abyssal craft in endgame in i think it was one of the all the mods modpacks
It's hilarious in po3
I felt asleep while waiting 10 hours and kept on dying from random stuff spawning in my base all the time
if you want reccomendation for a unique modpack thats not quite skyblock but more like a puzzle, try compact claustrophobia
Is it 1.12.2?
Yes it is
dont be versionist
No
Mods themselves suck in modern versions
I think you're just playing shit modpacks
If a modpack is 1.13+, that's a no-brainer to leave the site
We're in #help-development though
I played like 5 packs people from mc modded discord recommended me as the best packs
OK PEOPLE WHO HERE NEEDS HELP WITH DEVELOPMENT?
Good morning everyone
how do i add 2 ints
It's 11pm
but yes I think it actually is 1.12
int i = 1;
int j = 1;
int k = i + j;
You're welcome Choco :)
I like sweattypalms' answer better
Ok then
its just add2ints() on my ide
Bro what it's literally 11:03 pm for me
I'm not lying I swear 🤬
Just curious though, u live in EU?
console.log("2" * 2)
You edited it.
console.log(1 + "1") // 11
console.log(1 - "1") // 0
Prolly 4
1-"1" is 0
Lol
🤑🤑
How does that work
cuz its fucking javascript
We are talking about Java
java does not have operator overloading baby girl
See
Exactly 😂😂😂
Javascript is pray
Just pray your code works
Cuz u never gonna know if it didn't
Or just code properly and know what you are doing
i love kotlins and rusts operator overloading
in rust operators are mostly just traits
A programming language is not there to prevent the stupidity of a developer.
Not possible with Javascript unfortunately
like ```rs
use std::ops;
struct Foo;
struct Bar;
#[derive(Debug)]
struct FooBar;
#[derive(Debug)]
struct BarFoo;
impl ops::Add<Bar> for Foo {
type Output = FooBar;
fn add(self, _rhs: Bar) -> FooBar {
println!("> Foo.add(Bar) was called");
FooBar
}
}
impl ops::Add<Foo> for Bar {
type Output = BarFoo;
fn add(self, _rhs: Foo) -> BarFoo {
println!("> Bar.add(Foo) was called");
BarFoo
}
}
fn main() {
println!("Foo + Bar = {:?}", Foo + Bar);
println!("Bar + Foo = {:?}", Bar + Foo);
}
from the rust book
Javascript is less secure than C
Ofc it is
🥵
But if you know what you are doing, it is as safe
you what
Wheres the proper place to put abstract classes?
wdym where
I may be high as fuck but didn't it pass the references by value or something like that, and not the actual object?
yeah, it passes the reference to the object by value, it copies the reference, not the object itself
yep
which makes sense -- don't want the methods to be able to reassign your parameters, you know?
yeah
I mean, I'd love something like C#'s out which afaik just passes the exact reference of the object so that you can edit it
🙌 program in c 🙌
Java is good - if it weren't for the lack of 128-bit cas support
program in c
Doesn't have maven, opinion invalidated.
I mean, buildsystems are one thing, artefact repositories are a whole other league.
Have them be cross-platform? I'll be the happiest being on earth.
Also, easily parseable metadata written encoded in XML? I'll be happier than happy.
(Fuck you gradle with your order-sensitive json)
inis in 2024 💀
Well, ini wasn't made for interaction between computer systems
toml was made for people who thought it had added value over ini
I'm talking about Maven as in the Maven Artefact Repository here, not the buildsystem.
TOML is the worst thing ever.
toml 💀
toml my beloved
YML at least is a superset of JSON. TOML can't even properly encode some data
meanwhile yml for the norwegians :(
Actually, that was an issue with forge's config library. Whatever, I'll blame TOML for that.
the irony
can i send asynchronous api calls with okhttp in a spigot plugin?
Spigot is java
As long as u don’t block the thread
U can
I mean u can block and still send api calls
🤷🏽♂️
idk, can you?
you probably should imo
or ask citizens
you are a citizen
why are you not verified
idonwanna
Emily is our resident pet
i read that as emily isnt our president yet
we get to bully her when she tries to send a gif
I probably should unverify myself, I've deleted my spigot account in all but name already.
RIP geolykt
Left the gang :(
I already left like a year and half already
I haven't but because of the 2FA it's completely unused now
hes gonna be a fulltime rice pudding fanatic
Ahhh
I legit have more access to spigot when logged out than logged in
Sooo, why on earth have an acc?
Why not use some pass manager for totp
Instead of a phone
I use proton pass for that
weren't it email 2fa?
another proton enjoyer
Email or app
I have proton unlimited 💪
I mean the issue with pass managers is that you are putting all your eggs in one basket
I use KeepassXC too
All my source passwords I have memorized so I can recover everything
imagine not using your ten year old password
Oh great, dual point of failure. One of these points have a flaw and everything is accessible
No thanks, I'm a password booklet enjoyer
What is that pen and paper?
What if your house burns down
Do as I do and use an easy to remember password "Password1234"
thats basically half of my password 💀
Not really at all proton has had one failure that I found and it was one that required bare metal access. KeepassXC needs ane entry password. Mine is nearly uncrackable I wager
I In truth I use a custom pass for every site which includes an identifier for that site so I can easily tell where data leaked from.
I know most critical passwords (ms account, legacy shared passwords 1 & 2, shared password 3, bank account, and probably a few others) by heart now
Well, I also know the GPG & SSH passphrases by heart, but that is useless in the event of a fire as you'll have to restore from scratch anyways
does anyone know how to really make 1.20 genuinley feel like 1.8.9 cos i have the plug in for combat and old combat but when it comes to farming entities for grinders its hella slow and tedious
Tbh to make 1.20 feel like 1.8.9 it'd require rewriting some internals
You'd have to rewrite the damage and kb systems pretty sure
I doubt its possible as the client is so different now
far out man, all good i might just put the server on 1.8.9 then figure out new set of plug ins i guess
thanks lads ❤️
You'd need some pretty heavy mods
Just cut out the grind in that case
Or you embrace the new system like a real man
And add different features to reduce what you don't like
look its more for a cosmicpvp factions typa feel and throwback with some other addons etc
but i wanna be able to grind blazes fast but shit is soooo slopw with old pvp on 1.20 version
bro my brain too small for this im new af im just trynna set up server for my twitch type beat
Doesn't 1.20 pvp have AoE damage and stuff that should make grinding blazes quick?
Yeah lol
Sweeping edge 3 goes crazy
broi the thing is if you spam attack it will be stakced entity etc
Ono, optimization mods
Increase sword damage against mobs then
you guys are actually cooking
look ill play around anud try figure it out worse goes to worse ill just go 1.8.9
How do I add lore to an item pre DataComponents I'm so confused here. I've got this code for setting Item lore but it only seems to work if I actually have lore on the item already
final CraftItemStack craftItem = ensureCraftItemStack(item);
final net.minecraft.world.item.ItemStack nmsItem = getItemStackHandle(craftItem);
final CompoundTag tag = nmsItem.getTag() == null ? new CompoundTag() : nmsItem.getTag();
if (!tag.contains(net.minecraft.world.item.ItemStack.TAG_DISPLAY)) {
tag.put(net.minecraft.world.item.ItemStack.TAG_DISPLAY, new CompoundTag());
}
final CompoundTag displayTag = tag.getCompound(net.minecraft.world.item.ItemStack.TAG_DISPLAY);
ListTag loreTag = new ListTag();
for (int i = 0; i < lore.size(); i++) {
loreTag.add(i, StringTag.valueOf(ComponentUtils.toJsonString(lore.get(i))));
}
displayTag.put(net.minecraft.world.item.ItemStack.TAG_LORE, loreTag);
return CraftItemStack.asBukkitCopy(nmsItem);
This was my method, maybe it will help
found the issue I think
Seems like if the compound tag is null I never set it on the item
thanks
I fucking did it bro @blazing ocean
YOO
im gonna cry
did you implement the entire terrain gen or how
no terrain gen
just like vanilla world
ah
https://imgur.com/a/WVTiUlw how can i fix this
https://paste.helpch.at/vozapafohi.xml this is my POM
How to change inventory title using NMS?
I am testing ipv6 on windows. When I try to ping "ff02::1%7", the command prompt isnt showing any replies.
However, when I watch with Wireshark i discovered that the replies actually are coming but for some reason its not displaying.
But forgetting about that issue(though maybe its related), I discovered that when I ran a ping one time the replies sequence numbers were all 31. Then i stopped the ping, restarted command prompt and ran another ping on ff02::1 and all the replies were sequence 32
arent the sequence numbers supposed to restart?
[20:41:58 INFO]: &aSelected region contains 18 blocks.
[20:42:02 INFO]: &aSelected region contains 18 blocks.
[20:42:07 INFO]: &aSelected region contains 12 blocks.
[20:42:13 INFO]: &aSelected region contains 18 blocks.
[20:42:22 INFO]: &aSelected region contains 90 blocks.
[20:42:52 INFO]: &aSelected region contains 45 blocks.
I chose the same area each time and got a different statistic each time.
WHA
🤔.
?nocode
It’s hard to answer a programming question without code
Oh no! You ran into a problem. But no worries, people are willing to help, but first they need to see your code. This is because otherwise, they would be providing help based on guesses instead of concrete knowledge. Whether it be a compile error, runtime error, or an unexpected output, I'm sure that if you were to provide code, you'd receive a quick solution.
[20:47:12 INFO]: &aSelected region contains 54 blocks.
[20:47:17 INFO]: &aSelected region contains 28 blocks.
[20:47:21 INFO]: &aSelected region contains 56 blocks.
Actually, the area I choose is always the same, but the number of blocks changes according to my location.
I select two areas diagonally
🤔.
what the heck is new Location[2]?
new Location[2] creates an array of Location objects with a length of 2
ok, if you are not standing in teh exact same spot every time it will be a different sized area
Yes, I've been testing this and it changes depending on where I stand.
But I have an axe in my hand, I mark 2 areas by right-clicking on one side and left-clicking on the other, just like worldedit.
Does this have anything to do with my topic? Shouldn't it only cover the selected area?
are you stood in the exact same spot each time? Where you click does not matter, only where you are stood when you click
lastly you never clear your playerSelection
ah tis ok, you overwrite
Here, I have determined two areas, if I select the area by standing in the same position each time, the result is the same, but the number of area blocks I select changes according to my position. When I try it with Worldedit I noticed that there is 253 block, but the results are very different for me
how do i make a totem that saves player's items after death? i tried to use EntityResurrectEvent to check if thats the totem and then cancel it so player actually dies, there is a method in PlayerDeathEvent to keep inventory for that particular death but i used EntityResurrectEvent, first thing that comes to my mind is:
in EntityResurrectEvent add player to a hashmap
in PlayerDeathEvent check if he's there, if he is, remove him from hashmap and do the keepinventory(True)
but i dont know if that is the best approach
Spigot has no EntityResurrectEvent
are you using spigot latest?
??
if you add them to ytour map in the resurrect event but they actually have a totem of undying they will not die so they remain in your map
ONLY add them to yoru map if the resurrect event is in a cancelled state
but they are holding the special totem
they have two hands
one could be yoru don;t drop items, the other could be of undying
the event fires in a cancelled state if they don;t have a totem of undying
if (event.isCancelled()) add to yoru map
but event wont be cancelled if they are holding special totem
it will be cancelled if its not a totem of undying
ah
maybe i should change it to some oher item
and then you know.. i can even use PlayerDeathEvent because why would i use totem event
in that case you will have to check for your tag, cancel the event and add them to your map
yeah thats wha i said at the beggining but you said there is a possibility that player holds 2 totems 1 normal 1 with tag
umm okay
but
if they have your tag AND an undying you should do nothing
as the undying will protect them
umm
but listen
if
player has totem with tag in main hand and normal totem in offhand
he should actually like... get saved by the totem in offhand
yes, you are going to have to check both hands
XD
but how do i make the offhand totem save the player not my TAG totem...
jeezus thats so hard
if you find yoru totem in one hand but ALSO an undying in the other hand, set teh event to use the hand of undying and do nothing
you shoudl be able, sec
um, probably not
I guess use another item for yoru totem, or you are goign to have to implement undying and your keep inventory code as well
https://imgur.com/a/WVTiUlw how can i fix this
https://paste.helpch.at/vozapafohi.xml this is my POM
sad
so ill give up then
i mean ill change the item
so.. i can use death evento
evnt
that's way easier
did a maven reload?
bump
I am making a pvp false system, when you shoot an arrow from a distance in a false area in pvp, this arrow damages the player. You cannot shoot an arrow in a false area in pvp. However, when you shoot an arrow in an true area in pvp, it damages.
I want to prevent this, like when you shoot an arrow at the player it recoils without doing any damage.
What can I use?
ProjectileHitEvent. Check shooter and targets location to decide if it should do damage. Cancel event if no damage
Should also be doable with the damage event
anybody know why hotkeys randomly quit working in ij?
IJ decided you are not worthy
i guess, it complains i dont use it enough and when i try it doesn't work 🤷♂️
Clearly its female and you should know what it wants
female
it
Hm, yes.
sounds like relationships are hard
only for the dumb ones
dunno what that would imply
that people are dumb o.O
hmm generally ye
i would reword it as not knowing what in the world is going on
anyways
Relationships are impossible if you live by my ruleset.
im going for the most spelling mistakes in one sentence
elaborate please \👀
Well, there's a rule within me (which I know is completely bogus, but alas - that's my instinct and it's like telling a staunch pacifist to kill someone) that one ought not contact someone unless you are contacted first.
oh no a deadlock
more like a livelock
A wedlock?
till starvation.. 😂
Okay enough internet for me for today. Goodbye.
How extensive could custom mob ai be? Like could you give a mob custom goals like spend x amount of time in the water, hunt specific mobs, sun bath, stuff like that
if you write it, yes
bump
have you tried changing its velocity?
or maybe checking if it has any 🤔
Yes I'm constantly setting it's velocity to zero upon input
Along with sending a vehicle move packet with reset yaw and pitch
well a move packet would cause its velocity to change
What's a good command API that let's me control every single error message?
wym? like it should already zero the velocity out?
there is only like 2 error messages thrown unless you want to implement some of your own
In what API
Spigot
The only thing you can't really control per command is the command not found message
Cuz yknow, the command doesn't exist
That's fine
you can also try using brigadier if you want
its the command api from mojang, you will have to add it as a dependency tho or if you run paper, i think they have it, not sure tho
it takes some time to get the hang of it but it has more possibilities than bukkits Implementation
Brigadier is relatively poor for command handling unless you make use of Minecraft's internal types
I heard ya like builder pattern
nope, i dont use it personally
i just thought i'd mention it
i like builders tho, except when it gets too messy and nested, thats really annoying
Guys, I downloaded my server from hosting to upload it to vps and then installed the server on the desktop
But I encountered a problem
There was no such problem with hosting, the problem is this
Special characters used in plugins look interesting
┃
like this
Unicode characters I guess
What can I do for this?
check the file is saved as utf-8
oh okayy
i solved
@echo off
java -Xmx5G -Dfile.encoding=UTF-8 -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Daikars.new.flags=true -Dusing.aikars.flags=https://mcutils.com -jar server.jar
pause
java -Xmx5G -Dfile.encoding=UTF-8
thats
thank u
ik this is skript but why wont this work
permission: player is "Zerg112"
trigger:
/gamemode creative Zerg112
command /zz
permission: player is "Zerg112"
trigger:
gamemode survival Zerg112```
You need ":" after your command
And intendation
- i think permission waits for a given permission, not an execution
im working on a weapon that when a player kills another player with it the user steals a heart from the victim but will have the effects reverted when the player drops it or dies or just loses the item in anyway, what i thought of was having a PDC double, the value being the victims max health, and the key string being the UUID of the victim, but i honestly feel like thats a bad way to do it and maybe theres a better way lol, if anyone has any ideas id love to hear it because this is starting to become a headache
am i manage recipe book recipes lores names learning?
I have trouble understanding. Please correct me:
Player A has the weapon.
Player A kills Player B.
Player A receives one more heart.
Player A drops the weapon.
Player A does not have the one more heart.
Player B picks up the weapon. Nothing happens
yes but also player B should lose one heart, sorry if my explanation wasnt the best lol
Just add a pdc to the item, that contains the person that kill player B's UUID, and the amount of hearts
When picked up by a player that isn't the same UUID as the team, wipe it
Item*
Yes i did reload maven
The fck
And @cosmic elk you will have to monitor the multiple events that can make the player lose the item:
- PlayerDrop
- InventoryClick / Change
- Death?
- Clear commands?
It would be easier to check item pickup and inventory change
No need to clear it when it's dropped, just clear it when it re-enters a inventory
But he wants to reset the hearts of both players when the item is lost
That's what I understood
yes i want the item to only steel the killed players hearts while its in use, so if its lost or no longer in the players inventory it should be wiped
Well if u wanna reset players, then check the events that rolyn said
- you should find a way to manage the heart restoration if players disconnects
i figured, although im still kind of confused about the pdc since im pretty new to them, is there a way to store more than one data type under the same key? its why at first i just had the key be the UUID of the player that lost the heart and the value being their max hp
good point i didnt think of that
Create a file of code that should be ran retro actively, then on play join, check if there's something that should be ran for the player is said file
in*
You can create multiple keys to store more information. For instance you can have:
owner : UUID
killed : UUID List
ofc this is quite simple because you also need to manage the case where the player kills a given player more than one time, etc..
Or if more convenient, you can also create your own DataType
You can find one example of custom type for the UUID: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/persistence/PersistentDataType.html#field.summary
@eternal oxide
