#dev-general
1 messages ยท Page 23 of 1
yeah that would be super nice for all kinds of holograms lol
the interaction and the markers, for if you want interaction or not
e
e
e
e
I be needing a cool chill dev Frโฆ hit me up..
I even imagine floating images, seen as you can size the interaction ๐
Like floating png's
IDK currently its just a hitbox. Named armorstand is still the way to go for holograms. In later versions set as a marker works too.
if they make these blocks rotate just like names do, they will replace armor stands
If they become nameable yeah.
hi, I'm makin a custom gui using deluxeMenus and a resource pack for display a cool GUI.
I need to shift the char to left. Said me to add backspace but I tried and didn't work, how can I do it?
Oh when did they add that? I only saw that it spawns a hitbox
yes, it was presented on the first snapshot
Ah then yeah armorstand replacement xD
Jb annotations have check return value now
๐ฎ
I wonder if it supports kotlin tho...
Hm?
It's just an annotation that ensures the value is being used when it's called for
ah..
also, this owen guy is doing some nice shit https://github.com/PaperMC/Paper/pull/8108
cool
The PR doesn't bring much to plugin devs right now, but a few niceties, but it's largely setting ample grounds for future API improvements regarding plugin loading logic
๐ฎ
What do ya'll think is the proper amount of decimals to format an essentials home coordinates for?
Working on updating the Essentials Expansion and it's showing like this:
Should I just drop the decimals altogether or leave 2?
CC: @desert horizon because I know you fixed something related to this last year ๐
Maybe 3?
Also, didn't really "fix" anything
Just changed some settings in EvalEx
are you truncating right now?
That's a personal question
Kidding. I was just casting to an int to drop the decimals. I just added in a DecimalFormat with 3 spaces for that.
That seems reasonable.
lol
Just closed all open issues for the Essentials expansion with a PR. That feels good. ๐
Sound-Expansion: ...
๐
right, while attempting to compile plotsquared from source it generates a bukkit jar and a core jar, but they never get compiled together and tbh i have no idea how to force that to happen
i assume both need to be in one jar but it just never does it
I'd assume the bukkit jar has the core shaded in
i actually downloaded a pirated jar for reference and it has both bukkit and core merged together
which is why im even asking
you're most likely running the wrong task
what would you know? have you ever built it
dont you just need to run shadowjar on the bukkit module? gradle :bukkit:shadowjar
https://github.com/IntellectualSites/PlotSquared/blob/v6/Bukkit/build.gradle.kts#L65
im a dunce
kinda
turns out you need to run buildDependents
or atleast that worked and now i have a jar thats much more like the reference jar
you just need to run ./gradlew build (normally, seems like sonatype is down lol)
actually I feel like I don't know much
its really inconsistent actually, sometimes it generates the full jar, sometimes it just includes the bukkit side instead of both sides
i have to compile it multiple times before itll actually compile properly
sometimes it compiles properly. sometimes it doesnt combine the core and bukkit jar properly like it should and sometimes it just fails and says theres a problem
even tho other then running clean nothing changes
youre doing somethig stupid
Anybody got some tips for how to learn front-end dev easier? 
I got an idea for a project + my bachelor's degree project which consist of a website (more than html css and some js) and I started with the basics, html, css, but the later is so fucking annoying ๐ข
Don't go with vanilla stuff. Use a framework like svelte
nnonoonono
stupid idea
for learning, plain html and css and little js
once you got the basics, then svelte and tailwind
I mean, yeah, I plan to use react in the end, but I still gotta start with the basics
no dont react please
in what sense? Design wise or knowing how to do things while having the design?
I just cant wrap my head around positioning objects on the page. E.g. have some posts on a page as cards, with an image, a title and a short description seems hard to do ๐ฅน
you can do that in multiple ways
The design is not a concern, I will have someone experienced helping me
Personally I use Ligma
figma*
I know what I said
You can use a grid or flex box in that case
probably what works best for that use case
think a fundamental thing to learn is to visually (in your head) see the different layers you need.
each layer equals basically a tag (div, etc)
so in this case, for a normal card, ignoring all the rest and just looking at your card
you have 3 items inside it
Image, Title and description
So, now you have to think how to group those together, in some cases, you don't even need a grid or flexbox
In this case, all the 3 items, if you place them inside a div (card), they will already stack on top of each other by default
so you don't even need a flex box for it
Then you just mess around with heights and widths
spacement
etc
I see
Either way, if you are confused or somethings not behaving like intended, you can always just ask here or #development
can ping me if you wish
But yeah, knowing how to structure it will help you a ton
Also, you can start with css and do only that for the basics, although I totally skipped that and I used SCSS
which is basically an improved css, allows you to nest stuff, etc.
But you still learn the fundamentals of it either way
np
why not?
theres better stuff like tailwind
the point is to learn the basics
....
then switch to tailwind
its stupid to use tailwind directly
hence why I suggested scss/sass
Flexbox and tailwind
When in doubt, just slap flex on there and order things how you want
Yeah hmm
Is this tailwind thing bootstrap on steroids?
also, I now realize that EVERYONE is using the same 2-3 designs for this
https://tailwindui.com/components/marketing/sections/pricing
No, it's a utility class system. It generates a bunch of utility classes so that you can put them on divs and stuff without having to write css manually
They do have projects like Tailwind UI and Flowbite that provide components as well
Yeah so bootstrap on steroids xD
Looks nice though
But I still have to cover the basics 
i have an urgent/important problem with my server, its spitting out errors, i cant really copy them cuz termius screens is crappy, but i have a recording of it
It's like the opposite of bootstrap lol
Bootstrap focuses on big components and just putting classes with specific names on things
Tailwind doesn't provide any components at all, only the minimal css wrapper classes to compose with
also fyi console logging is saved to ./logs/latest.log
g
I see - I will definitely consider using tailwind after I get the hang of basics xD
Yeah bootstrap is much more "limited"
does anyone know how to change the left side (where the files are currently) to have a darker color than the rest of the editor?
Found it
"workbench.colorCustomizations": {
"[Community Material Theme]": {
"sideBar.background": "#COLOR"
}
}```
so, uh, what to do when things don't fit perfectly? e.g. at the top there's one px of space between the top of the page and the element, and the background of the last item doesn't fill the entire space, even though both elements have border-radius of 2rem
https://codepen.io/igabytm/pen/ExeKxXe
Edit: Actually I think the top part is ok, I looked closer and the different coloured pixel is from the chrome theme
uhm kinda not home but from checking it on my phone, have you tried instead of having both a border in the nav and on the last button, having only a border in the last button?
in that case, it would always be the same border
aka switch the li:last-child a to the whole border and border-radius thing
then you will have only a border at the last button
then you just gotta apply the side borders to the rest of the buttons
looks about right, thanks afonso xD so obvious smh
I have a class in which I have th method
public void setupBoard(Player player){
Scoreboard board = player.getScoreboard();
Objective obj = board.registerNewObjective("essboard", "dummy");
obj.setDisplaySlot(DisplaySlot.SIDEBAR);
obj.setDisplayName(ChatColor.LIGHT_PURPLE.toString() + "dd");
player.setScoreBoard(board);
}
and I just call the method on Join and it works just fine.
Now I made another plugin with the same function but whenever I run the plugin it says "An objective of name 'boardd' already exists"
(The two plugins are not in the server at the same time)
you probably need to unregister the objectives on server shutdown, you can not have two objectives with the same name, and they are stored in world data
I don't recall ever unregistering Scoreboards
On QuitEvent or something?
What happens if I do Bukkit.getScoreboardManager().getNewScoreboard() ?
Another question, I have made hexcode coloring to have a message appear in a gradient but all I get in the Scoreboard is this:
private Pattern pattern = Pattern.compile("#[a-fA-F0-9]{6}");
private String translate(String input){
Matcher matcher = pattern.matcher(input);
while(matcher.find()){
String color = input.substring(matcher.start(), matcher.end());
input = input.replace(color, ChatColor.of(color) + "");
matcher = pattern.matcher(input);
}
return input;
}
The code is working just fine
Is it a problem with my client or..?
When sending the message to a player it works, but when putting it to a scoreboard it appears like that
scoreboards don't support components and thus hex colouring
How do people make them? Something with NMS?
they don't?
I just made it work btw! I just registered a team instead and added the hex colored message as the suffix
the actual entries shown on the scoreboard do not support that
well that is different yes, the team prefix/suffix can be used
ChatGPT knows what's up ๐
Probably not as important as you're thinking it is
iit probably doesnt matter at all really
I can't recall, but is String#indexOf 0-indexed?
just like everything else
except sql stuff
yeah but I believe internally they are still starting from 0
It was... almost right?
Regex isn't either... at least groups
too much text
group(0) is the entire match ๐ then group(1) is the first group
that looks about right
๐
#general-plugins is the channel you're looking for
ok
I really seem to struggle and can't find any information on the remapped mojang NMS. Could any help me how to make a chest open animation with the new packets? (ClientboundBlockUpdatePacket I suppose?)
just use PacketEvents
Well, I want to use NMS
My co-workers when they text me on Feb 23, 2023 - the exact day I figured out I can make chat gpt uwu-ify the chat messages and snippets I send them ๐
Funnily enough, somehow I am having fun at school, still ez but whatever, doing random java stuff is fun lmao
This was today's mini project
nice
U should 100% put on github
Did u use swing?
Or smth else
yeah we use swing
I will redesign it a bit and then I can put it in github, why not xD
AKA just change the placement of the time and add date
i remember hearing about paper wanting to stop building on top of spigot and bukkit, has anyone else heard about it or is it one of those things ive remembered but hasnt actually happened?
i got it wrong
that has been discussed for a few years now
it's a thing they really want to do but lots of stuff needs to get worked on first
It will happen roughly when papi 3 comes out
Sponge is a fun api to use
aka 2028
they better get ready 
how can i give an player head an texter that no player has i have the skin textur but i dont want to always have the skin on is there a way?
....
....
....
..,.
no! no no no!
no no yes no!!
You gotta be rich already if you want to work for us
Macbooks are pretty much as expensive as other laptops in their category
Although I wouldn't buy a MacBook if I have a Windows laptop for the same price already
Yah but it doesn't mention what they will do, so it can be a job that requires literally a running computer 
i hope someday they give that up, technically it's really only Xcode requirement now
since you can compile & run Swift/Obj C on other platforms now
it's not great, but it's possible
would make cross platform app dev a lot nicer lol
wait so, how do the react apps work then? Do they still require XCode? (not sure if that is any bit related, but I just remember seeing somewhere that you can make a react website and easily make it a android and IOS app.)
well there are a few ways to do that
depending on the library of course
if you're using React Native (which is what I'm using now), you need Xcode to build the app from your source code to run on an Apple device, but there are ways of previewing it, like Expo, which streams it to your device using their app and then runs it, super cool
if you're using something like Ionic, it literally just runs a browser WebView thing in the app, so it doesn't even need any native modules except for specific scenarios, so you can just run it without needing Xcode at all lol
my gut tells me I will always suck at making good structures and writing clean code lmao
i dont think you have to make a package called "enums" ๐
MacBooks are the most useless ones out of all laptops
I never want to use mACOS
What if websites required re-login on a new IP on every web request? (or as a setting for those that have IPs that change frequently)
Websites already authenticate on every web request because of cookies, so if they also store the IP in the cookie (hashed?), and check the IP, wouldn't that be very safe? Because that would prevent token logging, which is the cause of many attacks (it even bypasses 2FA).
First, I thought that maybe it would cause extra latency, but websites already authenticate with cookies, so an IP check can't hurt... right?
IPs wouldn't actually be stored in the databases either, as it would be embedded inside of the cookies (and hackers won't be able to just modify this IP because then that would invalidate the cookie, right?)
Even though IPs are based off of networks and not off of devices, and the chances of a random hacker token logging you while being on the same network as you seems pretty small
There's something to be said about dynamic IPs
I mean I mentioned that there should be a setting, idk if it should be enabled by default or not
I've got a dynamic IP (I think?) but it only changes whenever the router restarts which is during a power outage, which is only like once or twice a year
Maybe some people's dynamic IPs change more frequently but logging in once a month can't be too bad
What about mobile carrier networks?
hmm
Maybe
you can list IPs on a settings page which would required to be inside of the cookie ๐ฅฒ
so you can put like your home network
since if you're on your PC, that's likely where you'd get token logged, not on your phone (and usually you probably wouldn't be on a hotspot)
And how would you go and find out your IP with mobile data and add it to discord before using discord with it?
Do mobile IPs stay the same?
I assumed they always changed but i never tested
oh i misunderstood
i meant
that you can set "protected ips"
I got that part
oh
ye
so im saying that you wouldn't put your mobile ip onto discord and that would be an "unprotected ip"
Why not?
because you probably wouldn't get token logged on your phone (on IOS and Android I don't think it's even possible to run custom apps by default)
So it's only for desktop?
ye
๐คจ
I doubt many, if any people have gotten token logged on their phones
You'd be surprised
how does it work?
I assumed it'd be running a program
but this is prob something else
or something else that's not apk/whatever ios is
on discord?
ah
or maybe they got tricked into installing something on the app store
Not that I know of
????
u said u know of at least 2 people that have gotten token logged while using their phones
yes
then I asked if it was on discord and you said no
so I was just clarifying that it was on different apps (maybe I shouldn't have said 'platforms'?) other than Discord
then I asked if it was on discord and you said no
I missed the part when this happened
oh I forgot about this message
ok
hm
interesting
as said, I suck at structuring
new github preview feature
old news my friend
๐ฆ
I made an account on redis cloud using my gh account, and they decided to use this as my account name lmao
lol
Does anyone have a link to a website that shows spigot mappings to mojang mappings?
There don't seem to be any Gravity methods for EntityArmorStand in 1.19.3 NMS?
jeez i always forget it
๐ข
I sent it a few days ago when you asked @drifting yoke screaming sandals
That one had correlations of mojang remap and obf ?
should have
When cancelling a BukkitRunnable then running it again it should be running again without any problems right? or is the IllegalStateException a normal thing?
I dont think you are supposed to run again a cancelled runnable, hence why it throws IllegalState
Okay cool thanks
public void clipCorners(){
pos1.getBlock().setType(blocks.get(pos1));
pos2.getBlock().setType(blocks.get(pos2));
Location corner3 = new Location(pos1.getWorld(), pos1.getX(), pos1.getY(), pos2.getZ());
Location corner4 = new Location(pos2.getWorld(), pos2.getX(), pos1.getY(), pos1.getZ());
corner3.getBlock().setType(blocks.get(corner3));
corner4.getBlock().setType(blocks.get(corner4));
}
This is my method for turning corners back into the previous blocks. Could you recommend something less messy?
tbh that looks the least messy way of doing it
Why is it when I look at some open source plugins they have the cleanest code ever? Is it that I'm not looking deep enough or..?
the devs dont want to be bullied, so they make it look nice before publishing
you could seperate it out into multiple methods
or move it around so the locations are made at the top and the settypes for all 4 are below
I've already made like 50 Classes to make it look as clean as possible I'm not gonna bother a 6 line function
You guessed right!
Also, I'm referring to a Square region as well, 3d Cubes have 8 corners but depending on your shape, you could have different amount of corners
oh yeah 8 my bad
Hey, gradle daemon on my PC (r9 5900x) starts in half a second. For some reason, on my CI (2x Xeon L5640) it takes about 30s.
Have any of you guys experienced the same thing? What can I do with it?
the only difference I can think of is, that the CI pipeline runs under docker
Might be a cache thing, no?
Wdym
Build cache shouldn't affect daemon startup
Or do you mean some internal Gradle caching?
That could be it ig, because it prints the welcome to Gradle x.x everytime
Yeah, it takes like 20s on my machine the first time after a restart, then it's lightning quick.
the daemon is "cached" too, thats why its a daemon
but obviously you cant really do that on CI usually
Yes, it is possible to use protocollib, however...
here's an example with interact event..
what
He asked a question in #development and responded to himself here
lol "it's possible with protocollib, here's how to do it without protocollib"
love chatgpt
Ikr, but the Gradle daemon still starts in 0.5s on my machine
I suppose there's some first time setup
even from a cold start?
Define cold start
eg when you've just started ur pc
because if it's starting that quickly theres probably a daemon running already
Nope
It says: starting Gradle daemon... Gradle daemon started in 500ms
When I build next time it doesn't start it
So I suppose it keeps the old one
yes that's the job of the daemon, to run in the background to skip startup times, build script compilation etc
Ikr?
huh
Read the whole conversation
yes i did
i don't get this message in particular
Yeah, so the issue:
Gradle daemon starting on my PC - 500ms
Gradle daemon starting on CI - 30s
yes
i know that, i was simply responding to this comment
I mean, I know how a daemon works
it can depend a lot of things like your ci enviornment too
though tbh i wouldnt be too concerned about 30 seconds
Yeah, I think it's caused by the fact that the CI runs in a container
Meaning that the daeomn is always starting for the first time
Indicating there's some first time setup that takes a long time
Yeah, it could be worse ig
But it just seemed weird
How can I contribute to DeluxeMenus?
There is no github. It is still closed source
ah
If I have a BukkitRunnable which is Sync and I call another method below it, it waits for the BukkitRunnable to be done first since its sync, right
or should I go with runTaskLater(); and run after the Runnable is done?
Is CompletableFuture a good idea?
not necessarily
iirc it might run 1 tick later
oh wait
no
the answer is definitely no
if you schedule a sync task to run in an hour, it's not gonna block your main thread for an hour
that would be dumb
Was about to say "schedule" lol
Yes, didn't think through. I believe the game allows multiple Synced Tasks consecutively, just at different times
CompFuture is my best shot Ig
the real question is why not just do everything in the task
I have an Animation object which runs a Runnable and when it's done I want it used in many different Objects so best practice, I suppose, would be to just make sure I have what I need to show as the animation in the Runnable
is* a Runnable
Maybe I could run them all at once after all. It just seems odd to me to be running an Event relating to a specific Object in an Animation Object
Can anyone make a animated rainbow text into a hex so i can name items for example with that hex code?
but i mean like a moving text
so a rainbow text running to the left for example
Like on a scoreboard?
Well, you'll need code that changes the values of each letter and takes the value of the previous (or next depending on what animation you wish) letter and check if it's last letter (or first respectively) it goes back to the first letter (or last)
On a repeating timer
Could you possibly help i can add you to the panel
There are no tutorials on how
Store each hex code in some kind of Array or List set values for each letter (StringBuilder that appends) if its last letter it goes back to first letter
You'd have to code this yourself natbestie
ah i am new to coding
learning yesterday a develop of a server i know just pointed me out to some server to get support
Well, try getting help that will improve your coding skills rather than getting the code done for you
There are no tutorials for it
oops wrong reply
I gave you the answer on this one, if you know how to code in java it won't be a hustle to code
That covers it all
is there possibly a step by step or a script that can be used
What do you mean by script?
i'm new so i do not know much i am trying to get a dev for my server i only ask for easy things to be done
Well, It's not an easy task if you've not done any java or Spigot coding but I guess you can check the channel #1070594802103636008 it might be what you're looking for
:{
I suppose you're requesting for free code so doesn't that solve it?
for example you know how RGBirdflop title is animated rainbow and moves like that
What
not really not many people know
I think you missed a word or two there
You mean how it made the gradient?
Because there's no animation in rgbirdflop
I mean how the rainbow text is changing but instead it moving to the left
i messaged you an example
Huh? There is no rainbow text chaning in rgbirdflop
i messaged you what i mean
Well, I told you how
Is there any youtube tutorials on it to make it easier for new people i can't find one?
You choose a starting and ending color and you can either make code that automatically makes the gradient or grab it from rgbirdflop
After that you just move hex codes from letter to letter
if you want it to go through all colors
you just add starting and ending color and you move all hex codes by some number
is there any scripts i can basically crtl + c
and they move!
Well, unless you do the searching yourself, I'm not sure. Other than that, if you really need the code ctrl + c just use #1070594802103636008
By personal experience, I've not seen any such videos but I've not searched either so you never know!
Well, I'm pretty sure you can find similar codes, or e.g. right now, I gave you the thought of how to code such a plugin but if you have no idea about how to code in java you should better focus on learning java first rather than trying to ctrl + c code. If you are looking to ctrl + c code on the other side, why not just request someone do it for you?
My requests are getting removed even tho i am changing them????
Well, I'm no staff I can't help you with that sry
Might wanna em read what they said in #off-topic
I added to the text ah well
Yeah, should be checking admin tags tho!
AnimationType type = entity.getRunning().getInstance().getCrate().getAnimationType();
I feel like my code smells the way I've needed so many different objects
Anyone know how to make a rainbow running text going to the left bold into a resource pack?
what's this?
...
Jk Lol
so when i add the correct usage to it where do i put it just shove in in file management or do i put it in plugins or something?
Huh? None of that
You have no idea right
Well for starters, download intellij IDEA and start watching some java tutorials
@mystic viper (Sorry for the ping) Do you know how by any chance?
was trying to figure out why CraftMetaSkull wasnt autocompletable in intellij, looked at spigot stash, it was there, looked at my shaded libraries, it was there so decided to write out the entire path, its private.
something unrelated is that sometimes when i middle click a class such as CraftMetaSkull or CraftItemStack, it just maxes out my ram and stalls. no idea why
id assume they are too large or something but that makes little sense to me why some classes open no problem and other just stop working
i love when the closest thing to java docs has it declared as just class, no specific access modifier
So I want a method to be private or at least protected but the interface contract doesn't allow that. Are there any other options?
can i somehow see what version of forge i need to run a mod?
you can check the mcversion inside mcmod.info, which is inside the jar file. Use something like winrar to open it and view the version
And the mod u choose to check is liquid bounce hack client kekw
Now that's funny
i dont typically use forge, so I dont really have need for legitimate mods. For that reason I only have un-legitimate mods for anticheat / screenshare tool testing
so it was the first jar i could find
does World#dropItemNaturally not support itemstacks larger than 64? 
It dont see why it wouldnt
Having a weird bug where I can't drop a ~1900 ItemStack.
May I ask Why you have that? ๐
Stress testing.
I was expecting like 65 lol
I have made a command to convert Blaze rods into powder.
1 Blaze Rod crafts into 2 blaze powder hence, with a full inventory of rods, ~1900 powder is in excess.
I remember having to deal with this. Check to see if the items are not invisible on the ground. If you go to the drop location, do you pick more than 64 up?

Let me check.
Shit, it is invisible.

yeah. I have no clue if I ever got it fixed or not
you could split it into 64 stacks maybe. ugly, but might work
into stacks of 64*
and drop one stack at a time
Schedule a task to spawn them with a tick delay prolly
don't see how this would fix it?
Meh, if my client complains about the issue, I'll look further into it. But for now, since the items are there, that's good enough.
๐
Max you can do in 1.19.3 is 127
No idea why it wasn't 128 to make it 2 stacks lol
Ah so the client is limited to 127 then.
ยฏ_(ใ)_/ยฏ
Searching for a Developer for my server must be very good with scipts and be experienced.
127 is byte limit
because its a signed byte afaik
if it was an unsigned byte somehow it would be 255 max
java doesn't have unsigned
thats why i said "somehow"
ah
Ah. Don't know why it wouldn't use int atleast.
i mean items were never intended to go above 64 ยฏ_(ใ)_/ยฏ
they also use (or used to) use short for enchants
i remember 32k enchants
idk if they still exist
(iirc 32767 is the short limit)
Why would you waste the memory? Thatโs like 4x the memory usage for zero benefit
plus storage
that's a huge waste of memory
imagine if you had to allocate that much memory for all the chests, shulkers, furnaces, crafting tables, all the players and their inventories, etc.
how big of a difference that is vs 127
enchantments are still shorts, just normal minecraft commands limit them to 255
i assume they are only still shorts due to the fact that unsigned types dont exist in java
otherwise they would make them only bytes
if I'm not mistaken, if it was an int, it would be 4 bytes instead of 1?
Player has 36 slots, so instead of 3600 bytes it would be 144000?
- armor and offhand
right.
ints are 32b though
u sure?
32 bits = 4 bytes
oh ffs, I hate that
bitsbytesbitsbytes
oh lol
skill issue
bits byte you
byte always gets me 
ye i thought u meant b as in bytes
or ig bytes bits
same letter
confusion
๐ฅฒ
Wait till you hear about nibbles
- spigot copying (?) the array for PlayerInventory/other inventories too
couldn't they invent another word instead of replacing i with y 
byt
well ironically the y was used to prevent confusion
anyways, huge increase
rip memowy
i hate how theres so many
megabit
megabyte
mebibit
mebibyte
get good
yeah I always hate when people tell me their internet speed in megabits
well i don't hate that
I just hate how there's both megabits and megabytes
I always count it with mb/s, not mbps
megabits for internet makes more sense imo
not everyone has gigabit internet
๐
when downloading
yes
the browser tells you the speed in mb/s
Itโs a natural continuation of bits and bytes
not megabits
wdym
yes, and it also shows decimal
but in real life you don't say "hey my internet is 7.625 metabytes per second"
if bits exist then megabits exist
if bytes exist then megabytes exist
QED
metabytes 
ah ye
ok thats fine
but mebibytes
i dont even know what that is
i just see it on google conversion thing
lol
pebibyte
lmao
reversing the order
pebibit
ya its a lot
๐ฅด
Theyโre basically the same thing as mega, except with powers of 2 rather than 10
You rarely see mibi used and at large scales theyโre basically the same
But as computer scientists technically mibi is more accurate
10 ๐คข

2 ๐
It's here 
mibi = 2 = binary and based
mega = 10 = โscientificโ and โreal worldโ and gross
By using the magnitudal measures youโre contributing to the oppression that computer scientists face every day
After 2 DUCKING MONTHS
Discord finally answered my support ticket
now time to wait another 2 months for the reply
๐
What is it about?
Verified bot name change
(before anyone saying anything, I do have some legal issues with it)
Yeah the discord support is an absolute abomination
Trying to work with LibsDisguses and am facing an issue with Disguises not being applied to a mob in "far-away" chunk (me, the player, being 1000+ blocks away).
The Disguise API works fine when I am near the entity (when it gets disguised) but not when I am far-away initially.
PlayerDisguise playerDisguise = new PlayerDisguise(name, Settings.santaSantaSkin);
DisguiseAPI.disguiseToAll(entity, playerDisguise);
ok
is anyone using redis cloud and can connect? 
I keep getting The JWT expired and is no longer valid when I try to connect with github
Is there a way to overload a method in an interface and allow the class to only implement the method it needs?
By default all methods in an interface needs to be implemented, but you can specify a default behaviour using the default keyword
Thanks didn't knmow this
implementing an interface isn't about the class "needing" methods but about a subtype relationship
I know, but I'm trying to make an accept() method for all the subtypes and some need an ItemStack some dont
you can simply ignore unused parameters
Won't that be smelly code and ugly?
depends on whether the subclass still fulfills the contract of the interface
otherwise, it's probably a smell to have one interface that does two different things
Is it bad that my crate animation consists of an array of 5 values and blocks like
}
i[0] += 2;
if (i[1] > 0) {
i[1] -= 0.025;
i[2] += 0.05;
}
i[3] += 1;
Many value changes I mean, A lot
Is there a cleaner way of doing things like that or is that the only way?
What does the animation look like?
sometimes you can't algorithmically represent animations but often times you can
There's a value for the degrees, the radius, the y-axis, second counter and change of pitch in notes
I have something like this
There's no such methods tho
Because some Animations might not have an actual timer
An int array where each value represents something is far from explicit. You will open the project next month and wonder what the f i[0] += 2 does
Then define the values as fields
int degrees;
int radius;
Yeah that is a solution I guess! Thanks!
guys out of curiosity, how many plugin hosting sites do u upload to? (modrinth, spigot, etc...)
cause personally, i upload all my plugins to every single one ๐
modrinth, polymart, spigot, builtbybit, & bukkit
Will this work as a right click to redeem?
function redeemCode() {
// This function will be executed when the user right-clicks on the plugin
// It should contain the logic for redeeming the Minecraft code
// Here's an example of how to display an alert to the user
alert("Redeeming Minecraft code...");
}
var pluginElement = document.getElementById("myPlugin");
pluginElement.addEventListener("contextmenu", redeemCode);
also i got no idea what that is... lmao
do you script?
script?
coding?
ye ofc
Will the coding i put above work?
once again, #development, and still got absolutely no idea what that code is for lmao
lol
chad gpt
Im considering doing this really scuffed system where I seamlessly allow minehut players to join my network
It involves switching to minehut's auth servers. This means that even when connecting through a direct domain, you are still connected to minehut's proxy.
This means that their proxy's commands are usable by the player and that you get sent to their hub when you get kicked
So my plan is to use a proxy running minecraft protocol and mojang auth to forward directly to minehut's proxy which forwards to my actual proxy
This top-layer proxy would communicate directly with my bungee proxy to run kick actions and intercept command packets to prevent the minehut proxy from being able to receive specific commands.
against the minehut tos
if you use them to get players, its fair to ask to redirect to them lol
I heard they have added some feature to connect the minehut server to your own external proxy
Any idea why the RAM keeps growing in docker, even though is not even running?
interesting
and ig this has to do with docker?
lets see if this changes anything https://stackoverflow.com/a/67287705/11496439
You can't make plugins in javascript
nah you can, there's a couple of engines
Ok, docker will probably be my next fav thing and I really need to learn how to use it ๐ต
Redis doesn't support windows but I could start a local server with just a command through docker โค๏ธ
docker is simple
Yes they did, but you have to have their commands in your server enabled
if you do something to block them, against their rules
what commands?
To people that have looked into Async-WorldEdit plugins, how does asynchronous block change work briefly?
there are basically two plugins with fundamentally different concepts
Itโs more the maths thatโs done async not everything
But you can look up block change methods aswell (there is some major ones online and how many โper secondโ the methods can handle)
any idea why IJ uses 4GB if I have the max memory set to 3? D:
and no, I don't have any configuration running

mhm, I see
JVM heap != total memory usage
native libraries and stuff that allocate native memory are not bound to that limit, that is outside of the JVM's control
welp I guess is time to upgrade my ram to 32 
oh is it even java then or is it just native libraries
i mean for the most part it's probably JVM heap
But the answer to "why is it exceeding" is, not JVM
i mean the extra gb
yeah that's off-heap, native allocs
so if a program doesn't use any native libraries and an xmx is set
it'll strictly only use up to that xmx
never go over
yeah
good to know
but like, trying to get to that point is pretty much impossible; if you perform IO or any kind of platform-specific stuff (like UI), even the jdk itself uses off-heap memory
the question is, how much
i guess IO stuff can avoid native allocs if you use the jdk apis
Interesting.. I'm really interested into the mathematical expression of such methods
but if you go, say, netty, and use its own epoll impl, then yeah that's gonna be extra
A little old now but still cool tech that should be easily updated
I've seen mojang is making their own world edit feature for bedrock (at least they teased it)
nvm. it wasn't from mojang
it was the guy that leaked all the other stuff
Don't worry creators! I have things for you as well...
Here's a sneak-sneak peak at Bedrock's work-in-progress editor mode
5022
440
Yeah idrc
The people that join through minehut know itโs minehut
And the ones who donโt donโt
Because having my server go to the minehut lobby for my non-minehut playerbase will literally make the server look bad
pretty cool
wow imagine worldedit with such capabilities
what was the "worledit" software, back in the day?
where you could open up the world and do similar stuff like in the video?
mcedit?
yeah
nah
mcedit?
not just top
it's 3d, no?
ah I was thinking of world painter
๐ฆ Java: 1.7, 1.8, 1.9, 1.10, 1.11, Forge 1.7
last post

would be cool to see something similar like that in the game, but that's never gonna happen
are there really no working forks?
working and maintained
since it is OS
github changed their FORKS page. ๐ญ You can't see any forks created over 5 years ago anymore
but the rest, is pretty nice
all I could find was
https://www.amuletmc.com/
but this is outdated too or not
you can sort by a lot of stuff
the amulet editor seems to be somewhat actively maintained
last commit 2 weeks ago
though personally don't really see it more convenient that using worldedit plugin/mod
Thanks!
yo who the fuck uses MS access ๐ https://db-engines.com/en/ranking
Hi, could anyone help me find exact code that's responsible for tps command in 1.19 please?
SQA 
sqa?
Scottish Qualifications Authority
basically the people who manage/make the exams I do
As part of the Computing Science course, atleast in first year of exams, they made you use MS Access.
is there an already existing lib known for adding website features to our plugin, I've been searching for one to see if someone was really bored to the point they'd make one but haven't found one like it
wot?
I mean, yeah, we have studied access as well unfortunately, but it is still rank 10 LOL
Access errors are ambiguous
That's the annoying thing
Ayo, do anyone here have any clue on how you change the water level on a cauldron?
talking bukkit plugin, java
cauldronData.setLevel(//Do changes);
block.setBlockData(cauldronData);```
^
you should also check if the block is cauldron โบ
Well, he asked for how to change it, that's on his part!
I dont know if im going insane but this does not work
ava.lang.ClassCastException: class org.bukkit.craftbukkit.v1_19_R2.block.data.CraftBlockData cannot be cast to class org.bukkit.block.data.Levelled (org.bukkit.craftbukkit.v1_19_R2.block.data.CraftBlockData and org.bukkit.block.data.Levelled are in unnamed module of loader java.net.URLClassLoader @7d9d1a19) at my.name.PlayerAction.onPlayerPlace(PlayerAction.java:146) ~[myplugin-0.0.1.jar:?]
Like ive seen that in older builds on github they do
Block caul = lugin.caulLoc.get(player.getUniqueId()).getBlock();
byte caulData = caul.getData();
caul.setData((byte) (caulData-1));
but setData is deprecated
i assume this listener is called when you place an empty cauldron?
yes exactly!
thing is cauldrons can hold more than just water, you'll find in Material LAVA_CAULDRON, WATER_CAULDRON and something else; an empty cauldron (Material.CAULDRON) isn't Levelled because it could be anything; you need to set the blockdata to that of the filled cauldron you want (e.g. Material.LAVA_CAULDRON.createBlockData()), that blockdata is Levelled
okay ig lava cauldron is not levelled lmao
It works, thank you so much!!!
wait where did you find that btw
nevermind found it
but you are an absolute legend
thank you
replies don't work smh;
anyways, I was searching for a lib that makes a website like plan (or was the plugin name Player) website & luckperms, spark and related ones
...? why does it work now
what
wdym what
that's literally all I'm asking if there's a java lib or something that allows us to do that
cause I was bored, but anyways it's not like I'm actually going to make a plugin
also sorry for the ping, didn't mean to do it
hi, stuff like this is made using maps, right? https://proxy.spigotmc.org/11398dce028dce215758d12ff01157d4e49b7328?url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FlRvnS4HKJmE2YEFXYF%2Fgiphy.gif
yes (map & item frames i think)
thanks
I dont
also it's not crashing, it clearly says
something is locking up your main server thread
Boys, we gettin replaced by AI even in Minecraft ๐
yes
@violet creek you better not make that public or at least make it paid ๐
bad code
item removed while in creative
multiple items are consumed and only one fireball is launched
literally ununsable
I'm not going to make it public, don't worry.
Indeed, the code it writes is impractical and very often just wrong. Just a cool proof of concept I thought
You can def. do it better.
It might come in handy in test servers though
Im just messin around, its pretty cool as it is
Makes chatgpt remake your plugin lol
Yo guys
Is there any way to change durability of an item?
Like i want to make a leather armor last like a netherite one?
I'm pretty sure there's a way to do that but i cannot find it
@ me if you have an answer, thanks
@manic vector make code that works like the unbreaking enchant. Listen to the event of the player receiving damage and according to what durability you want it to have, make it have a chance to lose durability
Also, you can make it have a custom durability thing with a lore and just translate your durability to the actual one if you want the bar shown or just don't change durability at all, just have the lore
Now, I don't know if durability is fully changeable with NMS or not
@manic vector i think mmoitems do this. but I'm not sure :/

yup
I just wish it let me navigate quickly through folders without loading a new page every tim
Hello guys
I have this javascript expansion
var skill = PlaceholderAPI.static.setPlaceholders(BukkitPlayer,"%aureliumskills_power%");
function hasKit(){
var power = skill / 9;
return power.toFixed(1);
}
hasKit();```
The problem is that when player leaves TAB plugin probably tries to retrieve anyway the placeholder
And return this error
Any idea on how to fix it?
@ me if you have any idea, thanks!
you dont need to use setPlaceholders
why not?
there is no reason to do that
just String.format()
what am I saying
nvm
I commented before seeing your code lol
aureliumskills must have an API
For sure
But they donโt have the value I need t
Thatโs why Iโm making this script
Any way to fix it?
placeholders are parsed automatically, you need to use setPlaceholders only when you create the placeholders by combining strings
@untold violet
Hey fellas, would anyone know how to edit a Spawners BlockData via a plugin?
I need to change a spawners SpawnData tag
declaration: package: org.bukkit.block, interface: CreatureSpawner
(CreatureSpawner) Block#getState()
and then setstate afterwards
I made my own placeholder expansion and got this error when I put the jar into the expansion folder:
ForkJoinPool.commonPool-worker-25/[ERROR] Failed to load expansion Expansion-weather.jar, as it does not have a class which extends PlaceholderExpansion
idk what 2 do abt that
why not just have it as a class inside of your pluvin stead of an expansion that you have to download?
also post the code to paste.helpch.at
uhm any reason clearing an inventory doesn't clear item in cursor and items in the crafting slots (player inventory crafting slots)?
If u think abt it, those slots arent a part of this inventory
eh fair
This is what I do currently to set what kinda spawner it is. But I need a way to modify an armor stand showing up a helmet inside of the spawner
more then likely if thats possible then you might have to do it with nms because it doesnt look like the bukkit api has the ability to do that
Okay. That is a scary statement, ill see what I can do then, appreciate it
Wow my server wasnt deleted yet? 
can someone help me with some code
how the frick do you send images
i thought you could โ
send them where
you have to send them using imgur because of your level
Any update on this?
@wind patio give this a read
shush
Okay so at work we use some atlassian tools, jira and confluence, for all the projects of the company. On jira we keep the track of the tickets (issues, improvements, tests, etc.) and on confluence we have documentation and other stuff (like a wiki, with different pages and sections).
Now, these tools are very, uh, enterprise, and I need something similar for a smaller project. I know that github has projects, which is a great replacement for jira, but is there something (ideally built in github ๐ ) where I can put the documentation?
I could use wiki, but the repos are mostly private ๐ข and I can not have wikis on the free plan
I just need something that functions like a wiki basically, yeah, but it needs to be accessible only by certain people
Notion?
I will try that, hmm
I have some people that don't really know Markdown so I have an integration that pulls Notion content and converts it to Markdown for Docusaurus so they don't need to know how Markdown works to write wiki content.
scary markdown 
Plus since they can write it in Notion they can keep a nice editor
what are the limits on the free plan?
I guess you can create X spaces and then invite Y members to each of them?
Yeah I think so
We just had 1 account and shared the login lol
https://docs.bloomlibrary.org/
This is a site that uses Notion to write the content and then converts it
This site is a work in progress. Our initial goal is to bring together in one place the various advanced documentation writeups weโve done over the years.
oh lol
Is anyone experienced with steam server query for rust? I need some help with decoding the keywords from the A2S_INFO request. I know what some of them mean, like mp#, cp# born#, the server browse tags, but I can't find a meaning for the others. This is an example ``mp150,cp3,ptrak,qp0,v2377,weekly,vanilla,fl9,ha2f51664,stok,born1678312765,gmvanilla,akd,oxide,modded`
POG after 2 months of suffering
Discord is allowing me to change my verified bot's name
Pog
Uhm soo I have a self hosted mongodb server in ptero, the thing is, I am unable to connect to it with mongodb compass, etc....
user and password are correct, host and port too..
am I missing smt?
lol
Yes, it is probably configured to be accessible only from local host
net.ipBind right?
I added my own ip to that too...
didn't work lol
it was just a guess, idk xD
god self hosted mongodb do be a pain
I wonder how much 512mb from atlas actually stores
the 512mb is the free plan from atlas cloud
but I was trying to switch to my own
so yes, in a ptero container
Have you tried asking in ptero server
If ptero gives an error message maybe the bot had an autorespobse
Make sure u ask in panel or wings help tho
just bind it to 0.0.0.0
both in the actual bind and with a Ptero allocation
https://pastebin.com/q5cbwZg8 server crash on /restart, idk why..... can someone help me?
considering that there's an error constantly going throughout your console where it cannot connect to the auth server
so uh
probably fix that
#minecraft afaik
guys
in guilds plugin
how do i set the team prefix
i cant see the prefixes
please help
@pallid gale
now I am confused
Is it possible to spawn a invisible zombie but with its armor visible?
so basically i want to make an arrow in front of player that is only visible to them
i am thinking of placing a invisible zombie on a armorstand
Doesn't invisibility potion still show armor or am I misremembering that?
yeah it does
does cloudflare HTTPS actually encrypt anything if you don't have it setup on the server? (ex if you listen on port 80 but you setup cloudflare)
I always assumed it did but now that I think about it... it doesn't make sense
is it just encrypted from browser -> cloudflare but unencrypted from cloudflare -> server?
and how secure is this?
this is good enough
its basically the same idea as only client -> nginx being encrypted, but nginx -> your actual app being plain
which is what just about everyone does afaik
1.19.4 tomorrow ๐

If i make armor stand invisible, will its armor be visible?
afaik yes armor is still visible
its like if an entity is set to be invisible, its armor isnt
tho try it and see, best way like brister ment or whatever
If it's related to this then you don't need an armor stand at all
Uggg don't remind me
"Can you add <feature>", "When is <version> support being added" etc...
yes, it is related. I was thinking about it and removed the zombie because i don't need it
what's new in the 1.19.4
1.20's datapack xD
I'm joking IDK. Just check the snapshot changelogs
display entities 
what does that include, the new entity types?
great
1.19.4 is an upcoming minor update to Java Edition set to release on March 14, 2023, which adds the /ride and /damage commands, makes technical changes, and fixes bugs.
Aside from the aforementioned changes, this version will also release the rest of the 1.20 features under the same data pack.
last day for armor stands
Bye bye armorstand holograms
oh sweet
I wonder how much improvement I can get out of Holovid with this.
literally
this will make things easier probably
Tho we used packets for the most part anyways.
time to wait for spigot to never add an api for this
or make a shitty implementation
but who cares, we got our lords and saviours, the paper team โค๏ธ
Tomorrow should be a fun day.
I can't imagine the NMS work needed for display entities ๐ฌ
i have heard rumours that 1.19.4 will contain the s*x mod
they're actually fairly well done
Which snapshot did those get added?
Ty
It's the src/main/java/net/minecraft/world/entity/Display.java right?
Alright so introduced in 23w06a. They did modifications to it in 23w07a, pre4 and rc1.
yeah they changed it a few times, but not a lot of changes, mostly minor tweaks and fixes, they were introduced quite cleanly


