#dev-general
1 messages · Page 50 of 1
just scam someone
mmmmmmmm
what did bro post
yelled at me twice 😭
revealed the cia's femboy stash
shhhhhhh
@brazen ether is this a mod or a plugin?
#showcase message
plugin
Ooo okay then. I wanted to make the same thing for my minigame but thought that it will be "laggy" I guess you've made it using a velocity
nope
player can't walk on it if you just use "velocity"
Hm i dont have any idea how did you did it then.
invisible shulkerboxes
but unless you feel like this feature is essential i'd just go without it
if u actually want to implement it then lmk
you need a bit of linear algebra to get it sorted
and a texture pack to make the shulkers properly invisible
not really possible without that
Texture pack kinda ruins it because I dont want to include it but thank you anyway
yea i'd suggest jus ditching the idea
you could do it with velocity if you dont need people to be able to walk on it
I wanted just change Y of velocity
might look a lil goofy
I have no idea how to implement it in other way
public Matrix4f getMatrix() {
Matrix4f leftMatrix = new Matrix4f();
leftRotation.get(leftMatrix);
Matrix4f rightMatrix = new Matrix4f();
rightRotation.get(rightMatrix);
matrix.identity();
matrix = matrix.translate(translation).mul(rightMatrix).scale(scale).mul(leftMatrix);
return matrix;
}```
DisplayTransformation is just a wrapper for Transformation; refer to getMatrix function above
```java
vertices = new ArrayList<>();
vertices.add(new Vector3d(0, 0, 0));
vertices.add(new Vector3d(1, 0, 0));
vertices.add(new Vector3d(1, 0, 1));
vertices.add(new Vector3d(0, 0, 1));
vertices.add(new Vector3d(0, 1, 0));
vertices.add(new Vector3d(1, 1, 0));
vertices.add(new Vector3d(1, 1, 1));
vertices.add(new Vector3d(0, 1, 1));
DisplayTransformation displayTransformation = new DisplayTransformation(transformation);
Matrix4f finalMatrix = displayTransformation.getMatrix();
vertices = vertices.stream().map(k -> finalMatrix.transform(new Vector4f((float) k.x, (float) k.y, (float) k.z, 1f))).map(k -> new Vector3d(origin.x + k.x, origin.y + k.y, origin.z + k.z)).toList();```
//paralleloepiped is defined by 4 points, X,A,B,C, with basis vectors XA, XB, XC
//XP = u * XA + v * XB + w * XC
//Px - Xx = u * (Ax - Xx) + v * (Bx - Xx) + w * (Cx - Xx)
//Py - Xy = u * (Ay - Xy) + v * (By - Xy) + w * (Cy - Xy)
//Pz - Xz = u * (Az - Xz) + v * (Bz - Xz) + w * (Cz - Xz)
//use cramer's rule to find solutions
public boolean isInside(Vector3d P) {
Vector3d X = new Vector3d(vertices.get(0));
Vector3d A = new Vector3d(vertices.get(1));
Vector3d B = new Vector3d(vertices.get(3));
Vector3d C = new Vector3d(vertices.get(4));
double d = new Matrix3d(
(A.x - X.x), (A.y - X.y), (A.z - X.z),
(B.x - X.x), (B.y - X.y), (B.z - X.z),
(C.x - X.x), (C.y - X.y), (C.z - X.z)).determinant();
double u = new Matrix3d(
(P.x - X.x), (P.y - X.y), (P.z - X.z),
(B.x - X.x), (B.y - X.y), (B.z - X.z),
(C.x - X.x), (C.y - X.y), (C.z - X.z)).determinant() / d;
double w = new Matrix3d(
(A.x - X.x), (A.y - X.y), (A.z - X.z),
(P.x - X.x), (P.y - X.y), (P.z - X.z),
(C.x - X.x), (C.y - X.y), (C.z - X.z)).determinant() / d;
double v = new Matrix3d(
(A.x - X.x), (A.y - X.y), (A.z - X.z),
(B.x - X.x), (B.y - X.y), (B.z - X.z),
(P.x - X.x), (P.y - X.y), (P.z - X.z)).determinant() / d;
return (0 <= u && u <= 1 &&
0 <= w && w <= 1 &&
0 <= v && v <= 1);
}```
@stark niche this is the only math you need for that then
Holy
if you try to implement it you'll see that you need this eventually
Thank you. I wonder can boats be invisible and instewd of shulkers use boats?
boats cant be made invisible
at all
Sad
it is indeed
this is mostly accurate except on horizontal collisions, for those there is a 100% fix that i use but i'd recommend just testing midpoints between the top and bottom of the player instead
Can someone please help me. Is it possible to have two separate boolean values for two different placeholders?
I have a placeholder testing if pvp is enabled or not and it will return Enabled or Disabled, but I have another placeholder that checks for AFK, and I need it to return [AFK] or "" (blank)
Hello! I am facing some error/issue with my Nlogin plugin while I use Database backups.
If anyone here knows a little about NLogin Premium, can you please help me out?
It's a big error.
Bro just admitted to being cracked lmao
Sorry?
What's ur problem
I just asked help for NLogin Premium?
This rando keeps interfering every now and then bruhh
they have "Special Support" for premium
might want to ask there
I already did.
The support is dead 😭
I'm still waiting for them to reply. But this Community got some exp. people so no harm in asking here
It's a premium plugin blud
Wish you had knowledge before spitting brother.
😉
What is bro yapping about
"blud" blud using blud in 2024
is this you
anime pfp, self proclaimed "cool"
cracked server bud
what a creative insult
i bet everyone loves u
they do
i could tell
not :3
he's cooking
how is :3 even a face like what
put some backbone behind it
cats have that face
ur gfs a guy?
unlucky pal
do yk the name of this cat
cuz idl that
😭
didn't htink that one through huh buddy did you
didn't know i could pull through like that
checkmate buckaroo
Big Boobs.
heh.
tbh he isnt wrong. he means premium plugin.
Seems like you. Similar to your face in ur pfp too.
Blud uses cracked plugins and is yapping damn blud
bro
are you dumb?
nlogin is a premium plugin
You are using pirated software
wth are you saying bro
yea come on prove it
bro how can you be so dumb
bro
this is clearly proving ur dumb knowledge on minecraft
error does not relate to cracked plugin bro
it relates to cracked server.
💀
OMG
tf is ur brain bro
Yeah you said it
ayo
sorry for reply ping
can you join any minecraft server?
some people are saying there are authentication issues
going on
with Mojang
True
yea maybe thats why i cant join most of the servers
Ok
That font though
ikr
Randoms these days smh
That is a terrible font
which is used in cracked servers which promote piracy, which is not supported here to my knowledge.
How to disable player pushing in minecraft?
by changing a config option, most likely, if you are using paper
ir maybe spigot has it, idk
I don't believe the option exists in spigot but in Paper you can use enable-player-collisions
that is an option added by paper in paper.yml config file
LMFAO
xD
Is deluxemenus only used in Premium Servers?
I don't think so. Also, majority of the AS servers are cracked. I think there's no big deal in it.
It was just a query I was stuck in. If someone knew, he/she would've answered bro.
Why dragging this small topic ?
what about bukkit?
Yea thought the same xD
or spigot
Why not use paper?
idk
lol
use paper, it's better
this is #dev-general not #development , if you strictly want support then go there and you can at least make the argument that it's the wrong channel to insult/question you in
Idk if I can switch without any plugin issues.
you probably can
spigot shouldn't really be used for servers
paper is jus faster and better
#development is for coding
should ask in #general-plugins
I asked the question cuz I thought someone would reply me and I will always.
General includes it I guess. I don't need clearance from you?
Kindly stay Outta this and lemme do my stuff. I got no time for ragers and touchmenot guys here.
reminds me of that one guy of analyiticus thingy
raymond?
don't recall his name
such a joke lol
Can someone please help me. Is it possible to have two separate boolean values for two different placeholders?
I have a placeholder testing if pvp is enabled or not and it will return Enabled or Disabled, but I have another placeholder that checks for AFK, and I need it to return [AFK] or "" (blank)
more like psvm
how many modern java projects actually have that tho
i feel like barely anyone writes vanilla anything anymore
are you slow?
it was genuine advice
"touchmenot" guys what?
I have a plugin which on restart or overall serversided disconnect, throws u into a lobby, and was wondering if there is a plugin out there for velocity which puts you back once the server comes back, if not was considering making that
Wdym?
as in vanilla languages, without frameworks or big libraries
i mean they do
I mean even using frameworks and libraries your application still needs a main
aren't the args optional on modern versions?
java 21
oh nvm its about the args
I thought you meant void main()
Ye @static zealot and is just void main
Seemed an angry taunt. Nvm misinterpretation.
Alr alr
Or well, can be
technically 🤓 it depends on the java launcher
funnily enough despite javafx not being part of the jdk anymore, if your main class extends javafx's Application class, it'll start the jfx platform for your class
even if it has a psvm, it won't invoke it
Hey guys, I am a server owner and I keep having problems, is there anyone who would like to be my dev? Dm me if you can
It’s a velocity server
or read through the #1257956030315495496
or ask in #general-plugins or #1007620980627230730
lots of options 🥲
or #minecraft
actually I think you should ask your questions in #showcase
make sure to reply to the people there and completely ignore all the rules
more like:
public static void main (String args[])
imagine not using public static void main(String... args) varargs supremacy
Anyone able to help with me not being able to join my server? It says online on console but it’s offline when I join and use a server pinger
Is there a plugin or something in general premade to pull data from a mc server via http?
How do I fix a closed port?
selfhosting?
I’m not gonna self host tho…
what kind of data? using like any http request library or even just Java HTTPClient should be pretty easy
i use OkHttp for my stuff and it's fine
What type of data do you need to pull Wuzzy?
analyse? :D
analyse more like
analice 🦗
Just the basics most likely, player lists etc player stats and so on, maybe something cooler, just hoping someone has made a plugin like that so i can avoid building another maintaince needer :)
Yea i know but hoping i dont have to build it myself
oh u mean pulling from java, but no not what i need
i need a way to server data from spigot via http
looks like they have pretty limited endpoints unless im missing something, not really a fan of tebex, wanna keep everything selfhosted
Hehe, the new Analyse v1 will be a LOT better than the current version.
v1? 🤨
oh tbf I never actually used it (also I think it's no longer part of tebex anymore, although idk how it works now)
I just heard it mentioned here a bunch lol
oh you can embed Javalin really easily in spigot/paper
they even have an article on it
Still not what im asking :D im asking if something like that exists already, but will look into it if i will have to do it myself
I’m rebuilding the entire platform from the ground up, better stats, better APIs, separate from Tebex etc
i'm still not sure what you're asking lol
I get that, I’m currently rebuilding it, so I’m open ears to the endpoints you may need.
like you want placeholder-style serving over http from your backend servers?
im asking for a premade resource that serves data from spigot via http, aka a plugin that just provides endpoints
what data
other way
like me be able to fetch players from the servers and thier data and so on
stats etc
so like world file data?
Yea sure, just wanna make some website features for getting player data etc
assuming eta = a while?
Yeah may be a few months away
Haha I’ve built something private for a mc server of mine, to show like the top blocks mined and such on the website
wait charlie aren't you working on something else (although not public) as well
or am i misremembering
yeah i'm not super aware of something like that, but it would be pretty trivial to make a little http server with javalin that just does that
Analyse, PlayMC
oh
https://play.mc this
The Vanilla Minecraft Experience - Coming Soon! Stay tuned for updates.
Will release it at the weekend finally 😂
this weekend?
Yes
ooooooo
or like, you could probably leverage a prometheus exporter setup and get the data from that
abuse metrics a little bit
Server is ready, just got the website profile stats to finish off 💪
will look into that, thanks
Looks promising thank you
Like the generics, player stats some common plugin implementations, balances etc, for me I'd just be happy if there's a decent APi to maybe add endpoints, don't know if that's too much to ask for
Online convertor to convert sql queries to sqlite ?
I got about 400 different sql queries i got to rewrite to sqlite
by hand
Yourself
I need to convert the syntax no way there no convertor
I got Like 400 lines to do i will go crazy
Ill try 🙏
Imma look for what the file is
I need to create one
Sińce my garbage is in Java
chatgpt
i have tried with 2 commands
chatgpt does syntax errors and gibrish
i dont believe you
4o?
making syntax errors? how complex is the command
and how many mysql specific features are you making use of
i do believe
maybe 1 by 1 it could do, but even if u batch like 30 i feel like it would eat shit
so there no point doing it
how do you figure
i can rewrite by hand but its too much
you can just automate sending the queries to gpt
i dont have api for that ill just start re writing queries by hand
get some random python library and for each the queries to gpt
gpt has api its not hard to use u dont need libary u do request and it returns u a string[] backwards if i remember correcttly
yes
i did some chat bot project 2 years ago for an company that used chat gpt api
u each time send the entire chat history to tha shit
if you want to interface with the gpt api directly you are free to do so
i think its a hassle for simple stuff like this
nah there too much tables and shit
and around 400 queries
are you sending the tables as part of the query
nah creating table is the same
right but you should be sending it for context
so the model knows what the tables look like
hot citizens wowie
gonna test tnow
that line
java.sql.SQLException: [SQLITE_ERROR] SQL error or missing database (near ",": syntax error)
nice
l... so what do u think about chatgpt?
dogshit chatgpt
just do the work at this point :)
ig yeah
<100ms mesh generation for 15x15x15 block entity with 0.5 block resolution
we be working
looking good
ong ts is surprisingly performant
even on my shitty overheated mac
fully async too
no ty
A chance to be part of innovative projects in the blockchain
😬
is this even the channel for spam
Not really, there is not channel for spam, not even sure if that message would even fit for any of the request channels either lol
i swear we made this channel require Tier 2 to even post in for this exact reason
@feral echo this isn't the place for that
guess it isn't coming together as i am tier 1 lol
its restricted to tier 1+ 🥲
#off-topic message
why does this look so fishy lol
lol
yeah
hmmmmm
link redirects to a 160 member "TICKET TOOL" discord server
ig ill report this to barry
Hello chat , I am trying to code a plugin for land claiming . for the selection visualisation part I wanted to use blocks (eg. block of diamond) .
I was wondering if its possible to make them appear client side so that not every one can see the temporary block change and make them not mineable.
I am sorry if I am not using the right channel for questions like these. Thank you very much for who ever is willing to point me to the right direction.
it's possible but you'll have to use packets
declaration: package: org.bukkit.entity, interface: Player
yooo whatt\
thats crazy
:)))))))))
modify bytecode directly
what
True!!!
indubitably
lol
is this possible without protocollib to set a listener (or some kind of workaround) when a player starts "seeing" a player? By "seeing" I mean when a player loads for other player if he was unloaded (usually happens when a player loads a chunk and there was a player already)
Paper has PlayerTrack/UntrackEntityEvent
but also maybe consider using Player#hideEntity if you want to control this better ?
you could also just read outgoing packets, for future reference
Just a random reminder: #dev-general message
what the fuck
I'm telling a trusted adult.
thank you
british people are unmatched in computer science fr
we literally invented the world wide web
alan turing was doing ai before it was cool
first programmer ever, british
we are so based
Can someone help me? my server api just stopped working with some features eg top kills, mining, playtime. anyone got a fix?>
Welp
I think you're in restoring a backup territory
Is BStats down for everyone else?
It's up for me - the webpage at least.
Nevermind. I went to https://bstats.org not https://www.bstats.org
Both work for me lmfao.
That's weird. I also thought https://bstats.org/ should work as I've used it before but it doesn't seem to work for me.
Anyone know what I should directly look into with ProtocolLib to make NPCs (through Citizens) only visible for certain players and invisible for everyone else? Any response is appreciated :')
Band kid ass humour
@ocean quartz how do I use the first method in kotlin? D:
Class.get(entity) { nbt -> nbt.getSomething() } calls the second method, but I need the first one for the result
Class.get(entity) Function { ... }
Class.get(entity) Consumer { ... }
idk if you can put that outside of the parenths, but you can definitely do it inside
Class.get<T>(entity) { nbt -> }
or you store the lambda in a variable before with an explicit type
(or you just don't use kotlin)
remove them for everyone else and block the packets related to the npcs
Emily's solution also works, but it has to be inside the parenthesis Class.get(entity, Function { nbt -> })
interesting
If I want to get the players primary rank, would I just use the vault api? I'm running LP, but not sure if vault just returns it
ahh thanks, wasnt sure whether to use vault or lp api, just went with lp
837qe5doGT1QLnr16qVD5jNx72HFX5LU7LAaFw46Tjj2QstzbSHrUGBfvWFVFjmPf19EYN8b3ULtRZxWe49BVHeQ7G1ayGB
how does the signature work
what stops me from making my own message and just using your pgp signature?
since its just a txt file
thats the point
it's like an encryption key
so once you've used the signature you can only decrypt the message with the corresponding private key
yeah the pgp signature is unique to the message being signed
if you try to change the message, the signature will no longer be valid and anyone who has my public pgp key will be able to tell
you can't sign a message with a public GPG key, the sender has a private key that can only be validated with the public one
smh dkim
Someone help please
i am getting this error - [05:32:32 INFO]: [PlaceholderAPI] Fetching available expansion information...
[05:32:33 WARN]: [PlaceholderAPI] Cannot load expansion playertime due to a missing plugin: PlayerTime
[05:32:33 INFO]: [PlaceholderAPI] Successfully registered external expansion: statistic [2.0.1]
[05:32:33 WARN]: [PlaceholderAPI] Cannot load expansion playerstats due to a missing plugin: PlayerStats
[05:32:33 WARN]: [PlaceholderAPI] Cannot load expansion playerstats due to a missing plugin: PlayerStats
i have tried to manuly install the ecloud placeholder. it seems not to update please status and playtime
download the 2 plugins and restart
also note that you should ask in #placeholder-api
how do i merge model engine resource pack with oraxen
That’s cool dude
Banned
rude
realized recently I need to write a proper entity system for my Minecraft server (like proper game engine style) and damn ts complicated
why am I even bothering with paper atp :Kek: should jus go with Minestorm
give emily admin
haven't tried it
The api is super based
doesn't it still include the vanilla stuff
server side fabric modding makes more sense if anything
Wym vanilla stuff
Also you're practically (literally) doing server-side modding fwiw.
the reason I mentioned Minestorm is because I was wondering whether it was actually even useful to have the vanilla Minecraft server as a base
I meant like whether it would be useful for me to literally just ditch Mojang entirely in that way
isn't DP basically just caching results to be used in future calculations
or at least the basics of it
sounds scarier than it is
or I guess that's the point of the video lol (at least based off the title)
i just like the leetcode thought process shown in the vid
how many of you guys actually ever have a "Utils" class
do you consider them okay for small projects?
i have my own strong opinions abt this but i'm interested in what others think
i think its fine
when its used for its designated purpose; having standalone methods that'll be used a lot throughout the project
I use this method a lot but it wont anywhere else in the project logically
idk but btw guava has that
Most things are best described, so like in a perfect environment you wouldn't have one.
But we must also admit our projects aren't perfect and they'd be annoying if they to meet that mark.
We don't necessarily need a separate class and package structure for 1 static method, but it's more of a "future-proof" which sometimes means redundancy in the short term.
So we can reduce these redundancies and make a utils class and perform migrations later if categorically it fits somewhere else. Or simply never move them because the project doesn't grow to necessitate it.
If i have to dig trough like 30 classes in your utils though you're just bad at categorizing
I think extension methods run the same issue just in a different way
Don't get me wrong though. I abuse the fuck out of em
This message would be deleted in their server
Really says a lot about society
we live in it
Maybe you do, but not me. I'm a free-spirit, on my own path.
Shits myself
Doubt
what
Go in their server and say Minestorm
you'll hopefully get banned for writing minestorm instead of minestom, but what else do you expect to happen?
I expected it but Mr. Afonso doubted me
Hell not gonna risk my donator role xd
But 1s
511
And from what I checked, none banned
That's a completely different word
Also I'm talking about the Minestom server not the paper one
Oh what, so saying minestom in their server?
No
Look at what was said here
what 😭?
also my autocorrect doesn't like me saying minestom
where is support?
for?
Cool
How do I make an item glow?(in menu)
you cant make it "glow"
make a texture pack that changes the item texture to a version that glows
and enchantments?
what about them
I wouldn't call the enchanted effect a "glow"
if you want to make an item look enchanted there's plenty of info online Abt that
ah sorry
sure
i need mcc skybattle plugin with resource packs
Don't we all
Hey guys, can you spam my DMs with minecraft plugin ideas? I kinda have to get a lot of hours coding in
nah
minecraft sex
why are you the third person to say this
clearly there is demand for it
lmaoo
minecraft sex
On my tebex store it says “Webstore Hidden Customers cannot purchase packages on your webstore because it is currently hidden.” But the customer support says the wait time for support is 24-48 hours, can anyone help me? I don’t really know what to do about it
Essentials vs CMI? Which one is the best?
zEssentials =)
None
depends on what u need 😭
💀

Just compile it, ez
Both
and then pay the $$$ to support the dev =)
- who pinged me
I’ve used both for a bit now.
EssentialsX has better short form commands, more sensical aliases, easier usage, and I think mini message support now
CMI does more, has a lot of helpful niche features, and covers more ground than EssX
Overall, I prefer EssentialsX, but since my server has a lot of small things that CMI has that EssX does not, I prefer using it to have to download like 10 single-purpose plugins to accomplish what I need
EssX being free also helps a lot. I’d say EssX is perfect for most servers generally
Biggest issue with these Essential type plugins is they try to step into features that they just.. don’t perform as well with as other plugins do. It’s great to have an all in one, but there is so many plugins that handle features that are more worth it
Examples being TAB being the ultimate plugin for scoreboards, tabs, boss bars, etc, I couldn’t imagine using anything else.
LiteBans being an excellent punishment plugin having a lot of great functionality and web panel
You’ll always have byproducts you don’t particularly need with these “Essential” plugins, but yeah, ranting 😵💫
Idk why you'd expect a kitchen sink plugin to be good at all of its features -- it's to cover the essentials, not everything.
So its not an "issue" of the plugin. Its a specific design choice to balance between having features everyone uses, and not overwhelming users with features/configuration.
The balance is off sometimes, but the point is that it isn't an issue that essentials isn't "fully featured" for its features.
I wasn’t meaning to call it an issue
That’s why at the end I said byproduct
I don’t expect essential plugins to be like the best plugins mashed into one, I just wanted to let the person know, but I realized it was a rant at the end xD
But regardless you are definitely right
beezooka and kittycannon are absolutely vital and essential for my server to operate
This is why I am making my own essentials plugin, which actually only contains what is needed and its not going to try to replace other plugins like TAB, etc.
I kinda like the idea of a "modular" plugin, kinda what essentials does with their Chat, Spawn, Discord, AntiBuild, Protect.
so not everything is cramped into a single plugin like CMI
I mean, at that point you're just splitting it into separate plugins for each feature lol
I suppose so, I was thinking about having like a main plugin, where you have like a modules.yml, where you can toggle things, well, let's say, TAB module, and it'd automatically download it
tho the automatic download is probably not something everybody want, since it kinda creates a vulnerability problem lol
Ye no automated downloads 
That is how I was looking into doing it yeah
Well besides automatic download
It would just be able to fully enable the module or not
But it all is bundled in the same plugin which at the end, doesnt change much
or, you'd need to download the modules externally and add it to "modules" dir, for ex.
which would be loaded by the main plugin, so you wouldn't have additional plugins like essentials does
YES, was looking into that, but that sounds like hell to code
well, I kinda had a working prototype
5 months ago lol
basically each module uses an interface which exposes the commands and listeners, which get registered/unregistered by the main plugin via /module load/unload somemodule
I was just using reflection and classloading, wasnt that difficult
tho there were some interesting issues
ServiceLoader 
I mean PAPI can do it
with its expansions
¯_(ツ)_/¯
yeah got told to use this 2x now
oh lol
java service loader or spigot's?
java’s probably 🌚
java yeah
And how do you properly load the classes of a jar without leaking the classloader?
by keeping a reference to the classloader and closing it when it needs closing
Honestly it’s the same thing different method
Imo
Nucleus did this concept well, so you could disable sections and they wouldn't even load.
But this doesn't detract from the motives of an essentials plugin.
CMI definitely does cramp harder in general though
Even though the configuration is separated into separate files it actually makes it harder lol
my understanding is that cmi adds more and more useless features because the author can't be bothered to fix the metric ton of bugs it has
I can't attest for that myself but it's what I've seen several people mention time and time again
Which code can I use to edit the EssentialsX sound effects?
on the developer version uses sound: but on the stable version isn't using the same command.
Honestly they might be right they might be wrong
It honestly doesn’t seem as bad as people make it sound
CMI has no noticeable problems imo
writing the sort of code where if i write it wrong, it doesn't break and explode in my face but instead just causes performance issues with no easily detectable errors!
for (int z1 = 0; z1 < size; z1++) {
int index2 = index + (z1 * width) + size;
long rawColumn2 = rawCubes[index2];
if (rawColumn2 == 0) break check;
int h2 = Long.numberOfTrailingZeros(~(rawColumn2 >> y));
if (h2 <= size) break check; //wasting this testing, can't get bigger
h = Math.min(h, h2);
//count useful size
long culledColumn2 = culledCubes[index2];
usefulMask |= (((culledColumn2 >> y) & 1) << size);
for (int i3 = 1; i3 <= size && ((usefulMask >> size) & 1) == 0; i3++) {
usefulMask |= ((((culledColumn2 >> y) >> i3) & 1) << size);
}
usefulMask |= ((culledColumn2 >> (y + size)) << size);
}``` im struggling
there is an error in this code. i know this because the mesh it generates is imperfect. it is simply a battle of wits between me and these lines
actually the error was somewhere else damn
how can a computer be too shit to measure performance
the runtime of the same algorithm varies by an order of magnitude
not an exaggeration
lol
[16:22:31 INFO]: phatto lost connection: Internal Exception: io.netty.handler.codec.DecoderException: java.lang.ArrayIndexOutOfBoundsException: Index 64 out of bounds for length 3
how do i fix this?
@half harness
idk
#SIMD #Java #OpenJDK
The Vector API enables developers to write platform-agnostic, data-parallel programs where single instructions operate on multiple data (SIMD). Get an introduction to Vector API, learn how it was implemented, and view examples of data-parallel programs.
Hear from Sandhya Viswanathan (Principal Software Engineer, Intel) and ...
Guys which essential is good? I want to use SunLight do you have any bad experiance with that? And what is your suggestion about essentials?
more like "your code is too complex so you end up with a lot of allocations instead of highly optimized simd code"
,
i like zEssentials personally, i like how sunlight is modular but its main issue is tab completition, if u disable tab completition for X command, that command wont work even if its from another plugin.
why care
Wanting it to be a paper plugin, and wanting the developer to exclusively support paper are two very different things.
And one makes you goofy
i would argue 90% of plugins dont really have a real use for papers api's features
but i could be wrong
¯_(ツ)_/¯
big disagree, several times per day I see someone on the spigot discord asking for help with xyz and I'm there thinking "a certain downstream fork has a method/api for that", and their only option is to use nms because that's their choice
Highly disagree, emily said it all, + paper only "forces" people to move to the better software (paper), has better dependency systems with paper plugins, bootstrap, loaders, etc.
ALSO, just using paper, even if you don't use any of it's apis is already a green flag.
ngl, quite biased but I trust devs that do paper only plugins more than spigot ones
Not 100% sure why but yeah
that's just my mind
I use spigot api and I long for the day where I can switch because many server owners make the transition
I honestly don’t know why I still use it
Yea fair point, didint think of that perspective because i feel like most plugins have largely state management problems rather than a lot of interfacing with mc
Anyone runs plain spigot servers?
Paper API has support for many features that streamline development. They actually like fix things and improve the already lacking API that’s backed by some shit code
be smart and make the move. Devs that keep supporting spigot are the reason users don't move. Or at least, a factor of it.
depends on how you ask
on latest versions? Hell nha, over 95% are on paper or its forks
lower versions have more spigot usage
In general, across all versions, spigot holds around 21% stake
spigot is just slow isn't it
While paper alone has like 75% (all versions)
fr 💀
still
with some recent changes it can literally take several minutes to start up if you have any "big" plugin, lol
it is
someone gotta make compilations of spigot fanboys defending spigot
ngl
whenever I see that I laugh hard, no joke
you know paper is better when spigot users come to paper discord server to ask for help 😂
you mean like the issue is the architecture and code of the plugin themselves rather than the API they use?
yea that is what im getting at
I mean yeah code that doesn't have to do with Minecraft doesn't have to do with Minecraft, but most plugins aren't like LuckPerms, people make stuff involving entities and world state, events, like minigames or game modes etc involving the API
If the plugin is designed bad it’s just a skill issue it’s not api fault lol
yea thats why i also dont get the mentality of paper = better
when Afonso was talking about plugin quality
I mean it is better lol. Why wouldnt you want to use those extra juicy features.
Yea not arguing that just arguing hating on spigot plugins :D
How do I use the Spicord API in a spigot plugin?
never talked about plugin quality factually, as said, I am biased, but I 100% prefer a paper plugin than a spigot one.
and trust one more than the other
biased opinion
but yeah
Well, actually, not that biased.
I am just ahead.
Paper will be hard forking sometime soon(ish) and if I use paper plugins already, I won't have any issues migrating lol
He’s just gigachad
well, I accept that lol
it's just working smart, I know what's coming, and I am future proofing it
that's my main reason for prefering paper plugins
Actually yeah I did some thinking and I think imma just use paper lol
The only thing that was holding me back tbh was selling support but I can just do that on buildbybit or other stores
wait wdym
Cause I’m broke 😢
Cause I was originally gonna sell support on the spigot forums but
oh hell nha
Builtbybit and polymart are decent options
Soon Hangar will also have a way to "kinda" sell plugins
Yeah I’m waiting for that
They are planning on adding private release channels, which means you can sell access to that release channel
this way, they don't have to handle payments, etc themselves
which is hella beneficial and doesn't require them to register a company
Hangar is slowly becoming really nice.
Just didn't get the attention it deserves yet
welp uve kinda changed my mind :)
Fuck
dies
you do that, if you have something to say please do
Not the best but works, feel free to copy https://github.com/TriumphTeam/triumph-gui/blob/master/core/src/main/java/dev/triumphteam/gui/components/util/VersionHelper.java
Funnily enough was searching where I had seen it before to give you an accurate response but ok
this seems to do what I need
Why not just get minecraftversion
Instead of the bukkit version
Eh technically same thing at the end I guess
One returns 1.20.6 the other same but extra
Paper method
just get the data version from the version json 🥱
Even better
why does GitHub have to be down 
And then you respond with another non-response. ggs
lmao
@quiet depot sorry for the ping but i want to report about someone, basically a freelancer in this server.
./report
yeah as zodd said use the /report command
alr thanks both of you
hey umm i have already made a report and i would like to add one more screenshot to it. how can i do that?
difference between packetbased (NMS) scoreboard and teams and bukkit scoreboard api
beside different manipulation for each individual
ChatGPT ahh prompt
I am looking for a terminal with ssh support. For Android. Any recommendations?
Why must you torture yourself
i've heard good things about Termius
Hmm. Magazin Play recommended me Termius. Has positive ratings
Will try and report back
Personally I used termius and it was good
But I primarily got it bc I already had it on pc (altho I don't use it anymore) and so it synced to mobile
have used it, its okay, a bit sketchy when a app with ads inapp puirchaes etc holds ur ssh credentials but its popular so nothing has gone wrong yet 👍
those are the only critisisms ive heard
But i use it and its fine
i use juiceSSH, its worked fine for me
hey is there a part of the wiki that explains guild signs for worldguard regions to rent? thanks
question, how much do you guys ask for a permissions configuration/setup ?=
any ideas how I could fix gradle's release version 17 not supported when compiling? Everything is set for java 17 lol
might need to update ur gradle wrapper version?
Downgrading or upgrading gradle
Oh good, you had hidden information
whats the gradle wrapper version
8.1.1
Hey im trying to verify with the bot with my spigot since yesterday it wont look me up D:
apologies for delay
8.1.1 should support 17, but try updating to 8.10 and see
@nocturne apex why not make the beams 1 elongated block display instead of multiple
you'll have better width control
if you don't like the elongated look at least make them rotate in the right direction
ye thats gonna be next
I just wanted to make one part of the math first
and then imma use the quaternion for the rotation of the item display and make it longer
effects!
why item display
just use block display
What happened to Matt? His repo is down
he DIED
WHAT?!!!!!!
YES (no)!!
You are making me look like a fusion of these two heads: Kanik
lol
But seriously, did something happen to him? I wasn't able to find even his Github profile.
https://github.com/LichtHund it's there 
Oh, the profile's name has changed, that's why I couldn't find it, thanks Emily
@ocean quartz seems like you have migrated from your old domain mattstudios.me, could you please share the new domain with me?
I revisited an old project I made that used one of your libraries, triumph-msg-bukkit, that was hosted in your artifactory at your website. But since the address seems to have changed, I'm unable to compile the project.
bcs of being able to set model data
The lib is not in the repo anymore since it's dead, I still have the github repo even though I made it private, I can give you access if you want to compile it locally or publish on your own
That would be perfect, Matt
Check your github for the invite
Thanks, I've accepted it and manage to get it compiling (for the most part). May I ask what happened to this library in specific? It was my go-to library when I needed to have customizable colored messages.
I don't remember what that library does, but all you need nowadays is MiniMessage#deserialize
Ah, markdown formatting
I guess you can use this instead https://github.com/Phoenix616/MineDown
TLDR is that Minimessage became the standard and it's better for everyone if plugins stick to one format
Paper and Sponge directly implement it 😎🔥❤️
My laptop fried it’s self
Should I disassemble and check what to replace
Or get new one
It’s 2000$ only .
New one
you should get a new one and send me your broken one
on servers, my plugin's placeholders randomly stop working. Parsing them just doesn't work anymore. Any idea why?
I've registered two placeholder expansions, perhaps this is why?
(#development btw)
do you have persist() overrided to true?
I dont, let me do that
Why do u even use PAPI
U dev make everything from scratch
Without the ssd lol
and make an unboxing video 😝
deal
Why wouldn't he? Placeholders can be used on other plugins afterwards lol
Why would u use any other plugins
Fr
Beside worldedit
Which is just decent art
Yeah I'm not having this conversation with you 
And an Anticheat since it’s headache to code a one
😭😭😭😭
K anyone else wanna take Gabi spot
been using hibernate a lot lately
really been liking it, especially how it integrates easily with redis as a cache
only downsize is size, but tbh size doesnt really matter
what do you all think about hibernate or ORMs in general?
jpa is fucking ass
Hibernate with Spring is great, without it it's terrible
how come
I can't say I've worked with either hibernate or spring, but I've worked with activejdbc and I can confidently say i didn't like it, i very much rather prefer DSLs like exposed for kotlin or jooq for java
I should definitely try spring but I don't have anything to do that I could use it on
is activejdbc like ruby's activerecord?
idk
sorry we all dont have all the freetime in the world to reinvent the wheel for the 12521th time :)
Continuing on this topic, do you still have the documentation of mf-msg around, perhaps? I would like to keep a local copy of it for future reference.
for real, custom plugins overhyped 😔
in my humble opinion 90% of times custom just means not refined
it doesn't have to
it might just mean "we just need this one hook for our specific server needs that the standard plugin out there doesn't do"
doesn't mean the whole plugin had to be better and overhauled
yeah same
I never get the mentality of needing every plugin to be custom
It just means you’ve rejected the x amount of years the main plugin has been maintained and tested
For your 1 week of work and hoping it works lol
Well most plugins are open sourced and usually u can make it work
But wouldn't necessarily call that a custom plugin
not everything nor always but I find myself doing several things custom because I can make them to my specific case and how I use it
yeah but the point is "custom" doesn't have to mean better
Hello, how to disable boat collisions? [PING ME]
exactly, custom simply means it's custom made for your use case
or simply how you want it to be, can be a simple thing like "I prefer configs to be like this" or whatever
sometimes it's the lack of an API
sometimes lack of features
sometimes lack of version support
several reasons
Random question, if you had a webserver, that needed to somehow tell an MC server to do an action, how would you do it without opening any ports, websockets, or whatever?
you can have the mc server reach out to the webserver via plugin
I don't think there is really a solution besides the mc server "pinging" the webserver for updates every x time
byeah
not necessarily pinging either, you can just open a socket connection to the webserver and maintain it
Question is, lets say it pings every 5s, but it's 1000 servers, then that's 1000 requests per 5 seconds, which could be a lot? Idk
That is the thing, without that, imagine the server has no access to the webserver
if for 1000s of servers you can use something like websockets
.
does the server at least have access to the internet in general?
you can use dev tunnels, or pick a middleman website
What are those
dev tunnels are basically a way to share a website to the public without port forwarding
ms azure has them, cloudflare has them
you borrow a subdomain of theirs and any requests to that subsomain will be redirected to your local website automagically
alternatively, you can use a public service like google sheets or something
That doesn't solve the problem though
why not?
it doesnt involve any open ports
I don't think you understand
1s
So, I have the webserver/website/dashboard where you control settings and can click buttons that execute actions in a minecraft server. That minecraft server does not have access to my webserver, and can't open any new ports but needs to receive updates or actions to execute when I press the buttons in the dashboard on my side. This is at scale, it's not private.
what do you mean exactly when you say the mc server "does not have access to my webserver"
It means, I am not the owner of both and can connect them easily.
The minecraft server owner does not have access to my webserver
The only thing there is a rest api
For example.
right
wait in this scenario are the minecraft server and webserver owned by different people
neither of which are you?
Which means I can't reallt connect via websockets, or anything that requires me to have access to both sides
Webserver is by me
Mc servers can be owned by several different people
well you can require a plugin for the minecraft server, im assuming you will already have one for other functionality?
Hello guys can I ask for help here or i should use #general-plugins
Well sure, the mc server can install a plugin but then what?
Depends on what your help is, if it is development/coding then here, if it is just plugins, configurations, etc, then other
Websocket or pinging endpoint
Thank you 🙂
Can it connect via websockets without opening any new ports?
yes
just like your browser can connect to a website without you port forwarding your pc
Oh hey charlie, thought you were LOA xd
I am, I have 10 messages I’m not checking 😂
Lol
I assume analyse simply sends post requests to the webserver since there is no need for vice versa right?
clients generally do not need to port forward, so your plugins are safe to make outbound connections to a webserver without additional setup
Yeah
and once the client initiates the connection, it is free to be used both ways
a la web sockets
So, there is no way for people to hijack that connection or anything? Since whoever has access to that socket will be able to execute anything in the server technically...
no easy way
hijacking that is the same as hijacking a browser's page load of say chase bank.com
if you are using https it is very difficult
i think web sockets are the move for you
You should have authentication
Yeah, it appears so
In what sense do you mean that
yeah dkim is right you will definitely need some sort of user auth somewhere
Idk any type of auth
or do you expect all the server owners to allow your website to send any random commands to them?
ideally you have signed/encrypted payloads that can only be created by people authorized to send commands to the servers they are being sent to
that can be validated on the plugin side
Now I am a bit lost with this auth thing.
Just to explain a bit of how I want to do it, similar to how analyse works (lol), you login to the website, get a code, use that code in your mc server and it links up. Then there will be data being sent from the plugin to the webserver which then the webserver reacts in certain conditions and executes actions in the server.
hmm i mean i think its a cool idea but the first worry i would have as a user (server owner) is if you are able to execute arbitrary commands on my server
damn i just got hit with crazy deja vu
not sure why
Wait without scrolling all the way up can you give like a short explanation of what this is for
🥲
Well, the idea is that you set the commands that will be executed in reaction to those conditions, but in theory I guess I could?
This pretty much explains the idea dkim
i think a first step to make it safer is to allow server owners to "sign" the commands they want executed with a pgp key or something, that way only commands they configure themselves may be run on their server
No idea how I would go on about that tbh
I don't fully understand what you mean tbh
ok let me make an ez example
I understand that you should sign/encrypt them, similar to how signed messages work in mc, but no idea how
Specially in this case
for that all you need is some pgp library
im sure java has one
with a sign() method and a verify() method
if i sign() a piece of text, i can later verify() it to be certain that it came from me
if the text was modified somehow, verify() would fail
my key to sign and verify would only live on my local machine (mc host)
does that make sense? idk
Hmm yeah
What if I didn't had the power to execute any command though? Would this be fine without signed?
yeah
actually thats true you can just have the plugin config decide what commands are ran
signing it may just be overcomplicating
Yeah, only small thing is, I wanted it all to be configurable via the dashboard, so, you can configure the plugin and simply reloading the plugin would load the new settings
ig you could get fancy and use clientside code on the browser to sign/encrypt the commands
by accepting a password that becomes a pgp key
Which could potentially be okay to do? If I require the user to manually use the reload command in the plugin to update the settings, the user needs only reloads when he is the one modifying it, if someone else modifies it somehow, they still can't reload, only the admin
this kinda beats the purpose of the dashboard doesnt it
or no?
Yesno?
When you are in the dashboard doing something else and suddenly want to change a config, it's always easier to change it there than to change tabs or open a new tab, go to the config file, change settings in a yaml file (which sometimes is not that user friendly) and then reload
Here it would all be in the same interface and with better UI and UX
i figured that one of the main benefits of this dashboard was bulk updates
if you have say 20 minecraft instances
would rather not have to go to each one for any reason
Yes, that is also a possibility that will actually be possible
Since I plan to make it possible to select servers that share the same config
Easy to update a network if needed
byeah
idk at this point i think using a user password as the seed to an signing key is the move
generate it in js, all is well
The only way someone could possibly abuse it is if they somehow have access to both dashboard (either server owner's account or I get hacked) AND they have access to reload the plugin in the server
or you decide to abuse it for your own personal gain at some point
But chances that somehow happens are low, + if you can reload the plugin, you already can probably execute any command
So yeah
By you, you mean me or the server owner?
the webserver owner
Cause even if I wanted to abuse it, as said, the plugin needs to be reloaded by the server owner
hmm true
That is something I cannot access
idk i think the reload is a bit icky
I mean, it's the only way to secure this
also forcing a plugin reload might lead people to an antipattern of making an action to reload it
If I were to auto update settings directly, then that could get tricky
and im sure they will find ways to circumvent efforts to deny them the option to reload
Wdym
reloading the plugin is a command
your plugin so happens to allow the execution of commands
