#dev-general
1 messages · Page 242 of 1
@half harness what do you need to obfuscate
a.. plugin
ew
proguard obfuscation is horrible
why do you need to obfuscate it?
then.. don't do it?
?
^
obfuscation in general is disgusting
so that people can just easily decompile
there is no literally no reason to obfuscate
makes it harder to decompile
why don't you want people decompiling dkim?
bc i want my code :>
that's very selfish
;-;
open source it dkim
what is so special about ur code that it needs obfuscating?
are u a making a AAA game?
wdym
inb4
look at minecraft, it was always released obfuscated and that didn't stop people from making obfuscation maps for modding
whats AAA?
it simply doesn't work dkim
how
^
obfuscation just slows the process
sorta
"sorta"?
yes
there's literally tools that'll deobfuscate it for you in a couple seconds
;-;
takes no effort at all
lol
but-
you are wasting your time
obfuscation > no obfuscation
reasoning?
asdhsaiudhisaud
dkim open sourcing is 100x more effective than obfuscation
people can just build it themselves
because if people leak your plugin, they'll look like an idiot
then
most people don't
they simply don't know how
your buyers usually aren't developers
and think of it this way
the people who build it themselves would've just downloaded a leaked copy anyway
they were never a potential buyer
you don't lose money making it open source
look at p2 or griefdefender, they are open source and people have no clue on how to compile them, so they just buy them instead
also dkim any "good" obfuscator is going to set you back a few hundred dollars for a license
yearly
they're not free
😬
zkm costs $532
which is what most people use afaik
although I bet most developers that use it, ironically use a cracked version
@half harness you still want to obfuscate your work?
obfuscation bad open source good
@half harness Obfuscation will make your life a nightmare, error lines will point to completely different things than in your code
oh yeah that's an issue
literally impossible to resolve bug reports, because errors that people submit are useless
error at a.a.a.a.a.A line 4566446 🙂
Interesting interaction, was wondering how with would interact with arrays and lists
Though just [0] would work, but i guess it needs this
what is the cooldown command for skript
@quiet depot Look at this beauty https://paste.helpch.at/osogewasew.css
what?
Ye
wdym by that
cube said that advent gives you an extra reward if you claim all 24 days
Same
oh was just the satisfaction of clearing all the "doors"
Depressing
Funny cube, you’re indeed funny (:
classic asking to ask
There is no time to wait! Ask your question @obtuse gale!
Rip, I've become the thing I hate
Alright, so I'm in the process of making a command for a discord bot that searches a wiki based on the parameter provided. The issue I'm faced with rn is figuring out how to know when to scrape what. For example if a monster page is setup one way but a location is setup another way.
Would I just scrape all ways and see what's undefined and what isn't?
I can reword that if necessary
@frigid badge Hey, so I'm expecting lambo keys under my christmas tree tommorrow morning, we got a deal yea? Merry Christmas!
lmao merry christmas to you too
lol I just used ClassGuard to encrypt a jar but now I don't know how to decrypt 😐
You're still trying that? .-.
🤣
Did you read what I said yesterday?
encrypting a jar
😐
fun fact
According to the GPL license you legally have to provide source code on request
Meaning obfuscation is effectively useless 🙂
i made one of my first plugins its a pl that has a config so you display custom join messages and messages for when someone joins for the first time anyone want to look at the code and rate it, maybe some feedback? DM me
looking for an API that allows me to disguise one player as another programatically. any recommendations?
https://github-readme-streak-stats.herokuapp.com/?user=igabytm interesting https://arturssmirnovs.github.io/github-profile-readme-generator/
That's what I used lol
I'm really tempted to shade in every version of java into my plugin
Lol
i cant upload stuff here
wait wtf
on chrome if you go to a website
and press CTRL+S to save a website on your pc
does it save the css and js as well? like other files than the .html file
oh wait I think I have chrome installed. Imma test this out
It just saves the HTML, the css likely gotten because it's "imported" through a link instead of path
so
on OperaGX
when I save I get the css and js as well
but on Chrome, same website
I only get the HTML
well this makes my life like 100 times easier
It saves css and js too for me
oh rly?
wait maybe I did something wrong let me check again xD
anyways I always thought it only saves the HTML
well it doesn't matter just thought maybe its just for Opera Gx.
but its a cool feature anyway
I always thought it only saves the HTML. Unless its like a "newer" feature
ah
for chrome?
check the folder u saved to
The download only shows html
but the folder where it saved
will have a folder with the same name
huh
for opera it did that
weird
Try in a separate folder
It alerts you to update
ah
I use Opera Gx
Can you try the same with a separate folder?
will do
GitHub link?
Opera GX is new right?
Gaming browser? xD
What website did you try to save?
You're looking to optimize your minecraft server?
Well fortunately for you, Gianluca was kind enough to make a website that will somewhat guide you on the path to get better performance from your server.
this one last
oh google says it was released in early access durign october 2020?
actually not last
no idea. I've been using Opera Gx for over a year now
like even LTT
didn't make a video on it
before I used it
xD
Nice xD
yeah xD
SSL
yeah not mine
Was in beta for the longest time, so i guess it was "released" this year
gian made it I think
ah that makes more sense Matt
ah
Blurt
Would you say its more useful than chrome?
well for me it is
what is this @prisma wave
oh
I don't use it for the gaming part but yeah xD
wait the website has a list
with game news
elevator music
its a bit overadvertised
the music stuff xD
it has some nice sound effects tho
xD
lol
also
the side bar
is nice
I only have google translate there
but you can have like twitter
whatsupp
twitch
I don't even remember all of them
ah
slack
amazon assistant
I think
also you have themes
I use the red and black one
like the classic
but it has like a lot of them
xd
Also they have their own dark theme that you can force on websites
oh here we go
all those can go on the sidebar
wait why no embed?
anyways its not bad.
That imgur is invalid
It's invalid
what?
hmm
It’s just the picture itself
yea ik
When we open it we don’t see it
I don't see it lol
At least I don’t
oh shit
I tried it again lmaoo
here we go
prt src
lmaoo
oh wait now ...
Yeah we can just upload images 😂
its weird
ShareX
going crazy
because I always used sharex to send images
this one was sharex
with imgur as wll
well*
shell / bash
Hello, i am trying to do something here, using json trying to do hover text message on a message, using a plugin that i have it should convert it but i am going in some trouble can someone help me out?. Trying to do:
["",{"text":"XD","hoverEvent":{"action":"show_text","value":{"text":"Show this text on hoverEvent"}}}]
OMG... turns out the images not showing is just imgur having a bad day xD
I like how the images still get posted even tho I'm not linked in my account and imgur not working at all. They're over capacity apparently
@little hamlet in 1.16+ the hoverEvent contents field is no longer named "value", it's "contents" now
I suggest this p neat website when making things like those https://minecraft.tools/en/json_text.php
Although unless the json components are specified in a config by an end user you should really just use bungee chat components
?json
Here you can find a couple of online JSON creators
look 2 cool websites
The first one is literally the one I linked
yes I know Oliver
:|
Thanks!
here it is https://github.com/Encription0001/JoinCmds (sorry i took so long i was asleep)
Also anyone else if you want to see it and rate it its my second plugin i ever made
also the plugin is 1.8.8
whats wrong with 1.8?
Its good for pvp
idk i dont play 1.9 pvp
i do have a question
when you make a 1.8 plugin doesnt it have forwards compatibility to 1.8 with the viaversion plugin or is it the other way around
because when i make a plugin i want to make it the most compaitible
viaversion doesn't handle all that. Just client connection afaik
28 days I believe
Because my nitro expires on the 27th
Not a competition
But ok
yea I bought a few months a while ago
But it's not rly worth the money imo
true
A small price to pay for clojuremoon
You added the .. jar to GitHub .-.
🤣
bruh
its not "click pvp"
but
its a myth
...
did you forget about fishing rods
but you cant quickly switch and hit
bc of the cooldown
also they removed blockhitting 😭
;-;
thats ur opinion
now lets end this pointless discussion that can be easily seen on google
what was i supposed to do?
how!
i dont use github very much
how do i do that
copy and paste the project files in it OR if u use intellij just press VCS -> commit -> push or make new repo
I use eclipse
Yes you can
just copy all files
okay now what
upload it to github
HOW
i cant upload something from clipboard
it says i have to drop it in or select files
i cant just paste it in
👍
Make packages look.like.this not look.Like.This (caps)
noo
also rename your class to JoinCMDS or something
not Main
If my plugin is named "CustomPotionRecipes", I shouldn't name my main class "Main". That is discouraged and very bad practice, especially for Spigot/Paper plugins. Instead, I should name it "CustomPotionRecipes"
If your name is short enough you could add "Plugin" to the end of it but it's not necessary
There are many reasons why naming your class Main is bad. Here are a couple which are common.
It can break some Application Programming Interfaces. Even if it's not the Spigot-API it is generally bad practice and can break other libraries. For example, when you are modding, there are certain class names you want to generally avoid. The same goes for plugins.
As said many times, it is the same reason why abusing static is bad. It is generally discouraged. Think to yourself what "Main" means. When I look at "Main", I have no idea what it means. The only thing I get is that it is the main startup class for a program. The thing is, your plugin isn't necessarily a standalone "program" or "software". Instead, it is the startup class of an addon, not a program/software. This is the reason why Bukkit has a main class while plugins should not (Bukkit is the server software). Therefore, name your main plugin class your plugin name, to ensure that it is not vague.
Uniqueness. If every plugin was called "Main", there would be no uniqueness for plugin main classes. Therefore, they should be descriptive and upper camel case. After all, we don't want like 20 plugins that have the same main class name.
Credit to @forest pecan
thanks
why static
idk isnt it supposed to be static
remove that static 
u prob wouldn't understand if you're new to java
but basically it's shared across all instances
i did python so idk what im doing 😭
goes against OOP
That's called static abuse, make a method to avoid it
and java is OOP
so when should i use static?
and make it final 
Or use constructor
and why is it bad
bc it goes against OOP
turn that into private final Main plugin; or preferably private final JoinCMDS plugin
what does final do?
also why is a listener in a commands package..
When you want the member to belong to the class instead of the instance
When you want constants for example
that makes sense
rename the commands package to listeners or something
okay
Not reassignable
- Rename package to make it lowercase
- Rename the main class
- Make it not static
- Make it final
- Rename the
commandspackage
but im gonna listen cause u guys know what ur doing
theres ur list of improvements
THANK YOU
👍
5 is literally 1 lol
no its not
the commands pakcage should be listeners
his package is me.blah.joinCMDS
static is like python default functionality, as if it's outside of a class
so should it be me.encription.joincmds?
yes
Oh it's already lowercase, though i saw it upper
huh?
oh makes sense
Player plr = evnt.getPlayer();
if (!plr.hasPlayedBefore()) {
Bukkit.broadcastMessage(Utils.chat(plugin.getConfig().getString("firstJoin_message").replace("<player>", plr.getDisplayName())));
} else {
Bukkit.broadcastMessage(Utils.chat(plugin.getConfig().getString("join_message").replace("<player>", plr.getDisplayName())));
}
```instead of this, just remove `else` and put a return after the `Bukkit.broadcastMessage(Utils.chat(plugin.getConfig().getString("firstJoin_message").replace("<player>", plr.getDisplayName())));` 
also in regards to git, I'd suggest either using Intellij, or learning the command line, as just uploading the files is extremely wasting git's potential
also you might want to just register the listener in the main class so that you have all the registering in one class 🤷
If you've ever used Pycharm Intellij will be familiar
and only pro programmers like cmd line
Or get GitKraken
The way they have it is fine
Personally I'm not a fan of side effects in constructors
But I guess it's not a problem
wait then it the second one just wont work tho
Use meaningful variable names, not like plr
Nay, use understandable names player
do u have an example of what i could do
oh okay
it will only work if !plr.hasPlayedBefore is false
Don't use gimmicky abbreviations or acronyms unless it's obvious what they mean from context
so i remove else and replace it with return?i have to remove the brackets also im guessing
um
wdym?
You mean l naming it that?
Yeah
okay just making sure thank you
if (!condition) {
message
return;
}
else stuff
Player plr = evnt.getPlayer();
if (!plr.hasPlayedBefore()) {
Bukkit.broadcastMessage(Utils.chat(plugin.getConfig().getString("firstJoin_message").re place("<player>", plr.getDisplayName())));
return;
}
Bukkit.broadcastMessage(Utils.chat(plugin.getConfig().getString("join_message").replace("<player>", plr.getDisplayName())));
```like this @weary epoch
- Rename package to make it lowercase
- Rename the main class
- Make it not static
- Make it final
- Rename the commands package
- remove else statement
okay all my changes
No, give names proper description of what it does
mind if i copy this code?
Oh lord, always use brackets unless it's one lined
ye, just make sure u understand what it does
yeah i do
Incidentally, you're pretty much repeating yourself with the message, you could just assign the string and then use that in broadcast (chat (replace()))
That is too big to be one lined
always use brackets*
and just does the second message
also upload new changes to github to make sure u did it correctly @weary epoch
okay will do
I'll disagree because of things like if (false) return looks better one lined
Like i said that line is too big to be one lined
I use if (false) { return; } ;-;
Ugly
lol
if false => return
https://prnt.sc/w9sgym
when i tried to rename it to lowercase this happened
;-;
Depends, support with?
#general-plugins and #general-plugins-2 is for all plugins
u have to refactor/rename the package
thats what i did
nope
https://prnt.sc/w9sigp
i keep on getting this damn error
println doesnt work in game chat im pretty sure
That doesn't look like elara at all lol
oh my bad
And i already got pinged .-.
yea
The joys
cant wait
;-;

😐
@obtuse gale Be patient, someone will help
okay
https://prnt.sc/w9sigp i need help how do i fix this error
eclipse refactoring 😐
i did
Elara would be
let main => {
println "Hello World"
}
I'm pretty sure eclipse is famously bad at this sort of thing
and thats whats giving me errors
No brackets necessary, but yes :)
Wait
Actually no
We scrapped the optional brackets idea
print("hello world!")
Yes
im gonna restart eclipse
They're only optional for infix functions now
I really suggest you switch to IJ
idk i used pycharm and i had alot of problems with it
#showcase message @obtuse gale
Not what type of issues you had, but never had any issues with IJ, it's always been a blessing
challenging but not too difficult
i deleted it from my workspace how do i bring it back up
You lex it, then parse it, then wrap the AST into something else and execute that
lexing is the easiest part
Parsing is probably the hardest
depending on the language
That's very unnecessary, i mean Kotlin is basically that already
no need
why?
Elara takes a lot from Kotlin
Elara jvm wen
maybe
Kotlin for evm wen
depends on if evm will exist xD
okay im gettin IJ
Evm will exist
ERM
uninstalling
Elara Real Machine
Someone screenshot this, it's a moment of liberation
No more virtual shit
Elara will run on quantum machine
what
wait i dont need to instal JDK for IJ?
i do
YES
it took me like 50 minutes to get it last time
wait a sec
i already had inteeliJ instlled
lets go
yeah
well its not thats bad
then sleep ..
because the days when you are down make you appreciate the days you are up
is it i thought that already passed?
if you have someone to give you gifts ...
u can always get urself gifts
you can always get a job
https://prnt.sc/w9sufw
which one should i use?
if your under 16 then you have parents
youre an orphan?
so you got parents
you arent that alone
plus you have us
nerds that make minecraft plugins
"parents" doesn't imply lovable ones
Heck, I know of a girl whose parents want to kill her
Yeah, first Christmas spending away from my fiance, it's pretty shitty
Family?
dw u got me ❤️
Didn't I say holiday season is depressing?
Depressing nonetheless
my sister got married recently
on hannukah
so its was a good day
yeah maybe
also its scientific that if you eat food you enjoy
it acutally makes you happier
so maybe ur just hungry
also going outside and just chilling is sometimes nice
for me its 17F and i still go outside
its nice
go sledding or something
make a snowman
Fahrenheit 
sorry im amaerican
-8C efe
not in public i mean like your backyard or just a walk on your street
17F = -8C
im pretty new to java
i came from python
and i jumped straight into MC
i didnt try to learn any java syntax before that
so im really learning
I'd say you did pretty good for not knowing anything
about java
what things do
i just cant do much without looking up how i do something every 5 seconds
Fefo started with C++ iirc
C is hard mode not even C++ are u trying to die?
Can't control what school gives us
you guys learn programming in school?!
lucky
my school is a prison
no but actually
I mean i was in a programming course xD
the school is in a old factory that was famous for workers commiting suicide due to the working conditions
I had to learn C and assembly in school 🥲
there is cages around the windows
school or uni
Guess
assembly... my dad did assembly that shi hard
Do you?
US's equivalent of Highschool
so secondary school
Frick you
Here when you get to secondary you have to choose a course, you have 2 types, a progression one, where your goal is to go to university, and a professional one, which gives you a degree at the end of 12th year
My programming one was a professional one
Where do you live?
omg
Portugal
sounds useful
It's nice, but pretty tricky since you have to make a big decision when you are 16yo
I first did science, but after 1 year i noticed it wasn't for me, so lost 1 year
idk i made my choice before i was 16 lol
still saves you from doing that exact same thing in university
and now i still wanna do it
sounds exactly the same just 2 years earlier
About 2h flight
And funchal is the name of the island, madeira is the archipelago
i did a 17 hours flight 3 days ago
that includes layovers i think
but thats lfight time
not travel time
it was from manchester to london to chicago to ohio
Yeah, and you still can go to university after the professional course too, for a higher degree, it's a pretty nice system imo
for like honours/masters?
does the time spent in school count as a bachelor
might be labeled differently
please send this to the president
we need this badly
It's not exactly like a bachelor, but it's close, inside the country you can work like one, but doesn't work on other EU countries
Ah yeah that sounds about right
Still gives you a good head start, I'm definitely jealous
We have only a few americans staff i think
Let me see
US -> Clip, Glare, Terfs (i think?)
EU -> Me, Gaby, Lemmo, Blitz, Frosty, Robi
Aussie -> Cube, Piggy, Skylar (i think?)
South Africa -> Gian
The rest idk
europe is too general
eastern euroupe
and germany
yeah
are u german?
blocked
He can't lol
you saw hat?
I can't
I saw a hat
i am racist against skunks as well
me too. It was a santa hat
germands*
im jewish....
Also @static zealot help me complete this list
Aa yes because bad weather is a race
yes it is
there is still many of them that havent stopped
Is Robi EU?
and Gian
also 80 years isnt enough
Added Gian
I think
Need CJ and Aboo now
ah yeah
Yet you despise all of them Germans
Don't need, was just curious xD
i dont
how do i open a project from eclipse in IJ?
not the hero we deserved but the hero we needed
IJ is basically telling people to switch
It can yeah
Scene Builder
Though, swing 🤮
Blitz Builder
Niall builder
Blitz is what we call in portuguese when the police is stopping cars at some place, don't ask me why the name
Swing UI designer @obtuse gale
fr swing ^
Blitzkrieg ;)
no please
for jfx
LOL bad
I'm not sure if swing is the good one or not
don't kill me Matt
Cam never remember
Swing is the inbuilt one in ij
javafx is newer
scene builder is just an integration or something
yea not sure
altho niall will say swing is better 🌝
I have only used gui builders in netbeans and one from a IJ plugin (didnt have ultimate then)
Well ElaraFX will beat them all but that's not important
That man has issues
That theme
Why do you hate yourself?
I cannot comprehend why you would want a background image on IJ
It looks so horrible
^
The only time i've ever not wanted to kill myself doing GUI in java was using JCef
The browser thing you mentioned earlier?
Yeah
It's java chromium
You basically build a website that works in Java
Isn't that just electron with extra steps
Well, i am not too sure about it, but IJ is dropping support to fx for plugins
Asked them about it on their slack and they recommended jcef so i tried
ah
Sure, when you're done with it send it over
Efe you know better to not do that lol
Start steamin matt
mc development speedrun tictactoe%
my laptop is over capacity rn xD
all tohse are opened
wait actually
its not 100%
yet
around 80% CPU usage
and 80% memory usage
xD
and it doesn't lag a lot either
like I run my normal FPS in minecraft
40-60 xD
My pc is dying with stream, 2 mcs, ij, and server at the same time xD
Imagine using localhost ew
Hell yeah
Imma give it a shot too
Noice
@ocean quartz make target as the starter
not that it makes a difference but since you challange someone at least give them the start
diamond and redstone?
Cool
what that
basically a contest kinda thing where they give you one problem a day
and you try to solve it
i like your pfp
@old wyvern You're doing it much better than me xD
uh? xD
Mine is super hacky, you actually have organized classes and stuff xD
yea btu thats all I have rn xD
that too very incomplete
probably wont finish in time
might have to stop ina bit
exams tmr
😭
Ah shit 😢
Ever heard of packages
what are packages
i only heard of src/main/java
you are supposed to put all your code in there right and not make any of the weird folders
:)
Is it girthy?
So depression?
a friend drew it for me
I made it final and IJ is telling me i should make it neither static nor final, what should i do?
im gonna do final cause i trust you
very cool and cute
Looking for useful libraries/frameworks?
Here are some which have been deemed useful by the community and are used daily.
-> Menus: https://mf.mattstudios.me/mf-gui/gui
-> Commands: https://mf.mattstudios.me/mf/mf-1/getting-started
-> Messages: https://mf.mattstudios.me/message/mf-msg
uh
why u insulting cmd?
oh matt framework
sureeee thats what i meant
java is so much better than python
i was getting sick of python
cause i really only code stuff i use
so i was making disocrd bots
and i didnt like that
try going into that directory
i will
omg
i there is no jdk14
ONLY JDK 14.0.2
why tf cant is use a slightly newer version
why tf does oracle not work with its own fucking software
im gonna go download 14.0.0
gimme a sec
such BS
...why do you want an older patch version
what
what "doesn't take" it
1.4.6
check the screenshot
this one
or whatever your env variables point to
Then don't use Eclipse?
chill brother
this is pain
You can literally open eclipse projects normally in ij
cause im angry
oh ok thanks
Ayy kinda functional now, just need to select winner
imagine running 2 IDEs at the same time and having to juggle projects back and forth, couldnt be me
how do i make it so eclipse uses a different JDK
cause rn i cant do shit
rename your folder
that seems unsafe


