#dev-general
1 messages ยท Page 614 of 1
University ๐
use maven, can't use others
how tf do I package dependencies into the jar with maven
wtf
Shade plugin, then run mvn clean package
why is pom.xml configuration for a single thing is like 200 lines long
when I can do the same with gradle in like 5
because maven trash
xml explicit style
even for a dependency, you have to write it on 5-6 lines
and 20 for relocations lol
"but gradle is too complicated"
than god I switched to gradle because of that one post on helpchat web iirc
ur welcome
label is used like this: ```
/label arg[0] arg[1]
The difference between that and `Command#getName` is that it gives what the user inputted, whereas `getName` always gives the actual command (instead of any aliases)
I personally use it in help messages, like ```kt
sender.sendMessage("/$label help - Show help message")
```for example
oh thanks
yea label will include aliases
very nice
many command libraries don't support it tho :((
including mf cmd ๐ญ
or triumph cmd
idk what matt calls it
although to be fair the only use i can think of is help message
should use framework??
ah
if you need it, you're basically building two different commands 
what the mean Verified in authors on api extendedclip?
authors or the expansion?
Can I change the row of this?
divider_item:
material: ''
data: 0
displayname: ''
lore: []
answered in #general-plugins and please stick to 1 channel when asking questions. ty
Would DI be better than making getters?
yes
then yes
Oh so that's why it's called inversion of control
yes
why is lombok hated
?plsnolombok
Why is Lombok bad?
- It's a compiler hack - the Java compiler isn't designed to modify code, so it can cause difficult to debug errors, or worse
- It requires an IDE plugin, so unless you've properly configured Maven, Gradle and your IDE, you'll get hundreds of compilation errors. This process takes time too, it's not easy
- Lombok'd code won't show in Javadocs
- The code generation is often unpredictable and difficult to debug, and often you'll have to do it "the hard way" anyway
- Java is supposed to be explicit, Lombok hides a lot of key functionality into a subtle annotation which can be easy to miss
- While IDEs support it with a plugin, it's usually more difficult to find specific things, like usages of a getter because they don't exist in the source code
- Finally, Lombok'd bytecode doesn't match the source code, so it causes a pretty annoying warning in IntelliJ
basically less readable/debugable code iiuc, right
also it's super hacky, it bootstraps itself as the compiler or hijacks it or some weird shit to do things the compiler doesn't allow
I like it because less code = less bugs
i mean, it's the same amount of code if not more, you're just not writing it
well the only thing I'd be interested in lombok is less pain for getters/setters
lombok is fudging it in there
Yeah, but less code to look through in the IDE is good
you can autogenerate those on any IDE easy peasy
but ig intellij provides an easy way to create them
and then you don't have a terrible dependency and a bunch of weird code problems
you can fold code blocks on any IDE ๐
I use that a lot so that I can only focus on the code I want to look at
just use less code ๐ค
You can also do a @AllArgsConstructor and @Getter and @Setter to simplify everything
ok so, three metas in helpchat so far
kotlin bad
lombok bad
maven bad
finna collect em all
yeah so literally kotlin
lombok is for those that secretly love kotlin but don't want others to find out
kotlin = java + lobkok confirmed?
https://imgur.com/A2a2QDe finally its work
Well even lombok is bloated compared to Kotlin
what about the sexy papi
i want to implement it
because the code used for display that is really ugly lol
or not 
add .png
kotlin bad is a highly contested belief
the other two are very true though
what?
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml```
lmao
To your link
nah jpg are cool!
oh
its cool??
player info๐
how to add papi?
classic
thanks
tomorrow i will add papi api
ya could do it in like 20 minutes lol
i know
but i have limited time to develop
so i can do other thing
so I guess protocollib also uses netty to intercept minecraft's packets?
yes, via, protocollib, packetevents, protocolsupport, geyser, and floodgate all use netty
geyser ๐ฅถ
Anyone speak spanish here? Contact me
geyser
Hola
Whatโs wrong with it?
I needed a software/website that let's you build a graph using the Cartesian system (from two or more points), then gives you what formula generates that graph. Do you guys know any tool that can do that?
Hi Helpchat
Hello
HI Chat!
Hi
Desmos?
gorgeous
turns out that to me to set the owner of a skull I have to get that player, then get the UUID and apply it
or I can just use @SuppressWarnings("Deprecation") and skullMeta.setOwner(playerName)
yeah second option better
d;spigot SkullMeta#setOwningPlayer
boolean setOwningPlayer(@Nullable OfflinePlayer owner)```
Sets the owner of the skull.
Plugins should check that hasOwner() returns true before calling this plugin.
owner - the new owner of the skull
true if the owner was successfully set
this is more better
@hot hull you don't mind me ripping of your action lib right?
I will credit you ๐
well already did
just asked so I look nice
:)))
well technically I could just use his. well maybe not nvm
Yea go ahead
ty โค๏ธ
ok
not exactly, this website is a graph plotter (it takes a formula, and displays the graph), I need an "inverse graph plot" (something that takes the graph, or more precisely, the points, and output the formula)
that seems tricky
@sturdy magnet can you accept my friend request
there are infinitely many functions that satisfy a finite set of points lol
I mean, it's always going to be a straight line between all dots, and before the first and after the last one it can be a flat line
Xy problem?
I need to create a formula that, given a file size, it outputs a number that will be used as the socket timeout (client-side), in seconds, to give the server time to process the request (because the bigger the file is, greater the time needed to process it), and the time increases linearly, hence why I wanted to output some points (because I have experimented with some file sizes and extract the time the server took to process them).
Use whatever you want from my gh, or any code I've ever written if you want, idc. (You're getting a monthly bill tho)
ty โค๏ธ. xD
Canโt you put points in a table?
Taylor series
So the current developer of the plugin named "UltimateCore" is looking for someone to buy the rights to the plugin and continue it as he doesn't have time to maintain the plugin and is abandoning it, here's what he said to me but if you wanna talk to him, his discord ign is ZubeySweet#8337, here's the plugin link - https://www.spigotmc.org/resources/โญultimate-coreโญ-skills-collections-enchants-pets-runes-alchemy-anvil-talismans-dragon-more.87116/
Here's what he said - https://ibb.co/KWD9VhL
$800?
you could proberbly try negociating it
currently its the only good hypixel skyblock like core in the market as far as I'm aware
add .png
what
Epic embed fail
Developers: "don't add comments to code that do nothing but do the exact same thing as the function is doing"
Also developers:
https://t.co/tid9Elq3HM
112
Yeah duh
what plugin makes 800$/mo lol
rookie numbers (22 days, 50 % of sales)
who is that?
author of Vulcan anticheat
https://i.imgur.com/CEpnDnz.png
yes - large variety of different games ๐
my favourite game is VPS hosting
well to be honest, you can host anything on a VPS or almost anything
so they're not wrong
they just give you the most lowlevel stuff xD
I was thinking
would it be possible to use github actions to deploy a build of the plugin when pushed to the testing server?
I dont test it locally because my pc is bad
if it can use sftp (actions) it should work
I guess
wdym deploy?
It can run gradle tasks and host the jar files
not sure about this
like I have server
and when I push to the repo it would build the jar and then using sftp send it to the server
just checked, its possible
just gotta do some sftp magic
actions*
I want to use Github actions to transfer files to a remote server via SFTP (only option for this server) when I push up to Github.
I am using this Action https://github.com/marketplace/actions/ftp-...
wait what
in paper Entity extends HoverEventSource
huh?
all i know about OR is their name and their insane resource pack system
nothing else
a sec
Furniture using raycasting and titles
thought so
Will ChatColor.translateAlternateColorCodes work if it would be used for ConsoleCommandSender?
Yes, Bukkit.getConsoleSender().sendMessage(text);
i'm working on a project and don't know whether to use mysql or mongo
both :)
what r u storing
user data, purchase history, app config
app config, per user?
global
mysql
hello there
i am trying to make code that will on BreakBlockEvent ignore fortune enchantment, however i can't seem to figure it out how i can do this, i think this is tricky, is it?
How does jetbrains annotations work? Are they replaced by some kind of preconditions at compile time?
I see
I believe thereโs an option to turn them into what Lombokโs nonnull does
yes
Oh thats nice
any ideas how to ignore fortune enchantment on BlockBreakEvent?
Cancel the event and drop the items
If they have the fortune enchant
im working on a project atm that involves billing and donations for minecraft servers
i'm considering making it not work on servers that aren't in online mode
would that be a reasonable thing to do? if they're making money then they can afford to go buy the game
bungeecord go brrrr
Can check for that
But you can't guarantee it's either online or offline mode when it's hooked up to a proxy
If it is... you check if the proxy is offline...
pretty sure the messaging channel can be used for that
obviously bungee is the exception
i could check a uuid or something
Or just tell users offline isn't supported.
that is another option ig
what is entity type name of wither skeleton for mc 1.8.8-1.12.2?
Yeah but you need a complementing plugin on the proxy
You can't do that with just a plugin on the server
Maybe yeah
Good luck with online/offline hybrids 
Yeah there are plugins that do some hacky fucky and if you're legit it'll change your UUID during handshake or pre-login or whatever
christ
i guess it doesn't need to be foolproof, there's nothing stopping people just forking the plugin and removing the check
its more to make a point than anything
Yeah
Sends offline player connection to proxy -> player joins == offlinemode ๐
wat
Create an offline player connection, send it to the proxy, if the player joins, the proxy is in offline mode, if not the proxy is in online mode.
That's actually pretty clever
just finding the proxy ip is difficult
theres no telling if the given ip is public or if there's another lower-level proxy in front of bungee
and whitelists get in the way too
Yeah firewall settings etc, hm
i think ill probably go down the uuid checking with this one, i don't need it to be 100% reliable
Wouldn't matter your if you use the main IP and it joins the proxy is offline
Doesn't matter
If the offline player connection joins the server... its in offline mode
how are you going to create that offline connection if you don't have an ip to connect to
You do. The public IP
You use the IP that is used to join the server. You can get that from playerjoinevent using event.getHostName()
ah that is true
whitelists are still an issue though
whitelist checking happens before authentication
True. But IDK any whitelist servers that have donor shops anyways.
probably because theyre whitelisted
Whitelist is checked after login attempt so you can check if the output is whitelist. If it is whitelist the proxy is still offline.
bro don't tell me that's what your IDE looks like
What the fuck
recaf
Its not obfuscated lol (NVM it is. But thats not what i was looking for so IDC)
Just wanted to say... I am in love with MiniMessage. Okay, bye.
what can I say... it's just a beauty
specially the custom tag feature
how to get 1.17 deluxe chat?
not the place sir #general-plugins
(Also, think there is only a build with 1.17 support, unsure lol)
I remember someone making their own chat plugin because deluxe chat didn't support 1.17
lol
nah. bcz it didn't support hex
or that
It was me, because no hex lol - https://GitHub.com/heychazza/chitchat, more of a temp until dchat got updated
MM? Whatโs that?
MiniMessage
ohhh haha
do you mean dn?
The joke is so old by this point, you ainโt fooling anyone my guy
what would be a good lib for particle animations?
I used https://github.com/ByteZ1337/ParticleLib for 1.8 support but idk your exact question. Particle animations should really just be math.
ใwใฆใtsใซใ
OMG
i meant wow thats nice
now i dont have to rack my brain and study packets version by version
Hello fellow internet users,
would you pay 49 instead of 39 bucks to go from 100mbps down / 40 up to 250 down 50 up?
Will the extra 150mbps download speed make my life noticeably better or is it waste of money?
I do move large files over the cloud frequently and play a couple games that have large updates every now and then, but I never felt like my current 100mbps connection was slow ๐ค
What if it's EUROS tho ๐ค๐ค
that's still awesome
my dad paid Comcast like $150 a month for that
ISPs are a scam and need to be regulated
oh maybe you live in a country where they are
Germany is actually quite expensive when it comes to internet compared to other European countries. But you're obviously right that 10 bucks isn't much given how much time I spend using the internet ๐
I'm not sure whether I need these additional 150mbps downstream tho or if it would feel pretty much the same.
I'm paying 40โฌ for 1000mbps
You win.
that is insane
40โฌ here will get you 180mbps and that's just because im lucky enough to live on a ftth estate
< $2 here for 100mbps
uwu $17 for 30/5
Like 40 for 25/5
38โฌ 1000/100
y'all stop flexing ๐ฉ ๐ฉ
pro devs, IDEA Ultimate
I had to turn off this feature because people would laugh at me when it said "Playing PHPStorm" ๐ญ ๐
hahaha! playing phpstorm
No, we're only allowed to praise IJ here
๐ฅฒ
Thats good news 
Is there anyone who still prefers Eclipse or Netbeans
Eclipse yes, Netbeans only if your name starts with M and ends with 5
MBlitzOffline5 ?
Eclipse could be the best IDE ||if IDEA didnt exist||
oh no
I have yet to see someone use intellij without issues xD
never had any problem with JB IDE (I use InteliJ & GoLand)
I haven't watched you use it xD
Every time I watch someone use it, it crashes, throws errors when it shouldn't, lags etc...
๐คจ
yeah sounds like you never watched anyone use it lol
or only did once, it went bad and that was it
Nah I've seen atleast 30 people use it.
I've been using IJ for over a year and never had major problems with it. and when I had, it was maven or gradle and refreshing dependencies usually was enough
Some newbies and others actually know what they are doing.
I never encountered a crash wtf
And the only lag was caused by the GIGANTIC Material enum
Last crash I saw was a memory error.
I have a pretty bad and old laptop and I don't think IJ ever crashed on it (at least I Don't remember it doing so)
the person ran out of memory ๐
how JB IDE's works like its in Java (Kotlin) but you can run it as exe it use wrapper?
Are you sponsored by eclipse?
wdym xdd?
I'm sure if I was they would be mad at me for using such an old version xD
nah they would be mad for using Eclipse
InteliJ is written in Kotlin (so Java basically)
But when you download it its executable, how
I mean, it is just an installer
and I believe that you can create executables with java
ok not what you download but what installer install
(idea64.exe)
I've had IJ open classes faaaaar larger than the Material enum with like 1gb of ram allocated to it and it worked fine
not gonna say perfectly fine because it does spin up the CPU a bit but when it loads it works fine lmao
like what LOL, the material enum is like 10k lines long
what is that lol
touche
just the imports take up more lines than my average class length xD
https://github.com/jOOQ/jOOQ/blob/main/jOOQ/src/main/java/org/jooq/impl/And.java I like the spacing from here
the great majority of this is generated code from templates lmao
from templates?
i wouldn't want anyone to write this manually
1.13 MB ๐คฃ
wtf what is that why
๐ถ
thats crazy
oh god the javadoc page https://javadoc.io/doc/org.jooq/jooq/latest/org.jooq/org/jooq/impl/DSL.html
My school forces us to use netbeans....
23 methods ๐คฃ
I will legit write a complaint
btw em, what templates?
Why?
i don't know where they're stored in exactly but I know all those Tuple<T> to Tuple<T1, ... T22>, same with Record, all the arguments etc etc is generated code
it's explained in their guides
I see
Better than what I had to use
Everyone in year 1 had to use BlueJ
Tf is that lol
I will suppose its worse than netbeans
But netbeans sucks
Ngl, gonna write an email complaining about it
We shall use intellij
ok but Dr. Java
Well after year 1 you can use whatever you want (they tell you to use IntelliJ, but you have a choice) so thatโs nice I guess
I guess
Update on the shirt, 7โฌ for customs
damn
that's exactly how much the shirt costs
lmao
pretty sure it says it on the package. or maybe 7.5 euros
Nah the shirt is 6 lol
lmao
F
I want the shirt so fuck it
Don't forget to pray they read it LMAO. We have an elearn platform (I believe its called moodle or whatever) and its trash. I wrote them a few emails with bugs and stuff, 5 months later no response or change
and they pay actual people
like they have a contract with an actual firm to take care of that kind of stuff
but hey its tax money anyways. I Don't have to pay am I right? xD
Fortunately they didn't force us to use anything and even if they did I've been thru enough of these experiences to be able to tell a teacher to fuck off in their face
for legal reasons, the message above is not advice
For legal reasons, I will not publicly say I would do the same.
well I guess except for all the communication platforms lmao
||(I would and did)||
nah
but is it really?
In my opinion it is
also we have to use: wapp (for chat only), telegram(for chat only), zoom, google meet, whatever the microsoft meet app is (teams I think), and also a teacher is livestreaming it all on youtube (I actually love that bcz I can go back at any point and just rewatch the entire stuff)
well in theory we should be using teams only but only 2 teachers use it lol
well that and the elearn website
I need someone to help me setup my domain that I've recently bought for my Minecraft Server, DM ME!
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
?
i think thats for the legacy material name support
add api-version maybe
i know paper and maybe spigot also does some classloading stuff with event handlers
hm
Im on paper
And it seems to originate form Commodore#convert
That's luck's command library right?
weird
It also crashes only on specific ways the code is put in
Also happened with shadowjar a bit earlier
Might be an asm bug
And.... its randomly fixed
Wonderful
That's a nightmare of a hacky fucky internal class for legacy plugins to work on 1.13+ versions
I dare you to read it
Ah
where did u get that
From their discord
more specifically?
oh also, @wintry plinth should fix that xD
Maybe it was cached in gradle/ij and needed a rebuild or smth? No clue
Everyone over there is dissing jetbrains for hiring employees who cant manage basic cyber security
mass-ping + dm spam
they have a discord?
wdym?
I had 1.16 set already before building
could you send me it too? pls
Oh shit, good spot ๐คฃ
Maybe Iโll just change the login page to dark too
xD maybe support both?

Sure
Thatโs what we do, we support both, just I havenโt changed the other parts
The dashboard auto switches, itโs just the login/register that doesnโt
oh mb, well, should be ez to fix
yee
smh
just noticed, I am actually becoming quite active here lol
forcing light theme on us
it auto does dark by your system
just login not changed
Is he implementing commodore into spigot?
64?
Huh?
(idk if that pinged, didn't mean to
)
you didnt
Nice
how do you know?
the little @ before the original message author's name
Doesn't show on mobile 
Shows for me
Ignore me I'm tired, I thought he was implementing luck's commodore into spigot
And you know you can ping me nerd 

Yeah mobile doesn't like it
Fixed aha
Yknow, almost anything Microsoft does for developers is great
Almost anything Microsoft does for users is horrible
GitHub? Godlike
Skype? Dead
Visual studio ||code||? Great
Edge? Horrible ||or atleast was||
Typescript? Great
Teams? meh
Azure? Good
Minecraft ||bedrock||? wtf happened
๐คฃ
I swear, teams is so shitty, I can't open images without trying three times, scroll doesn't work properly
Iโve only used it like once and regretted life
You forgot windows
We use it at work and uni =/
Didnโt forgetโฆ just decided it didnโt exist
Is windows that bad?
Eh, depends on the time of day
I love when it breaks after updates
If it wasnโt for Adobe Iโd be on Linux
Iโve been having a very fun loop of it bluescreening every 30-40 minutes, and never reporting the reasonโฆ so in event viewer it just says โdrive has a bad blockโ
So I scan it with like 7 different tools and they all say itโs good
So basically trying to fix a problem that I have no way of seeing
Hotel? Trivago
MC Bedrock edition isn't that bad, it's just that there are many, many mechanics that are very different 
And the performance is INSANE, credit where it's due
minecoins go brr
I get the reference ๐
and how did you not know?
Hello!
I'm trying to load location from configuration file from string, what format should I use and how to parse it to Location?
Currently I have: "world,1,2,3"
Any easy method to parse it to Location?
I guess I could split it...
But then again I need to convert all coordinates to doubles etc.
Any easy "oneline" method? :D
Hey, is their any placeholder that returns the player that command in chat that the player provided?
So where can i find one?
sorry bro
can you help?
i haven't read the rules but i have seen and accepted them now
wtf does your question even mean
I mean that if a player provides a command like plugins
or help
i wanna return that command in the message the command plugins has been blocked
or the command help has been blocked
declaration: package: org.bukkit.event.player, class: PlayerCommandPreprocessEvent
i think this is the event you are looking for
by checking if the command starts with /help in e.getMessage
bruh
ok
In this episode, I show you how to listen for Minecraft events with event listeners, how to read Javadocs on a basic level, and how to work with the Player object. #Spigot #SpigotDevelopment
Code: https://github.com/Spigot-Plugin-Development-Tutorial/Event-Listeners-Javadocs-and-Players
โญ Kite is a free AI-powered coding assistant that will he...
skip to event listener in main class
my server version -1.8.8
then replace the on join event to the playercommandpreprocessevent
package yourmom;
public final class Events extends JavaPlugin implements Listener {
@Override
public void onEnable() {
System.out.println("The plugin is starting up.");
getServer().getPluginManager().registerEvents(this, this);
}
@EventHandler
public void PlayerCommand(PlayerCommandPreprocessEvent event){
if(e.getMessage().startsWith("/help or whatever here")){
e.setCancelled(true);
e.getPlayer().sendMessage("command /help is blocked you moron");
}
}
Please someone tell me you recognise this sequence or at least the pattern bcz I Don't. what would come after?
oh nvm its going to be 4x1, 4x2, 4x3 and 4x4
man sometimes typing stuff down really helps
you work for fbi?
yes
now I need to generate the first n numbers of the sequence. how the fuck would I do that?
If someone can help me with this problem in the next hour, I'd be very grateful. I have to generate the first n numbers of this sequence and I can't think of a way. My brain freezes when I'm under pressure ๐ฆ
is that the only example you have? 1 1 1 2 2 1 1 1 2 2 2 3 3 3
yeah. but the sequence I'm pretty sure is just 1 1122 111222333 1111222233334444 etc.
but I have to generate the first n numbers (not groups) of the sequence
ahh just export all the numbers to a string then substring the string?
well yeah but I have to generate the string as well. and I was thinking of a performant way. if my input is 3: I have to get 111 but my best option rn is I generate all those numbers so 11122111222333 and just get the first numbers or something like that. idk. I might've found a soultion tho
well i mean you have to get a storage thing,whether a list or a string to store all of them right
1 => 1
2 x first two numbers => 1122
3 x first three numbers => 111222333
4 x first four numbers => 1111222233334444
5 x first five numbers => 1111122222333334444455555
Combined 1 1122 111222333 1111222233334444 1111122222333334444455555
yeah I get that. but I needed an algorithm to generate the first n numbers
like if for example the input is 3 I generate 111
its really hard if you want it to be performant to not allow even a string declaration
but shouldnt be a problem otherwise
String#repeat
final var n = 9;
final var builder = new StringBuilder();
for (int i = 1; i <= n; i++) {
builder.append(String.valueOf(i).repeat(n)).append(',');
}
System.out.println(builder);```
> `111111111,222222222,333333333,444444444,555555555,666666666,777777777,888888888,999999999,`
public static void main(String[] args) {
System.out.println(firstN(2));
}
public static String firstN(int n){
String plain = "";
//main loop for each n index
for(int i = 1;i <= n;i++){
//for generating numbers in the tuple (1,2,3,4,5,6...n)
for (int j = 1;j <= i;j++){
//for repeat
for(int k = 1;k <= i;k++){
plain = plain+j;
}
}
}
return plain;
}
nailed it,but with only loops
cuz you probably arent gonna use library functions for algorithm
idk
you need space?
you alr? @static zealot
Oh its done already. my bad. working on something else. ty tho!!
ok cool
teachers often ask not to use methods ๐
yeah. its an exam. my friends failed and I had to help them and I Did as much as I Could lol. and many many times they ask us to not even use the methods that come with the standard .net library
also this won't work btw. well that's exactly what I had but it generates all groups of numbers. instead I litearlly needed the first n numbers
but for input 3 I just needed 1112. I just needed to have a few extra checks
that's all
forgot about the substring stuff
yeah. but I wanted something more optimised since this would generate n^2+(n-1)+...+1^2 numbers and I would only take the first n numbers from that
Just do it lazily then ๐
so till index 3?
yeah exactly
public static int[] generateSequence(final int n) {
final int[] result = new int[n];
int index = 0;
int i = 1;
while (index < n) {
for (int j = 0; j < i && index < n; j++) {
Arrays.fill(
result,
index,
Math.min(n, index + i),
j + 1
);
index += i;
}
i++;
}
return result;
}
WHERE IS THE LAZINESS
yea ๐ฅฒ , I wrote a bit, forgot and left it here, just remember now when i opened the channel
use a stream or i will kill you
๐จ
Hi can you help me. My discord was hacked and someone change the email address
?not-discord
Looking for discord support?
HelpChat is a Minecraft plugin and development support server and is not affiliated with discord in any way.
If you require support from discord, we recommend you to visit their official support website at https://support.discord.com
On this website, you can read their FAQs, or open a support ticket if necessary.
@modest river ^
burn in hell with those varibles.
Whats wrong?
eh?
i & j?
Thats usually what looping variables are named
index keeps track of the current index in the array
and result, is well, the result
I know, however stop it. Get some help.
wait 'till you find out about axis names in linear algebra
@boreal needle No comments
haha no
ye
its basically intellij ultimate but without the java
i use it for work so cant use my student license and cant afford a full ij ultimate license
the terms say no commercial use
like im getting this software for free, the least i can do is show some respect to them
I mean, do they know you use it for comercial use? ๐
does it matter?
Idk does it?
its just not the right thing to do imo
"it's not illegal if no-one knows" moment
like not paying a very reasonable price for some world-class software that i will profit from just doesn't float with me
it's not exactly expensive for what you get
I can just use ultimate for study purposes aka studying how I will do it, then ctrl c ctrl v to community ver
Hehe
Ye I am speaking but I do have the paid version xd
its only like 6$ a month I think
Thats still a break of license?
Not that they're going to sue you or anything most likely
more of a question of ethics than anything
Unless you have an extremely successful company and they think they can profit well from that lawsuit
mhm
You can use it for open source/personal work
(Not with educational license but in a giveaway)
Is it a normal license? if so you can use it however
if the license allows it, sure
most they'll probably do is end your license
Yes its a normal one
They're not really going to find out in most cases I assume
well yeah. but in the case they do and they care at least a bit
Well I accidentally told their staff I use it for my work, they didn't really mind
lol
So yes, Unless you're making a few thousands, they dont really give a shit
in most cases a business would prefer to just keep you as a potential customer rather than sue you or anything
what u talking about yugi?
Me keeping myself a potential customer to jetbrains
brand loyalty at its best!
๐ท
it sucks ass but theyll usually cancel it if you contact them since it's more valuable for you to not hate them
and maybe because you could sue them for being evil
but
well
I gave up on even installing they who shall not be named but occasionally say yarred version of their stuff
they actually are
||ironman||
Oh, theres only 4
oh
it sinks ||(the titanic)||
๐ฅด
Actually
Season 4 is the only season we actually see elliot in (except his younger self)
what
stop trolling me
Im not
or maybe
They actually dont show elliot till s4
s4 last ep
or second last
I forgot
||Mastermind, Dad, Mom, and Younger self(? or brother, cant recall) go back||
yugi I know I've asked like 10 times but can you repeat or relink me the message where you explained what was wrong with the js expansion performance?
you're welcome
ty
xo
@jaunty maple you better remove that component example, looks painful ๐คฃ other than that, nice project
did someone say MiniMessage?
no
did u like the ending?
@hot hull would you mind transfering the FrozenJoin github repo to
Yes!
@distant sun thats why you use paper with adventure :)
Or just adventure
Oob?
Out of the box
Ah
Ugh, I'm trying to build an SDK for a project, and not where to start for structure ๐
๐
07939939-b752-435f-874e-bc3611097285
nice uuid, looks like a phone number lol
why you yoink my uuid
With gson, I have a string with a date like 2022-02-15T21:40:14.000000Z, how can I fetch it and parse it as a date object within java?
public GsonBuilder setDateFormat(intย dateStyle, intย timeStyle)```
Configures Gson to to serialize Date objects according to the style value provided. You can call this method or setDateFormat(String) multiple times, but only the last invocation will be used to decide the serialization format.
Note that this style value should be one of the predefined constants in the DateFormat class. See the documentation in DateFormat for more information on the valid style constants.
1.2
dateStyle - the predefined date style that date objects will be serialized/deserialized to/from
timeStyle - the predefined style for the time portion of the date objects
a reference to this GsonBuilder object to fulfill the "Builder" pattern
huh
haha
d;gson GsonBuilder#setDateFormat(String)
public GsonBuilder setDateFormat(Stringย pattern)```
Configures Gson to serialize Date objects according to the pattern provided. You can call this method or setDateFormat(int) multiple times, but only the last invocation will be used to decide the serialization format.
The date format will be used to serialize and deserialize Date and in case the java.sql module is present, also Timestamp and Date.
Note that this pattern must abide by the convention provided by SimpleDateFormat class. See the documentation in...
This description has been shortened as it was too long.
1.2
pattern - the pattern that dates will be serialized/deserialized to/from
a reference to this GsonBuilder object to fulfill the "Builder" pattern
Ah so I'd need to set my format there, and gson will auto give me a date format?
Essentially reading from an api, which gives a string like 2022-02-15T21:40:14.000000Z, need to be able to get that as a Date object
Hmm I can either do the writing assignment thatโs due on Monday and will take like 15 minutesโฆ
Or I can keep doing the programming assignment due in 2 monthsโฆ
Go for the hard way
thank god. was getting tired of you coding 
WDYM
I feel offended

Where can i report staff being offensive 
in my DMs. 

Hella sus
@compact perch
dm Barry
ahem
nice foot
https://github.com/mozilla/rhino
First commit dated April 19, 1999
๐ฎ
Wait you still havenโt got yours?
no ๐
Bruh
https://twitter.com/heychazza/status/1483750756566118400?s=21 yours must of got lost
I got like more than a month ago
well...
I live in romania and I've gotten mine
and even better... for free
LMAO
suck it frosty
@distant sun has yours shipped yet?
"En Route" and this is the last update
yep that's definitely lost
feelsbadman
mine shipped after urs and is already in aus
fucking hell
Yeah I thought itโs prob lost
Wait really?
Ye 
Did you ever get it?
With a gradle project, is it possible to be able to locally install it, so other gradle projects can utilise it?
publish to maven local
Yeah, and perhaps have it so its on that maven repo thing so others can just pull it in
Without locally having the project
well, yeah
Just not sure where to start ๐
Created the files, how do I publish it?
gradle pushToMavenLocal
open gradle from right tab, go to tasks and then publish
ahhh thank you, godsend, once ive done that do I just reference the artifact from another project?
yeah and add mavenLocal() in the repositories { } block
Ahhhh, tysm <3 so in my docs I'd just need to tell people to clone the sdk repo, run ./gradlew pushToMavenLocal to be able to use it?
how could I do that with this plugin? I did run ./gradlew publish
but couldnt find it
Official search by the maintainers of Maven Central Repository
you need an account there
oh right
I am making a plugin almost identical to Hypixel's lobby selector, but completely customizable. What features besides just having the lobby selector would be nice to have and fit this plugins theme?
not an exact copy
all of them?
no no no
for gamemode selector
you have the nether star
??
right>
no
yes
that is why I said lobby selector
you can also make that
with deluxe menu
if what you want exactly
is to have red when full, green when available
and i think orange when a friend is in that server
My plugin does all that for you
then
but I was thinking that just the lobby/hub selector might not be enough to entice someone to use it
there isnt a issue
that is the thing
the plugin is complete
but I feel like if someone comes across this plugin, they might not download it just because all it does is have a lobby/hub selector. I feel like there needs to be more to the plugin, I just dont know what
https://paste.gg/p/anonymous/7f40eec2f848465f8a7221aa9f1357b6
How would I fix this error? It happens when the Grappling Hook item is in my offhand, and there is a different item (any) in my main hand
use e.getPlayer().getInventory().getItemInOffHand() to get the item in your offhand. The itemmeta being null means it didnt grab a item.
๐ Thank you!
I'm just learning, what would you suggest the best thing to do is? Should I check if the main hand is null and in that case get the offhand item, or something different?
is the grappling hook supposed to be in the offhand?
unless you are in old versions where item can be null iirc
Not necessarily, but people could put it there if they wanted to
yeah so then I would check if item is in main hand, if not, then check if it is in offhand
Perfect
I'm fixing a bug in a plugin where it sends an error when you use the grapplinghook in your offhand
I did this:
if (item == null) {
e.getPlayer().getInventory().getItemInOffHand();
}
Unfortunately, now using a normal fishing rod sends an error, what would be causing this?
Error: https://paste.gg/p/anonymous/dc50574314114101b3ffca6b3310dda5
Class: https://paste.gg/p/anonymous/9b6aecfbac2c4a4ea23ef575fbaf73c4
I just found something, you can remove your checks for if there is a item in offhand or main hand, just do e.getPlayer().getItemInUse() it returns a ItemStack
Oh perfect, i'll try that now
Using that gives me this ๐ข https://paste.gg/p/anonymous/59bacfdbbe4943e9b163e4f0cb1b7a06
what is GrapplingHook:54?
if (item.getItemMeta().getItemFlags().contains(ItemFlag.HIDE_ATTRIBUTES)) {
item is null
yeah
Hmm, I'm holding the item though
ugh. you're not setting item here
you probably wanted to do item = ...
item = e.getPlayer().getInventory().getItemInOffHand();. also can't that be null as well?
it can be as far as I know
Yes that is what I did
public void onRightClick(PlayerFishEvent e) {
Player p = e.getPlayer();
ItemStack item = e.getPlayer().getItemInUse();
if (e.getState() == PlayerFishEvent.State.REEL_IN || e.getState() == PlayerFishEvent.State.IN_GROUND) {
...
nope. turns out its not. just checked
I assume it just gives an AIR itemstack
oh, interesting
at line 69.
oh nvm. you don't even get there
lmao
the null is above
yeah, line 54
I've removed that now (see this)
wait that's strange. what spigot version do you use?
yeah nah. getItemInMainHand is not nullable in 1.17.1 either. so
wait I'm a bit lost. give me 1 second. need to go and reread everything you wrote
ohhh
I've misread
the meta is null. not the item lmao
Oh I see
I believe air has null meta
but anyways just check if meta is null first. if it is just return
Awesome, thank you
ah I see where the confusion came from. The second error you sent was giving null at item bcz you were not using getItemInMainHand. Didn't realise you sent another error before
I donโt trust Bukkit annotations
Half the time they say something is not null and it ends up being null
๐ค really?
yeah, I've seen this too. Don't trust @NotNull in bukkit
o ๐
Yeah there are nullable things in Bukkit annotated with not null
Because Bukkit
whats the method?
or methods
also, still confused - what's the purpose of using Docker vs just running them on the machine?
seems like its sorta like a VM that it can make separate "instances", but why do that at all in the first place?
reproducible build environments is the biggest
and it is important to note that docker containers are not VMs
if you've ever setup a tangled mess of like an nginx proxy, a web server or two, some other stuff, a pterodactyl panel, all on a raw machine, you know how annoying it is
and good luck ever moving off of that to a different server or something
docker lets you have containers that can run anywhere you have docker installed and can build their own environment like a clean room so that it will always be identical





