#dev-general
1 messages · Page 25 of 1
so the method i just described wouldnt make muchh difference
would just lessen the amount of looping required if your storing the players currently waiting to be teleported
i dont think that it takes up that many resources
its the loggers or player messaging that takes the longest if your doing it every tick ir whatever idk
Ill just keep it as is and find this comment again if it gets heavy :p
?
ah fk
ignore it
its correct but I didnt read properly what was asked
it had to start at the red one
but mine was starting at blue
what
EntityPlayer ep = ((CraftPlayer)p).getHandle();
int containerID = ep.bU.j;
String message = "Time remaining: " + time + "s";
IChatBaseComponent chatTitle = IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + message + "\"}");
PacketPlayOutOpenWindow packet = new PacketPlayOutOpenWindow(containerID, Containers.f, chatTitle);
// Send the packet to the player
ep.b.a(packet);```
Any one know how i can fix this flashing? Its like it removes all of the items from the inventory and then adds them back for some reason. Im just trying to change the title
It's opening the window which means it renders all the items. It's not just changing the title.
https://vm.tiktxk.com/ZGJ5KQVuj/ I'm trying to connect a microcontroller to a LoRa network and this is me every 5s lmao
How should i just change it?
I don't think you can. Minecraft doesn't have a packet for specifically changing the title as far as I know.
fawk, any other ideas?
Has anyone got any experience with 1.18.2 NMS and entities not visually updating their position?
I'm trying to help a friend work out a problem he's been having but it's a bit beyond my knowledge (and he's the more experienced of the two of us :P)
Details here:
https://www.spigotmc.org/threads/588055
I tried updating it how he does, however i still get this flash.
Im not sure if it comes down to a client side issue or what
Ig it would help if you coud see it flash
https://cdn.discordapp.com/attachments/837316783743565904/1091048744260227123/javaw_A9KKWcE6fT.mp4
I talked to someone who also did it but they did it on click, and if you pause at the right time you can see that it clears it, but its not as much of a noticeable flash like mine is
If the flash wasnt as noticeable i work with it
this server your testing on is on the same pc right?
i ask cus flickering seems more like a ping problem then anything
tho i could be wrong
no, i’m testing on my host as i was at school. should i try local hose?
yeah
Is it me or is pagination a nightmare.
been trying to find ways to do it for 2 days in my code, but keep being one way or another that doesnt make it work
No it's pretty simple
it depends on your level of experience
Arguably that could be said about eating pasta
Do you eat pasta with a spoon or a fork
what about a teaspoon
Fork, but then again i eat kind of everything with a fork, i dont like spoons too much lmao
soup with a fork too? 🤓
No no that does get a spoon
Does anyone have 2+ monitors and minds sharing their window layout for JetBrains IDEs?
I been switching it around (or simply using default settings on a single screen) for years and I kinda want to decide on a layout and then stick to it for a while - got 3xWQHD both at home and at work now - but I need some inspiration 😢
Obviously it depends on what exactly one is working on, but I'd love to see how y'all do it 😄
Idk I sometimes forget I have two monitors (laptop + external 27") and I just use the one in front of me because of its position and size lmao
But when I do use both I usually keep the main IJ window in front of me and on the laptop monitor I have documentation, config files etc.
yeah, IJ on the center monitor, browser right, other shit left
so you dont even move the terminal window to another screen? I feel like it takes up so much space if u leave it at its default position at the bottom 😄
for one, you can minimize those things
secondly, I use my numpad for most of the keybindings, easiest way to remember/toggle certain things
such as distraction-free or zen-mode
Ex.
Ctrl + Shift + NP1 => Toggle Distraction free mode
.. NP2 => Zen Mode
.. NP3 => Toggle terminal
.. NP4 => Toggle Project view
.. NP5 => Toggle Commit View
I don't use built-in terminal as much
I use Putty or windows terminal
that also goes to the left screen
And for screen organization I recommend PowerToys FancyZones add-on
you can arrange these sections however u want, have as little or as many as u want, especially useful for wide monitors
you just hold shift while dragging a window and when you release it will snap into the selected zone, if you hold ctrl + shift, it will select multiple zones
How on earth would you use that layout?
It feels exhausting just by looking at that, I don't want to see 14 windows opened 
idk, it's prob just a showcase (not my screenshot)
the more zones, the more customizability, if you use it for various tasks
ex. you can place a window directly in 7, or in 7 8 9 and 10 combined
My layout is pretty simple
do you use the custom one?
what do you even use the small ares for?
or are they there only to not have the big window to the edge?
mainly this
fair
I only have a custom layout for my left screen. Other two dont have zones.
Good point with the keybinds @wind patio, I unfortunately dont code every day (smol company, I do sysadmin + software design stuff and only some backend dev when there is time) so I tend to forget keybinds.
But I guess I really should get myself a cheat sheet with some keybinds I absolutely gotta learn. I am quite mouse-heavy for someone who's been in the industry for almost a decade 😄
The only shortcut I regularly use is probably shift shift 🥲
And ctrl ctrl to run commands 🤣
hey someone I know was asking me if they should start with an easier language than objective-c or swift or if she should just start learning one of them also in which order she should start learning them any ideas?
She should definitely not learn objective c
Swift is all right to start if she only wants to make iOS apps
Or you can go with Kotlin multiplatform mobile and not have to deal with those 😌
or React Native and not have to deal with those 😌
Okay thanks :3
Is she a complete beginner?
I'm still a huge fan of starting with webdev because it's very visual, well documented and easy to get into.
Frontend to get a feeling for the subject, then gradually get into backend.
yes first language ever
Or use Kotlin multiplatform and React Native and deal with both of those
Use scratch or smt idk
Can someone recommend a premium Skyblock plugin, one that also supports multiple servers
The Ai ignores all
Don’t call him an AI that will hurt his feelings, he just wants to be a real boy


@pallid gale is this normal?
Yes
Question, I was just talking to a buddy of mine about this and im curious what are the differences and which way is actually better.
So for getting the main class, i use dependency injection. Where i pass in the main class into the constructor of any class i need it in. My buddy uses a static instance in the main class and just does Main.getInstance() which way is the propper way to do it? I always thought static was bad which is why i started using DI as i used to do it that way aswell.
yeah DI is better since you can easily trace where that reference gets passed to, and it also eliminates invalid states like calling that static method before your class is fully initialized and stuff
as far as like performance and stuff like that is either way better? If so i assume one wouldn't affect it too much
eh I mean it can be argued either way, basically makes no difference
"Singleton Vs Static in Java" would be a good google for this
this channel is not for skript 
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/inventory/RecipeChoice.html sealed interface moment
This class is not legal for implementation by plugins!
that would require the api to be compiled with not java 8 
Is it not ??
It is
Why the italic
Emphasis
correct
Emily is known for being emphatic
You can add it to the list of stupid things done by spigot em
I mean
Although the minimum requirement for compilation & usage is Java 8, we prefer all contributions to be written in Java 7 style code unless there is a compelling reason otherwise.
This is the entire reason org.bukkit.util.Consumer exists, rather than them using java.util.function.Consumer
Even though it is available for the target version they're compiling for
Part of the reason I like sponge is because they're not afraid to rewrite code for the better
Java 7 ??
I heard Vulcan is good from other people
The only paid AC I've ever used is Matrix because I got it from a giveaway
yeah I love Vulcan
Spartan is more for PvP IIRC
idk if its still active but NCP is okay and Grim may be good in the future
last time i tested spartan was horrible for pvp
but i last tested spartan over a year ago
so
anyone have experience converting deluxe chat to chatchat?
that didnt seem to help D:
how do you mean? it converts it for you, you put your Deluxechat config in on the left and it gives you out the ChatChat equivalent
i put in the deleuxechat config, and updated the new chatchat stuff, but it has all playernames as %playername% in a rainbow color
I got them both rn.
Ah yup, I see your messages in #chat-chat-beta. Still waiting on a new version of that converter!
Vulcan better reviews though
i just need to get a somewhat decent replacement for deluxe chat soon xD then i can find a more permanent solution
is Vulcan easy to switch to/set up?
Grim is good with the right config
Personally I use grim on a pvp server where we consistently average 350 players, gets about 800 bans a week (I enabled autobans) and about 10-15 are false, usually due to lag or Simulation falses
@cinder flare WIP
I'm sorry, I don't understand the context of your message. Can you please provide more information or clarify what you mean by "WIP"?

+1 for vulcan
put data types on the right side
Oh snap what! Which editor library is that?
I personally prefer this https://yamlchecker.com/ because it highlights the problem and it is easier for newcomers
Then report em xD
I've been using Vulcan for quite some time and its defo the most accurate
and if i do find a bypass i report it and its usually fixed within like a couple of horus
Thanks IntelliJ
bro is writing a whole novel in intellij
EYO that UI do be looking pog
although load times do suck a bit for me
CodeMirror
It's a little funky though
I need to fix it up somehow
You have to click on the top line vs anywhere
I fly out again tomorrow morning so it may be a next next week thing
I was actually just looking at Monaco (the editor that VSC uses) https://www.npmjs.com/package/@monaco-editor/react
Might be nice too, if there's too many problems with CodeMirror!
Mfw I went off what you suggested on GitHub
well it looks pretty good! I'm happy either way lol
Does it work client side? I'm only seeing server side stuff
I mean I would hope so? the link I sent is a React component for it, so it wouldn't make much sense if it didn't render on the client
Like other React components, this one also works with Next.js without a hitch. The part of the source that should be pre-parsed is optimized for server-side rendering, so, in usual cases, it will work fine, but if you want to have access, for example, to monaco instance you should be aware that it wants to access the document object, and it requires browser environment. Basically you just need to avoid running that part out of browser environment, there are several ways to do that. The one is described here
And if you use monaco with Next.js and have faced an issue different than the above-described one, please let us know to make this section more helpful```
Awesome
Was there a change between 1.12 and 1.18 in how entity position handling was done?
A friend of mine is updating a 1.12 car plugin to that uses armorstands and custom textures to 1.18 and there's a visual glitch of some sort where the client isn't seeing the armorstand's position changing despite the server knowing it's changed
well between 1.12.2 and 1.18 release date is 4 years, so its possible
I'm just guessing that could be a reason, since it's a bit over my head
he made this post a while back with more detail:
https://www.spigotmc.org/threads/nms-entity-position-not-updating.588055/#post-4537339
anyone have any clue what the issue is there, my guess is maybe some packets aren't getting sent or something?
@distant sun this seems like the sorta thing that you might know something abt, got any ideas
The trick is to ping random people because their time is less valuable than ours
fair enough
wait i just realised i can't tell if that's meant to be sarcasm or smth
Sorry to disappoint you but is not
@ocean quartz and @crude cloud have more experience than me with the internals
wtf is that gif
Did you visit cernobyl recently em?
i did not, why do you ask
Where did the second pair of legs came from
western cartoon

ig you might have to send a packet to all players that are in range
i was thinking that too, but I think we were hoping to avoid that
I had a look at the packets list and i saw a couple that might fit, any idea which one
Can people help me with the auto tab completion function. Me as a operator of the server can do it. But my moderators can't..
How can I give them the perms or setting they can do this as well?
either update entity position or teleport entity
update position if the movement is at most 8 blocks and teleport for anything higher
I want to allow players to buy items from a shop, and I want to stay away from chest guis. I want something clean and easy to understand. Does this seem appealing or understandable? Is there anything I can do to improve it? (I removed the class of armor and class of tool for a icon, cause it was making the items wrap to the next line)
Icons > text
Agreed
ever since custom chest inventories were introduced i have to say id rather use them then anything before it
back in the day you had sign shops, chat based auctions, etc
any they are all so primitive feeling then a chest gui
and really annpying to use

Agree with all, only for player shops I feel like that chests are still the best thing
I agree with that, but I am aiming for an immersive feel with this server, and chest guis seem to detract from the immersive ness.
if you want a replacement you coukd try using a resourcepack and custom gui textures
I was doing that, but I didn't like how it looked.
I feel like I could do pages per category to make things more organized and easier to understand
So there would misc, diamond tools, iron tools, bows, etc
I honestly don't know what is best. I am just experimenting. I am also trying to challenge myself with no chest guis, and finding creative ways to create interactive environments.
like i said i pwrsonally much prefer using a chest interface then a book interface or whatever
Yeah, I understand.
d
Could you elaborate on what you mean? Are you saying Icons over text?
Icons as in normal chest GUIs
ah, that makes sense
sooo kinda going to an Amazon Workshop tmr
about AWS
question is, doesn't AWS have like 389824 services? lol
mocking players be like

60420 to be more exact
LeatherUnknown
I definitely didn't exclude the unknown entitytype from the stream
I blame bukkit for creating such an enum
Fair
I had PaintingPainting generate and I don't even wanna know what the chances of that were
1 in EntityType.values().length * 2 
the first word was any material name that didn't contain any underscores and the second word was any entity types that didn't contain underscores
O.o
just got out of my first day
hell it was painful
and funny
they were explaining like what instances are etc
and were like "well this is x, but now you have another 5 services for it which have their own services" lmao
sounds about right
well tbf, they said they have a bit over 200 cloud services xd
either way, it was pog, free pizza and had time to play in their game room
2 more days to go though, then I have to schedule an exam for the certification
man im so bored but i cant post in frickin offer services again so noone will dm me
Its only been 4 days brother
im not eve gonna lie though
your post was so small and lackluster relative to the fuckin bible chapters people post in there
^ On top of being a service for something that's already pretty approachable (skript)
random question, next.js is a fullstack framework, is it worth using spring-boot as backend in that case? Would you recommend another front end framework instead of Next.js? (I am a Svelte fan although trying to get out of my comfort zone and learn new stacks)
Use what you know best if you’re building an app, or whatever you would prefer. As next is a full stack, you can use it for api stuff too
OH hey charlie, thought you left discord xd. As said the point is to learn new stuff and get out of my comfort zone, and since my main language is java, I would love to try spring-boot specifically as backend, I am just a bit unsure about frontend, although I am leaning into next or react tbh. Unsure. (also, I hate js, partially cause I never bothered to actually properly learn it lol)
Although I am fully open for other people's POV and suggestions ^^
I think is more about preferences especially on small projects. Aren't the most major js frameworks able to do front + back end?
I will personally use spring for backend on the next bigger web project because 1. I like java more than js 🤣 and 2. I want to learn spring
I left all socials in Jan, only just came back to Discord for work primarily, but still permanently off other socials.
Good. They can take a toll on people
Some are, some aren't - always personally believed that you should use what you know best. Especially when looking to create a SaaS, it always helps and you can ship quicker.
Personally wouldn't pair Java with Frontend apis, but the beauty of web is that we get a choice 😄
I found them to be too distracting, too negative, and became a time waste, best thing i ever did leaving socials
Yeah but in this case they want to learn new stuff. It isn't something they need to deliver.
Ahh, then in which case whichever sounds most exciting. I've been slowly wanting to learn Next.js, so I can do Next.js + Laravel. Next has so much cool stuff to offer, defo a
to it
@pastel imp you're also learning AWS right?, you could try some serverless stuff using AWS API Gateway, AWS Lambdas and one of the language they support (or any other language using images). You get 1mil free request for lambdas per month. Idk about api gateway.
Ah. Well I kinda forgot about storage. And they don't give a lot of that for free.
I believe they give 20 GBs of S3 for free.
Thats a ton tbf
Yeah. But it is S3. Not great for everything.
Nvm. It isn't 20 anymore. It is just 5
Ah shit yeah, forgot thats just file storage for uploads
and only the first 12 months. for learning I guess it is enough
Oh. They have free tiers for the other storage types like databases as well.
You can basically have 1 RDS instance running permanently and that gives you 20GBs of storage and another 20 for backups
So it isn't that bad
If anyone else is interested, they have a page listing all of their free services. Most are for the first 12 months https://aws.amazon.com/free/, some are permanent and some are just 7 to 30 days. All is listed there
Next, Remix, SvelteKit, etc. and most meta-frameworks are all full-stack, so you can use them fully on their own for backend and frontend. It can also be good to use them as a "backend for your frontend", so to speak. Here's a good link to the Remix documentation that I really like that explains this really well. https://remix.run/docs/en/1.15.0/guides/bff
Yeah, participating in their STEM program, I am also looking into using it.
Oh don't worry, some stuff are "always free", like DynamoDB has 25gb for free if I am not mistaken
and pricing isn't an issue, I will get a gift card at the end of the program xD
so I will be just fine for a while with AWS
yeah, checked it out today on my break xD, quite pog
also, funny stuff, all AWS services (only applies to databases like Aurora and Dynamo in the database case), everything is stored in 3 availability zones by default
1 region = 3 or more availability zones, each zone is ~100km apart (random stuff I learned lol)
Yeah. I've noticed that. I just had to remind myself since I haven't visited that specific web page in months.
AKA you have backups of backups and even if 2 data centers are on fire, you will be just fine
lol
Yeah. I took a course on this. It is pretty interesting.
Mine wasn't from AWS. It was an online course from a third party coursing website. Can't remember the name right but pretty popular, paid and starts with P.
Pluralsight. That's the name
never heard of it
Well, it is pretty popular. There are some great courses there. Most if not all are paid tho.
the program I am doing rn is called Up:Skill in STEM
apparently it's an extended version of the AWS Cloud Practitioner Essentials course
Also, they run on different grids. So if one runs out of power or internet access, you can still access the data
Some more interesting stuff: https://www.youtube.com/watch?v=iO1mwxPNP5A
AI tools like ChatGPT and GPT-4 are changing the way programmers write code. Learn how build a React app with Typescript using with AI prompting and other tricks to speed up development.
#ai #programming #tutorial
💬 Chat with Me on Discord
🔗 Resources
- ChatGPT https://chat.openai.com/
- React Docs https://reac...
I feel like tester jobs are going to be more common.
Crazy how far AI has become
I might go with a react front and spring boot back?
sounds cool
I am unsure if I will use any aws services
lambda sounds cool but at the same time eh, idk
maybe a mix of lambda + dynamo?
unsure
For context, I have a mini project I wanna start which is for a movie club of a friend of mine (book club but for movies), so it would display movie of the week, review, where to watch it, etc.
I mean it was just a suggestion since I knew you were learning it. You could just use the free EC2 machine to run your backend on that.
planning on doing a custom dashboard and login system, etc.
I could, tbh will see, all the lessons I had till now were theory, we will only put it in practice tmr
you definitely want to use some sort of framework for React. CRA is dead, if you want something similar with no SSR or anything, create-vite is where it's at. If you want a real framework, Next is the big one, but I really like Remix, so possibly worth trying out!
porting a plugin from 1.19 to 1.12.2 is not very fun, i forgot how much half the features of newer java versions i enjoyed like enchanced switch statements
the -> was so nice
and grouping multiple cases together in one line was amazing
i want to try out developing for different versions, see was different, see whats missing, etc
like for 1.12.2 the raytrace api doesnt exist, so i have to go through the spigot stash, figure out how they did it so i can attempt to implement it myself, wow its fun
Thoughts on Astro?
although not widely used soo eh
Astro is really cool for mostly static sites, but it is still pretty young. For a dashboard, you definitely want something like Remix or Next
Okay, thanks a lot
Can i get dev rank now 
https://gyazo.com/6a89b873dc4ac173b55b3214f9c7405b
ainnoway 💀
must've been hard to code
yes
😂
realllyy hard, i was swetting when i was coding it
but 10k downloads is still 10k
I wonder why
yeah I don't know either
😂
Why, I don't know because it worked before but hey...
The applications are closed. Funnycube is supposed to work on a new application system but idk when that'll happen
Also, we're still backlogged with older requests
What’s the prize?
not you 🤓
😂
Are you challenging me? Time to fork 30 repositories
But.. have you forked a potato?
I dont want more then 2
i online want 0
only*
yes
You’ve done more than me then 😭
You've never eaten a potato with a fork?
No, I cut it up first 🤨
🥲 how you been? Long time no speak
//////\/////// something like that. up and down up and down
What do you mean?
Oh now that makes sense 😂 how comes?
that's how life works
//////\///////
WE GOT THE SAME AMOUNT_ _
😬
omg same!
Omg same
not me being poor on repos
Anyone know why im getting this error trying to build my build tools 1.19.3?
id suggest updating java and using the jdk version i stead of jre, which can be found at places like adoptium, i say this cus its cer 17.0.1 and currently its at 17.0.6
id just try that to see what happens
so latest is 17.0.6? I thought i saw 20
somewhere too
21 is technically the latest
i was talking about sub version
if your working on 1.19.x then you should be using java 17
Or programming
https://vm.tiktxk.com/ZGJafPwWa/
I have a slide problem with itemedit enchant, ive putted a Protection 5 on armor players cant die anymore somebody knows how to fix this?
the issue isnt with itemedit, since that just uses vanilla mechanics afaik, also protection 5 on all pieces can only reduce damage up to 80 or 88% of the damage dealt, so they would still take some form of damage
tho there has been some issues with protocollib breaking damage, so id suggest you update protocollib to latest, or latest dev version if on 1.19.x
just to make sure
also sounds like your not doing any form of coding, which id assume your better off looking for help in #general-plugins or #minecraft
im making a event and i need when people join the world i need the players to join with a cpvp kit
could anyone help me
listen to PlayerJoinEvent and PlayerTeleportEvent check the world and see if it matches, if so give the kit
if its a one time kit, then store if the player has been there before, if so dont give it, also check if on teleport that the teleport is from a world not the event world
is there a way to check a doublechest witch side i clicked left or right?
i tried it with.`
1.
Chest chest = e.getClickedBlock();
if(chest.getType().equals(Type.RIGHT){
2.
Chest chest = e.getClickedBlock();
if(chest.getBlockData().equals(Type.RIGHT){
((Chest)e.getClickedBlock().getBlockData()).getType()
thatll return either left, right or single
depending on the type of chest it currently is
Chest is a subclass of BlockData, so you have to cast BlockData to Chest to beable to use the Chest specific methods
chest.getType would return Material, not the Chest.Type enum,
chest.getBlockData() turns BlockData, not the Chest.Type enum aswell. so they would both always be false
I think DoubleChest has left or right
thats if you want to get the inventories of the left or right side, if you want to know if a block is the left or right side or single size chest then my method is the way
I completely forgot where to create minecraft plugins in intellij lol, the IntelliJ plugin minecraft development doesnt support 1.8 anymore, how can I else do it?
I'm on a new PC and forgot how to set it up
Manually
Is there no other option that just adding the dependencies and repositories?
set it to like 1.12 or whatever the lowest version is and change the build script
i dont think there should be many differences
Ah yeah true, ty
yep you legit set the version to 1.12, then when the project is generated, change the spigot version in either the pom.xml or whatever the gradle one is to 1.8.8
easy as pie
What is the GUI API made by someone in here called? I forgot the name of the API
triumph-gui
ehh it lacks a bit
What’s the most efficient way to save play date to MySQL? CompletableFutures? Then cache the data until the player leaves? How often would you update the data for example player kills, straight after they got a kill or??
Fetch from database on join, store & modify in cache, then update on quit. You could also always update to the database periodically if you needed
id periodically update the db every 10 minutes or so
you could probably do it less often if you wished
just means that if the server crashes for whatever reason all the progress done since you logged in isnt lost
its just from the last update point
Okay thank you, would you say using CompletableFuture is the most efficient way to post and get the data?
POST? Are you looking to directly communicate with MySQL or go through an api then?
Go directly to MySQL
I’ve already got that all setup with CompletableFutures implemented as well I was just wondering if it’s the best solution
this is a bit of a non-question, the concurrency model doesnt really have anything to do with how you're actually communicating with the database
but you should be doing the queries asynchronously if that's what you're asking
make sure to handle exceptions in futures
otherwise you are silently ignoring errors
Okay thanks
What server is this for? I forgot
You're in HelpChat, #introduction
☁️
where can i find support for the deluxemenu plugin
ill just ask here. Is it possible to make it so when someone joins the menu will show up automatically and they cant exit the menu until they select somehting
#general-plugins or #1007620980627230730
for the first part of your question - there are plugins to run commands on server start, I think you'd have to use one of those
second part - idk I don't use deluxemenus
how do i change the server ip address on the scoreboard that’s usually on the right of your screen? for minecraft.
what
usually?
i’m making a minecraft prison server and idk how to change the names of things like crates and stuff like that, because i have never done this before
Does anyone here use vs code for java development I am thinking of switching from IntelliJ since I do a lot of different coding with Web, Backend, etc. and I dont want to spend 100+ for the Ultimate edition just to get syntax highlighting.
I have ultimate from github student pack - maybe you could do that
or you could use intellij for java and vscode for everything that isnt java?
nono ij only has syntax highlighting
how well does intellij handle files being edited from outside the IDE, do I need to frequently refresh the project?
i think so
I just use IntelliJ for plugins, and PHPStorm for anything web
Ah okay thanks
i was trying to decide whether i was gonna say that or windows notepad
Notepad++ gang
notepad++ is somewhat acceptable
not by much but
Windows sticky notes
gang shit
Also long time no speak Ori

How you been?
hahaha why
You not at college/uni or anything?
Bare minimum: breath in, breath out
What games tho? 👀
i have been a uh
achievement hunter recently so ive been like 100% games so recently a decent amount of resident evil and rouge lites
Omg resident evil, I love that game
whatever my brain likes to focus on intensely at that time really
I've just been grinding Call of Duty MW2 for the camos, ~110h in rn and still got so far to go 😢
I really wish I had motivation to play any new call of duties but they're all kinda 
we should probably move this into #off-topic 
Have you tried DMZ from the most recent one?
Next season it looks like it’ll be pretty good
i literally haven't played a call of duty since bo4
they're all just copy pastes of the same game its so boring
but men just fuckin eat that game up
no company should release a game every year under the same title
26 votes and 17 comments so far on Reddit
PlayerFactory -> PlayerInator
Is Minestom worth using?
Minestom saved me from a burning building
depends
Is it stable enough to use in a production sense?
is it stable? yes, but whether you should use it or not really depends on what your goal is
for running a survival server? absolutely not, minestom has like no features at all
for running a limbo or a hub/lobby? yes! it's perfect for those kinds of things
I was gonna end up building a gamemode on it.
That is possible. It will just take time
I guess my issue would be somehow connecting non-minestom server to minestom servers
Hm.. Alrighty then. Appreciate the input
No prob6
it's one of the reasons I didn't go directly with minestom
Can someone help me with this error?
https://pastebin.com/82XQ9uZE
Wt is this head/ other item ?
How can I can make/get?
https://imgur.com/a/scmS2kd
anyone know?
https://vm.tiktxk.com/ZGJapeRMc/ this is exactly how I imagine things like this are made lmao
go get full collection log in runescape
OSRS
Hey i need help to build a multi maven project, i dont understand how it works i get many errors, i want to create a minecraft plugin that can be used on 1.8 - 1.19.3
Does it need to be maven, or are you comfortable with gradle? (It’s much faster!)
I made an example 1.8-latest setup, https://github.com/heychazza/minecraft-plugin-template uses gradle tho
What have you tried? (You usually don't need to build for multiple versions)
My plugin works with 1.8 - 1.16.5 but when i add the libary of 1.17.1 and 1.18.1it doesnt work because of an updated method.
Because of two methos of 1.17.1 and 1.18.1 are named the same and have the same funktions but have other inputs, thats why i need seperated projects
But how i can make a multiversion minecraft plugin with grandle
Ahhh I see what you want now, so you want a plugin that targets different MC versions?
Can you show us what the method/code you’re trying to do
This is the code for 1.17.1:
byte[] bytes = getBytesToSend( key, messageContent.toString() );
PacketDataSerializer pds = new PacketDataSerializer( Unpooled.wrappedBuffer( bytes ) );
PacketPlayOutCustomPayload payloadPacket = new PacketPlayOutCustomPayload(new MinecraftKey("labymod3:main"), pds );
//((CraftPlayer) player).getHandle().b.sendPacket( payloadPacket );
}```
And this for 1.18.1:
```public void sendLabyModMessage( Player player, String key, JsonElement messageContent ) {
byte[] bytes = getBytesToSend( key, messageContent.toString() );
PacketDataSerializer pds = new PacketDataSerializer( Unpooled.wrappedBuffer( bytes ) );
PacketPlayOutCustomPayload payloadPacket = new PacketPlayOutCustomPayload(new MinecraftKey("labymod3:main"), pds );
((CraftPlayer) player).getHandle().b.a(payloadPacket);
}```
Ahh ok, so it’s NMS stuff you’re dealing with here?
Yea
In that case, you’d just have a common interface, then depending on the plugin version you’d load that in. Let me find the tutorial for that
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
I use interfaces 🙂
Check out the above, should get you what you need 😊
The Problem is that i can make the Plugin from 1.8-1.17.1 to work or to work with (1.8-1.16.5,skip 1.17, 1.18.1-1.19.3)
My plugin already supports 1.18-1.17.1 with the inferfaces.
I dont know how to describe the Problem so you understand
is chazza back?
paperweight-userdev will save your life if you need to work with NMS
@glad sorrel you don't need to use nms for that, that's exactly what the Plugin Messaging system is for. See
https://jd.papermc.io/paper/1.19/org/bukkit/plugin/messaging/Messenger.html#registerOutgoingPluginChannel(org.bukkit.plugin.Plugin,java.lang.String)
https://jd.papermc.io/paper/1.19/org/bukkit/plugin/messaging/PluginMessageRecipient.html#sendPluginMessage(org.bukkit.plugin.Plugin,java.lang.String,byte[])
^
I'm sorry, I forgot you're against modernity
Yea with paper but then the people that dowload my plugin must use paper
the api has existed in bukkit since pre 1.5
The man, the myth, the legend is certainly back (kinda). Not on other socials though, just discord primarily
i just linked paper javadoc because that's what i have bookmarked and only a very slim % of servers don't run paper or fork anyway
Can't use paper without spigot 😉
That's not how that works
Can't use spigot without bukkit 😉
can't use bukkit without craftbukkit 😉
Why don't you just use the original NMS jar??
yes you can
without it nothing would work
there are bukkit implementations that are not craftbukkit lol
You can even add your own, will it work? Probably not, but you could
Hehehe
I think there are times when it’s needed to cover all server types, like for me I’d have to cover all types, from 1.8+ just because of supporting them
search craftbukkit then let me know.
what
So no results for craftbukkit?
literally no idea what you're trying to say
he means searching in the repo
yeah and what about it?
ilhfi
^^^
^^^^^^^^
16 results for craftbukkit 🤦
yes it will show that if they have "craftbukkit" inside a string
doesn't mean you are using craftbukkit
Seems like its using classes from craftbukkit to me.
not really no
seems like you're wrong to me
seems like you cant read tbh
9 of those are in text/comments
the others are just there to ensure compatibility
15* 
Oh isn't that an implementation of the server in the api?
Compatibility is still using it 🤦
literally no lmfao
no??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
there is no org.bukkit.craftbukkit.entity.CraftPlayer
or, like, literally any single thing like that
it does not use any cb classes
Classic emi
from a quick look, it looks like glowstone replace Craft classes with its own,
well not replace, but in terms of comparing craftbukkit and glowstone thats what it is i think
or atleast what it looks like
it has no CB code
id assume not
technically glowstone could reimplement paper-api rather than bukkit
Then it wouldn't be glowstone
why not
Because it would be something different
Why is java chosen instead of c++ for minecraft
well if paper adds a new api method its still paper
it's what the devs were originally most comfortable with
notch & jeb
then later microsoft decided to use cpp for bedrock edition iirc
ok?
Ahh cause java is slow af
lol
that's where win10 edition comes in 🙃
they didn't remove java edition since the playerbase was already huge
Good thing they made it but, it feels incomplete
Pls dont woozy face the msg it makes my dog anxious
java isnt even that slow
from what ive seen most benchmarks put it within 2x of c
for throughput at least
startup isnt as good cuz of the jvm tho
I dont like the idea of jvm itself
it was good at the time
is it because the jvm is competing for your niche as a three letter name that starts with j
lmao
in a lot of things, the performance difference between java and cpp doesn't matter or isn't as important
that's where java comes in
Thats also why they mostly use c++ for games and other performance heavy task
I think that must be it
Would only use java if performance doesnt matter
But in games, max fps is preferred
- java uses more ram too uwu
java is also more user/dev friendly
i think generally games prefer being released in a reasonable amount of time over being delayed indefinitely to get better performance
true
Gnna make last of us 3 solo 😂
:relieve is not :smiling_face_with_tear:
we have to make MinePy
10x faster than java edition
5x faster than bedrock edition
optimizations 📈
Maybe
is the only real emoji
I like c, c++ for performance mostly though cause it can talk directly to the os and hardware
you'll love assembly
or if you want to be portable, how about coding directly in llvm?
Rust 😌
Registers? Lmao not low enough
Lets try changing transistors with power instructions
So if I make a class similar too someone else's, how similar is too similar to no longer be called my own.
Working on making some of my own reflection methods and my class is very similar to a reflection class I think from protocollib.
Just plaster your name on every second line 🤣
Nah lol
just follow those conditions
u cant rly call it ur own
So it doesn't copy the class exactly but the methods/interface or very closely matching and really was hesitant about using it but anything else would use a shit ton more methods/classes to replicate.
you can either a) write something yourself from scratch, don't look at any source code to "inspire" your code, or b) copy the code and properly write down where you got it from, respecting the license
It's not the full class of mine but those are the instances that are similar.
I did that lol but when looking up similar examples I found protocollibs reflection class.
This made me think like a lot of the code people write it could be similar to others with out even knowing it. Since I know it's similar I'm hesitant to continue with it lol but I hate that I spent the time figuring out how type variables work for it to already be written by someone else lol
If it's trivial enough that basically everyone would write it that way, it really doesn't matter anyways
yeah then its def fine
cuz looking at ur code ive even written smth similar to that
just a simple reflection wrapper
Yeah for example how else would you loop through the fields/methods. Near everyone would have that same code.
tbf i used a stream for my 1
Yeah that works. In my case where I am checking name/return type everyone would have the code to check for that but the variables would be different.
Simply pretend you didn't see it
You take the items and dupe them, fairly easy

Does anyone know/have resources for adding a compile-time warning in IJ?
Ooh I hadn't seen that, I'll read it over. ty
Apparently I'd have to write a plugin, which I expected as much. ty again
you can teleport people without teleport event closing their inventory without an event
or something like that
@half harness, what you working on?
lilypad dupe!
yeah but what you working on?
There's a jar on jenkins for the api. use that for now I guess
that hooks onto its api
alr ill prob do that if i dont get this working soon
so that later i could update easier but if i can't get this working then ill just have to use jar
going to talk with glare about making the api available thru a repository
👀
its also beta so I don't think putting it on like maven central for ex is a good idea
nah glare has a repo
we can probably put it there
also surprised helpchat doesn't have one
so maybe that can change
oh ok
https://jitpack.io/com/github/dkim19375/ChatChat-jitpack/1aeb17bbe8/build.log
it works on my computer 😖
ill just use jar 🥲
Hi guys i have a small problem somebody know where the /channelinfo is comming from with plugin
?
I think its from DiscordDRV
I cant change my channel back to global.
wrong channel
So I'm having issues trying to implement minecraft horns in my plugin for 1.19.2. It would appear that MusicalInstrumentMeta class is not in the 1.19.2 api but the horn items are. Anyone know what I can do to fix this?
if you want to play the sound, maybe you can use this? https://helpch.at/docs/1.19.2/org/bukkit/Sound.html#ITEM_GOAT_HORN_SOUND_0
Im looking to identify the item meta. Not worried about sounds.
They are all the same material type. They have their own instrument meta it's in the 1.19.3 api but no tin the 1.19.2 for some reason
it does not.
I mean goats fully exist in 1.19.2
and you can use the api to summon goats and set which horns are enabled/disabled (on the entity)
Moving to support
you will have to use nms to get the nbt tag of instrument manually
convert the bukkit itemstack to an nms stack, get the compound tag and the string tag of instrument i believe
the minecraft wiki will have info on the the nbt tag is called if its not instrument
you could also use reflection to get the value afaik
since nms used to be and craftbukkit still is version dependent
i mean if it's just for 1.19.2 i don't see why you'd use reflection really, the version is already unmaintained so it's not like things are gonna change
i just suggested it
i know theres a way to do like version dependant stuff so you like compile with different versions at the same time
for different classes
like having a class for each nms thing
version
idk what thats called but ive seen it done
theres not really a special name, thats just abstraction lol
usually you'd want a multi-module project for that setup though
https://vm.tiktxk.com/ZGJaEQmBv/ another project added to the never-ending list
I was reading the description of this method to see under what circumstances it would be null and I was thinking "did someone just put a random spanish word in here?" 🤣
old english 😌
Have you guys seen this?
yes. andre loves github docs so as long as you're in #papi or #development you see all of those
¯_(ツ)_/¯
whats no access!!!!
#🔒No Access
#🔒No Access
channels you do not have access to
fr ong?!!
💯 no cap
This on the other hand I have not seen.
2 hours maybe. at least I didn't have it personally 2 hours ago
I know it has to do with a feature preview but I've had it enabled before
I'm still waiting for refined github to be updated to support the new ui smh
Considering it is a beta feature, I wouldn't get my hopes high
I like the new code stuff but I gotta say, it is very slow sometimes.
oh. I haven't even realised that the Atom File Icons Web extension doesn't work with the new UI
😛
ok it turns out icons are coming from this extensions 🤣 https://github.com/Claudiohbsantos/github-material-icons-extension
can one of yall legit just build my fabric mod for me
like just the gradlew build part
maybe it should be best to fix the issue your computer is having so that the person doesn't have to run gradlew build every time
alternatively you could setup github actions to compile the jar on every commit
um this sounds dumb but i didnt think of that 😭
It's alright
What issue are you having?
I can also send an example for github actions if you want in a bit
Although for github actions, it results in a zip
So you have to open the archive every time
when i try to do it it says "The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location: C:\Program Files\OpenJDK\jdk-8.0.352.08-hotspot\bin\java.exe" and no matter what tutorial i look up nothings fixing it i deleted the hotspot becusase it was messing with the java version and now idk how to fix it
it shouldnt even be looking for that it should be looking for the java 20 one 😭
but idk how to make it look
I think if you run the build command via CLI it will use the version JAVA_HOME points to
ok you can add this argument to the command -Dorg.gradle.java.home="path to java 20"
so i should run gradlew build -Dorg.gradle.java.home="path to java 20" ?
yeah but with the actual path obvious
wdym actual path im confused like the file path or the system variables one
C:\Program Files\OpenJDK\<version>\bin should be enough I think
so where java 20 is located in your pc
wait so if my path to it is C:\Users\jimmy\Dropbox\My PC \Downloads\lob-helper-template-1.18.2 what would the cmd be
it is not relative to your path since you specify a full location
im so confused 😭
Just put the location of jdk 20 lol
wat do u mean
-Dorg.gradle.java.home="path to java 20" where in the snippet does the location go
What does where javac output?
if you put that into command prompt
also what version of minecraft are you developing for?
C:\Program Files\Common Files\Oracle\Java\javapath\javac.exe
C:\Program Files\Java\jdk-20\bin\javac.exe
press windows key, type env, press enter
Click "Environment Variables" at the bottom right
then where it says "System variables", if you scroll through the list, is there a Variable named JAVA_HOME?
If so, make sure the Value is set to ```
C:\Program Files\Java\jdk-20
okay did that
and in Path, click Edit..., and delete anything related to Java and then press New and add %JAVA_HOME%\bin and Move Up to the very top
Then click OK out of all the menus
after that, any apps that use the terminal (whether that's just command prompt, your IDE, or your text editor) must be restarted in order for these changes to take effect
if you want to make sure it worked, run echo %JAVA_HOME%into command prompt and it should output ```
C:\Program Files\Java\jdk-20
And run ```
echo %PATH%
```and you should see ```
C:\Program Files\Java\jdk-20\bin;....other stuff....
and finally ```
javac -version
sure
make sure to restart tho
like restart or close and reopen
oh not restart just close and reopen
same exact error
The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location: C:\Program Files\OpenJDK\jdk-8.0.352.08-hotspot\bin\java.exe
run these tests
i did they all did what they were supposed to
wdym
are you getting this message straight from command prompt?
yes
okay what is javaHome?
how do i find the answer
or send build.gradle(.kts)
it opened up vscode studio and said stuff in command prompt
uh
ye
can you send the file contents of build.gradle(.kts) to https://pastes.dev?
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
nono the build.gradle
and what command are you using to build the jar?
gradlew build or gradlew run
hmm, can you show me the full log when you run gradlew build?
-
What went wrong:
The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location: C:\Program Files\OpenJDK\jdk-8.0.352.08-hotspot\bin\java.exe -
Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
- Get more help at https://help.gradle.org
is there a gradle.properties file?
yes
in the project
yes
can you paste the contents of that here?
Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G
org.gradle.parallel=true
Fabric Properties
check these on https://fabricmc.net/develop
minecraft_version=1.18.2
yarn_mappings=1.18.2+build.4
loader_version=0.14.19
Mod Properties
mod_version=1.0.0
maven_group=com.example
archives_base_name=lob-helper
Dependencies
fabric_version=0.76.0+1.18.2
ye
hm
i trust u but how does all of this relate to the missing jde file hotspot thing
trying to find out why gradle is looking there
k
I have no idea at this point without sending all files
Can you upload this to https://github.com so that I can take a closer look and possibly clone it to try building it myself?
sure
could i just send it on google drive?
i sent a link
I'm getting a different error, and it seems like you've got some other unrelated errors such as java errors too
I don't have the time for it right now to fix it, especially since I'm unable to get the error you're having
- I've barely ever used fabric api, so I don't really know how to fix the fabric api errors
oke
I might be trippin, but cant you view array in mongo? I dont think the array is empty but i wanna make sure and i cant see it here
@jagged frigate Javascript .. for plugins? 
It might be empty, but I think there's a way to view a raw version of the data somewhere in the UI, maybe near the top where the filter is
Thought that too... Probably just thinking Java and Javascript are the same
Doesn't really matter for people that don't program plugins either
I believe it should be illegal that you can't pass a String[] to a method that takes an Iterable<String>
i agree
I'm tempted to use this now
uuh
that will make a copy of the array, Arrays.asList won't
soooo unless you need that safety guarantee, don't use it? :3
wait what
how does Arrays.asList work if it doesn't copy?
Arrays$ArrayList(Object[] elems) {
this.elems = elems;
}
?
it's a live modifiable view of the array as a List
returns a view of the array
yea ^
hi i want to ask is that possible to add aliases or change /tags for deluxe tags command? And also how to force player on join get [Member] tags and they can change after they /tags select
it seems when I enabled the force_tags , then they cant to change the other tags
guys i really need help, can any pro help me pls?
somehow I didn't realize that, I thought Arrays.asList made a copy of the array and wasn't actually backed by it, now that I think about it that does make sense though
it's using Arrays.asList now :)
I see now that the javadocs literally says it's backed by the array
fun fact: List#set specifies that a ClassCastException must be thrown when storing incompatible objects in the list, but the list returned by Arrays.asList throws an ArrayStoreException instead
another obnoxious fun fact which is what actually confused me, the ArrayList used by Arrays.asList is actually a different implementation than java.util.ArrayList with the exact same name and package which makes it incredibly easy to mix up
so when I saw this I assumed it made a copy just like the normal ArrayList constructor would for a collection
primitive arrays not implementing Iterable should still be illegal though
Well primitives can't be represented as generic types, so that wouldn't really be possible
since when did non-primitive arrays do that?
you still do enhanced for primitive and non-primitive arrays
also with Arrays.asList() something that should be mentioned is if the resulting list ends up being copied several times it may actually lead to more array copies since List.copyOf() is optimized for already unmodifiable lists
I should have just said Arrays instead. You can use a String[] in an enhanced for loop because it supports Arrays and things implementing Iterable. You can't pass a String[] to a method that accepts an Iterable<String> though which is what my complaint is about. I realize now that is the case since something like int[] can't be an Iterable<int> because Java simply doesn't support that
universal generics 😍
indeed
Made some progress to show on tmr's class lol, still not finished, would consider it some type of "Tech demo" lol... my own version of space invaders
On the main menu is abilities which aren't working yet, plan on adding hp to the enemies too ofc, I have no idea how but I will try to smoothen the enemy randomness, will add a wave and score system too, different types of enemies, leveling up certain things like dmg, hp, speed, etc. lol
But I am totally open to suggestions if anyone has any.
use spline curves for enemy motion
pick N points on the map, add the initial enemy position as an additional point, and draw a spline curve (or some other kind of curve i guess) between them
then have the enemy follow that path
never actually used spline curve, although wouldn't that make it predictable?
my aim is to be random
it wouldnt be predictable since the points/path is hidden to the user
or do you want enemy motion with sharper turns?
also i should have said this but its not like it retraces the path multiple times
every time it reaches one of the points you create a new random point and extend your curve with that
preferable not without those sudden turns
ah
interesting, thanks!
ofc ofc 😎
they're very popular for a lot of applications
Hmmm they do like almost exactly what I want, although too much math for my head rn lol, will probably focus on the rest first
then sharpen systems like the pathing
you should add death animations
i think thats an easy way to drastically improve the experience
I plan on doing it
still unsure if I will just make a sprite for it or what
but I think that would fit on the "sharpening" category
rn I only want to make everything functional
will probably have to add a "cleaning" phase somewhere on the road lol, code started looking a mess
still have a lot to do, and I don't wanna bother with the small details (that make a difference but aren't essential)
something I am used to doing a lot tbh
making one single thing perfect and losing 92837 hours on it
while the rest isn't even functional
lol
trying to fix that mindset on myself rn
Hey guys, quick question. So im creating some spawner stacks, and im storing all of them in a map with the location, and then the stack. Im saving them to mongodb with json so it basically just saves the whole class. The issue i have now, is everything loads back in fine except the map bc its never technically saved in the database. What would be the best way of readding them to the map?
im using this to get the spawner from the map or create a new one, so without them in the map i cant get any of the saved ones.
return stacks.computeIfAbsent(location, k -> new SpawnerStack(location, type));
}
well no one going to help a newbie..
i did msg in there no one help me also :<
hmu?
"hit me up"
do you just want to change the command to something other than /tags?
actually is I was using essentialsX Chat, for now I got seperate into 2 groups, which is Member and VIP, by using essentialsX Chat i dont want to use essentials rank prefix because it cant to have custom tags. So like for a member who first join to the server, they will need to have [Member] tag and once they promoted to vip which has set the tags [VIP] as default so they will have [Member] and [Vip] for them to switch the tags.
that wasnt what you asked in #general-plugins or the first part here
that one i used the MyCMD plugins alr, now just the chat things is annoying
have you even read
the spigot page
its literally the 2-3rd line
like comeon
ya the line said use force_tag?
just the problem is force_tag when they join is Member, then i promote them to VIP and give the permissions of deluxetags.tag.vip then they cant even change the tags
force tag is a permission
default group : deluxetags.force_tag.member, deluxetags.tag.vip
vip group: deluxetags.force_tag.vip, deluxetags.tag.member
else just use a command on first join with tag set %player% tag
and dont make em forced
you mean go make myself a plugin with on_join to set the player with the tag?
you could just use conditionalevents
on_join sounds like some skript shit
i see maybe i can go create on join event see , if it work i will let you know
really thanks for help
it should be on first join

