#dev-general
1 messages · Page 39 of 1
i might go to germany soon if u would like to hangout 👉 👈
also i think to get a german citizenship
also SirY i heard guys you gonna deport all the refugees soon
when???
like in gemany the right wing became way stronger in the last couple of years
deporting all refugees would violate many laws, and it would be extremely stupid, even the right wing people wouldn't do that
but the crime rate became higher in it hurt the german people
i hope they will change the laws so the germany will be german people place
lmao
deporting is possible and legal also important to mention
look in france be french dont bring your 1500s culture m@rder and r@pe and ste@l from the locals and expect not to be deported
pretty simple
frankfurt became hell on earth due all of those
also result
weird they same to be identical
why carrott makes problems
what
I'm not sure where you get all that stuff from
oh from my german friends
not exactly friends
but some people i know online
i asked them where the best place to visit in germany
and insteadly they told me dont go frankfurt its full of some religion fanatics im pretty sure u know what i mean and refugees
basically africa exprience in germany
that's just bullshit
it's just like every other city where people get into trouble on a social level
do u think i also should come to germany to live?
they told me those use ur tax money and etc
or i just meet some bad people dunno
yes germany has a social system, just like every other sane country
nah nah poland doesnt have any refugees at all
not a single terror attack
crime rate is still same as before
u cant just let everyone come to live with u at ur house eat your food because their homeland is in war
it doesnt work like tha
poland has a lot of refugees from ukraine atm
not from syria and etc
and also they ge kicked if they don work
guys u got refugees
from every corner of the world
imma go rewrite carrot class
that too, but far less
you can't just get work as an asylum seeker, you have to wait until you're permitted to do so
problematic
for the gov
also u r leading in accepting those
u know why they choose u
because u pay them
i honestly think we should also not accept ukranian refugees
when i think about it deeply
the payment argument has been disproven multiple times already
you can't really live a proper live with that money
you can probably earn more money by collecting returnable bottles
u can make alot of money actually from those bottles tbh
i never tried
but if u get them by groups and etc profits ^^
nah its still dogshit
i guess u r right
we had some ukranian refugees in my country too
they got deported
after some of them complaiined that hotels arent good enough
they wanted money instead
for example
why syrian refugees
choose u
and not turkey
which is islamic state
also all their arab neighboor countries
even if all those refugees were dead instead
world was the same
and europe was europe
because like that slowly they will get into dogshit too
due the refugees
which those are the problem
troublemakers
bruh none of that makes any sense
so why Syria or lebanon in crsis
why both of those of huge militant terror groups
civilians support it
its likee you see someone getting murdered
and u dont report
u r also part of the crime
also turkey is basically bombing syria
and they dont take the refugees?
I mean, you're a perfect example how effective brainwashing is working right now :)
nah im not brain washed
by who
its western propoganda
im aint western lol
gonna hit that thng
but obv iim not gentlemen guys
have to admit
by whoever told you all that shit about refugees
i own a big server
some german guys told me that
when i told them that i want to go to germany
because my grandpa is german
yeah so they brainwashed you, basically
eh
SirYwell why i write no sense sometimes
like i read my shit
and i think like whats wrong with me

im lost
idk why carrot tdont work
net.minecraft.server.v1_5_R1.ItemStack nmsitem = CraftItemStack.asNMSCopy(item);
if(nmsitem == null){
CLog.ConsoleErrorMessage("IM-INN " + ID);
}
why nmsitem is null for carrot
What this 2 yapping mumbling about?
is item null?
the bukkit itemstack you passed to the nms method
1.5 
ikr
???
what is this chat lol
Def not
That’s the thing
I pass by same way an apple and it works
And some others
But the carrot
🐰🐰🐰🐰
💀gg
Since it's an ancient version make sure you are using carrot_item and not carrot
Holy shit these new macs are beast
From 9s for a gradle build to 4s, ik only short but thats prob gonna be half for a lot of things
You called?
No I don't think he was
question! for the dependencies in gradle. Do i change the compileOnly 'me.clip:placeholderapi:2.11.3' to compileOnly 'me.clip:placeholderapi:2.11.5' and its all that needed to update a dependency?
yep
wow it seemed to easy to be true
also is there a solution on why my plugin breaks on /papi reload?
Was joking
Which plugin?
i ve made my own one
with a help of a friend
i wanted it as an expansion tbh but it works so i dont mind
Cool. Is it just papi stuff or is it all things in relation?
yuh just papi stuff
I face a similar issue on my server but it only affects our scoreboard.
2 papi placeholders
But I just reboot to fix.
I didn't even ping you, but now yes.
Lmao, didn't see that coming
what has the world come to
Almost 8b
people
population
^^
... About 8 billion... people... is what the world has come to (so far ;))
did you override the persist method?
@Override
public boolean persist() {
return true; // This is required or else PlaceholderAPI will unregister the Expansion on reload
}```
this one
yeah i found that from an old msg of cj
but i m trying to find where to insert that :/
oh nvm
this one looks different
i was looking at that one
public class SomeExpansion extends PlaceholderExpansion {
private final SomePlugin plugin; // The instance is created in the constructor and won't be modified, so it can be final
public SomeExpansion(SomePlugin plugin) {
this.plugin = plugin;
}
}
yer
u were right
damn
thx alot
Setpersisye to ttue
i did that but now the placeholders doesnt work at all
my thinkpad builds in 5s while costing 3x less
on the same project?
On Paper?
https://github.com/PaperMC/Paper i compiled this
ah paper compiled in 8s
I just did the gradle command they mention, reobf or w/e it is
yall are literally just benchmarking cache reads lmao, theres no way clean build takes 4 seconds
actual clean build (maybe a couple libraries were in gradle cache) took 1m6s for me, then 2s for reruns
then ./gradlew createReobfBundlerJar --refresh-dependencies --no-build-cache takes about 10s on average
but i think that also depends on network performance to a degree
I don't think refresh dependencies should be put
Since that's just dependent on network
I think
Idk
¯_(ツ)_/¯
It's a bungee code server.
Spigot Server 1
Spigot Server 2
Is guild information shared?
?
?
what are you asking about?
Glare's guilds plugin IG
I’ll run it in a bit, doesn’t refresh redosnload using the network tho? Wouldn’t I just need —no-build-cache here?
first run took 4s for me, ./gradlew clean build
Anyone know how to solve this issue, I am getting an empty space between two font images
Seems my MC plugin takes half the time on the new machine
Sheesh.
Since I fully switched to CMI now I was wondering what plugins you think are not needed anymore, I will of course look if that's really the case, but I'm wondering what can go and what I need to keep.
Advanced Enchantments-9.4.12.jar
AuctionHouse - v2.103.1.jar
BlueSlimeCore.jar
BuycraftX.jar
CenterText.jar
CMI-9.6aujar
CMIElnjector1.C2.3.jar
CMILib1.4.3.O.jar
CombatLogX.jar
CoreProtect-22.2.jar
CrazyCrates- 1.15.jar
DeluxeMenus-1.14.o-DEV-167.jar
FastAsyncWorldEdit-Bukkit-2A3-SNAPSHOT-606.jar
GUIPlus-2.89.jar
GuiRedeemMCMMO v2.O.2-BETA.jar
HeadDB.jar
Lands-6.35.5.jar
LuckPerms-Bukkit-5.4.102.jar
mcMMO.jar
McmmoGui-1.1 .O-BETA (l).jar
multiverse-core-4.3.10.jar
NexEngine.jar
nuvotifier.jar
PlaceholderAPl -2.11.5.jar
PlayerVaultsX.jar
ProtocolLib (2).jar
Quests-3.14.2-3345d07.jar
Rankup-3.142.jar
ShopGUlPlus-1.92.1.jar
ShopGUlPlus-SellGUl-1.1.7-all.jar
SkBee-2.18.4.jar
Skellett-2.09.jar
Skript (2).jar
skript-placeholders-l .5.2.jar
skript-reflect-2.4-dev1.jar
Spartanjar
SuperbVote-O.5.5.jar
TAB v4.o.7.jar
TerraformGenerator-11.1.1_1.16.5-1.20.2.jar
Vault.jar
ViaBackwards-4.8.1 .jar
ViaVersion-4.8.1 .jar
worldguard-bukkit-7.O.9-dist (l).jar
Ooo congrats, what type of gig?
my man it seems full of dogshit
and its wrong chat
IIRC this auction house plugin is susceptible to dupes
True
i dont think any of the plugins you already have are covered by cmi's features
so non
hi
how can i reset playtime kills and deaths?
wrong cha
hmm
what shape looks like a smoke?
im working on flare rn and looking to make a nice smoke effect
maybe upwards and a bit of rolling
Helix ?
Heya! Looking for a developer, already established discord community trying to build a minecraft server for it! Please msg me
Tbh it look like shit
Maybe particles isn’t the right thing
Fireworks ?
It’s also particles eh
Idk why u use most plugins when you have skript to do most stuff but okey
Most plugins in your list, I can do it easily in Skripts but its your choice man

okay mister devoloper
skript belongs to general plugins
so please dont remind iti heere
not good
u feel to share?
was sick yesterday
oh my man get well!!
and kinda sick today too, but not as bad
i also feel like shit tbh i dont know if itts due the ciggaerets or the sleep schedule that ii flip every coupl of days
i feel like overdose
air doesnt feel fresh anymore
anyway yesterday i was working on an airdrop flare
i was thinking about making iit sexy and announcing GUYS HERE AIRDROP so i made a
helix via particles
not gonna lie
it look like shit in game
and not like my imigination
and also ton of packets
now i was wondering
is firework
is like good enough?
instead makiing fiireworks show
alsoo modi
i found an very hot chick
online
and she left wrong info
so i tracked her down
should i go to her place and wait till she go out and be like hey pretty girl wanna hangoutt
obv ill take my M3 to impress the bitch with the akropovich
so cutiee haha
❤️ ❤️ ❤️
i think ill go
and ill put a remote monitor for me
no way im gonna stand for so long at same position got to go to work later
ill just review the footage from the cloud
i already did a big research i know her biography + -
well according to data i have read haha
so now only need find out when she goes out to work and backwards
and magic
but pretty sure last time i told a female the way we meet wasnt accident it she were really scared ;/
so i think this
should be secret to grave
modii me and you waaah
so good
🐰
I am not talking about skript stuff in here, I just make fun of someone using useless plugins.
And wtf happening in this channel?
its the dev-general
Yeah I can read mister developer
why are you here explain please
i think i know why
sometimes u r allowed to watch and smell but not to touch
you cannot drive a car without license u know
Am I not allowed here? Am I banned from this channel?
Just wandering around and communicating.
sounds fair
I am not a fan to really help people since I also have problem.
what problem
no iim not good
anyway im gonna leave the chat
but i think if u already here
ii wantt to make u part of us
Thanks Tony Stark :D
Java tutorial for beginners full course
#Java #tutorial #beginners
⭐️Time Stamps⭐️
#1 (00:00:00) Java tutorial for beginners ☕
#2 (00:20:26) variables ❌
#3 (00:32:58) swap two variables 💱
#4 (00:36:42) user input ⌨️
#5 (00:44:40) expressions 🧮
#6 (00:49:13) GUI intro 🚩
#7 (00:55:01) Math class 📐
#8 (01:01:08) ra...
Learn Algebra in this full college course. These concepts are often used in programming.
This course was created by Dr. Linda Green, a lecturer at the University of North Carolina at Chapel Hill. Check out her YouTube channel: https://www.youtube.com/channel/UCkyLJh6hQS1TlhUZxOMjTFw
⭐️ Lecture Notes ⭐️
🔗 Algebra Notes: http://lindagreen.web.u...
and some math
those are fasted courses
if u prefer theres a book called teaching the ape java its around 800 pages but also explains about other concepts of cs beside how to write code in java
also that tutorial give you the minimum knoweldge not about how to optimiize things and etc
but once u have basics
u r in a better place
It's Tony bro
dw, you're welcome (just read #dev-general message), yes you're banned
yes banned
No you
please leave this server, ty. Speaking for everyone here (or mostly)
Also, just don't.
Skript users are so delusional lmao
afonso fuming or what
...ouch
in my defense, i only use it cause java syntax gives me nightmares
then again i get daymares with pythons syntax lol
The reason behind is obv
yeah i get it dw lol
the amount of Skript programmer for 5 years professional comms open no dms in forums which lack the slightest knowledge of real coding is stupid
Skript is not programming is legit called script
nha, straight facts, all skript users I have ever interacted with are delusional lmao
wtf
skript has similar syntax to python imo
Hippo
U can’t really take those guys serious
They are like on a different league
maybe by defenition ig?, but I wouldnt call it a programming language either
more like a parser ig
mf I know skript sucks but rn I dont have the time to learn java thats it 😭
U r lying to ur self
thats true....
thats true..........
whar
Please open a book 30min a day in 3 months u have Java basics
The only similarity is that both are indent based LOL
- both are made for dummies
Yes
well yeah
and both are overrated
well then im lazy lol
ofc yeah
You can not compare a real language that (sadly) has a lot of use with a scripting "language" made for MC
It's not like python wasn't intended to be a scripting language, but mhhh
trueee
you need way less than 3 months
But at least it's not a glorified YAML file
I give an estimated time@for average Afonso
I have tried to teach Java
To some people
Most r now a days brain dead
Or rusty on another level
In computer science 80% don’t finish
And out of the 20% maybe around 2% r only good
Rest are plants barely able@to code
bro people gotta get in on the groovy lifestyle i swear
also i use skript not because I like it
its because I dont have time/mental capacity to learn it rn
i have to still learn kotlin and dart for projects and i just cant man
it's like java but a little nicer and you can compile it at runtime
We don’t judge u
isn't groovy like dead
it would be 1000x better than all these plugins that use insane amounts of yaml files to configure everything
nah i mean not really
it's not super actively updated, but it still works and everything really nice
like fr, where is groovy used except for gradle
just wanted to make clear that im not a skript skid 💀
i mean it's used as a scripting language for the JVM platform mostly lol
you wouldn't really like use it for other stuff, mostly small DSLs kinda thing
Why not use kotlin DSL at that point?
cause Kotlin scripting is way less documented
fair
basically the only use that Kotlin scripting has is in gradle lol
Not really, Kotlin scripting is used in other places too
oh I haven't really seen it
and I couldn't find any good documentation on setting it up myself
I remember someone suggesting me to use it for configuration and i18n
whereas the GroovyScriptEngine is just part of the Groovy stdlib and you can just run files from it super easy
quite an interesting thought tbh
I think it could be even useful for minecraft
(For example defining an NPC)
yeah idk, I did some gmod stuff a bit ago and was inspired by their usage of Lua for defining a ton of stuff
For configuration?
Yup
How? Why?
gradle kotlin dsl is the only acceptable place to use kotlin
I suppose their idea was for it to work similarly to gradle DSL?
shush lol
An odd way to have configurations
defo is
my main draw is that it would be a lot more type safe and nicer to, for instance, define new items with an actual programming language rather than a super weird yaml DSL that links to other yaml files but like you won't know until runtime if it worked or anything
Hocon configs > all
very true, use hocon myself
configs in a programming language are fucking awesome dude
I just wish lightbend parser did not sort everything alphabetically
it's one of my favorite parts of Django and Laravel
and certainly not an insignificant reason why I am avoiding Spring lol
Hocon + kotlinx.serialization is so good
Yeah I think that was the point they were making
I'll probably explore it
honestly if I can get some docs on how to actually like easily compile Kotlin scripts, I would be so down
groovy is pretty mid, but I was just amazed with the ease of use
I've only used groovy in gradle. It was nice until I learned about kotlin dsl
Imagine having tab suggestions for configs 😋
do they have stuff that can do like hot reloading and caching and stuff?
Not sure about that
Probably, the real question is whether it's documented
^
cause like GroovyScriptEngine does hot reloading, caches the files, and does dependent files and stuff
Yeah
Groovy is fun to work with, especially with MC
Until you have a 2k+ line file you can't reload 😭
jesus christ lol
Yeah
Thats too specific
idk i just dream of a world where we had more dynamicism in Minecraft, like imagine if Paper naturally supported Groovy for everything, so you could just have a Groovy file as your config, instead of a shitty yaml file
Well, hocon would be fine too, unless tou can get tab completions for groovy (:
I mean Groovy is an actual programming language
you can get tab completions, you get imports, you get type safety, everything
you could have it like fetch from a url the config or something, and you wouldn't even need to change the plugin at all
Yep
But... teaching kids to use a programming language to config smth would be a pain LOL
idk not really lol
if you want to be super basic, you can just return a map of like key to value and it would be very similar to yaml
For the general public definitely would be, some can't even understand yaml
But for for personal projects / team I can see that being nice
Depends on how you structure it, but when the dev of the project I work on, he made it even so Plugins load through it so we can work with those configs in the workspace instead of going directly to the servers.
Yea
Again, depends on how you structure it.
yeah idk you always have to have some tradeoff, yaml has a learning curve too, so telling people to do like a little bit more i feel wouldn't be a big stretch
but it would be so much more powerful
I think I will use hocon for my next plugin 
Yeah
moral of the story, catch me rewriting MMOItems and MythicMobs with Groovy as the definition language instead of 10 million untyped yaml files
Oof, I wish you luck
Tbh when it comes to things like multiple items and stuff like that, just create a code template and throw everything into a csv file and keep it much more organized
see that's the thing
it's not just metadata
the reason MMOItems is so good is that you can have skills attached to various things
ArkGroovy (thank god) is already mostly precoded at the core. It's just the addons to added to it.
so you can basically have code run whenever you left click or right click with an item
but annoyingly, the way you do that is by making a separate YAML file in MythicMobs usually with a list of strings that happen to correspond to various actions
Yea fair
so there's a huge abstraction layer that's a pain in the ass, and you're extremely limited in what you can do, and it just makes everything extremely unsafe
as you don't know if your thing works or not until it runs, and if you have some weird edge case, like doing placeholder math with a division by zero, you won't find out until it happens on the actual server
Uh, csv
I guess, I never thought about using it 
You can link sheets together so if you update one value it updates on others as well, so it stays consistent
i say this as we have around ~350 MMOItems on our server, something like 800 MythicMobs skills, all in untyped yaml files that are poorly named and hard to discern across like four plugins
A quick example, if I remove a statistic in the statistics sheet, then the quests sheet errors because it no longer has values
I do think there's a lot of room for improvement, it just kinda sucks to do it on my own yk lol
that just sounds like a database but like worse lol
Link programatically ig?
Yes exactly
No, it is worse lol
and then the server takes half an hour to start because people do weird stuff
i mean people do weird stuff anyways
How is it worse?
any plugin you use could do that literally lol
It sounds like a database, but it is a csv 
at what point is it like protecting the people from themselves vs giving them the freedom to do anything
yeah but there's a reason why you give people a config instead of telling them to just change the code
and Groovy is just terribly slow
yeah exactly and you can just give them a Groovy file that exports a map and that's literally it
same as a config
I don't really think Groovy is that slow, especially once you have already compiled it
Would you rather select/delete/insert/update from a database or just update a cell or two? Where you can see all the data you need to work with?
It's not like a database, it's more like linked configurations
they don't even use dynalink or something else that isn't 20 years old
this just sounds like a concurrency nightmare lol, no like synchronization or locking or anything
You can use an UI 😜
What?
what is dynalink lol
IJ lets you edit cells and then commit the changes
If two people edit the same file? is it just like, on an FTP on the servers?
or like in git with CI?
not right now, but I did AoC with it last year and there where cases where it's extremely slow just because it's groovy
Anyways, don't get me wrong, I bet it is very useful
i mean yeah, I wouldn't really be using it for heavy stuff, just basically a little scripting language to call stuff in order
basically what the code already does, but instead of parsing a yaml file, it is just actual code
You edit, export, and upload to your config repo, you don't sync directly to prod, that'd be a nightmare lol
yeah that's kind of what I was thinking lol
then you can also use jshell or something like that I guess
the JEP is literally called "The Java Shell (Read-Eval-Print Loop)"
and again, I doubt it has like nice hot reloading and caching and stuff
what do you mean?
can I just point it at a File and it'll hot reload when the file changes?
I don't see how it is less suitable than a terrible language
if you build something that works this way, why not
because in Groovy I don't have to build something that works that way
you make a GroovyScriptEngine and point it at a file and it just works
you just get a method handle or whatever back and can run it
This is what I meant
huh, that looks pretty interesting actually Matt
It's veeery useful
And much simpler and less error prone than having to edit a bunch of configs or a giant one
yeah looks to be
idk I'm just spoiled by dynamic languages and having configuration as code
it's just so damn cool to have a config file that returns a map, and you can just do anything, you can fetch from a network, get an environment variable, etc.
okay well I'm not making this for everyone else
the upsides heavily outweigh the downsides in a lot of complicated plugins like MMOItems and MythicMobs
depends
and obviously they work pretty well in like every game that uses Lua
Gmod, Roblox, FiveM, etc.
e.g. it basically makes it impossible to change the config format and automatically update configs
I mean you can just add a line to the exported map
it wouldn't really be that hard
and just changing the type, it could automatically throw an error when it's out of date and you could just add that option yourself
most plugins I use don't automatically update the configs anyways, since it's a pain, loses all your comments, and we have a multi server shared config thing going so I have to update it manually anyways
but as long as you allow the configuration to be turing complete, you'll first have to solve the halting problem if you want to do proper automatic migration
lmao okay
i think we have bigger problems if your config file has an infinite loop in it
you don't need infinite loops for that
let me rephrase, if your config file doesn't halt in a few seconds, you have bigger problems
and again, i already said that i manually do config updates anyways
so having it be type safe and nice to work with would be a massive upgrade
.
and, what's the upside over a proper API then?
huh?
(because you basically have an API then, and a plugin system lol)
what?
I'm still trying to figure out an upside
to having configuration as code?
yes
dynamicism, type safety, and being able to define things as code instead of stringly typed yaml DSL
well groovy doesn't give you type safety
yeah the static typing is bugged 
well the last time I used it, I found a bug in the groovy compiler
good for you?
no, that's not good
okay well
i don't see any other JVM scripting languages so
I will still dream of what it would be like to code with actual code rather than a shit ton of yaml
🌟 API 🌟
?
groovy:000> List l = new HashMap()
ERROR org.codehaus.groovy.runtime.typehandling.GroovyCastException:
Cannot cast object '{}' with class 'java.util.HashMap' to class 'java.util.List' due to: groovy.lang.GroovyRuntimeException: Could not find matching constructor for: java.util.List(HashMap)
groovy:000> ArrayList l = new HashMap()
===> []
me when groovy type system
Could not find matching constructor for: java.util.List(HashMap)
This sounds very cursed
vomit
I mean yeah I'm not too attached to Groovy itself, just the concept
it just happens that Groovy is the easiest to easily embed and execute files
kts looks nice, I just don't have the knowledge to set up a whole thing for it i don't think
Very true
Configuration as code with all of the benefits and none of the issues
the problem is, it's not actually code
the reason I want a scripting language is to write actual scripts
Ah i didn’t actually read the conversation
But don’t worry bro elara scripts will fix this
Coming 2028
Early or late 2028?
see the above convo lol
Inadvertently, I've changed something in my Minecraft server configuration. I'm not sure if it's spigot.yml, paper, or which exact file, but I've altered a file, and now arrows no longer have gravity; they fly straight without falling. Which property have I modified, and from which file?
btw technically this isn't the right channel, but what plugins do you have?
and what server software? paper?
do you have anything in your plugins folder?
you'll have to copy the plugins and server config files (ex spigot.yml and stuff) and test yourself
Remove all plugins, see if it works and go from there
wrong chat lol
A bit late, but if anyone is running a version of git older than 2.40.0, don't forget to update it 🙂
I just got an email from work because they found 2.38.x on my laptop, installed through IJ - I thought it is smth new, but looks like it was fixed in april 🤣
https://github.blog/2023-04-25-git-security-vulnerabilities-announced-4/
is there a way to parse placeholders in my expansion? for example the %location_distance_20% will return the correct result but for the %location_distance_{player_health}% it seems that it doesnt parse the {} placeholder
what
:/ idk how to explain it in dev language
String full = "%location_distance_{player_health}%";
String inner = // do some magic to parse out the {player_health} inside the 'full';
String innerParsed = PlaceholderAPI.setPlaceholders(...); // parse for inner
// etc.
Do a setBracketPlaceholders on the input before splitting it and do your things
dear java gamers
whatsup
now its a basic question but i want to ask how does it work
"it"
ok
public void addToDropTable(Drop item, int chancefrom0to100toappear) {
if (droptable.containsKey(item)){
item.addToDropTable(item.getRandomDropItem(),1);
}
droptable.put(item,chancefrom0to100toappear);
}
so i can just
public void addToDropTable(Drop item, int chancefrom0to100toappear) {
if (droptable.containsKey(item)){
item.addToDropTable(item.getRandomDropItem(),1);
}
droptable.put(item,chancefrom0to100toappear);
}
but it seem like
it doesnt change address of object
so it does not allow the duplication
fuck
i was thinking im the 200iq
public void addToDropTable(Drop item, int chance) {
droptable.put(item, droptable.containsKey(item) ? 1 : chance);
}
```Still won't contain duplicates as its a map.
i already did new objec instead
everytime
because even if i modify
it wont work
well the goal wasnt to duplicate just to clown them
but im so brain dead sometimes
Do you guys know any gradle plugin that would automatically push plugin updates to modrinth, hangar, polymart and spigot?
And ideally github too
There's https://github.com/modrinth/minotaur for modrinth, but I'm not aware of something for other platforms
I doubt you will find anything for spigot. Hangar probably has an api for that and idk ab polymart, they probably do too
well I hoped I wouldn't have to touch the gradle plugin api ever again
Hi, will HelpChat be doing the annual December giveaways this year? If so, who can I contact to offer some items that could be given away? Sorry in advance if this is the wrong channel (please ping when replying)
@ funnycube
random question, does DM not have a dev api?
@fresh pasture (he said to ping him)
I was able to talk to funnycube via DMs, thanks
I'm trying to get in touch with funnycube about contributing too, but my DM isn't getting delivered to him.
My dms are open, so check your privacy settings <o/
No
Ah, thanks mate! I completely forgot I had my privacy settings be pretty secure.
thats sad
what
ill write a skeleton and heart beat bot
idk whats inside the big dependecny from discord
Idk what headache but there's also discordsrv
Which acts like a central discord bot for a mc server
But depending on your use case it might be better to include discord api yourself
i started writing by my self
just the skeleton so i dont have to use their big package
concept
HttpRequest request = HttpRequest.newBuilder().uri(URI.create("https://discord.com/api/v6/channels/" + Long.toUnsignedString(channel.id) + "/messages")).headers("Authorization", "Bot " + DiscordToken , "User-Agent", "SexyFury777", "Content-Type", "application/json").POST(BodyPublishers.ofString(gson.toJson(msg))).build();
client.sendAsync(request, BodyHandlers.ofString());
hm wonderring
via that shit
can i send pictures
nah?
right
just use a library
the people who maintain the library know what they're doing, far better than what you'll build
im like the minimessege guy
nah thas not really the reason
its just due size of file
wont let me uplaod
to couple of places
i made a skeleton
and heartbeat
that check for updates on thee cha
t
gonna test t now
bruh
that's just terrible
if file size is a problem, use the spigot library loader feature
seems like my shit doesnt work
isnt that the way people inject malwares into their garbage
surprise
if you're able to run a supply chain attack against maven central, yes, but then there's a far bigger problem out there
i see
hm ill see if my shit works first
because i just wrote 1000 lines
dont want to waste it like that now
why are you using java for that
its for my mc server
i go for vacation
i want to log everything and control remotelly
also i want to be let users upload map via command
JDA 
exclude opus
rust = jda
exclude opus, lavaplayer might also be included, minimize and you get around 12mb
or just use spigot libraries
OR even better, user paper plugin loaders
note that you want to be careful with ratelimits and stuff
JDA has ratelimit protection built-in
nono i mean like post requests and that stuff
its not p2p o something like tha
im not really worried about those issues
the bot isnt a public bot or sometthing
also i used imgbb api
to upload pictures
from mc to discord
via command
Been wanting to code my own honestly. Make it modular since JDA is too large.
yeah size is unreal
and sometimes u dont need really all the shit JDA offers
i can trim my shit even to 25kb i thinik
thinik
10 api calls is not exactly 'fully-functioning' but sure
one would argue
idk i dont need much i get the input and i can retun output what else i need?
and pictures i use imgbb api
which is really simple
reinventing the wheel be like
D4j >>>
i cant find a clear answer
now lets say we have ```java
method(Object . . . name);
i cant really find an clear answer
ill be glad to get any 😄
I'm pretty sure that's not valid syntax
If you mean method(Object... name), that's what Sparky said
valid but looks funky
thanks
ik syntax is not valid
but thanks
if ts basically an array ill use an array as replacement
either way if you'll want to use the values you'll have to loop through it
the difference is just in method usage
foo(1, 2, 3);
bar(new int[]{4, 5, 6});
void foo(int... numbers) {
for (int num : numbers) {
System.out.print(num + " ");
}
}
void bar(int[] numbers) {
for (int num : numbers) {
System.out.print(num + " ");
}
}
you can also do foo(new int[] {1, 2, 3}) ;0
yep that's what it compiles to basically, that's why some Java APIs have overloads for specific numbers of elements because performance might suck otherwise
overload dn
copying an array isnt that slow
and most of the time its for the collection factories which are usually only instantiated once
-
- reason why i switch to it
k ill use array
it depends what its for
creating an array with only a few elements has quite some overhead over just passing elements directly, especially if the allocation can't be optimized away
instead i combaine object into one
and use array
now
i think
more comfortable
sex
all i have to say about the foo featuer
having a dozen different overloads as an API it is horrible, but it's more so that those methods were expected to be used mostly during class initialization and it's slow enough to make a measurable impact for a small number of elements
im not disagreeing with the design decision i just think that saying "performance might suck" is a bit of an overstatement
well, it does, but it doesn't
It Depends™️
can't wait for lazy
or I'll just fork the compiler for that 
i mean performance is relative, but i'd say, generally it isn't "suck" bad
I chose might because it might suck
fair enough ig
Hi. Am looking for best sounds usable for close a gui
EXPERIENCE PICK UP still the best one ?
gonna have big project minecraft camera
basically using the sight
building picture
of what he sees
sucks that api didnt provide me even with block colors
the draw it
What
bro is making minecraft outside minecraft
Tony's hallucinating again
no no
i want to use vectors
and recreate incode a 3D world
to make a blufferd image
hell yeah
so far i made the sattelite
Location location1 = (new Location(player.getWorld(), 1024, 0, 1024));
Location location2 = (new Location(player.getWorld(), -1024, 0, -1024));
int minX = Math.min(location1.getBlockX(), location2.getBlockX());
int maxX = Math.max(location1.getBlockX(), location2.getBlockX());
int minZ = Math.min(location1.getBlockZ(), location2.getBlockZ());
int maxZ = Math.max(location1.getBlockZ(), location2.getBlockZ());
int width = 2048;
int height = 2048;
BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
for (int x = minX; x < maxX; x++) {
for (int z = minZ; z < maxZ; z++) {
Block block = location1.getWorld().getHighestBlockAt(x, z);
Color color = BlockColorUtil.getColorForMaterial(block.getType());
image.setRGB(x, z, color.getRGB());
}
}
simple conceptt
player can request a sattelite view
i later redraw it on the map
and player can see whats nearby
for now i focus on map ceenter
i need to add player location towards it
and wallah magic
anywhere
sattelite
u know how hard is was to write BlockColorUtil
gonna sell it for money now
all block colors
idk one google search would probably give me a github repo that already has it done
i try this method but item is just paper
nah i searched surpeme leader
no one has ever done it
people instead used texturepack
and got colors directly from texturepack
i did it the hard way
Satyrs we dont know deluxo menu i think #general-plugins is the real devolopers chat
here we math monkeys and holy people
for example im math monkey
modii is holy person supreme leader
okay
if(block.getType().equals(Material.STONE) return Color.GRAY;
if(...) ...
right
something like that
but i used Rgb
not colors
so limited
but not if if if
disgusing
map baby
quick accses
no if
map
block is a key
material*
i always use switches
its comfy
and u have escape plan all time default
so basically way worse than doing it the normal way
;l
are you just mapping to the colors shown on a map?
or are you doing what e.g. BlueMap is doing for years already?
wdym nah i mapped all the block,color
BlueMap is next gen shit ngl
im not good enough to make something like that
but i needed simple solution to make sattlelite display
and look at results
not sure what you're trying there with your blufferd image
he wrote a static map filled with predefined values for block colors
and, did you consider biomes affecting the color of a block?
nah i forgot
thanks hard work bring good results
can already compare that to dynmap/bluemap
dear Modi how r u
nah no need thats already bussin the hell out be crazy wid it
already direct competition to map plugins
the goal is not really a map plugin
i just made it so builders can push map updates
towards their group
without needing in a special mod
the image is later uploaded to imgbb
and via discordbot that i made
its send to the chatt
simple
or just, you know, set up a map plugin which takes like 5 min if not less
im fairly certain that your product will not be able to compete with any of existing ones
Modi why should we learn other alien technology if we can invent our own
thats a joke
clearly
how ever yeah i dont look a point on forking someone else plugin
to function the way i need it
maybe my display is worse how ever
its a bad sattelite quality
made in china
not by nasa
considering the alternatives are free, people are more likely going to go with nasa over made in china quality
certified tonyfalk classic
yes yes
i come to germany now
in 2 weeks
aftter poland and cze
looking for best opening line for german chicks
any suggestions
Certified yapper classic
Good luck with your attitude 
You called?
This
Not really reinventing a wheel... More of recreating one in your own vision.
money
i already booked a porcshe to lore them
like magnet those german chicks
Porsche 718 Cayman GT4
good looking car
for a week not much too
but shit hella expensive when u r under minimum age
had to pay 2x more then original price due tha
$ grep -R -i "askers" / | wc -l
gt3rs ftw
what
Skript dev u good?
I was wondering if there is a app on android that allows to connect to my IDE
i dont do skript coding sorry
I am so sorry tony
pah
wow that's crazy
Sounds incredibly real
It’s insane
Jk i loveu
na na na, I see how it is 
how can I prove my love... smh
Who can help me i have 20 usd payment
yes
Yes
yes
No
write me an apology in Skript!
Sasori! what's up?
You have to write me an apology in swedish
thats not how it works >:c
u still owe me that free sub on ur of
Next year


