#dev-general
1 messages · Page 44 of 1
twig sucks bro
it's like the same as django templates
Blade is much closer to normal PHP which lets you do like nice functions and stuff
stuff like the @class directive that lets you do like tailwind style boolean object for classes is so nice man
Tebex uses Twig iirc
really? that's pretty weird lol
i know chazza uses Inertia with Analyse at least iirc
We do, kinda
Tebex itself uses Laravel+Inertia+Vue, but our templating engine (for the storefront) is twig
But personally, I much prefer to use the Headless APIs as you get full control of the storefront. Using the stack you want/like, without anything else
I've seen it a few times when installing themes.
Honestly, would be interesting to see Tebex offer some Headless service. 
We have headless APIs you can use, MCC Island’s store uses it :)
I’m not sure of any other stores but I know MCC Island does, and they use Next.js I believe
Ever tried NextJs?
I mean React is nicer than Twig lol
Does anyone ( @ocean quartz ) know about a 🆓 tool similar to dbdiagram.io that lets you download some file that you can later on import back and continue working on the diagram? We got like 40 tables and is a pain to save the "configuration" of dbdiagram on a txt file or something and rearrange the tables every time I have to make an edit.
what do you need 40 tables for
it's for a restaurant
It is for work, a banking app
so uh, work doesnt provide any tools, such as magic draw?
The project is quote old and some relationships are not so straightforward, hence why I want to make a diagram.
Idk what "magic draw" is but I need something like dbdiagram which is made for DBs and not diagrams in general because I don't want to draw the tables or the arrows that represents FKs
mysql workbench?
We use Microsoft SQL
no I mean you can do that in mysql workbench
Interesting
Do you need to be connected to a db or you can create the tables through this functionality?
Im not sure, havent used it, just heard about it
Right, I will check it out, thanks!
there's also visual-paradigm
ngl, would also be good to have further tutorials/guides (preferably in video format) on using the headless api and checkout api... Was looking at it the other day, and having some type of guidance besides the docs, would be nice.
Like some actual irl examples on how to properly use it
Really cool idea. I’ll mention that internally as we do have a video department
Let me know if it goes somewhere!
Something similar for making themes would be nice, last I checked it was very much just documented that "oh yeah, you can theme with X file" and not much more details.
Personal opinion, I’d ditch the theme system and go direct to headless. It requires more work upfront, but it’s a lot more customisable, and you can deploy the site blazing fast to anything like Vercel
I mean the system already exists, just isn't very well documented.
Also a lot of server owners don't know much about hosting and rather pay the subscription to have it managed.
Yeah I get that. But if templates existed using headless
Hi, is anyone familiar with portforwarding? I have this issue where I am required to input "Virtual Host Port" before I can proceed to add a port. This is on a D-Link DIR-X1860Z WiFi6 router. Any help please.
https://imgur.com/a/LRBpfxS
I spent a few thousand commissioning an artist for a website half a year ago, I wanted to turn that into a site with the headless APIs, but had no time lately
Someday..
Headless would require the server owner to manage the front-end. 
Hosting wise.
Virtual Host Port is the wildcart port for your ports
Feel free to tell me more about what you're up to
Hello
I need help rq
[22:56:39] [Server thread/INFO]: sdxq issued server command: /kit create test
[22:56:39] [Server thread/INFO]: ItemStack{STONE_SWORD x 1, UNSPECIFIC_META:{meta-type=UNSPECIFIC, enchants={DAMAGE_ALL=1}}}```
so I created this command which just do this:
```java
List<ItemStack> items = new ArrayList<>();
for (int i = 0; i < inventory.getSize(); i++) {
ItemStack item = inventory.getItem(i);
if (item != null) {
items.add(item);
System.out.println(item);
}
}
String name = ChatColor.stripColor(kitName.toLowerCase());
kitManager.addKit(new KitData(items, name, new ItemStack(Material.STONE)));```
[22:56:41] [Server thread/INFO]: sdxq issued server command: /kit test
[22:56:41] [Server thread/INFO]: test [ItemStack{STONE_SWORD x 1}, ItemStack{BIRCH_STAIRS x 8}] ItemStack{STONE x 1}```
but when I add the items to the player it doesn't have enchant
private void claimKit(String kitName, Player player) {
KitData kit = kitManager.getKitByName(kitName);
for (ItemStack item : kit.items()) {
player.getInventory().addItem(item);
}
}```
pretty simple thing, but enchants doesn't work
Server: 1.20.4, Java: 17, Client: 1.20.4
this is just a bug or I'm dumb?
It is a bug!!!!
Uh
now it's worst with downgrade
oh god
Okay now when I do the claim in Server: 1.20.1 seems to work but when I load it from a filed it's doesnt
during a mvn package I get many errors cannot access <path to java file
can you paste the error and/or log and pom.xml?
I think this is what your looking for https://paste.helpch.at/felefanamo.xml
did you try running mvn clean package?
Also, is IntelliJ giving errors in the code as well?
or just compilation errors
you can run that and then mvn package afterwards
mvn clean package just runs both
clean clears some cache stuff
stuff in your maven local seems corrupted (?) in line 62 - 67 (idk about others, but I know LastLoginAPI is on a public maven repo... so you should probably be using that instead of maven local too)
Don't know why the other errors are happening; hoping clean would fix it
and also please send your pom.xml
did the mvn clean package and same errors
hm ok
I couldn't find or get it to work on public maven
try deleting the jars in 62-67 and regenerating them
not sure why those are messed up
what errors?
warning? what/which warning?
all the warnings are setup for public mavens
I was able to fix all the maven warnings by changing the version on a few of them and then back now no warnings on maven, still got the 100 zip END header not found errors which is stopping me from compiling
@EventHandler
public void onEntityDamage(EntityDamageByEntityEvent event) {
if (event.getEntity() instanceof Player) {
// Check if the killer is an Ender Crystal
if (event.getDamager() instanceof EnderCrystal) {
EnderCrystal enderCrystal = (EnderCrystal) event.getDamager();
// Retrieve the player who placed the Ender Crystal
if (enderCrystal.getCustomName() != null) {
Player crystalPlacer = getServer().getPlayer(enderCrystal.getCustomName());
if (crystalPlacer != null) {
event.setDamage(0); // Prevent damage from the Ender Crystal
event.setCancelled(true);
event.getEntity().setLastDamageCause(event); // Register the damage cause
// Set the killer to the player who placed the Ender Crystal
((Player) event.getEntity()).getKiller(); // This will be used in onPlayerDeath
return;
}
}
}
}
}```how do i make it track if the damage reason is respawnanchor
A respawn anchor is a block
so it probably wouldn't trigger that event. Try the https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageByBlockEvent.html
@EventHandler
public void onEntityDamagebyBlock(EntityDamageByBlockEvent event) {
if (event.getEntity() instanceof Player) {
// Check if the killer is an Ender Crystal
if (event.getDamager() instanceof RespawnAnchor) {
RespawnAnchor respawnAnchor = (RespawnAnchor) event.getDamager();
// Retrieve the player who placed the Ender Crystal
if (respawnAnchor.getCharges() != 4) {
Player crystalPlacer = getServer().getPlayer(respawnAnchor.getCustomName());
if (crystalPlacer != null) {
event.setDamage(0); // Prevent damage from the Ender Crystal
event.setCancelled(true);
event.getEntity().setLastDamageCause(event); // Register the damage cause
// Set the killer to the player who placed the Ender Crystal
((Player) event.getEntity()).getKiller(); // This will be used in onPlayerDeath
return;
}
}
}
}
}```
not working
The RespawnAnchor class is the block data
So you should check the block type and then check if the blockdata is instanceof RespawnAnchor
can u like code it and tell
im not sure on how to do that
event.getDamager().getBlockData() instanceof RespawnAnchor
getDamager() returns Block, RespawnAnchor is a child of BlockData, so your original instanceof would always be false
tho i dont think the server keeps track of who tried to fill the respawnanchor and failed so the explosion will tell you it was the respawn anchor but not who tried to fill it
@wintry plinth hey, uh, have you used any SSH packages that allow you to SSH into a remote and execute commands in laravel?
tried spatie/ssh, doesn't allow password authentication
I’ve actually never tried but good call 😮 why not setup an SSH key?
eh, well, I don't wanna set-up it on multiple machines
I’ll have a look for you tho :o
good, you should not be using password auth ever
It's like super easy to just make like an ed25519 pub/priv keypair and set it up
and like 100000x more secure
and it's arguably easier to set it up on multiple machines, you just edit the ~/.ssh/authorized_keys file and bam
can just copy paste the whole thing lol
😂
Virtual Machine 😉
WSL
Laravel 11 today

https://blog.laravel.com/laravel-11-now-available?ref=x
@pastel imp @wind patio @cinder flare 
how can a thing be so good
I wish we could use this at work
instead we use springboot
Oof 😳 reverb is so cool, a self-managed pusher basically. One less expense to worry about
dies
Reverb is gonna be effort to setup I've just looked at docs
ngl the update looks pog
svelte does have some of those things or similar
but some it doesn't
i mean spring is nice but sometimes things get pretty complicated
one of our senior devs is trying to implement a custom api rate-limitter/manager, where you can enable/disable specific endpoints or groups for API user "groups" and add rate limits per N amount of time and its a big struggle
we use several spring boot instances over different servers and zuul for our external gateway
and it seems like it would be a breeze using laravel lol
Hehe breeze ||https://github.com/laravel/breeze||
yeah I thought I knows smt from laravel called breeze lol
Huh... java public class Custom { public static Custom instance = new Custom(); private Custom() { System.out.println("Custom constructor called."); } } Any reason the output is only shown the first time Custom.instance is used rather then on runtime?
you mean only when you access the field?
Static blocks run the first time the class is referenced 
👍
when first accessed or class loaded
Probably obvious, but when using String Builders in kotlin, should I do append("string").append(variable) or is append("string$variable") just as good? I would say the first one is more correct 
i would doubt it makes a huge difference tbh
bear in mind of course that nowadays StringBuilders are only really necessary if you're appending in a loop
Yeah, but I like it more than string =+ other string xD
I wonder if training an ai model that is multilingual with a mixed language dataset is beneficial or not
since in theory, just an english dataset would work in theory....
might add a lot of complexity but if you are short on data it could be worth considering
I mean, define "short on data"
if the amount of data you have using any one language is not enough to get the results you want
I currently have a dataset of around 250k messages in english and the same dataset translated into other 7 languages.
how similar are the messages
wdym
TBH, I am not fully sure, it's not my dataset. I just know that they are comments from social media
so I would assume quite a wide range of themes
mixing multiple languages means you two subsets of tokens that won't ever mix
lot of wasted potential
wait what? got confused with the sentence lol
brain not braining
ok imagine a simple model that takes in text as input
hmhm
you are going to chop up the text into tokens of words
(or letters but that will lead to the same problems eventually i think)
if you use more than one language, suddenly you have a pool of english word tokens and a pool of say french word tokens
however you probably will never encounter an english word in a french datapoint, and vice versa
and you have basically two words in different languages that mean the same thing but are different tokens
you need more neurons to handle more possible input tokens, but you still have the same amount of meaningful words, just duplicated
you can of course consider translating one language into another but we all know how terrible that can be at getting subtle and potentially very important meanings across
suppose that's where the fact that it's a multilingual model helps, since it already does the job of understanding what is written and translating it internally
I just saw this on a relatively popular site, pretty scummy
read the top class name
I reload the page and the numbers are different
Its also a shopify template 😐
lol
suppress it
Why does JSONObject.get("Object") return long from "Object": 1 Shouldn't int be priority?
And yes I can do ((Long) JSONObject.get("Object")).intValue() but just curious why its not checked already.
json only has one numeric type, read the docs of the json library you use I guess
👍
Random question, in a moderation system, is having categories like "Insult", "Threat", "Toxic", etc. relevant? Or would simply Neutral and Toxic be enough?
depends if you wanna generalise or not
real
I mean, the question is not really if I want or not. It appears to have better results if a model is trained in only 2 labels than several
since examples for each label have different sizes which unbalances the dataset
if I go with only Toxic and Neutral, then yes, kinda what I am gonna do
well then there's your answer
¯_(ツ)_/¯
i think toxic overlaps with the other two categories
regardless of how many categories you end up picking you probably want them to all be discrete
i think emily's suggestion is very decent but i can also see some shortcomings depending on how well the model performs as well as what you actually use this for
should normalize the dataset for this
wdym with normalize?
delete overrepresented categories' datapoints until you have an equal amount in each
nothing crazy
if I had several labels, that would decrease the dataset size by a ton, since, for instance, in one of the datasets I am testing (I am doing several types and mixes of datasets), there are 190k neutral and like 20k of "threat" and 100k of "Insult"
so making it all 20k
would decrease the size by a lot
giving it way less examples
yeah
but the amount of data isn't everything, it's still worth it to normalize
the alternative to normalizing is having your model end up preferring to label any message as neutral
Issue comes when you have labels like "identity attack" which only have 2k examples, a dataset of 10k compared to a 300k is way worse imo
not very easy to solve
I am also testing a 2 label (Neutral & Toxic) Dataset of 1.3m messages, thing is, around 87% are neutral, which is not good, but it will serve as testing.
having too much of one label makes it very hard to tell if the model is actually learning anything
Accuracy: 96.33%
Loss: 0.09
F1: 72.60%
Precision: 69.39%
Recall: 78.25%
These are some metrics of one of the models trained on a dataset with:
Neutral: 59.87%
Insult: 32.05%
Obscene: 6.92%
Toxicity: 6.59%
Threat: 6.32%
Identity Hate: 2.58%
Servere Toxicity: 0.61%
With a total of around 330k data points.
This dataset also had noise added to the messages
is the accuracy on test data with the same distribution of labels as the training data
wdym?
are the percentages of this distribution
Neutral: 59.87%
Insult: 32.05%
Obscene: 6.92%
Toxicity: 6.59%
Threat: 6.32%
Identity Hate: 2.58%
Servere Toxicity: 0.61%
also the case for your test set
not 100% but yes
the same dataset without noise had similar accuracy, loss and f1, but precision was at 81.47% and recall at 78%
Difference is that stuff like "you s2$k" wouldn't be detected
while with noise it was
if you have noise, you should be able to increase your total dataset size by several fold, especially for the minority labels i would think
wouldn't that possible cause issues with duplication?
maybe try using noise disproportionately on the less common labels to bump their percentages up and get your set closer to normal
slightly, but it's very common practice to augment datapoints to increase your total training data
especially when you have a small dataset like you do
should I do this with only Neutral and Toxic labels then? Seems like a better approach for this
and easier to balance out
wdym? do what with only neutral and toxic
train your model on only those two?
if so i think yeah that'd be fine, combine all the bad labels into one like you planned originally
you should definitely have your model use a softmax for how confident it is in each, although it's probably doing it already
seems like a convenient feature to get the exact percentage confidence for future applications
also this is a pretty obvious thing to do but are you doing all the basic things when preprocessing your data, like turning to lowercase and removing unicode etc etc
it already gives a % of confidence yeah
yes
very nice
one final though i have is if the duplicate datapoints with different noise in each (which you should do fr) is not enough or if performance still isnt where you want it, you can try feeding your model a "context" of several messages that were sent in a row
i think that's pretty important to recognize toxicity for human moderators so surely having a model be able to see that will do good things
you'll have to figure out using custom tokens to separate messages correctly though but i bet that'll do pretty well
The dataset isn't mine, but from the limited search I did inside it, it already contains some of those
will have to wait until tmr for the models to finish training with the new dataset
then we will see
kinda 7x the amount of toxic data points now
lmao
dataset has 1123353 toxic and 1167756 neutral
neutrals were untouched by noise
toxic were once the original, no noise, then 6x the same with different noise amounts
suppose that's good enough?
seems pretty good to me ngl
I tried asking in the IntelliJ discord but it seems dead
But is it normal for files on onedrive to result blank when opened from a mac, and uploaded from a pc?
IJ has a discord?
how do i fix this>?
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
yeah
I need to somehow have a common local repository so dependencies for my projects work between my mac and my windows desktop computer, but onedrive is being so slow
Is it a bad idea to have my repository folder in my onedrive, so that both my mac and windows machine can have a common place to find dependencies?
Wdym by find dependencies? Why not just use Github? Push from one pc pull from other, let your buildtools handle dependencies
wdym with "let my buildtools handle dependencies"?
That's why I asked you what you meant by finding dependencies, because let's say your project uses gradle, when you open the project it'll download all dependencies you need, so no matter which pc you're using all you need to do is open the project
yeah but if those dependencies are in my local maven
On one computer
I tried setting up sona nexus or something but I cannot understand for the life of me how it works
Use reposilite
does it work for gradle projects too
Also, it says "self hosted" - does that mean one of my machines needs to be constantly on
Yes, I mean it's a maven repository manager it'll work on either
And yes it's self hosted, get a cheap vps, it doesn't need much
But if you really need local stuff, you can also always just add jars to the repo in a lib folder or something like that, there are many ways to make your life easier than using onedrive
Can I set it up on a linux machine?
I can host it where my network is hosted on
Though idk how difficult it might be
Idk thing is that this all seems very overkill
I simply want to be able to work on my projects on two different machines, at this point it's easier to just have an USB
Setting up your reposilite and using git to keep them in sync might be a lot of work at first but will definitely make your life much easier in the long run
I'm just scared of using an USB stick as a friend of mine lost a shit ton of data on it randomly and has to pay 700£ to get it fixed
i might be better off just rebuilding all the dependencies on both computers
way simpler though long
i got this laptop so I could do work outside of the house for university, i can't spend days trying to figure this out
just use GitHub
then just publish on my other machine locally?
You could also use Github packages, but personally found that just hosting my own reposilite was much easier to setup and use
how come setting up a server to host reposilite on is easier than using github?
GitHub packages specifically
not GitHub in general, they serve different purposes
one is a git repo host for projects and all that sync stuff you want, the other is a maven repo for hosting dependencies
Hello there, so we are currently switching to Folia cause of multithreaded schedules and better cpu usage.
Folia runs much more stable than paper thanks to better use of the CPU cores and not going on just the first thread.
Long story short: We would love to see someone here that maybe have experience to change the source zip-file project of a few Plugins from working on Paper to working on Folia (All of them are open source, but not planned to update to support Folia nearby. So the Folia-API integration and changing the schedules.
There is a option for universal-schedula or better use MorePaperLib which will work on Bukkit and Folia as well. If someone have experience in that, can write me. You dont need to update all, just maybe to tell us how after one worked. That would be awesome. Me and the team would really appreciate that. Thanks! 
That would really help us..
#1213705082143514654 @orchid wyvern
If those plugins are open source but the authors don’t have any current plans to add support for folia, that mostly means that it wouldn’t be an easy task…
use javascript, ts is unnecessarily typed.
It defies the design logic of javascript being a dynamically typed language.
typing is not unnecessary
lmao
typescript devs do too much with their types
me when devs use types for their inteded purpose?
I’ve got to openly admit, I’ve been a JS developer for many years and always hated the thought of using typescript. It’s not until I started using it where I really saw the benefits
TS is really useful for stuff like database records, having the IDE completion. Or pulling in data from third party places, and having the completion to pull out what you need
It sometimes is a mess though
i need to put an image on a menu like this
like the video on yt the name is "how to make custom gui" but for me don't work
i talk about the pl deluxemenu
Thats why I would pay for it, cause we need help from programmers that know how to bring it to work. You will get 20€ for a small Plugin like Marriage Master and 40€ for each more if you want to do them also. 👍🏻 We need really these plugins, cause the players love them and I want to keep it for them for the switch to Folia.
DM me the plugins, happy to take a look
charlie taking our jobs
😂 happy to take up jobs as and when
“Side quests” 😭😭 I can’t
Xd
it is, I just use speech to text and tell chatgpt what to do
therefore I don't type
anyone got any good inventory / gui libraries? @ me if you know any
I think people say "triumph-gui" alot.
+1
@oblique heath so, metrics wise, the new balanced dataset is extremely good, but in reality... it's like.. "wth", "hope you die" comes out as neutral lmao
Does yaml have a length cap on strings in a string list before it occupies the next line in the file?
that would be weird
snakeyaml 🤮
reading client source code seems much more rewarding than server side
forced to pick up opengl lwjgl to learn how to make visuals for my hacked client
its really fun experience, minecraft helped me a lot in learning programming
Oh..?
curious
i wonder how the length of a message affects model accuracy
yeah modding client is a fun experience
you get to learn graphics, networking and all that in one
reading server source code is a mess tho
too many unnecessary features getting into the way
Tbh, I haven’t touched that kind of stuff since like… 2017? Kinda forgot it existed still XD
Always thought about making my on utility client since all this other clients are so bloated these days, but really haven’t had the time to sit down and do it.
have to confess im working on a hacked client because of the difficulty to get it done, but currently progress stalled because of me not knowing anything about lwjgl. Wanted to get visuals and custom rendering on entities. Like overhead display on enemies.
yeah nobody develops clients these days im aware. I think most of them haved moved to fabricmc or dll injection with JNI for some reasons or just use mainstream clients
Its nice to know you were working on clients back in 2017. Client modifications were real popular back then
while me at that time were still making 10 lines bukkit plugins 😅
good question xD
i feel its not really worth it, it ends up being one of those things that you automate in 20 hrs so you dont have to do it manually in 5 minutes
Yeah
I was there in like peak times so 2015-2017/18. Was a good time but I’ve heard the community has gone down development wise like you stated.
My favorite schiz back at it again, keep up your grind king 🙏🏼
@young wasp your dms are closed. Sent a frnd req
@young wasp same
I’m planning on making a blink client that will revolutionise hacks in hypixel housing
Any advice that I can make it even more undetectable? Currently blinks can still be observed from a far distance because it is not fast enough, not really instantaneous (not teleport but like fast moving)
How do I make blink close to teleportation?
I think I should use linear regression on how much interval is allowed per blink packet by hypixel
Like the distance between each blink move packets and also regression on how many packets per interval or sth?
I have no idea how spigot built in antiflood and Anticheat works
lol
im thinking of constructing a model for the allowed packet and allowed distance delta for each blink packet. But it would be the best if i can find the part which stops you from doing too many blinks in the spigot source code, which is yet to be discovered.
let me know if you have any ideas. There are many professional and leading developers in the industry, and im looking for advice to do this.
It is a very fun side project.
any half assed anticheat will rubber band you back for that crap
MY MAN back on the grind, mad respect king 👑
It is for hypixel housing which has no watchdog or any other anticheats other than spigot built in antiflood or anticheat
Lol haha I just thought the idea would be cool to test out
imagine using cheats xD, also I am pretty sure this is not the place to ask how to make a cheat... don't think its even allowed.
they don't even use spigot anymore lol
they have their own custom built jars
I know it’s like highly modified spigot fork but I don’t think they have modified any of the throttle mechanism
pretty sure they did
but maybe the micro instances of servers also affect how they process packets idk
Ok cool
It’s just about like technical aspect of the game
And I’m doing it for fun and learning, it will be a private build only accessible to me
I just thought it would be cool to discuss whether it is possible together
according to an hypixel dev, they have modified it so much that it can be said its a totally different software
cheats are cheats, imo
be it for fun or not, still cheats
i think I can still study the original spigot jar and run tests to make out the differences i guess idk
ok i will make sure to not make any further replies to the topic
but in case anyone is interested in general reverse engineering and stuffs we can discuss it
like spigot internals and server implementations, i am highly interested in the topics!
and just a final question is there any way i can learn netty properly? There arent many online resources for learning netty. Do i have to resort to learning thru java docs?
their starters user guide is pretty neat
ok cool thx a lot for the info!
I've got a project which uses a series of different java versions, at the moment I've used toolchain to download the different JDKs needed. Is it possible to just use Java 21 for example, and have the project build for the lower versions needed?
If so, how would I do this? Using Gradle
javac 21 can compile down to java 8 iirc
Ahh really, for context - I'm trying to remove the foojar thing on https://github.com/heychazza/Tebex-Minecraft/tree/implement-analytics so it doesn't download the JDKs (as it felt unneccessary)
The base uses Java 1.8, while Fabric uses Java 16, I use Java 21 on my machine and ideally I'd like it to auto compile down
Just wasn't sure if downloading was needed or not
Ah really, could I use 21 as my base and compile down to 1.8 and 16?
yeah that should work
It's strange because the CLI works fine to compile, but intellij builds bug out
An exception occurred applying plugin request [id: 'fabric-loom']
> Failed to apply plugin 'fabric-loom'.
> You are using an outdated version of Java (8). Java 17 or higher is required.
You can change the Java version in the Gradle settings dialog.
but intellij is set to java 21
just set up your toolchain version and compile version
you cant use newer features obviously when compliling down though
so no virtual threads on j 16 for example
otherwise it works fine
Ah yeah, that makes sense - is it just these I need to set?
java {
toolchain {
languageVersion = JavaLanguageVersion.of(16)
}
}
tasks.compileJava {
options.release = 16
}
Or is it other valuesa
it should just work then
Quite annoying then, as I get an issue with net.kyori blossom, seemingly due to the java ver
the options one is what's passed to the compiler, the toolchain defines which jdk gradle tries to use to compile (you should set 21 there probably)
Ahh I see, so 21 is what I'd set globally across all modules, and then I'd set the toolchain version per project?
no, you only set the release option per project
the toolchain is what you want to use globally
So in this instance, I want the entire project to use Java 1.8, but Fabric and Velocity use Java 16, how would I do this?
Happy to sponsor some $$ for your time if you have a github sponsors or w/e
well you want to compile to java 8, but you want to use a more modern java version. The release option controls to which java version the compiler will compile, the toolchain controls which jdk (version) is generally used to run tasks
set your toolchain to 21 and set compile version per module
as in fabric - velocity versions depend on a module that has common stuff in 8 and then are compiled to 16
anyone here been set-up ELK stack for minecraft servers?
ELK stack is so heavy it's imo not really worth
been pretty happy with Prometheus + Grafana
im not in love with hypixel just like to make custom clients in semi-vanilla servers (hypixel housing has little intervention in how your client implementation is, rules still apply tho), but i guess people wont let me discuss it because its sensitive topic
eh, yeah, I've installed kibana, elastic, filebeat and logstash and it is pretty heavy lol
I just want a kinda centralized log location for our servers and systems
does anyone using paperweight patcher know, how can I get a patch from another fork for my own fork?
I have a specific patch from another fork that I want, is there an "easy" of applying it by just copying it or something similar?
there is a serious issue with this server and its so fricking annoying bru
there is literally no other biome other than one, ive tried changing the seed and world multiple times
not sure what else to do
cursed server jar, only gives you one biome
try using a seed (for your mc version) that someone posted online
ngl, FlatLaf Mac Dark theme looks good
linear regression or non-linear regression for anticheats?
yes
indeed
i prefer magic
im very happy today
why would u need non-linear?
Idk the rules are not strictly linear? For these things I have not much experience I’m just trying to make a model that represents the best player cheats
u made anticheat for a game that doees linea calculations
mostly beside entities
for movement i suggest not to do those calculations
just for combat checks
player cheats dont really use those too
old ka used to lock on player and do things manually now adays the magic is in packets client sends
Future removal of CB package relocation + moving away from obfuscation at runtime
If you are not a developer but a server owner, this might still be important for you. Check the bottom section on what action you might have to take.
As already announced before, at some point in the foreseeable...
important article here 
kinda
ok cool that is good to know thx a lot
@echo mural Check dm
@fresh stag DMs
yep
👍
How can I band a 8byo kid?
teach him to play the trumpet
Hello there, so this website said deluxemenus would work on Folia and i wanted to ask if there is really a support for Folia, cause I cant find something else of it on the internet in general or GitHub. https://github.com/BlockhostOfficial/folia-plugins?tab=readme-ov-file Here is said, that it should work but instead of download there is said Discord next to Deluxemenus. Does anyone have a link for me, so I can download the Folia-Supported one? Or does it already have support for both but need to add the folia-support: true line into plugin.yml and thats it? Please let me know and thanks! 
Hey! While I was browsering DeluxeMenus's repository on GitHub, I came cross a pull request from Pedro which aims to implement support for Folia specifically. He linked a downloadable binary too if I'm not mistaken. I don't use Folia personally but it might be worth a try: https://github.com/HelpChat/DeluxeMenus/pull/56
Does anyone know a guy named Bugura or something like that in here? He's a German fellow who helped me out a year or so back with some networking stuff
I need his help again
Unless anyone else wants to help me lol
Should be resolved in #minecraft btw
Sounds good! Im at home in a few days again and will test it then. Thanks for the respond and I will write again if i get it to work on our Folia network. Thanks so far!👍🏻
Does deluxemenu have a API ?
How could I make a rng placeholder return the same number if it's parsed in the same tick?
well that's not exactly how it works
even if it's a same tick, the generation under-the-hood is always, well, a random number
but, if you need that, you could make a scheduler that generates a random number every tick, something like this:
private int randomNumber = 0;
private BukkitTask generatorTask;
private void initRandomGenerator() {
generatorTask = Bukkit.getScheduler().runTaskTimerAsynchronously(plugin, () -> {
randomNumber = RandomUtils.nextInt(100);
}, 1L, 1L);
}
@Override
public String onPlaceholderRequest(Player player, @Nonnull String id) {
if (id.equalsIgnoreCase("random_number_tick")) {
if (generatorTask == null) {
initRandomGenerator();
}
return String.valueOf(randomNumber);
}
}
hm I think I have a solution, Random has the seed param, so I can just use that
How could I check if the placeholder contains something like _seed: and if so, get the text after that?
That will still be random when doing multiple calls
Not if I use the system time for the seed
If you want to create a lot of Random instances, yeah
But that’s not necessarily a good idea
Would something like this be recommended then?
providing a seed will not solve your issue and will likely be worse than having a scheduler
Well that example isn’t thread safe, but the idea is good
as SirYwell said, you really dont want to be creating a bunch of Random class instances
(You can also lazily calculate the next value by storing the last tick)
yeah, just wanted to give a general idea of how that could be achieved
alright thanks I'll take a look into it
so my placeholder is doing this
String arguments = PlaceholderAPI.setBracketPlaceholders(player, parts[1]); I've done this already though
am I missing something?
Fixed
does anybody know a good lightweight command framework that supports spigot, bungee and velocity? (not brigadier since it doesn't work on anything below 1.13.2 iirc)
i would make my own but honestly, i have no idea how
Consider using Lamp, they support everything you mentioned and more. I personally use this framework in all of my projects: https://github.com/Revxrsal/Lamp
The library looks good, i just don't like the fact i have to use multiple different files for each platform's translations (lamp_en.properties, lamp-bukkit_en.properties, etc)
alright i ended up using cloud
you guys used NuVotifier before? it seems to me like it could just be a webhook instead of an entirely custom protocol
like, it even looks nearly identical to the Stripe or GitHub webhooks, even down to the JSON and the hash, just with a custom protocol instead of HTTP?
Yup 🫣
yikes, kind of annoying
somebody should pioneer JSON webhooks lol, could setup a NuVotifier replacement with a Javalin instance like, super easy lol
Ironic because I’ve had my eye on webhook.com domain, but guy is firm on $40k right now
Hahaha. And lemme see, I wanted to build a platform to kinda “intercept” wengooks
Webhooks**
Wengooks love it
Oh like, middleman to queue them? Or like, no-code solution to do stuff based on them
Like imagine you want to add support for a webhook, you could use this to inspect it, then auto build typescript models from it
And shit like that
With Tebex for example, I’d love to directly get the response without manually fetching it myself etf
And if your system goes down, it could save the webhook response for later
Oh, that's interesting. Not sure how much of a market there is for that, since most webhook providers I've seen have the full type information available pretty readily and stuff
Yeah the middleman to queue them for you is probably the most useful thing
Oh do they, and yeah was a quirky idea, but $40k so I’ve been on the fence 😂
And rn I don’t have a lot of time
yea yea
idk i'm just amazed we've had a shitty custom protocol for literally webhooks for like 12 years and nobody has thought to change it
like the people running these website surely want something more standardized eh?
No joke, you could change the game no doubt
Plus you are working with the god web stack too
yeah idk, just got a request from the boss man to look at Votifier
which in my mind is already pretty cringe, especially for a more low-key, whitelisted server
but like i mean i guess i gotta do it if he wants lol
Fairs
Plus you could use some secure way to sign them
i mean they already use either RSA pub/priv keys or known tokens to verify
and SHA to hash the body and verify it wasn't changed
If that's good enough for Stripe, it's good enough for my Minecraft votifier notifications lol
Yes definitely, considering these voting plugins usually have handling to prevent duplicate votes.
Definitely stripe way is viable 😂
what's the best way to read incoming packets and cancel them if needed with spigot? (1.20.4). i looked at some methods online, and a couple seem to have issues with thread safety, or using external libraries such as protocol lib. is there an easy way to do this with some sort of listener? if anyone here is familiar with fabric i'm trying to get this typa functionality
@Inject(method = "onCommandExecution", at = @At("HEAD"), cancellable = true)
private void onChat(CommandExecutionC2SPacket packet, CallbackInfo ci) {
//code here
}
there's no built-in way in the API afaik
You'd have to use an external library such as protocollib (as mentioned) or packetwrapper (doesn't require adding another plugin - I haven't used it tho) or NMS (short for net.minecraft.server - internal code) and CB (CraftBukkit - internal code)
(not familiar with fabric btw)
ah so probably just look into how craftbukkit listens to packets and implement that?
there's probably some article online on how to do it
If you're using Paper, then I'd highly recommend paperweight (https://github.com/PaperMC/paperweight) btw (example: https://github.com/PaperMC/paperweight-test-plugin) since it remaps the obfuscation stuff
although it might take a bit of time to setup for the first time
With the nms methods you inject a handler into the channel pipeline.
I'm not on PC so can't give exact code.
It should be Player -> CraftPlayer -> PlayerConnection -> NetworkManager -> Channel -> ChannelPipeline
I might be missing something.
i was reading another user's implementation and i realize my mappings seem to be different? i have player -> CraftPlayer -> ServerPlayer, and then serverPlayer.connection get's me a ServerGamePacketListenerImpl, which can be used to send packets and etc but i'm not sure how to get a networkmanager so that i can actually use the @Override 'n channelRead method. im currently using remapped-mojang, since using the default gets me stuff like serverPlayer.getHandle().c instead of readable methods.
Yeah sounds right. Like I said I'm not on PC so can't check myself.
yea but i cant get the network manager 😭 . if anyone knows this, info would be much appreciated
In later versions I think the packet listener implementation extends the network manager
the issue is that the field is protected; i got around this with reflection but i don't think that's the proper way
tho it looks like i am able to read packets now so... success!
Good to hear.
If you don't want to use reflection you can loop through the NetworkManager list.
CraftPlayer craft_player = (CraftPlayer) player;
EntityPlayer minecraft_player = craft_player.getHandle();
PlayerConnection connection = minecraft_player.c;
CraftServer craft_server = (CraftServer) Bukkit.getServer();
MinecraftServer minecraft_server = craft_server.getServer();
ServerConnection server_connection = minecraft_server.af();
NetworkManager network_manager = server_connection.e().stream().filter(manager -> manager.m() == connection).findFirst().orElse(null);
if(network_manager == null)
return;
Channel channel = network_manager.n;
ChannelPipeline pipeline = channel.pipeline();
pipeline.addBefore("packet_handler", "test-injection", <Handler>);
If you want to simplify your reflection usage you can check out a library I made also. https://github.com/TheCrappiest/ReflectionLibrary
CraftPlayer craft_player = (CraftPlayer) player;
EntityPlayer minecraft_player = craft_player.getHandle();
PlayerConnection connection = minecraft_player.c;
NetworkManager network_manager = (NetworkManager) new ReflectField(ServerCommonPacketListenerImpl.class, "c").getValue(connection);
Channel channel = network_manager.n;
ChannelPipeline pipeline = channel.pipeline();
pipeline.addBefore("packet_handler", "test-injection", <Handler>);
i'm just working on a prototype anyway. thank you for the help!
👍
Attention, business owners! If you're aiming to establish a strong online presence, I have great news for you. I'm currently offering an impressive 40% discount on our website development and design services.
P.S. Act fast – we're only accepting 10 case studies for this offer.
40% on what? $10? $100? $1000?
The 40% discount applies to our website development and design services. For website designing services, the standard rate is $150, so with the discount, it would be $90.
Nah man am real lol
Got It! Thanks!
You accept case studies?
Yup, Only 10 for this offer.
he's just a spammer
he's spamming all channels with that message
I personally do not care
Its alr man
Oh Mb, Thanks!
Wdym??? How do you accept case studies
We're accepting 10 case studies to showcase the effectiveness of our work.
what even are case studies in this case
These case studies would highlight the process, challenges, solutions, and outcomes of working with us on creating or improving a website.
who even is "us", your message provides 0 information. Not even a portfolio
Apologies for the lack of clarity. When I say "us," I'm referring to our website development and design team. We specialize in creating and enhancing websites for businesses. While I didn't provide a portfolio in the previous message, we'd be more than happy to share examples of our previous work to showcase our capabilities. If you're interested, please let us know, and we'll gladly provide you with our portfolio.
If you really want people to use your service it might be a good idea to put said portfolio in the message you posted in #1213705083263393843 or else it's just blank words
Thanks Man! I really appreciate your help.
@rose dagger is that a mod or plugin?
plugin
wow, that's awesome, impressive
thanks 😃
I'm currently developing a resourcepack that removes the horse / vehicle health bar when you mount them (https://imgur.com/a/6rMMxUk)
I've replaced vehicle_container.png, vehicle_full.png and vehicle_half.png with blank images, however there is a small part remaining that i've never seen before, I've searched everywhere and can't find what it is (https://imgur.com/a/QbEGeox)
Does anyone know of what the asset file is?
Hey all!
Does anyone know of a way to make a "list" gui for all online players that I can integrate to another guimenu (for example I want to have a menu that goes to a menu that lets them choose wether to mute/tp then that takes them to another menu to select which one to target)?? Pings are appreciated
coding it yourself or deluxemenus?
deluxemenus
then #general-plugins
Would it be possible to instead of the menu opening a chest, or whatever deluxemenu currently uses.
It places the items in the player inventory.
By: saving the inventory, clearing it, opening menu, close it, place the players items back.
This would make the menus look way more premium.
As if they were actually separate uis.
Or make players open ghost players inventory’s that store the menus?
The commandpanels plugin does have the ability to extend it into the players inventory.
But since I have a catalog of 50+ menus I would love to reuse their code. In maybe the big deluxemenu update. That willl put them at the top forever. Wink
Coding yourself or no?
If not, try posting in #general-plugins
This channel is for development talk hence why dkim said post in the other channel.
But I'm pretty sure someone asked before and was told no. You can probably search for the conversation.
I don't but if I were you I would look up a public resource pack which changes the color of the hearts, so you can see what the different images are.
oh, thankyou!
You’re a legend, will do
ok
ok
I've seen some questions about these.
They're Pinkie demons from Doom (the 1993 one), except in voxel form.
I did not make them.
They're borrowed from the voxel doom projects and are used as placeholders until we land an artist.
https://t.co/y2szp2Jznz
custom screen text input woohoooo https://youtu.be/aQHrfC5OazE
how tf u get media perms here 😭
Tier II+ have embed perms
People talk in here?
idk
i just lurk around and answer #1224207849790505030 i dont ever chat in here lol but im always helping

right on the website - https://www.microsoft.com/en-us/software-download/windows11
i wish tthey had better servers damn
i remember my dedi had 10 gbps
used to download so fast
and me and my 1mb wf
now adays
It's always (or for a long time) has been "free", but only the trial afaik
like the thing with the "Activate Windows" box on the bottom right
yeah and really all it was was that you couldnt change the wallpaper and stuff like that
Every time I install Windows on a machine I just change the key server and that works like a charm
Dunno how long but it's been working for a while
i mean, as an individual (not for commercial use), the only thing the license is useful for is for changing the desktop background, getting rid of the watermark, and if you're silly enough, getting one-to-one support from Microsoft
Besides that... the rest is basically free for use
(not legal advice (despite licenses and terms of use not being legally binding))
yuup
MSI allows you to (or atleast use to) change the wallpaper. 😉
There is no trial. It should always have features deactivated + watermark if you don't have a product key.
Unless this is new and IDK about it lol
Easy to bypass
And dunno i guess Trail Like winrar
Oh yeah idk why I said trial lol
hell why is jda the only "well" maintained java discord library :/
there was javacord
but not sure how it is now, it was quite behind jda before though
javacord and discord4j are both kinda dead
and jda has been slow overall, for instance, premium subs from verified bots are still not supported :/
and they have been out for like 6 months
or more
Overall, I feel jda is not that well organized
and I might have to migrate to another library... maybe even outside java
which is not smt I would like to do but oh welp
everyone goes back to the discord.js lifestyle eventually 😔
😦
yeah, havent looked back once i tried it out honestly
and they usually follow discord closely on releases as well, no waiting for implementation for newer features
I honestly would love to continue using java but oh welp... thing is, I would have to relearn a bunch of stuff
but oh welp
i still hate it lol, but i use a weird PHP library so like that's not a super popular choice lol
i just love the way it organizes 😌
how is py?
the php lol
discordjs doesn't organize shit
it's like the least opinionated thing ever i hate it
i use this 😌
there's a PR that adds support for paid subs in jda
but like, unsure if it's maintained, and has 0 documentation
so uh 😭
it's also quite dead and even further away than jda
What's dead about it?
not up to speed with the discord api
while jda is slow, they are the nearest from all java libraries
Do you know of any specific feature missing?
According to their readme it looks up to date
Well, the example I gave above, Premium App Subscriptions are not yet supported while being out for almost half a year
but others are for instance, user-installable apps, automod, profile background changes, and a few smaller things
They do have automod, the rest I don't care enough to check, so I'll take your word for it 
hmm okay, that was actually the one I wasn't sure about lmao
but the rest I am pretty sure are not present
2-3 of them are open PRs that haven't been merged yet
Can we load command when the payer close menu, even if click in echap ?
my code works perfectly 50% of the time, the rest of the time it instantly crashes
incredible
optimizing map color matching is surprisingly hard
sounds like a skill issue
you say this but i didn't realize i'd have to write a kd-tree algorithm for a block game
i don't even know if this is faster because O(logn) vs O(n) at such a low number is not even applicable but hopefully it's faster
Just making sure it was clear, I was being sarcastic.
eyyy it paid off. 10x faster color matching than a simple for loop
could not connect to a default or fallback server. incorrectly configured address/port/firewall
how to fix
but help plz
also need way more information than that...
but use the right channel
ok
and stop spamming in every channel
we have no idea about your server setup. what plugins your using, what host your using, what your connecting from, if youve routed through cloudflare, etc etc. you need way more info
:/
guys what is the best way to get xp as an player on earthsmp types of servers where there is no end world and building xp farms is hard
wrong chat for this
touching grass
You should prob ask in the specific servers discord that your playing on..
anyone knows a way to fix the SHOW_ITEM hover event for legacy versions? https://prnt.sc/B_6U-DD3yHIL
legacy versions afaik dont support the new json text format
if that's what you're referring to
ironically JDA just added premium app subscriptions
actually idk if that's ironic
but still
lol
just thought it was funny
LMAO
What's that
so theres no way to convert to a legacy format?
Depending how you're doing it you could just display a different text depending on version (or nothing at all)
.... it's just a text format. you could obviously just write some code to adapt some of the features
just get the string from the text component
hmmmm ok i will try it, tanks man
can anyone here help me out with some NGinx reverse proxy stuff
when I try and restart the service through MobaXTerm with sudo service restart nginx, it throws this error: "unable to resolve host (host name here): Name or service not known"
And I'm really confused as to why it's using the host name that it is
because as far as I know, it's not defined anywhere
nvm, I think I found the issue
Okay I found an issue but now it's not letting me connect at all
mfw I need to understand HTML to make a rendering system in Minecraft:
what about html? i know a little
Html is rather simple fwiw.
I am making a rendering system and I need to create an architecture for it and idk what to model it after
oh yeah that might be past my knowledge lmao
is there a reason you have to make it yourself
if it is in minecraft then could you just repurpose an existing html -> image renderer? https://github.com/bubkoo/html-to-image
I'll check this out, I'm not actually looking to convert HTML to an image, I just meant that I need to figure out an architecture and needed some sorta inspiration
wdym exactly by architecture
like the way in which to create a GUI API
if you seen my #showcase thing, that's what it's for
to design a structure which is convenient for developers to use and fits the method of rendering is a little challenging
@everyone
We had this already
It’s easy to just say a number, but how much do you worth your time and development ability?
well for a simple website they can get oracle free tier vps
the fuck lol
I mean I earn quite a bit at my actual job, but nowhere near 3.3k for 50 hours
my montly wage is 3k before taxes
What’s the worst they can say? No?
Probably true
Fair true and based
where does bro live to survive on this
that's 1/4th of the median wage in my area 😭
Lithuania
ah that makes sense
as of 2024 average gross is 2100
if it was in America I'd be amazed
uh, not sure, not so much Id imagine
I started working halfway through finishing my bachelors degree
u studied comp sci?
developer market is overall decent in europe
it's not oversaturated like america
lol
yes hopefully the situation improves by the time I become one of the competitors
in the us?
not happening any time soon lmao
at all
if I were to estimate, 8+ years
mistake is having a laugh
hopefully having a good resume and portfolio will fix this 🙏
yeh
Do you guys prefer composition over inheritance for data objects?
I've heard that composition is better, but I like using inheritance to store multiple objects with similarities together, in a map for example
Ohhh composition can still be achieved with polymorphism?
i mean yeah they're slightly different tools in a language like Java
like you want to be using interface-based polymorphism for stuff like map storage
but composition for a lot of other things
But can't you use interface-based polymorphism with composition? Or does that ruin the purpose of composition?
I mean yeah that's what I'm saying, they're slightly different tools that can work together and serve different purposes
Ah okay good, I used inheritance for everything before, and it was causing a bit of a mess lol. Had to make a gson type adapter for everything
this may be a stupid but i'm sitting here thinking right now about nms
- the mc server is obfuscated
- mojang doesnt want deobfuscated server out there
- mojang releases mappings for obfuscated server so devs can work with it
what am i missing here bc something about that doesn't make sense to me, what's the point of obfuscating it in the first place
well the method names are mapped but the code itself is still obfuscated
obfuscation in general is just pointless
with method names it seems not that hard to bypass whatever purpose of obfuscation they had in mind
seems like just a pain in the ass for no reason
They have to obfuscate for legal reasons
okay question for the smart people here. I am trying to make a papi placeholder that returns true if the block that the player clicked has any water around it but i cant use the isWaterlogged since not every block includes that data and idk how else i could possibly do it. So if you have any ideas let me know 
I like the idea of obfuscation, but equally I also like open sourcing thinge
obfuscation serves little actual purpose
I’ve mainly used it for software like Spoof (where at the time, nobody else built anything like it), and I didn’t want people skidding the code
But if I’m not building anything like that, I prefer to open source as much as possible
So little actual purpose then 😉
mojang doesnt want deobfuscated server out there
they just don't want deobfuscated source code laying around everywhere. It's more of a legal thing
although why isn't there a direct java api made by them?
there's already spigot/fabric/sponge so it's probably just unnecessary/not worth for Mojang to spend resources on developing one
why is Minecraft still obfuscated though 🤔
copy cats?
nope, they release deobf mappings
Legal? Can you be specific? How does obfuscation help with legal things?
should i use nbt or pdc for storing data on items
pretty much depends how hot the code path doing the nbt/pdc manip is
if its a bottleneck then nbt because its more performant but otherwise pdc cuz its a more stable api and (probably) easier to use
After a while of making my own servers I started with making paper plugins
Does anyone know some free coursers our youtube tutorials that are more recent where i can up my knowledge?
ngl might be fun to join a server dev team over the summer
I have my own server
lmfao is man's recruiting 😭?
anyone know how maven central knows if a dependency is supposed to be runtimeOnly or implementation? ex https://mvnrepository.com/artifact/androidx.compose.foundation/foundation/1.6.5 is runtimeOnly, while https://mvnrepository.com/artifact/com.google.code.gson/gson is implementation
is it just guessing? 🤔
no idea how accurate it is
ex it marks log4j-core as implementation instead of runtimeOnly
Is there a way to show custom textures in 1.8.8 on a server side texturepack from items with specific meta data?
mvnrepository isn’t maven central. I don’t know where they get this data from, but I could imagine it’s just some basic heuristic. It won’t be correct in all cases anyway. But it can probably also extract gradle-specific metadata
Did you check if it does something similar with the scope for maven?
Does anyone know if there is a way to allow players to mine custom blocks in Adventure mode?
Awesome thank you
Pterodactyl is splitting into something called pelican (#124919575534895105 message)
ye that's interesting...
"I discussed these changes with <owner>, and we could not come to an agreement, so-"
"...he's the only one with merge access, and write access, etc..."
yeah that's actually pretty sweet
i mean i would've rather the main guy just step down and continue under the same name, but it's awesome to see work being done on Ptero or similar
I've been wanting to do SSO with Socialite for a while, but figured it's not worth the risk to do it myself just to save a few minutes every like few months when i need to add/remove users
What do you mean? I’m confused
In Pterodactyl Panel
It's written in Laravel, but they haven't supported SSO or anything, just user/pass auth.
Wait really?! That would be good tbh, o didn’t realise it uses Laravel now
That’s so cool
Yeah it's always used Laravel lol
As far as I know anyways
It's just been kinda "feature-complete" for the last few years
Ahh shows my lack of knowledge in the hosting space
wut?
uhm could I get some help with github? I recently transfered a repo from my own acc to an org, how do I update the intellij project so that I can make commits to the right repo?
Git > Manage remotes > Change origin
I had a random thought, so if I were to make a skript or plugin that utilized armor stands to add decoration that’s visible to both bedrock and Java what would be the best way to optimize it for performance, it has to be armor stands bc it’s the only way to display models to bedrock- I’m very bad at optimizing things and wanna work on it 😭 sorry if it’s wrong channel-
where is this "Git" button?
oh ignore, it wasn't showing
and wanna work on it
You haven't even started working on it and you're already worried about performance
premature optimizations be like
Bruh....
Utilizing it for furniture and decorating, possible custom crops etc too could become clutterful of armor stands, I can make it where each model only uses 1 but it would end up being a lot still- I just wanna be extra cautious
do I have to make the org public or smt?
Then make it work, see how it performs then worry about performance, don't waste time worrying about something you might not need
It doesn't have to be public, you just might need to authenticate it
wdym authenticate it? the org?
uh?
cant you just re-clone it?
I suppose?
tf even if I want to clone it again it doesn't find the repository?
lmao
it's private in my org but I am logged in...
so a bit confused
hmm enabled the "Use Credential Helper" and it solved the issue
who knows
random thing
lol
so, um
recently we got kinda "hacked" due to owner making somewhat a bit mistake
the "hacker" got an obfuscated plugin into our server
xd
I'm very curious what this thing actually did
and if everyone is up for a challenge
(mods dont ban me plz)
there are a shit load of files that do
public String toString() {
char[] arrayOfChar = new char[2];
arrayOfChar[0] = 0x3C1 ^ (char)(char)Arrays.hashCode(arrayOfChar);
arrayOfChar = arrayOfChar;
arrayOfChar[1] = 0x3C1 ^ (char)(char)Arrays.hashCode(arrayOfChar);
arrayOfChar = arrayOfChar;
return new String(arrayOfChar);
}
I assume generating some kind of string

I mean you can just run that, it's creating a string
yeah I guess, got a VM ready for it lol
better safe than sorry
sure
i mean running the whole thing isn't really gonna show you anything useful I presume
true, I'll just do some debugging, see what I get
@wind patio check to see if there’s any HTTP(S) connections
^^
0oooh
this looks fun
Bro I ran this and now my anti-cheat is obfuscated.. nvm, it always was 
imagine
yeah wasn't just a force op
we salvaged what we have and did a complete reinstall of the OS lol
what was it?
well, he gained access to all our files
ran a few commands
such as zipping the entire server folder (to later download/upload it somewhere)
mysql dumps
so that's why I guess it's a reverse-shell
that can be done by just zipping the folders and uploading it online
plugin also has access to other plugin folders, which their config may contain the creds for mysql
^
and funnily enough, deleted all the directories containing "logs"
and .bash_history
etc
interesting...
that's why I love cloud logs xD
yeah unsure if a plugin can delete stuff like .bash_history
and created a system user account too lol
AND in mysql called "mariadb", I know for a fact we never had one
and well a giveaway is the password was "changed" (as per column name) at close time we were "hacked"
so yeah, fun story for tonight
back on password changing duty
Mariadb my love
how tf did you let that plugin in without checking xD?
well, I'm not gonna go into details, but it wasnt manually downloaded from here and put into the plugin folder
did the owner just
upload that jar on their server...
was it a dm from someone that was like "can you try my plugin?" with a super suspicious jar and they thought fuck it and put it on prod
lmao
there honestly should be better deobfuscator for java tools
like demangler and all that to take care of all these nonsense
and make them much more readable
Skill issue
im talking about from the decompiler technology we have for java
we have very limited tools and flexibility for java bytecode
even the best in the market recaf is very limited in capabilities too
it is not hard to understand, just annoying
nah
I have read way more obfuscated code
just from experience this will not be productive if the obfuscated code size is huge, and after you work it out if it got a new version update then its all wrong again
we need automated tools to analyze them
it was on a test server lol
thats not good
uh, just as a quick check, you didnt have tebex etc connected on that server right?
yeah, no
Feel free to dm me info and I can share with the team as we would be punish such a user
any typescript knowers know what the difference between these:
[string] and string[]
tuple and array of strings
typescript-string-vs-string
yeah where's my url encoded square brackets
i'll remember this. ill return when im lvl 25.
you get image perms at tier 2 / level 10
where do u see your level? i only see a range on my role
well i cant use the #bot-commands channel. i can type it in, but i cant view any messages
What the fuck
the gating mechanics are too strong in helpchat
Wait until you find out about #cubes-pings
"No Access"
</profile:1154314768979599452> maybe?

