#dev-general
1 messages · Page 208 of 1
@heady birch Any update on when KiteBoard will be fixed to support 32 chars on 1.8.8?
colors count too, and that means 2 chars per color
I understand that but it's still only showing 30 chars
anybody know a mc server ping api that support ports and show if the server is online or not?
For websites or a plugin?
https://api.mcsrvstat.us/ shows if the server is online but doesn't support ports
for a non plugin project
nice, thanks
You're welcome
where did you found that though? Can't seem to load any documentation
I've always used that for my websites
oh nice
Sorry i do not know when
can you ping each server with that or only the bungeecord?
@hasty flower Is it a new issue on recent versions?
I upgraded the old adapters to use a mojang class and it probably adds a reset colour code at the start or something
But that would cause both prefix/suffix to lose 2 chars. So im not to sure
I've just started using the plugin so I'm not too sure if it's a new issue
I'm currently on version 3.2.2
If I use no color codes it fits 32 chars however, with color codes it only allows 30 chars @heady birch
What I have in the config:
- "11111111111111111111111111111111" #this is 32 chars```
What it outputs:
https://i.imgur.com/1iFdMx2.png
what happens if you remove the | symbol I have no idea how that is actually handled
replace it with a different char
Oh wait it might be the prefix colour code carried over
Howdy fellas, I could use some suggestions as to how I should (as efficiently as possible) store large data (in a sense of options), ie.
Option 1 = false
SubOption 1 = false
SubOption 2 = true
SubOption 3 = false
Option 2 = true
SubOption 1 = true
SubOption 2 = true
Option 3 = false
SubOption 1 = true
SubOption 2 = false
@quiet depot 🥺
hmm
what happens if you remove the | symbol I have no idea how that is actually handled
@heady birch Still only shows 30
Is there a good MenuBuilder API for 1.16?
for GUIs?
?mf
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

If you got any other libs y'all use daily which are helpful, lemme know I'll add them
We already got mf-gui for that so 
I'd say yes
😐
?paste
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
• HelpChat Paste - Usage
• Hastebin
delivering bug free experiences since
How can i make the plugin, not repair the items, if they are already like brand new??
https://paste.helpch.at/opebirosej.java
durability == 0
Slight issue @quiet depot I need this system to be completelly dynamic, meaning the end user can add new options to it, so the current thing won't work, unless I introduce some kind of "identifier" for each option which would be letters and numbers, or I just use the options name
explain the requirements of your system further
durability == 0
@distant sun I typed that to try if worked, obviusly is not repairing now, but i didnt have that "durability == 0" before and still repairing items that were new
How does durability works on coding? i know that "0" is "new"
With the mf gui, will it work without making the server hoster add any more plugins?
:wut:
u just shade the lib into ur plugin, the user wont have to add another plugin
Make sure u relocate
I am trying to spawn a Mob with a custom name which works correctly, but in my EntityDeathEvent it says that the mob's custom name is null which I am assuming is because I spawn the mob first then set its custom name. Anyone have an idea of what I should do to fix this?
when I want to make a class that extends the MF-GUI how would I do that? It is final
extends?
Composition over inheritance
but it gets messy quickly if I just create the gui somewhere in a class
I want to make a GUI system with 20+ tabs
so I need a good system
Then encapsulate the state into a class or whatever
You shouldn't need to extend Menu for that
Tabs?
what would you suggest?
yeah like a settings menu, cosmetics menu
stuff like that
with sub categories
A class that takes a Map<ItemStack, Menu> and creates a "main menu" perhaps?
Np
@safe lily Also no point in asking about my libs on Paper's discord lol
On the wiki there is a link to my discord or ask here if you need help
You don't have to
how would I handle it with a class for each menu? like I wanted to in the first place
Composition like elara said
What I'd do : I'd make a package called guis (idk cool name) and do like MainGUI, CosmeticGUI
@obtuse gale thats what I wanted to do
but now elara told me not to
wdym Matt
Yeah
I wouldn't never had a reason for it
But then again i don't use complex nested guis
Yeah
How?
What? xD
Gui is an Object from my lib
lmao
tho the easiest would be if I could just do something like:
MenuClass.open(player)
I mean make the method then
public void open(final Player player) { gui.open(player); }
matt you're so goddamn smart
oh yeah I am dumb
Ikr
lmao.
im proud of you, son
but isnt private final Gui gui = new Gui("Main"); irelevant?
shouldnt it be sommething like private Gui gui;
if its final I cant edit it in the constructor can I?
You can't reassign it, you can always use it
oh yeah
final doesn't mean immutable
final means you just can't re-do whatevs = ... again later on
I wish it meant the object was immutable :<
public class CreationMenu {
private final Gui gui = new Gui(6, "§3Clan Creation");
public CreationMenu(Player player) {
gui.addItem(new GuiItem(ItemBuilder.from(Material.DIRT).build()));
}
public void open(Player player) {
gui.open(player);
}
}
something like that aight?
Yeah
aight thanks a lot
are you familiar with HikariCP?
I could need some help with it
why my Connection Pool System
isn't it already?
Should be
smh my head
doodoo
are you familiar with HikariCP?
@ocean quartz
A little bit
well
it's an eye
because I have an eye
then I have another eye
but it's not in the pfp
as you can see
do you know how I can change the connecting messages? @ocean quartz
package me.lokkee.clansystem.database;
import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource;
import java.sql.Connection;
import java.sql.SQLException;
public class Database {
private static final HikariConfig config = new HikariConfig();
private static final HikariDataSource ds;
static {
String host = "localhost";
int port = 3306;
String database = "clan_database";
String user = "root";
String password = "";
config.setJdbcUrl("jdbc:mysql://" + host + ":" + port + "/" + database);
config.setUsername(user);
config.setPassword(password);
ds = new HikariDataSource(config);
}
public static Connection getConnection() throws SQLException {
return ds.getConnection();
}
}
Don't think you can
and how do I make it so the connecting happens onEnable instead of on initialize
make sure that classes is introduced in onEnable?
Why though :C
@obtuse gale the electromagnetic waves reflecting off the surface of my eyeball didn't make it through the lens of the camera that took the incoming photons and re-rout them to the light-receiving diodes
I mean it'll happen where you call it, if you call it on enable it'll happen on enable
but I dont need it onEnable thats the thing xd
I call it in a command first
the problem with that:
the connecting takes a few seconds
so the command does nothing for a few seconds
Connecting messages?
Well first, i have no idea why it's static
Why don't you just make a hikari.properties file and use it the way it was intended ;C
What connecting message are you talking about Lok?
the console messages when it connects the connection pool
when it connects to the database
wdym
why e.getPlayer lmao
lmao
OfflinePlayer 👀 👍
Oop right
theres nothing wrong with doing it this way @hot hull
It's ugly
the console messages when it connects the connection pool
@safe lily
Can you show them to us?
so I should create a properties file for this
@safe lily
Can you show them to us?
uhm Id have to start the server
it just says something like [HikariCP] Connecting…
and Connected successfully if so
It's basic connection messages Yugi, i find it pretty annoying that you can't edit them too
looks a bit unprofessional imo
if there are random messages like this
and there is really no way right? @ocean quartz
Not that i know of, but idk much about it
what should I do instead of declaring it in static?
static isn't too bad there
I don't see why be static though
Yeah something better can definitively be used
Heard of multiple char variables 
but how do I connect onEnable now? it's dumb to initialize it there without any need for it
Just instantiate it on enable
Yes
Well, kinda? I'm assuming the way you have it is a singleton which makes it kinda awkward on enable
If you have a static class, just instantiate with an empty static method 

That emoji sheesh
kotlin is nice
I cant make this work, wanna the plugin to decline for repairing the inventory if all armor in the inventory is new.
Code: https://paste.helpch.at/koqubecoto.java
Photo of proof: http://prntscr.com/v2eqki
proof lol
haha
What declares the armor as new?
kotlin is nice
@steel heart elara nice
Yes but of the OOP langs
BM, when you write a good tutorial for elara I'll learn it
same
shame
no u
You know how much of a flex that is on a portfolio
At least the tutorial to be good (:
Basically add that it was you who written it in every paragraph
Ok
Every second paragraph
I will write the greatest tutorial to ever be made
every other word
if (listaItemsInv[i] != null /*&& listaItemsInv[i].getType().getMaxDurability() > 0*/ && listaItemsInv[i].getType().getMaxDurability() != 0) {
noItemDurability = true;
jugadorIntroducido.sendMessage("Items Reparables: " + i);
i = listaItemsInv.length;
}
}```
I coded this for verifeing if there is an item broken/not new, and if there is it one, make `noItemDurability = true`
But what when does the item become nonnew
Repairs the inventory
wut
I cant make this work, wanna the plugin to decline for repairing the inventory if all armor in the inventory is new.
Code: https://paste.helpch.at/koqubecoto.java
Photo of proof: http://prntscr.com/v2eqki
@fervent obsidian Did u take a look a my code ?
😄
I did
and its almost impossible to understand it if I don't know the initial purpose of it and the end goal
Bcs if noItemDurability == true , repairs the armor, if == false it doesnt
Can you try explain the entire image here
the entire thing you're trying to make
Im trying to make that if a player runs the command to repair his hole inventory, and his hole inventory is already repaired, dont make the plugin repair it again
I'd say loop on all player inventory items then check if the items durability is more than x or less than x idk then repair them ?
I'd say loop on all player inventory items then check if the items durability is more than x or less than x idk then repair them ?
@blazing walrus Im trying to make this happend but im not understanding how durability works on the bukkit librari
1s
Ok
So first of all the item.getDurability() is deprecated which means its not supported by bukkit so this might work and might not, so basically what you need to do is for loop on all the items in the player inventory and then check if the item durability is less than max durability which means it's not in it's full durability which means the item can be repaired, then set the durability of that item to it's max durability. setDurability() is also deprecated.
I saw that you speak spanish so I translated for you what I said:
Entonces, en primer lugar, item.getDurability () está en desuso, lo que significa que no es compatible con bukkit, por lo que esto podría funcionar o no, así que básicamente lo que debe hacer es recorrer todos los elementos en el inventario del reproductor y luego verificar si La durabilidad del "artículo" es menor que la durabilidad máxima, lo que significa que no está en su máxima durabilidad, lo que significa que el artículo se puede reparar, luego ajuste la durabilidad de ese artículo a su máxima durabilidad. setDurability () también está obsoleto.
This is google translate so idk if there's anything wrong in that.
for (ItemStack item : e.getPlayer().getInventory().getContents()) {
// Check if the item durability is not full:
if (item.getDurability() < item.getType().getMaxDurability()) {
// This means that the item durability is not full which means its repairable.
item.setDurability(item.getType().getMaxDurability()); // Set the item's durability to it's max durability.
}
}
@fervent obsidian
lol
no it is not @ocean quartz
I am using dependency injection for instance passing
instead of a static getter
Was talking about the database class
Can I use null as a key for a map 
Oh okay, one more reason why i don't think it should be static then
Just, not static lol
Matt, any clue?
It might work, idk xD
Can I use null as a key for a map
@hot hull depends
what can it be other than static
gucci then, it won't be a nice solution but saves me a bit of effort when having the main gui
@safe lily There is no opposite of static, it's either static or not static, if it shouldn't be static, then jsut don't be static xD
I tend to use a HashMap and map null -> null
because
API design lmao
> Several people are typing
Well I store all my subguis and this will be nice and dandy for also storing the main one
😐
but I cant edit the config without it being in a static {}+
inb4 BM starts yelling at me :c
bm smh my head
map.put(null, null)
val value = map[null]
if (n == null) println(null)
Lemme scroll up to find why I should be yelling real quick
@blazing walrus Thxx for explaining haha, as i know, when setDurability( (short) 0 ); im repairing the item, thats why im cheking if the item´s durability is > 0
yes
@safe lily What being static has anything to do with editing the config?
mhm
well I cant edit the config in the constructor
null key go brrrrr
ploogin go brrrrrrrrrrrrrrrrrrrrrrr
@blazing walrus Thxx for explaining haha, as i know, when
setDurability( (short) 0 );im repairing the item, thats why im cheking if the item´s durability is> 0
@fervent obsidian Np, I don't know if the durability 0 is the max so I just set the durability as the item's max durability
😐 😫 🥶 😠
You can get the data from a config on the constructor
me rn
😏
get but not set
Turn on the heater if you cold BM 😮
rippo
rip
😭 😭
Btw boys asking for support and stuff, remember this channel is for shit post dev stuff, if you want support and don't want all this messy conversation in the way #development is the place
@blazing walrus I used to have it like u showed me, and when doing that im making the item 0/MaxDurability, so this dont works for me...
Now that im telling this, can u check my code again to see the part when im cheking the items? https://paste.helpch.at/koqubecoto.java
all they know is support request in dev general, assert != null and "I am learning spigot before Java"
👎 😕
Quick question, I've noticed something recently, so before when I wasn't working for hourly pay, plugins took so long to make, and now when I am it's like 3-4 hours and it's done, like :what:
How does that work
(Decently sized plugins may I add)
Money
the human brain is optimized to make sure you get paid as little as possible
Seems like it yea
Probably coincidence
Or you feel more productive since there's potential for more pay
Or confirmation bias
Or all of the above
Psychology mitten
🙂
There is a fly in my monitor and it's cared of my mouse lmao
@fervent obsidian Maybe because of this, because most of the items got a max durability if not all, listaItemsInv[i].getType().getMaxDurability() != 0? check the item durability doesn't equal to the item max durability?
How the fuck Matt
There is a fly
inmy monitor
@fervent obsidian Maybe because of this, because most of the items got a max durability if not all,
listaItemsInv[i].getType().getMaxDurability() != 0? check the item durability doesn't equal to the item max durability?
@blazing walrus But, If durability is "0" the item is new, so thats why im cheking if durability is Diferent of 0
English and it's picky words
I was like :what:
English syntax error
Yeah but you are checking it's Max Durability / Durabilidad máxima not the Item's current durability
getType.getMaxDurability(); is because each item got their own durability so you need to check what item to get it's max durability
Holy fuck mobile pinging is fucked
how do I check if a player is able to enter a bed?
Check if the player is sleeping
because PlayerBedEnterEvent doesn't check zombies are nearby or if its night
Minecraft does
^
But you can getNearbyEntities if there's nearby zombies you can cancel the event
public class Database {
private final HikariDataSource ds;
public Database() {
String host = "localhost";
int port = 3306;
String database = "clan_database";
String user = "root";
String password = "";
HikariConfig config = new HikariConfig();
config.setJdbcUrl("jdbc:mysql://" + host + ":" + port + "/" + database);
config.setUsername(user);
config.setPassword(password);
ds = new HikariDataSource(config);
}
public Connection getConnection() throws SQLException {
return ds.getConnection();
}
}
@ocean quartz
so thats better aight?
Everything is still static though
It worked @blazing walrus thx
because PlayerBedEnterEvent doesn't check zombies are nearby or if its night
@rugged compass there's this:
if (e.getBedEnterResult() == BedEnterResult.NOT_POSSIBLE_NOW) {
}
EDIT: This is when there's nearby mobs:
if (e.getBedEnterResult() == BedEnterResult.NOT_SAFE) {
}
If that what you are looking for there's more results
It worked @blazing walrus thx
@fervent obsidian np
so like this? #dev-general message @ocean quartz
I had forgotten the static variables lmao
so @blazing walrus the first one does also check if it's day and stuff like that?
@safe lily Yeah
@rugged compass
now the instantiating in the main makes sense too!
@Override
public void onEnable() {
Database database = new Database();
clanManager = new ClanManager(database);
registerCommands();
}
private final Database database;
public ClanManager(Database database) {
this.database = database;
}
Exactly
:D
thank you very much @blazing walrus
np 😄
the only issue is the not customizable message problem now :c
i must add a check for that
@heady birch when do you think you will be able to put that update out?
guess who just corrupted their pterodactyl config
@hot hull you got some hijacking contacts? 
nein
Vielleicht!
"The virgin" Community Edition
"The Chad" Ultimate Edition
jkjk I love both of you two ♥️ 👀💦

Blitz you don't have Ultimate?
nah. I ain't a student and I ain't got money for ultimate
He lost it in a bet
Speaking of ultimate, I gotta extend it in february :O
I think i can give you a license
What's the OS thing you can get a license for?
why do you have multiple licenses ?
Open source
xD
Ngl, Ultimate is godly when it comes to doing shit with dbs
Well ask away then
dEvElOpMeNt
idk lmao
Uh idk how to do it, i guess i can't, probably only applied for 1 user
Matt, what's the OS thing btw?
Yea efefury, and they all idiots
This is better frosty https://www.jetbrains.com/shop/eform/opensource
I see
ugh so I'm trying to make a simple algorithm for example I have a specific coordinate on an axes and I want to go from that coordinate x distance. but I don't want to do it in just one direction I want to do it in both. So for example I have 0 then I go to -1 then I go to 1 then I go to -2 then to 2 etc.
that's my math problem
I know it should be simple but its not for me 😦
Just alternate?
Just alternate?
Just alternate?
Still doing the circle thingy Blitz?
LMAO
I found that Math
Change that a to e Matt :))
👁️👄👁️
I just found an algorithm on the internet in Java and I just ||stole|| got inspired by it
👁️ 👅 👁️
👁️ 👃 👁️
👁️🍆 👁️
This channel should be changed from dev-general to circlejerk-inc
👁️
👁️
ikr
(╯°□°)╯︵ ┻━┻
┬─┬ ノ( ゜-゜ノ)
I'm on mobile, don't bully me
u.u
o -o
Is the tshirt atleast nice?
Not everyone, you can also choose to plant a tree instead
2019 was better imo
It's a waste of money but it incentivizes people to do more open source and contribute which is really nice
Fefo your xd is about to give me an epileptic attack
I have gifs turned off lmao
I need to hover my mouse over for them to play
You should do the same 👀
anyone need some PRs? xD

xD
And actually i do need one
I mean I understand its from me but still .. 🙂
But @hot hull are you doing it still?
It's a pretty hard method that i am too lazy to do
Oh Blitz the no was to fefo xD
Blitz go pr fj
lmao
is it kotlin?
Matt am I still doing what? The gui stuff?
if it is maybe then I'll understand something
Yeah
why are people sorry every time they ping you but they still do it? 
Nah I gave up, I'd have to test everything cause I've no idea what anything does :p
Fair
Because they aren't really sorry xD
Hopefully my prs get accepted tho
As in approved by those fuckers
Where'd you find this years shirt design btw Matt?
oh nice
even if I did join today
it still counts the PRs I made to Kaliber
's RNG expansion
xD
Only PRs made in october
ye
You need to mark it for hacktoberfest yea
but RNG is not marked
He can still do that
I have 3 plugins on GH if anyone wants to improve anything xD they are trash so its a lot that can be improved
Effort tho
well 3 that are public
I have 62 repos on gh :(
Need to do that so Gaby's PR counts
Watch as GitHub's Brian Douglas walks you through a quick guide to learn how to classify your repo with Topics. This will to ensure you get contributions for Hacktoberfest to your repo and contributors can view which projects are set to receive quality pull requests.
See the...
Anyone know some good tutorials for a person who has never touched java to learn how to code a plugin?
Really?
@south bough https://www.jetbrains.com/academy/
ugh so I'm trying to make a simple algorithm for example I have a specific coordinate on an axes and I want to go from that coordinate x distance. but I don't want to do it in just one direction I want to do it in both. So for example I have
0then I go to-1then I go to1then I go to-2then to2etc.
@static zealotkotlin for (i in 1..10) { doBlah(i) doBlah(-i) }
Ez
oh I guess
So, this is my idea so far for my config, any feedback? (Gonna be pretty similar to ConfigMe)
The description will be the comment on the top of the file
I guess a path annotation is nice yeah
Just to reduce the length of the lines I guess
let cool = true;
@obtuse gale no semicolons thank you 🙂
Niall getting muted by Barry in 3 ..
oh well I think I found something else that works better for me.
@umbral mica if speed is key you probably want rust, if you want something easier then I'd really recommend Go
It has a few quirks but it's pretty robust
eh I'd still be using java as my main lang, main thing I'm thinking of is the odd CLI tool I might make
cause needing to start a jvm every time you run a command seems not great lol
I'm pretty sure Go is really good for CLIs
rust also pushes how it's great for CLI
I've never really used rust so can't comment
I think either will be fine, Go just has less of a learning curve
yeah I was looking at rust and it's...wierd
@niall
like I can see the benefits but I don't need to go that low level lol
Yeah I think rust is best for when speed is key
For average use I think Go would be best since it's much simpler
yeah and I'm not planning on anything complex
like just basic query some remote API & format the response nicely type stuff
Go seems like a pretty sound choice for that
if it has support for RasPi GPIO pins that would be a great +
I've been using node to display stuff on my LCD, but fuck js on backend lol
If you wanna be quirky, I think Julia and Crystal both compile to native and seem to be quite nice
I'd like to use something a bit more well-known lol
I want to be able to google when I inevitably fuck up
GoLand is hot
My only current issue with it is the weird way it handles packages
You pretty much just import a GitHub URL
rust
no
@distant sun The disrespect
Ye, poor Dr. Disrespect got banned :(
That guy has his own skin on R6 or some other game lol
Hipity hopity this meme is now my property
playing it rn
You suck @ocean quartz :*
oof
Don't you hide it, we all saw it!
:)))
Im on mobile f off
Wow!
😆
My freedom of speech!
Idk what you are talking about
I got anther one for you
@errant geyser afaik GOROOT is where your SDK is, GOPATH is basically the working directory and the directories of any other libraries
That's pretty much a guess though so
Oh ok
No idea
We're thrilled to announce the PL Jam results. Here are the criteria our judges used:…
No I forgot the Jam existed
Well that seems very biased
If I was the judge I think elara would probably win
just become the judge, ez
Yeah I should've volunteered
How do you guys suggest I get started with NMS?
(In 1.16.3)
Doing it mainly because I wanna create mobs with custom AIs
Tutorials and trial and error
I guess
@errant geyser they were scared of Elara's power
They knew what we could do with $10000
@foggy pond If you don't want to dive into NMS, paper has a MOB api
A MOB api?
Yeah
With which you can create mobs with custom AIs? To what extent tho
Custom AI and stuff
Huh what how have I never heard of that
The plugin would be paper only though
Yeah I mean it's for my own purposes
Not planning on uploading the plugin anywhere
Just keeping it to myself to play around with mob AIs
Prolly because it's not that well documented
What package is it in? It's weird that I really never heard of it damn
Yikes if I want to create a custom class for my custom mob I need to implement dozens of methods from Mob
Don't think you should be implementing, just do composition
(idk much about the api though)
How could I add a permission node to a player after they join for the first time, that is in effect the next time they join? if this make sense.. using LuckPerms but idk if that matters
sorry wrong chat I think
@ocean quartz What did you use to take a lamba with any no. of args in mf cmds?
varargs?
No

As in, of different types
;0
@old wyvern Wdym? ;o
Object... varargs lmao
Like
public void someCommand(String arg1, Player arg2) {...}
How did you store the reference to that?
Or did you use reflection with Method
Yeah reflection with method, then storing the parameters on a list
Hmm but the parameter type is erased right?
How does the parameter resolution work then?
hmm I guess resolving to the specific type doesnt matter since method just takes an Object instance anyway
Thanks matt
The type isn't erased, you can get the type
getParameterTypes Gives you the class object with the type of the parameter
uh seems to give a type erased class instance
tbh I don't think it even makes sense for us to be able to get the type back without casting
Oh, yeah it doesn't give you the actual type yeah, normally don't even need cast just making sure it's the right type and passing it as an object to the invoke
I see, alrighty
Trying to understand what ConfigMe does and it's so hard, it's full of recursion 
Recursion is the doom of my brain
Can someone explain to me as to why json usually fucks the entire ide if you do something wrong when parsing it's objects 
wdym?
Lmao
piggy, would the -parameters argument work even with unit tests?
or rather I mean parameter
But you get the point I think
erm
not sure
I would've assumed junit compiled it with the parameters argument by default
hmm is there any possible way to include parameter metadata?
wym
are you saying my assumption isn't the case?
also
type erasure only happens on type parameters, except the type parameters explicitly declared on a class type. e.g.
List<String> list = new ArrayList<>();```
String is erased.
```java
public final class BananaManager extends Manager<Banana> {
}```
Banana is retrievable at runtime.
No, Im asking if there is any other way to get the parameter names at runtime
no, the only way is with the parameters argument
i lied
you can decompile the code
hmm
what's this for?
type erasure stuff was in reference to this btw https://discordapp.com/channels/164280494874165248/695431668944732270/767955192309612565
omg
I think I misread your message
lel
oh no I didn't, I just linked to the wrong message
@Something("someParam")
public void someMethod(String someParam) {
}```
I working with something related to the above, basically I have the original parameter name and want to get the actual parameter class from the method and have a mapping between them
as in, know that "someParam" refers to a instance of the class String,
oh no I didn't, I just linked to the wrong message
@quiet depot
Could you link the other message? Im not sure what you are refering to atm
i edited the link
uh I meant as in a function Parameter
yea
it doesn't matter
my message still applies
the only types that are erased are those in the parameters of types themselves; type parameters
So wait it is possible to retrieve the specific type? but that makes no sense
That would need to happen before compilation in that case
you want to create a mapping between parameter types and their names
you said you can retrieve the names already, you're just working on the types, correct?
no the names are the issue
is this an api for public use, or internal?
Java normally seems to not include the parameter names to arg0 arg1 ect
is this an api for public use, or internal?
@quiet depot
Internal
Oh No, I mean it would require that later
The user requires to have the parameter names included
Its basically a command library
One would have a command like
@Command("something <a/b/c> [myArg] idk")
public void executeSomething(boolean myArg) {
System.out.println(myArg);
}
The issue is currently -parameters doesnt seem to retain parameter info, atleast not in tests or during normal debug sessions
I looked into other libraries that help with this but the most promising one seems to be over 5 years old
Look at matt's
Matts doesnt do that tho
A few days ago it happened to compile using -parameters (I thought I always did idk) and was confused why arg# is null then he told me to use the param name.
you using gradle yugi?
yes
and this is what you've got?
compileJava {
options.compilerArgs << '-parameters'
}```
or something similar to that
surely you're joking
If I was i wouldn't be asking
you don't .gitignore the .gitignore
the difference is that the gitignore was already pushed before you added the extra line
I used the add function instead of leftshift
So... how would i fix it?
there's nothing broken here
there's literally no reason not to push .gitignore
by purposefully excluding it, you're missing the point of it
there's nothing broken here
Clearly there is xD Other wise I wouldn't ask
the gitignore is there so you and contributers don't push useless shit
by not having the gitignore public, contributers can't use it
it's not some internal configuration file that's only useful to you, it actually needs to be public
if you insist, to fix it, delete the file, push, then add the file back with the .gitignore addendum to the bottom
Git have a cmd to remove only the file(s) from the repo instead of local too
if you insist, to fix it, delete the file, push, then add the file back with the .gitignore addendum to the bottom
Tried this just makes a new commit and still shows gitignore file
@distant sun there's git rm, but that removes it from local too
afaik
I don't know of any that only removes it from the remote
There is one only for repo 100%
yapp, what's your reasoning for not wanting to push the gitignore?
do you think it just looks ugly?
Yeap
.gitignore must be pushed, period.
so you'd rather exclude a useful file than risk your project being in your opinion, unaesthetically pleasing
Yeap
wow
git rm .gitignore
ez
fuck this main class is kinda ugly, might just not push it
:))
https://stackoverflow.com/a/10177000 use the exclude list if you don't want to use the gitignore
The code is just there for show. Nothing more nothing less. Don't need random files that aren't the source code of the plugins.
What's wrong with gitignore though?
literally nothing
Don't have a gitignore then 
Isnt there a gitignore also in the iml folder or whatever the name of the folder created by iij is?
I swear I saw one
git rm .gitignore
didn't work
Not sure about it purpose though
yapp I already linked the solution
add the force argument
is that new?
I dont think so
it probs ignores everything that isn't codestyles
No idea, just noticed when gab said tbh
Does it match your gitignore file?
add the force argument
Didn't work either.fatal: pathspec '.gitignore' did not match any files
is the file still there locally yap?
Nope damnit
lol
what did you expect
I literally said before that git rm removes the file locally
Wait do you use eclipse or smth?
who?
Cuz I dont see any resources folder for your plugin.yml
yapps uses eclipse
oh
Not you 4head
xD
I literally said before that git rm removes the file locally
Wasn't following all answers.
Wait do you use eclipse or smth?
Ofcourse.
Do I see an eclipse user
👋
ew
"Eclipse user and proud!"
Yesterday i found this thing, graphql, looks pretty nice :o
it's by facebook so inherently bad
Smh p1g
I hate github. Can't even simply revert the working tree or local repo.
User error 
both of those things are definitely possible but k
Pebkac

Add that here
eh
Do it!!
stick to the acronym
both of those things are definitely possible but k
Can't even simply revert the working tree or local repo.
Never said it wasn't possible
yeah well it'd just turn into the new asktoask
@dusky drum make ur mind up smh
agree!
bot was first in java then i ran auto coverter to kt, and i didnt change folder name
oh
in that case, do you mind if I go back a few commits to your java code, and review that instead?
and my VPS vas hacked.... and i lost my nexus, good i save my stuff localy to.
F
sure, bot is not fully made by me, some code is taken from other bot but sure you can @quiet depot but its shit 🙂
its mostly for my own personal use.
if this project is "shit", then which project do you want me to review?
I need one more public project for dev role request :(
core?
I keep forgetting Gaby doesn't have dev role :c
which one lol
my gh is PiggyPiglet if you want to add me to a priv repo
Also, pig, have you uses wiki.js? I thought about using gitbook but it's api suck
With what?
wym with what?
mediawiki
mediawiki is just another wiki software
it's the software wikipedia uses
I assume it has a great api
But its ugly
then use a theme lol
Still ugly
why can it find my HPE?*
?
i can push it to github but its not on github
¯_(ツ)_/¯
Make sure you push to the right account
Big flex if you have it yes
If people want to know if I’m a developer or not they can do what I do to others and talk to me for like 5 minutes and realise I know what I’m on about
Yeah but I’m not a spigot developer nothing of mine is typically allowed to be open source by my clients requests
@ocean quartz I'll PR a change to MF-GUI later, so I'm making a menu which dinamically loads items into a paginated gui, but I also need the slot the item was added to, which is currently not possible I don't believe, so gonna add that.
Yeah but I’m not a spigot developer nothing of mine is typically allowed to be open source by my clients requests
@oak coyote fyi the developer role isn't just for spigot developers. It applies to any respectable language
also your project doesn't have to be open source, the reviewers just need access to the source (me, lemmo, and sometimes glare)
@ocean quartz When you're on PC lemme know, I need guidance
@hot hull Will be in the pc in a sec
Anybody familiar with cpp? I can't see to get running this project that uses boost boost https://paste.helpch.at/tezepenoci.hs
cmake_minimum_required(VERSION 3.17)
project(Pb5)
set(CMAKE_CXX_STANDARD 11)
set(Boost_ARCHITECTURE -x64)
set(BOOST_ROOT D:/Projects/Programming/CPP/MinGW/)
set(Boost_INCLUDE_DIR D:/Projects/Programming/CPP/MinGW/include/)
set(Boost_LIBRARY_DIR D:/Projects/Programming/CPP/MinGW/lib/)
set(BOOST_NO_SYSTEM_PATHS ON)
find_package(Boost COMPONENTS system filesystem REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
add_executable(Pb5 main.cpp)```
CMAKE_CXX_STANDARD 11
ye old
ZN5boost10filesystem11path_traits7convertEPKcS3_RNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEE
lovely cpp errors
fr
idk much about boost but it looks like there are a couple of functions that are not defined (probably a missing .lib?)
😦
tf happened to the other messages lol
were irrelevant
well I have installed boost through this https://nuwen.net/mingw.html
yeah idk lmao never used boost
I just need a way to read files from a directory
can't you do that with the stl..?
I mean I know c++ isn't famously known for its ease of use and facilitated set of utilities in the stl but I'm pretty sure that's possible with the stl lmao
Has anyone here has experience with MongoDB and Morphia? I'm having an issue designing a codec that Mongo will recognize to serialize and deserialize an inventory.
looks like cpp 17 has std::file_system
😏 😎
other than the ugly - in the function name, very cool @prisma wave
its ugly
It's ugly 
Underscores also suck
its unique because it should never be done
@hot hull On the pc now, what are you adding?
you know what they say, make your own language, you'll get haters all the way
mhm mhmh
@ocean quartz removed, no idea when that happened, forgive me
I mean it's just opinions, there are things we dislike in Java too, that's normal
And oh okok xD
exactly
I bet java doesn't have a print function
so there's an obvious winner here
BM why func = () => over func() =>?
🙂
mostly for consistency
they're declared in the same way as variables therefore simpler
It also means the lambda syntax is exactly the same as function syntax
Oh okay that's fair
@ocean quartz I need a way to know to which slot an itemstack has been added to using addItem within a PaginatedGui
Well not when I need the slot
When I use addItem, I need to know which slot the item was added to
Nice.

The currentPage map holds the slots of the items in the current page Frosty
I think the "convention" (although it's quite unconventional) is "kebab case"
that's how we're describing it in the spec anyway
Oh well
wait does Elera use kebab case for functions?