#dev-general

1 messages · Page 208 of 1

quiet depot
#

ah

#

perhaps a little something can be arranged on hc's behalf

hasty flower
#

@heady birch Any update on when KiteBoard will be fixed to support 32 chars on 1.8.8?

distant sun
#

colors count too, and that means 2 chars per color

hasty flower
#

I understand that but it's still only showing 30 chars

distant sun
#

anybody know a mc server ping api that support ports and show if the server is online or not?

hasty flower
#

For websites or a plugin?

distant sun
#

for a non plugin project

hasty flower
#

returns "online":true or "online":false

distant sun
#

nice, thanks

hasty flower
#

You're welcome

distant sun
#

where did you found that though? Can't seem to load any documentation

hasty flower
#

I've always used that for my websites

distant sun
#

oh nice

heady birch
#

Sorry i do not know when

distant sun
#

can you ping each server with that or only the bungeecord?

heady birch
#

@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

hasty flower
#

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
heady birch
#

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

hot hull
#

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 🥺

quiet depot
#

@hot hull binary

#

[0010, 111, 010]

hot hull
#

hmm

hasty flower
#

what happens if you remove the | symbol I have no idea how that is actually handled
@heady birch Still only shows 30

heady birch
#

prefix carry over it is

#

i must add a check for that

safe lily
#

Is there a good MenuBuilder API for 1.16?

onyx loom
#

for GUIs?

hot hull
#

mf gui

prisma wave
#

em-gui

#

coming 2021

hot hull
#

?mf

compact perchBOT
hot hull
onyx loom
#

lol

#

worth

hot hull
#

If you got any other libs y'all use daily which are helpful, lemme know I'll add them

safe lily
#

yeah for GUIs

#

but it didnt work for 1.16 I think

hot hull
#

We already got mf-gui for that so fingerguns

safe lily
#

is this the best GUI Api there is currently?

hot hull
#

I'd say yes

safe lily
#

great

#

lol the different GUI Types are awesome!

prisma wave
#

elara/gui

#

let gui = create-menu { }

onyx loom
#

😐

fervent obsidian
#

?paste

compact perchBOT
#
FAQ Answer:

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

prisma wave
#

delivering bug free experiences since

fervent obsidian
distant sun
#

durability == 0

hot hull
#

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

heady birch
#

explain the requirements of your system further

fervent obsidian
#

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"

half harness
#

With the mf gui, will it work without making the server hoster add any more plugins?

hot hull
#

:wut:

half harness
#

wut

#

i never used a library before

onyx loom
#

u just shade the lib into ur plugin, the user wont have to add another plugin

hot hull
#

Make sure u relocate

jaunty holly
#

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?

Code: https://sourceb.in/33960b20a3

safe lily
#

when I want to make a class that extends the MF-GUI how would I do that? It is final

half harness
#

extends?

safe lily
#

yes

#

I want a class for each GUI in my plugin

#

so it should extend the Gui class

hot hull
#

You don't extend nothing

#

There's a step by step guide

safe lily
#

on what?

#

on how to create a gui?

#

ik how to do that

prisma wave
#

Composition over inheritance

safe lily
#

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

prisma wave
#

Then encapsulate the state into a class or whatever

#

You shouldn't need to extend Menu for that

ocean quartz
#

Tabs?

safe lily
#

what would you suggest?

#

yeah like a settings menu, cosmetics menu

#

stuff like that

#

with sub categories

prisma wave
#

A class that takes a Map<ItemStack, Menu> and creates a "main menu" perhaps?

safe lily
#

I see

#

so I got one class with every Menu?

prisma wave
#

That's probably best

#

Considering the Single Responsibility Principle

safe lily
#

okay I gotcha

#

thanks

prisma wave
#

Np

ocean quartz
#

@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

safe lily
#

oh lol

#

so would you make all my GUIs in one class too? @ocean quartz

ocean quartz
#

You don't have to

safe lily
#

how would I handle it with a class for each menu? like I wanted to in the first place

ocean quartz
#

Composition like elara said

safe lily
#

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

ocean quartz
#
class MainGui {
    private final Gui gui = new Gui("Main");
}
#

Something like this

safe lily
#

yeah thats how I wanted to do it

#

but how do I add items etc now

#

in the constructor?

ocean quartz
#

Yeah

safe lily
#

so you'd make a class foreach GUI

#

this way

ocean quartz
#

I wouldn't never had a reason for it
But then again i don't use complex nested guis

#

Yeah

#

How?

#

What? xD

safe lily
#

xD

#

why does it look kinda hard?xD

#

the Library

#

his API

ocean quartz
#

Gui is an Object from my lib

safe lily
#

lmao

#

tho the easiest would be if I could just do something like:

#

MenuClass.open(player)

ocean quartz
#

I mean make the method then

#

public void open(final Player player) { gui.open(player); }

obtuse gale
#

matt you're so goddamn smart

safe lily
#

oh yeah I am dumb

ocean quartz
#

Ikr

safe lily
#

lmao.

obtuse gale
#

im proud of you, son

safe lily
#

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?

ocean quartz
#

You can't reassign it, you can always use it

safe lily
#

oh yeah

obtuse gale
#

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 :<

safe lily
#
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?

ocean quartz
#

Yeah

safe lily
#

aight thanks a lot

#

are you familiar with HikariCP?

#

I could need some help with it

#

why my Connection Pool System

prisma wave
#

I wish it meant the object was immutable :<
@obtuse gale elara

#

mut

obtuse gale
#

isn't it already?

prisma wave
#

Should be

obtuse gale
#

smh my head

steel heart
#

doodoo

obtuse gale
#

elara, sponsored by Starlinks

#

:>

#

helo conbclube

steel heart
#

yo fofe

#

thats because fofe only got 1 eye

safe lily
#

are you familiar with HikariCP?
@ocean quartz

ocean quartz
#

A little bit

obtuse gale
#

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

safe lily
#

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();
    }
}
ocean quartz
#

Don't think you can

safe lily
#

and how do I make it so the connecting happens onEnable instead of on initialize

steel heart
#

make sure that classes is introduced in onEnable?

obtuse gale
#

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

ocean quartz
#

I mean it'll happen where you call it, if you call it on enable it'll happen on enable

safe lily
#

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

old wyvern
#

Connecting messages?

ocean quartz
#

Well first, i have no idea why it's static

hot hull
#

Why don't you just make a hikari.properties file and use it the way it was intended ;C

safe lily
#

I looked into this

old wyvern
#

What connecting message are you talking about Lok?

safe lily
#

the console messages when it connects the connection pool

#

when it connects to the database

obtuse gale
#

wdym

blazing walrus
#

OfflinePlayer#getLastPlayed();

#

there's this

obtuse gale
#

why e.getPlayer lmao

safe lily
#

lmao

blazing walrus
#

I went to check if it exists on an event

#

np

obtuse gale
#

OfflinePlayer 👀 👍

blazing walrus
#

Oop right

safe lily
#

theres nothing wrong with doing it this way @hot hull

hot hull
#

It's ugly

old wyvern
#

the console messages when it connects the connection pool
@safe lily
Can you show them to us?

safe lily
#

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

ocean quartz
#

It's basic connection messages Yugi, i find it pretty annoying that you can't edit them too

safe lily
#

looks a bit unprofessional imo

#

if there are random messages like this

#

and there is really no way right? @ocean quartz

ocean quartz
#

Not that i know of, but idk much about it

safe lily
#

what should I do instead of declaring it in static?

steel heart
#

static isn't too bad there

ocean quartz
#

I don't see why be static though

steel heart
#

Yeah something better can definitively be used

hot hull
#

Heard of multiple char variables fingerguns

safe lily
#

but how do I connect onEnable now? it's dumb to initialize it there without any need for it

ocean quartz
#

Just instantiate it on enable

safe lily
#

and then?

#

I just have it there without using it in the main?

hot hull
#

Yes

safe lily
#

ok

#

thanks

ocean quartz
#

Well, kinda? I'm assuming the way you have it is a singleton which makes it kinda awkward on enable

steel heart
#

If you have a static class, just instantiate with an empty static method fingergunsclojuremoon2

ocean quartz
hot hull
#

That emoji sheesh

steel heart
#

kotlin is nice

fervent obsidian
steel heart
#

proof lol

fervent obsidian
#

haha

steel heart
#

What declares the armor as new?

prisma wave
#

kotlin is nice
@steel heart elara nice

steel heart
#

Yes but of the OOP langs

hot hull
#

BM, when you write a good tutorial for elara I'll learn it

steel heart
#

same

static zealot
#

shame

steel heart
#

no u

hot hull
#

You know how much of a flex that is on a portfolio

distant sun
#

At least the tutorial to be good (:

steel heart
#

Basically add that it was you who written it in every paragraph

prisma wave
#

Ok

hot hull
#

Every second paragraph

prisma wave
#

I will write the greatest tutorial to ever be made

steel heart
#

every other word

fervent obsidian
#
                    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`
steel heart
#

But what when does the item become nonnew

fervent obsidian
#

Repairs the inventory

steel heart
#

wut

fervent obsidian
#

😄

steel heart
#

I did

#

and its almost impossible to understand it if I don't know the initial purpose of it and the end goal

fervent obsidian
#

Bcs if noItemDurability == true , repairs the armor, if == false it doesnt

steel heart
#

Can you try explain the entire image here

fervent obsidian
#

Which image?

#

Im not an english native speaker ssorry

steel heart
#

the entire thing you're trying to make

fervent obsidian
#

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

blazing walrus
#

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 ?

fervent obsidian
#

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

blazing walrus
#

1s

fervent obsidian
#

Ok

blazing walrus
#

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

safe lily
#

no it is not @ocean quartz

#

I am using dependency injection for instance passing

#

instead of a static getter

ocean quartz
#

Was talking about the database class

safe lily
#

so it should be fine I think

#

yeah

#

me2

hot hull
#

Can I use null as a key for a map thonking

ocean quartz
#

Oh okay, one more reason why i don't think it should be static then

safe lily
#

oh

#

what then?

ocean quartz
#

Just, not static lol

hot hull
#

Matt, any clue?

ocean quartz
#

It might work, idk xD

obtuse gale
#

Can I use null as a key for a map thonking
@hot hull depends

safe lily
#

what can it be other than static

obtuse gale
#

HashMap yes

#

Hashtable no

hot hull
#

gucci then, it won't be a nice solution but saves me a bit of effort when having the main gui

ocean quartz
#

@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

obtuse gale
#

I tend to use a HashMap and map null -> null

#

because

#

API design lmao

#

> Several people are typing

hot hull
#

Well I store all my subguis and this will be nice and dandy for also storing the main one

prisma wave
#

😐

safe lily
#

but I cant edit the config without it being in a static {}+

hot hull
#

inb4 BM starts yelling at me :c

obtuse gale
#

bm smh my head

ocean quartz
#
map.put(null, null)
val value = map[null]

if (n == null) println(null)
prisma wave
#

Lemme scroll up to find why I should be yelling real quick

fervent obsidian
#

@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

obtuse gale
#

yes

hot hull
#

Nah the value won't be null, just the key will

#

If that's possible thonking

ocean quartz
#

@safe lily What being static has anything to do with editing the config?

obtuse gale
#

mhm

prisma wave
#

Ok

#

I am very unhappy

#

Null keys bad

safe lily
#

well I cant edit the config in the constructor

obtuse gale
#

null key go brrrrr

hot hull
#

ploogin go brrrrrrrrrrrrrrrrrrrrrrr

blazing walrus
#

@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

prisma wave
#

😐 😫 🥶 😠

ocean quartz
#

You can get the data from a config on the constructor

prisma wave
#

me rn

obtuse gale
#

😏

safe lily
#

get but not set

hot hull
#

Turn on the heater if you cold BM 😮

safe lily
#

wait the issue is that the datasource is final

#

got it

prisma wave
#

no

#

Cannot use clojure moon

#

"nitro expired" 😟

hot hull
#

rippo

blazing walrus
#

rip

prisma wave
#

😭 😭

ocean quartz
#

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

fervent obsidian
#

@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

prisma wave
#

all they know is support request in dev general, assert != null and "I am learning spigot before Java"

#

👎 😕

hot hull
#

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)

ocean quartz
#

Money

prisma wave
#

the human brain is optimized to make sure you get paid as little as possible

hot hull
#

Seems like it yea

prisma wave
#

Probably coincidence

#

Or you feel more productive since there's potential for more pay

#

Or confirmation bias

#

Or all of the above

#

Psychology mitten

#

🙂

ocean quartz
#

There is a fly in my monitor and it's cared of my mouse lmao

blazing walrus
#

@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?

hot hull
#

How the fuck Matt

ocean quartz
#

Wdym?

#

A fly just sat on my screen

hot hull
#

There is a fly in my monitor

fervent obsidian
#

@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

ocean quartz
#

English and it's picky words

hot hull
#

I was like :what:

prisma wave
#

English syntax error

blazing walrus
#

Yeah but you are checking it's Max Durability / Durabilidad máxima not the Item's current durability

fervent obsidian
#

Ohhh u r right

blazing walrus
#

Without getType

#

item.getDurability()

fervent obsidian
#

Oh thx

#

Im trying it

blazing walrus
#

getType.getMaxDurability(); is because each item got their own durability so you need to check what item to get it's max durability

hot hull
#

Holy fuck mobile pinging is fucked

rugged compass
#

how do I check if a player is able to enter a bed?

ocean quartz
#

Check if the player is sleeping

rugged compass
#

because PlayerBedEnterEvent doesn't check zombies are nearby or if its night

blazing walrus
#

Minecraft does

hot hull
#

^

blazing walrus
#

But you can getNearbyEntities if there's nearby zombies you can cancel the event

safe lily
#
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?

ocean quartz
#

Everything is still static though

safe lily
#

oh my bad

#

yeah

fervent obsidian
#

It worked @blazing walrus thx

blazing walrus
#

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

safe lily
#

I had forgotten the static variables lmao

rugged compass
#

so @blazing walrus the first one does also check if it's day and stuff like that?

ocean quartz
#

@safe lily Yeah

blazing walrus
safe lily
#

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;
}
ocean quartz
#

Exactly

safe lily
#

:D

rugged compass
#

thank you very much @blazing walrus

blazing walrus
#

np 😄

safe lily
#

the only issue is the not customizable message problem now :c

hot hull
#

Hijack the logger

#

ez claps

hasty flower
#

i must add a check for that
@heady birch when do you think you will be able to put that update out?

late grove
#

guess who just corrupted their pterodactyl config

safe lily
#

@hot hull you got some hijacking contacts? thonking

hot hull
#

nein

safe lily
#

ja!

#

you do!

safe lily
#

Vielleicht!

obtuse gale
#

jkjk I love both of you two ♥️ 👀💦

static zealot
ocean quartz
#

Blitz you don't have Ultimate?

static zealot
#

nah. I ain't a student and I ain't got money for ultimate

obtuse gale
#

He lost it in a bet

hot hull
#

Speaking of ultimate, I gotta extend it in february :O

ocean quartz
#

I think i can give you a license

hot hull
#

What's the OS thing you can get a license for?

static zealot
#

why do you have multiple licenses ?

ocean quartz
#

Open source

static zealot
#

xD

hot hull
#

Ngl, Ultimate is godly when it comes to doing shit with dbs

static zealot
#

math is hard 😦

#

I can't even think of a simple algorithm

#

😦

hot hull
#

Well ask away then

obtuse gale
#

dEvElOpMeNt

static zealot
#

well development is for math

#

? xD

obtuse gale
#

idk lmao

ocean quartz
#

Uh idk how to do it, i guess i can't, probably only applied for 1 user

static zealot
#

👍 no worries math. I can work with the community version

#

math? xD

#

matt*

hot hull
#

Matt, what's the OS thing btw?

ocean quartz
hot hull
#

Yea efefury, and they all idiots

ocean quartz
hot hull
#

I see

static zealot
#

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 😦

hot hull
#

Just alternate?

static zealot
#

Just alternate?

obtuse gale
#

Just alternate?

ocean quartz
#

Still doing the circle thingy Blitz?

obtuse gale
#

LMAO

static zealot
#

I found that Math

hot hull
#

Change that a to e Matt :))

obtuse gale
#

👁️👄👁️

static zealot
#

I just found an algorithm on the internet in Java and I just ||stole|| got inspired by it

ocean quartz
#

👁️ 👅 👁️

obtuse gale
#

👁️ 👃 👁️

static zealot
#

👁️🍆 👁️

obtuse gale
#

very on topic development discussion

#

very important

ocean quartz
#

This channel should be changed from dev-general to circlejerk-inc

static zealot
#

👁️torch 👁️

obtuse gale
#

ikr

hot hull
#
|•| |•|
 \__/
#

Fuck you discord

static zealot
#

(╯°□°)╯︵ ┻━┻

loud gyroBOT
#

┬─┬ ノ( ゜-゜ノ)

obtuse gale
#

should be renamed to "programmers-break-lounge"

#

Frosty struggling rn

hot hull
#

I'm on mobile, don't bully me

obtuse gale
#

u.u

hot hull
#

°×°

#

@-@

#

ÚwÙ

obtuse gale
#

o -o

hot hull
#

Î _ Î

obtuse gale
#

yayy

#

I got no email

#

sad

#

Make sure you've reviewed The Rules

ocean quartz
obtuse gale
hot hull
#

Is the tshirt atleast nice?

static zealot
#

wait everyone that makes 4 PRs gets a tshirt?

#

that seems like a waste of money

ocean quartz
#

Not everyone, you can also choose to plant a tree instead

static zealot
#

oh

#

is it still going?

ocean quartz
#

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

obtuse gale
#

I have gifs turned off lmao

#

I need to hover my mouse over for them to play

#

You should do the same 👀

static zealot
#

anyone need some PRs? xD

ocean quartz
static zealot
#

xD

ocean quartz
#

And actually i do need one

static zealot
#

I mean I understand its from me but still .. 🙂

ocean quartz
#

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

hot hull
#

Blitz go pr fj

obtuse gale
#

lmao

static zealot
#

is it kotlin?

hot hull
#

Matt am I still doing what? The gui stuff?

static zealot
#

if it is maybe then I'll understand something

ocean quartz
#

Yeah

static zealot
#

why are people sorry every time they ping you but they still do it? thonking

hot hull
#

Nah I gave up, I'd have to test everything cause I've no idea what anything does :p

ocean quartz
#

Fair

hot hull
#

Blitz it's kotlim yea

#

Kotlin*

ocean quartz
#

Because they aren't really sorry xD

hot hull
#

Hopefully my prs get accepted tho

#

As in approved by those fuckers

#

Where'd you find this years shirt design btw Matt?

ocean quartz
#

On the main page

#

I don't like it too much

#

Last year was better

hot hull
#

Oh meh

#

Yea last year is better

#

Shame I didn't participate tho :(

static zealot
#

oh nice

#

even if I did join today

#

it still counts the PRs I made to Kaliber

#

's RNG expansion

#

xD

ocean quartz
#

Only PRs made in october

static zealot
#

yep I know

#

oh wait

#

the repository needs to participate

#

so they don't count xD

ocean quartz
#

I don't think it's needed

#

Just needs to be marked for hacktober i think

static zealot
#

ye

hot hull
#

You need to mark it for hacktoberfest yea

static zealot
#

but RNG is not marked

hot hull
#

He can still do that

static zealot
#

I have 3 plugins on GH if anyone wants to improve anything xD they are trash so its a lot that can be improved

hot hull
#

Effort tho

static zealot
#

well 3 that are public

hot hull
#

I have 62 repos on gh :(

ocean quartz
#

Need to do that so Gaby's PR counts

static zealot
#

how do I mark a repo for Hactoberfest

#

oh there is a video on all that

ocean quartz
south bough
#

Anyone know some good tutorials for a person who has never touched java to learn how to code a plugin?

static zealot
#

no

#

there are none

south bough
#

Really?

ocean quartz
prisma wave
#

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.
@static zealot kotlin for (i in 1..10) { doBlah(i) doBlah(-i) }

#

Ez

static zealot
#

oh I guess

ocean quartz
#

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

heady birch
#

Make the path an nice annotation 🙂 @Path("path")

#

And add other data type support 🙂

ocean quartz
#

I guess a path annotation is nice yeah

heady birch
#

Just to reduce the length of the lines I guess

prisma wave
#

let cool = true;
@obtuse gale no semicolons thank you 🙂

ocean quartz
#

Niall getting muted by Barry in 3 ..

static zealot
#

oh well I think I found something else that works better for me.

prisma wave
#

@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

umbral mica
#

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

prisma wave
#

I'm pretty sure Go is really good for CLIs

umbral mica
#

rust also pushes how it's great for CLI

prisma wave
#

I've never really used rust so can't comment

#

I think either will be fine, Go just has less of a learning curve

umbral mica
#

yeah I was looking at rust and it's...wierd

prisma wave
#

@niall

umbral mica
#

like I can see the benefits but I don't need to go that low level lol

prisma wave
#

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

umbral mica
#

yeah and I'm not planning on anything complex

#

like just basic query some remote API & format the response nicely type stuff

prisma wave
#

Go seems like a pretty sound choice for that

umbral mica
#

if it has support for RasPi GPIO pins that would be a great +

prisma wave
#

No idea if it does

#

But there's C interop afaik so

umbral mica
#

I've been using node to display stuff on my LCD, but fuck js on backend lol

prisma wave
#

If you wanna be quirky, I think Julia and Crystal both compile to native and seem to be quite nice

umbral mica
#

I'd like to use something a bit more well-known lol

#

I want to be able to google when I inevitably fuck up

prisma wave
#

Yes

#

Yeah Go is probably your best option here, it's got a pretty wide ecosystem

umbral mica
#

yup that's what I'm thinking too

#

plus I have access to jetbrains go ide so yey

prisma wave
#

GoLand is hot

#

My only current issue with it is the weird way it handles packages

#

You pretty much just import a GitHub URL

steel heart
#

rust

obtuse gale
#

you mean rusty?

#

because I'm not gonna touch that

steel heart
#

ngl but its neat af

#

idk but I should start worshipping niall

obtuse gale
#

no

steel heart
#

most legendary idea ever

ocean quartz
#

@distant sun The disrespect

distant sun
#

Ye, poor Dr. Disrespect got banned :(

ocean quartz
distant sun
#

That guy has his own skin on R6 or some other game lol

onyx loom
#

rogue company

#

great game

static zealot
#

Hipity hopity this meme is now my property

onyx loom
#

playing it rn

distant sun
#

You suck @ocean quartz :*

onyx loom
#

oof

ocean quartz
#

Don't you hide it, we all saw it!

static zealot
#

:)))

distant sun
#

Im on mobile f off

ocean quartz
#

Wow!

onyx loom
#

😆

ocean quartz
#

My freedom of speech!

onyx loom
#

!!!

#

how dare u gaby!

distant sun
#

Idk what you are talking about

errant geyser
#

GOPATH and GOROOT are confusing as fuck

#

Thats all I have to add, gn

prisma wave
#

Go

#

GOod language

ocean quartz
prisma wave
#

@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

errant geyser
#

Oh ok

prisma wave
#

Ask Sx

#

Oh wait

#

☹️

errant geyser
#

Have they finished judging for the repl.it jam yet?

prisma wave
#

No idea

errant geyser
#

The trauma.

#

😭

prisma wave
#

I kinda forgot it existed lol

#

😭

errant geyser
#

You forgot about ELARA???

#

Good sir you have sinned

prisma wave
#

No I forgot the Jam existed

#

Well that seems very biased

#

If I was the judge I think elara would probably win

onyx loom
#

just become the judge, ez

prisma wave
#

Yeah I should've volunteered

errant geyser
#

Rip

#

We tried

foggy pond
#

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

prisma wave
#

Tutorials and trial and error

#

I guess

#

@errant geyser they were scared of Elara's power

#

They knew what we could do with $10000

ocean quartz
#

@foggy pond If you don't want to dive into NMS, paper has a MOB api

errant geyser
#

Elara could take over the world with that money

#

Ez

foggy pond
#

A MOB api?

ocean quartz
#

Yeah

foggy pond
#

With which you can create mobs with custom AIs? To what extent tho

ocean quartz
#

Custom AI and stuff

foggy pond
#

Huh what how have I never heard of that

ocean quartz
#

The plugin would be paper only though

foggy pond
#

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

ocean quartz
#

Prolly because it's not that well documented

foggy pond
#

What package is it in? It's weird that I really never heard of it damn

foggy pond
#

Huh I'll see what I can do with that

#

Thank you

foggy pond
#

Yikes if I want to create a custom class for my custom mob I need to implement dozens of methods from Mob

ocean quartz
#

Don't think you should be implementing, just do composition

#

(idk much about the api though)

silent swallow
#

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

old wyvern
#

@ocean quartz What did you use to take a lamba with any no. of args in mf cmds?

obtuse gale
#

varargs?

old wyvern
#

No

obtuse gale
old wyvern
#

As in, of different types

obtuse gale
#

;0

ocean quartz
#

@old wyvern Wdym? ;o

obtuse gale
#

Object... varargs lmao

old wyvern
#

Like

public void someCommand(String arg1, Player arg2) {...}
#

How did you store the reference to that?

#

Or did you use reflection with Method

ocean quartz
#

Yeah reflection with method, then storing the parameters on a list

old wyvern
#

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

ocean quartz
#

The type isn't erased, you can get the type

old wyvern
#

huh

#

@ocean quartz

ocean quartz
#

getParameterTypes Gives you the class object with the type of the parameter

old wyvern
#

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

ocean quartz
#

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

old wyvern
#

I see, alrighty

ocean quartz
#

Trying to understand what ConfigMe does and it's so hard, it's full of recursion dios

obtuse gale
#

that's what we get for letting json objects store json objects

#

smh my head

ocean quartz
#

Recursion is the doom of my brain

hot hull
#

Can someone explain to me as to why json usually fucks the entire ide if you do something wrong when parsing it's objects thonking

old wyvern
#

wdym?

obtuse gale
#

Can you gitignore gitignore?

quiet depot
#

lol

#

@inner umbra surely you're joking

obtuse gale
#

Lmao

old wyvern
#

piggy, would the -parameters argument work even with unit tests?

#

or rather I mean parameter

#

But you get the point I think

quiet depot
#

erm

#

not sure

#

I would've assumed junit compiled it with the parameters argument by default

old wyvern
#

hmm is there any possible way to include parameter metadata?

quiet depot
#

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.
old wyvern
#

No, Im asking if there is any other way to get the parameter names at runtime

quiet depot
#

no, the only way is with the parameters argument

#

i lied

#

you can decompile the code

old wyvern
#

hmm

quiet depot
#

what's this for?

#

omg

#

I think I misread your message

#

lel

#

oh no I didn't, I just linked to the wrong message

old wyvern
#
@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

quiet depot
#

i edited the link

old wyvern
#

uh I meant as in a function Parameter

quiet depot
#

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

old wyvern
#

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

quiet depot
#

wat

#

let's just focus exclusively on your issue

old wyvern
#

Sure

#

So yea, parameter names

quiet depot
#

you want to create a mapping between parameter types and their names

old wyvern
#

yes

#

Parameter classes, types dont matter as much

quiet depot
#

you said you can retrieve the names already, you're just working on the types, correct?

old wyvern
#

no the names are the issue

quiet depot
#

is this an api for public use, or internal?

old wyvern
#

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

quiet depot
#

then just use the -parameters arg when compiling?

#

like you already said

old wyvern
#

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);
}
quiet depot
#

ok

#

so what's the issue

old wyvern
#

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

distant sun
#

Look at matt's

old wyvern
#

Matts doesnt do that tho

distant sun
#

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.

quiet depot
#

you using gradle yugi?

old wyvern
#

yes

quiet depot
#

and this is what you've got?

compileJava {
    options.compilerArgs << '-parameters'
}```
#

or something similar to that

inner umbra
#

surely you're joking
If I was i wouldn't be asking

quiet depot
#

you don't .gitignore the .gitignore

#

the difference is that the gitignore was already pushed before you added the extra line

old wyvern
#

I used the add function instead of leftshift

inner umbra
#

So... how would i fix it?

old wyvern
#

This seems to work

#

Thanks piggy

#

💯

quiet depot
#

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

inner umbra
#

there's nothing broken here
Clearly there is xD Other wise I wouldn't ask

quiet depot
#

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

distant sun
#

Git have a cmd to remove only the file(s) from the repo instead of local too

inner umbra
#

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

quiet depot
#

@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

distant sun
#

There is one only for repo 100%

quiet depot
#

yapp, what's your reasoning for not wanting to push the gitignore?

#

do you think it just looks ugly?

inner umbra
#

Yeap

distant sun
#

.gitignore must be pushed, period.

quiet depot
#

so you'd rather exclude a useful file than risk your project being in your opinion, unaesthetically pleasing

inner umbra
#

Yeap

quiet depot
#

wow

distant sun
#

git rm .gitignore
ez

quiet depot
#

fuck this main class is kinda ugly, might just not push it

distant sun
#

:))

quiet depot
inner umbra
#

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.

distant sun
#

What's wrong with gitignore though?

quiet depot
#

literally nothing

distant sun
#

Oh .. lol

#

Ok i gusss

hot hull
#

Don't have a gitignore then GWcmeisterPeepoShrug

distant sun
#

Isnt there a gitignore also in the iml folder or whatever the name of the folder created by iij is?

quiet depot
#

.idea/

#

not that I'm aware of

distant sun
#

I swear I saw one

inner umbra
#

git rm .gitignore
didn't work

distant sun
#

Not sure about it purpose though

quiet depot
#

yapp I already linked the solution

distant sun
#

add the force argument

old wyvern
#

seems to be gab

quiet depot
#

is that new?

distant sun
#

I dont think so

quiet depot
#

it probs ignores everything that isn't codestyles

old wyvern
#

No idea, just noticed when gab said tbh

distant sun
#

Does it match your gitignore file?

inner umbra
#

add the force argument
Didn't work either. fatal: pathspec '.gitignore' did not match any files

old wyvern
#

Nope

quiet depot
#

is the file still there locally yap?

inner umbra
#

Nope damnit

quiet depot
#

lol

#

what did you expect

#

I literally said before that git rm removes the file locally

distant sun
#

Wait do you use eclipse or smth?

old wyvern
#

who?

distant sun
#

Cuz I dont see any resources folder for your plugin.yml

quiet depot
#

yapps uses eclipse

old wyvern
#

oh

distant sun
#

Not you 4head

old wyvern
#

xD

inner umbra
#

I literally said before that git rm removes the file locally
Wasn't following all answers.

Wait do you use eclipse or smth?
Ofcourse.

hot hull
#

Do I see an eclipse user

inner umbra
#

👋

hot hull
#

ew

distant sun
#

"Eclipse user and proud!"

#

Yesterday i found this thing, graphql, looks pretty nice :o

quiet depot
#

it's by facebook so inherently bad

distant sun
#

Smh p1g

inner umbra
#

I hate github. Can't even simply revert the working tree or local repo.

hot hull
#

User error fingerguns

quiet depot
#

both of those things are definitely possible but k

distant sun
#

Pebkac

quiet depot
distant sun
#

Add that here

quiet depot
#

eh

distant sun
#

Do it!!

quiet depot
#

stick to the acronym

distant sun
#

:(

#

I thought you are the cool admin

inner umbra
#

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

quiet depot
#

yeah well it'd just turn into the new asktoask

distant sun
#

¯\_(ツ)_/¯

quiet depot
distant sun
#

Why does it take that long for tebex to answer to an email smh

#

Lol

dusky drum
#

sush

#

i

quiet depot
#

cuz tebex is the worst company in minecraft

#

change my mind

dusky drum
#

agree!

#

bot was first in java then i ran auto coverter to kt, and i didnt change folder name

quiet depot
#

oh

#

in that case, do you mind if I go back a few commits to your java code, and review that instead?

dusky drum
#

and my VPS vas hacked.... and i lost my nexus, good i save my stuff localy to.

distant sun
#

F

dusky drum
#

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.

quiet depot
#

yeah but you didn't write this kotlin

#

you wrote the java

dusky drum
#

true

#

but i also coded kotlin

#

since i had to change stuff

quiet depot
#

if this project is "shit", then which project do you want me to review?

dusky drum
#

and added some features

#

just sec

distant sun
#

I need one more public project for dev role request :(

dusky drum
quiet depot
#

core?

dusky drum
#

i preffer simpleholos

#

or Holoplaceholders on my main github

hot hull
#

I keep forgetting Gaby doesn't have dev role :c

quiet depot
#

which one lol

dusky drum
#

oh hpe isnt public

#

just sec

#

i have it on gitlab...

quiet depot
#

my gh is PiggyPiglet if you want to add me to a priv repo

distant sun
#

Also, pig, have you uses wiki.js? I thought about using gitbook but it's api suck

quiet depot
#

haven't used it

#

looks good though

#

also can't go wrong with mediawiki

distant sun
#

With what?

quiet depot
#

wym with what?

distant sun
#

mediawiki

quiet depot
#

mediawiki is just another wiki software

#

it's the software wikipedia uses

#

I assume it has a great api

distant sun
#

But its ugly

quiet depot
#

then use a theme lol

distant sun
#

Still ugly

dusky drum
#

why can it find my HPE?*

quiet depot
#

?

dusky drum
#

i can push it to github but its not on github

quiet depot
#

¯_(ツ)_/¯

distant sun
#

Make sure you push to the right account

oak coyote
#

This is why I never bothered getting that role

#

It’s not needed at all

hot hull
#

Big flex if you have it yes

oak coyote
#

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

hot hull
#

@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.

quiet depot
#

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)

obtuse gale
#

:0

#

shit imma apply then

hot hull
#

@ocean quartz When you're on PC lemme know, I need guidance

ocean quartz
#

@hot hull Will be in the pc in a sec

hot hull
#

"in"

#

Like bruh again

#

:))

ocean quartz
#

Don't be picky

#

@steel heart Why the downvote on my showcase? cryingblob

distant sun
#
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)```
obtuse gale
#

CMAKE_CXX_STANDARD 11

#

ye old

#

ZN5boost10filesystem11path_traits7convertEPKcS3_RNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEE

#

lovely cpp errors

distant sun
#

fr

obtuse gale
#

idk much about boost but it looks like there are a couple of functions that are not defined (probably a missing .lib?)

distant sun
#

😦

obtuse gale
#

tf happened to the other messages lol

distant sun
#

were irrelevant

obtuse gale
#

yeah idk lmao never used boost

distant sun
#

I just need a way to read files from a directory

obtuse gale
#

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

frail glade
#

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.

distant sun
#

looks like cpp 17 has std::file_system

obtuse gale
#

yeah it's in c++17

#

inb4 lmao

CMAKE_CXX_STANDARD 11
ye old

distant sun
#

shut up fefo

#

beautiful, it works 🙂

obtuse gale
#

😏 😎

remote goblet
#

other than the ugly - in the function name, very cool @prisma wave

prisma wave
#

😦

#

it's good

remote goblet
#

its ugly

prisma wave
#

better than underscores

#

or "camel case"

ocean quartz
#

It's ugly cryingblob

remote goblet
#

Underscores also suck

prisma wave
#

😭

#

so many haters

#

- is unique

remote goblet
#

its unique because it should never be done

ocean quartz
#

@hot hull On the pc now, what are you adding?

obtuse gale
#

you know what they say, make your own language, you'll get haters all the way

prisma wave
#

exactly

#

Einstein said that I think

obtuse gale
#

mhm mhmh

steel heart
#

@ocean quartz removed, no idea when that happened, forgive me

ocean quartz
#

I mean it's just opinions, there are things we dislike in Java too, that's normal

#

And oh okok xD

prisma wave
#

exactly

#

I bet java doesn't have a print function

#

so there's an obvious winner here

ocean quartz
#

BM why func = () => over func() =>?

prisma wave
#

🙂

#

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

ocean quartz
#

Oh okay that's fair

hot hull
#

@ocean quartz I need a way to know to which slot an itemstack has been added to using addItem within a PaginatedGui

ocean quartz
#

What? xD

#

Oh

#

You edited it

#

Can't you get the slot from the click event?

hot hull
#

Well not when I need the slot

#

When I use addItem, I need to know which slot the item was added to

prisma wave
#

pog

frail glade
#

Nice.

prisma wave
ocean quartz
#

The currentPage map holds the slots of the items in the current page Frosty

distant sun
#

How do you call this-syntax-lol-@prisma wave

#

Snake-case-v2

prisma wave
#

I think the "convention" (although it's quite unconventional) is "kebab case"

#

that's how we're describing it in the spec anyway

distant sun
#

Oh well

steel heart
#

wait does Elera use kebab case for functions?