#dev-general
1 messages ยท Page 583 of 1
its like the entity thing where when you remove it
its marked for removal
but not actually removed
Oh
the thing is though, the idea of an expiring cache is that it computes/calculates the value if either a) the key isn't present or b) it has expired
I presume it just marks it as expired because removing the entry entirely might be more expensive
so the next time you access the cache it goes "oi this shit's expired, let me get a new value for this"
yeah
How come?
Oh
Expired entries are cleaned up as part of the routine maintenance described in the class javadoc
aaaaaaaaaaaaaaaaaa
RTFM
rtfm?
read the fucking manual
If
expireAfter,expireAfterWrite, orexpireAfterAccessis requested then entries may be evicted on each cache modification, on occasional cache accesses, or on calls toCache.cleanUp. Ascheduler(Scheduler)may be specified to provide prompt removal of expired entries rather than waiting until activity triggers the periodic maintenance
AAAAAAAAAAAAAAAAAAAAAAAAA
AAAA
it works
๐
also
reminder:
B.A.A.S - Too many caps!
No need to shout.
Barry's Anti Abuse System | v1.4.7
ok
:(
๐
Thatโs MY discord
They didnโt even try to convince anyone to join it, just put the link lol
lol
Have fun with your ban
I just made an atrocity
This is very cursed
**```java
if (switch (event.getAction()) {
case RIGHT_CLICK_BLOCK -> event.useItemInHand() != Event.Result.DEFAULT;
case PHYSICAL -> event.useInteractedBlock() != Event.Result.DEFAULT;
default -> true;
}) {
return;
}
lmao
did discord change the code block font tho? it looks more bold I think
very epic
||~~__***```java
if (switch (event.getAction()) {
case RIGHT_CLICK_BLOCK -> event.useItemInHand() != Event.Result.DEFAULT;
case PHYSICAL -> event.useInteractedBlock() != Event.Result.DEFAULT;
default -> true;
}) {
return;
}
aaaaaaaaaaaaaaaa
why default?
also what the fuck
because it requires a default case/value in case none of the other cases apply
it has to evaluate to something, it's an expression after all
wait. what?
__val x = 100__
how?
oh lol
has to be before.
xD
__```kt
val x = 100
This actually looks easy, damn
english
The ' in the method is mildly infuriating
nah. I Like it
wait java supports that?
(switch statements in if statements)
๐
yes. no. maybe.
Got a bit of a random question for folk, might it be possible to have the discord invite embed (with the join button, etc as you see on a discord.gg invite) but with your own domain?
i don't think so, no, since even if you type discord . gg without the blue link it works
This idea literally just popped into my a head a moment ago, and I haven't bothered googling it.
Switch is an expression (newer Java versions) so you can use it anywhere a value can be used
oh
Talking of Switch statements, Python is finally getting it's equivalent in version 3.10 which is to release in October.
this might actually be possible tho
nvm
Absolute bullshit
ok
ok
oh wait
wtf
When I decompile with baksmali its there
But when I open it in jadx it actually isnt there
what
open with winrar
That wont help dkim
oh
i don't know what dex is ;-;
dalvik executable
or something like that
This makes no sense tho
why does baksmali find the class
๐ฅถ
oh wait no
it does find it
just renames it because of being in a windows filesystem
ok
uh
C
plus
minus
equals?
sharp
blunt
heavy
public inline fun <T> Iterable<T>.sumOf(selector: (T) -> Double): Double {
var sum: Double = 0.toDouble()
for (element in this) {
sum += selector(element)
}
return sum
}
This is in the kotlin stdlib
0.toDouble()
w h a t
smartest kotlin user
what in the world
๐ตโ๐ซ
35 relocations ๐
(and this is relocating groups, ex 'me.mattstudios' instead of 'me.mattstudios.mfgui' to create less relocations lol)
with the jar being 26 megabytes
I'm developing a discord bot for another mc server, but just to be more safe, I want to encrypt the token a little
obv they can just decompile and then find out the token, but I don't want it to be in plain sight
anyone have a simple idea of what I should do?
I have two ideas:
- convert to hexadecimal
- take the chars and just change the ascii value and then convert to chars again
and i don't want to hard code the value because:
- testing locally
- in case the token changes
i don't want to hard code the value
config
oops
ye i meant config
but if someone was looking at the config i didn't want them to just have the token right away
realistically anyone with two braincells who knows how to use a token for their own will be able to decode whatever encoding method you chose
ยฏ_(ใ)_/ยฏ
i know
but i don't want someone to be able to do it right away
since they'd have to decompile the jar to see
or try a bunch of methods
stupid simple yet potentially effective for that purpose lol https://en.wikipedia.org/wiki/Caesar_cipher
I mean if you want to go all out you'd use something like RSA
๐ฅฒ
yea ill probably just use the ceasar cipher :) (although modified to be compatible with discord's token format)
ty
but the keys would be in the jar anyway so
mhm
honestly if they have access to the files then they're gonna know the token eventually, it's just a matter of time
if they care enough
ye
and plus ppl with file access are prob trusted
since they technically could just delete the server
well yeah lol
If they've got access to the files there are far worse things that they could do
i personally don't think it's something worth a lot of time and effort, and Caesar cipher will be confusing because it will look like a token, it will have the characters of a token and the format of one
Rot13
rot in hell you say?
and Caesar cipher will be confusing because it will look like a token, it will have the characters of a token and the format of one
well
the config will probably look like this anyways: ```yml
token: aaaaa
ยฏ_(ใ)_/ยฏ
๐ตโ๐ซ
lol
Figured out the issue from earlier!
It wasnt actually the class not being there
The class that was missing was actually javax.inject.Inject
But for some reason it was getting suppressed
Prolly cuz of this:
NOTE: THIS FILE IS AUTO-GENERATED by the GenerateStandardLib.kt
Or they just don't care :kek:
Has anybody used JavaFX with Kotlin yet?
Nope
There's that TornadoFX thingymajig you're supposed to use
How you been Brister?
Overloaded with school. Have barely touched my PC tbh.
I want to die rn. I started changing my bot and just started changing small things in every place without going with just 1 thing at a time. Now I have like 100 things changed and 0 commits
no embeds
nice
omg
I'm Comp Sci with Leadership Studies minor.
Yeah but it doesn't seem to be maintained and just to get it to work with java 11 you gotta do some hacky shit
Is leadership studies like managing teams and things?
Kinda, yeah.
well then just use jfx, it'll probably be very similar to using it in java
man. I start uni in 1 week and I have 0 information. like about everything ๐ฅฒ
oh you're just applying in a couple of weeks? I've already paid like 1/3 of the annual taxes and all that, and we're going to be announced on their website on what to do. Not even email. So every 1 hour I go refresh just in case I get new info. Got no idea how classes work, what other stuff I need, If it is going to be online or in person, all that shit. ๐ฅฒ
๐ฅถ
going to send an email tomorrow just to make sure. Because the thing is just yesterday was the final day when people could like apply or whatever. Well not really apply, just confirm by paying a part of the tax and stuff.
We don't even have the final lists yet. So I guess they gonna update us after the final list is displayed.
Matt. with Bean Proprieties is there a way to set a custom name for each variable when in file? so for example I have kt data class CommandData(val commandName: String = "default-command") I have a setting holder: kt object Holder: SettingsHolder { @Path(commands) val COMMAND = Property.create(listOf(CommandData())) } and the file is:
commands:
- commandName: default-command```
but I would like it to be
```yml
commands:
- name: default-command```. I know I can change the variable name to `name` in the CommandData class but I want other names for example `allowedRoles` to be `allowed-roles`.
do
@Name("name")
var commandName: String
Change the val to var in the bean btw
oh yeah. it is var. ty.
Motable
no u
yes u
Matt. I require your assistance once again. I am tired ๐ฆ
Error: https://paste.helpch.at/ozewetodut.bash
Custom (settings holder): https://paste.helpch.at/jizutayaye.bash
CommandData: https://paste.helpch.at/yaqomudahu.coffeescript
Config file: https://paste.helpch.at/isivekizuz.coffeescript
So when I run with no value for custom.commands in my settings file, the bot runs fine, then I stop the bot, try to start it again and I get that error. I really can't tell what I'm messing up.
AlphaBot line 56 is me initializing the settings manager. https://paste.helpch.at/xorezilana
also. don't mind all the @Name annotations in my commanddata class. will be removing the ones I do not need.
also. line 37 in SettingsManager is the .create() one.
Hmm you're using a list of beans? I don't think that'll work well
What is the goal here? To add many commands?
If so I suggest a map instead
List of objects in yaml are funky
hmmm. Alright. Will be trying. Tho I am like 55% sure that this works just fine in config me.
xD
seems like the same error is thrown.
Actually
but instead of createCollection it is createMap
Try mutableListOf instead of listOf
now. this for oth COMMANDS property and the lists in CommandData? or just for the property?
Might need to be both, ConfigMe is very strict about requiring mutability
tried both. here's the error. same one just Array instead of Collection. https://paste.helpch.at/purexoxeji.bash
and yes. this happens when I make the property a mutable map and the lists in custom data mutable.
Can you show me everything you have now? Settings holder, and dataclass
yup. 1 sec
also
just changed it to var COMMANDS = Property.create(CommandData())
and it works
so I guess no lists? ๐ฆ
Custom(settings holder): https://paste.helpch.at/bawukadaco.java
CustomData(the bean): https://paste.helpch.at/iseyavehay.coffeescript
SettingsHandler: https://paste.helpch.at/ucokecatiz.rb
and just in case you didn't see this, it works when it is not a list or a map.
oh. also don't mind the var lol
What if you do:
custom:
commands:
default-command:
category: ""
# etc
val COMMANDS = Property.create(mutableMapOf("default-command", CommandData()))
tried. getting this error instead.
which is very similar.
wait. actually might not be that error. let me try again. but it is very similar
Let's get hacky then:
@Path("custom")
val COMMANDS = Property.create(CommandsHolder())
data class CommandsHolder(var commands: MutableMap<String, CommandData> = mutableMapOf("default-command" to CommandData()))
object Custom : SettingsHolder {
@Path("custom.commands")
val COMMANDS = Property.create(mutableMapOf(Pair("default-command", CommandData())))
}```
```yml
custom:
commands:
default-command:
category: "default-category"```
and I get this: https://paste.helpch.at/iyocefujum.bash
Try the hacky example
will do.
yup. seems to work. guess I'll go with this. thanks
omfg. I finally have. commands. xD
https://paste.helpch.at/ajotuxadaj.php ๐ฅฒ (this is decompiled version of https://paste.helpch.at/idatetelos.cpp)
it looks obfuscated ๐คฃ
public void onPhase(PlayerMoveEvent event) {
PlayerData data = FunkePhase.INSTANCE.getDataManager().getPlayerData(event.getPlayer());
if (data == null)
return;
long timestamp = System.currentTimeMillis();
if (data.getLastTeleport() != null && event.getTo().equals(data.getLastTeleport())) {
data.setLastTeleport(null);
return;
}
FunkePhase.INSTANCE.getService().execute(() -> {
Player player = event.getPlayer();
if (player.getAllowFlight() || event.getTo().getWorld().getUID() != event.getFrom().getWorld().getUID() || player.getVehicle() != null || !FunkePhase.INSTANCE.phaseEnabled || timestamp - data.lastDoorSwing < 500L)
return;
if (event.getFrom().distanceSquared(event.getTo()) > (FunkePhase.INSTANCE.getMaxMove() * FunkePhase.INSTANCE.getMaxMove())) {
event.setCancelled(true);
return;
}
float minX = (float)Math.min(event.getFrom().getX(), event.getTo().getX());
float minY = (float)Math.min(event.getFrom().getY(), event.getTo().getY());
float minZ = (float)Math.min(event.getFrom().getZ(), event.getTo().getZ());
float maxX = (float)Math.max(event.getFrom().getX(), event.getTo().getX());
float maxY = (float)Math.max(event.getFrom().getY(), event.getTo().getY());
float maxZ = (float)Math.max(event.getFrom().getZ(), event.getTo().getZ());
SimpleCollisionBox box = (new SimpleCollisionBox(minX, minY, minZ, maxX, (maxY + 1.8F), maxZ)).shrink(0.05000000074505806D, 0.05000000074505806D, 0.05000000074505806D);
int x1 = (int)Math.floor(box.xMin);
int y1 = (int)Math.floor(box.yMin);
int z1 = (int)Math.floor(box.zMin);
int x2 = (int)Math.ceil(box.xMax);
int y2 = (int)Math.ceil(box.yMax);
int z2 = (int)Math.ceil(box.zMax);
for (int x = x1; x <= x2; x++) {
for (int y = y1; y <= y2; y++) {
for (int z = z1; z <= z2; z++) {
Block block;
Material material;
if ((block = Helper.getBlockAt(event.getTo().getWorld(), x, y, z)) != null && (material = block.getType()) != AIR && Materials.checkFlag(material, 1) && !FunkePhase.INSTANCE.getExcludedBlocks().contains(material)) {
CollisionBox blockBox = BlockData.getData(material).getBox(block, ProtocolVersion.getGameVersion());
if (blockBox.isIntersected((CollisionBox)box)) {
Location setback = findSetback(data);
if (setback != null) {
setback.setPitch(event.getTo().getPitch());
setback.setYaw(event.getTo().getYaw());
}
event.getPlayer().teleport((setback != null) ? setback : event.getFrom());
FunkePhase.INSTANCE.alert(event.getPlayer());
return;
}
}
}
}
}
data.locations.addLocation(event.getFrom().clone());
});
}
+
private ExecutorService service;```
is this code good
this.service = Executors.newSingleThreadExecutor();
what the fuck
it's that good?
what in the name of satan
extract smaller methods, a method should only do one thing which is when you cannot meaningfully extract another method from it, then use more explanatory variables imo
so none of you can see the big mistake?
mistake i s = this.service = Executors.newSingleThreadExecutor();
Very well rendered, i can tell you made that one by hand ๐
Has anybody encountered an IllegalAccessException before?
Idk what to do about this:
Caused by: java.lang.IllegalAccessError: class me.blocky.logreader.LogReader (in unnamed module @0x6ba964ff) cannot access class com.sun.javafx.collections.ObservableSequentialListWrapper (in module javafx.base) because module javafx.base does not export com.sun.javafx.collections to unnamed module @0x6ba964ff
ObservableSequentialListWrapper is a public class declared in a package that gradle imports successfully. I can view its source code even so idk what the deal is...
JPMS! In the new module system you wont be able to access packages that are not exported, so it looks like your gonna have to find a replacement for the com.sun packages...
Its possible that the stuff you need has been moved to the module jdk.unsupported, but unlikely
but like... why would they do that? ๐ฆ
have you not heard of java 9 ๐ฑ
also you shouldnt be using the com.sun packages anyways
Do you know if the jdk.unsupported packages are ever gonna be taken out? I cant imagine that Unsafe will ever go away but who knows
Oh god, Kotlin 1.6 fun <T!!> will be a thing, non nullable generic type ๐ฉ
tf
what the fuck
arent they notnull by default
yeah i dont get this
T can be some nullable type
T? is always nullable
T!! is always not nullable
T probagates nullability from type argument.
Get what?
Still not final though
Why this needed to be added
๐คท
Just 1.6-m1
Will be experimental in 1.6 planed for 1.7
Another syntax they are considering is <T & Any>
Yeah that's what I mean
Needs compiler flag and annotation yeah
I think it's @OptIn
ah
Also :kek:
-XX:DefinitelyNotNullTypeParameters compiler flag
xD
Html DSL compiler ;o
before (1.4.0): 34s
after (1.6.255-SNAPSHOT, would be 1.6.0-M1): 6s
๐ฎ
Is there a way to dispatch a command as a component with paper from console?
idk but wdym it sounds interesting xd
You can send messages as a Component, I just want to know if you can send commands as a Component, that way if the command has any color like in a message it uses that
hmm, ehy do you need that
So that color is included
but why ๐ค
Wdym why?
whats the usage of colored command
If the command was /broadcast <red>A broadcasted message</red>
I want to include the color
aaaaaaaa i have a bug where in console if you want to send a command you have to type the command, then press enter twice, but then only the first letter seconds
and its only if my plugin is installed
what

hmm
might be something to do with JDA
i've used jda inside of a plugin without troubles before ๐ฉ
I even did this and the issue still happens
be quiet barry
I FIXED ITT :D
Dyno struggling
me irl
Today, I want to welcome you all and I want to talk about violence againist children it is a big no no GET THE Fโ OUT
Subscribe:
Stay tuned for more Crazy videos
#Stopviolenceagainstchildren
#memes
#getthefโ- out
#CGO forever
Itโs now an indian man being a hypocrite! Hope you enjoy the video,
Have a nice day!
Have a good night!
Have a good life...
Me to dkim
๐ณ
I didn't know you were indian blitz
now you know.
Habebe
@hot hull literally explain what the fuck
no u
FrozenJoin
it isnt fj
auctionworth. did he make that?
fun fact. googling CYTAuctionHouse gives exactly 1 result. and that is this paste bin: https://mcpaste.io/4baa46968a86e3fa
yeah I know
Is gazelle a library?
No Gaby..
You stoopid
i figured it out buy like, i still hate your plugin 
Not my fault you can't read
life would be so much easier had you of just fixed your plugins in the first place 
It's weird how all of my plugins work completely fine when I'm using them
i dont get paid enough to redo it 
nor do I actually have any of the math skills to do it
I mean only thing I don't like is the itemregistry, the rest is fine
Also what math skills lol, it's basic math my guy
well. we lack basic math skills.

Lmao
can you explain what the hell its complaining about when it says the cache is not ready 
the cache isnt ready
bite me kaliber
๐ฆท

You're trying to access db, when it's not yet comnected
i hate this plugin
question, didn't luck had a plugin to see what IPs or hosts your plugins are connecting to?
ah was took over by someone else https://github.com/SlimeDog/NetworkInterceptor
no download link, nice
Damn, i find it so nice how you can compile Go applications for any arch + os with a fixed os
like you can compile Windows executables on mac
its so sexy
hmm. with the / commands(discord, could I have something like this):
/command Required-Option Optional-Option-Based-On-Required-Option?
using jda + jda-chewtils
seems like I could have /command subcommand OPTIONS-FOR-SUBCOMMAND so I might try that.
Me: "this doesn't look centered"
Fiance: "It definitely is!"
It isn't!
lol
So you're saying your fiance can't see?
discord commands suck ๐ฆ
They do
guys is there a gif tutorial of how to use the chat reaction plugin cuz many user dont understand how to use it
@ocean quartz ?
@obtuse dust @agile siren sup
nice alts tho
Why are you pinging me?
There is a video in the plugin page and this is not the channel for plugin support, #general-plugins is
And please read the #rules about pinging
for an issue?
the pro tag
oh
very purple
lol
I just want to die ๐ฅฒ
Printing the commands I have for the guild, it gives me 0, tried updating the commands, same shit. No it is not user cache. Restarted discord multiple times.
I don't even have these commands registered anymore. they do not exist. these were like my first attempts and for some reason they don't go away.
Should I try and kick my discord bot? I really don't want to do that ๐ฆ
oh. I wonder if they're like one of those non guild commands
or something?
yeah. and it does work. for most. but for those 2 it does not
will try and see if there's a way to unregister per bot commands
oh. there is a way to update bot commands as well. Man I love how every time I ask in here, I just randomly think of the answer.
or at least new possible solutions.
Its called therapy i think
though im pretty sure im not getting payed to read your messages
welp. it wasn't that this time.
so. decided to debug and yes it is a per bot registered command. time to find out why it does not unregister.
ty everyone
got it to work. ty again everyone. lol
it is kinda trash tho. I can't unregister bot commands on shut down or anything like that. so I have to unregister them on start up. Which means even tho my bot is stopped the commands are still listed. xD
it just gives a "something went bad" message or something like that
interaction failed
man these commands just make me want to die
what are you trying to do
is it JS or JDA?
I just register them in a guild on MessageReceivedEvent if it's jda
CommandListUpdateAction commands = event.getGuild().updateCommands();
then just commands.addCommands( ... ) and commands.queue();
and they update automatically
if you register them globally on all guilds it takes up to an hour to update
Lel
if you need some insight on JDA slash commands, lmk
interaction is failed if it's not replied to
I have a method
void eventReply(SlashCommandEvent e, EmbedBuilder embed)
{
e.replyEmbeds(embed.build())
.setEphemeral(false)
.queue();
}
so I just do all the logic, etc., and reply to the event with the embed after
haven't gotten bored of it yet
but JS slash commands are more pain personally
no objects to relieve the pain a bit
yeah
Is that written still in type script?
haven't used ts
Slash commands are a mess, global ones take a while to go through and guild commands are so fucking buggy
Threads are still a mess also imo
Yeah
Arguably somewhat unmanageable lol
const { SlashCommandBuilder } = require('@discordjs/builders');
const data = new SlashCommandBuilder()
.setName('gif')
.setDescription('Sends a random gif!')
.addStringOption(option =>
option.setName('category')
.setDescription('The gif category')
.setRequired(true)
.addChoice('Funny', 'gif_funny')
.addChoice('Meme', 'gif_meme')
.addChoice('Movie', 'gif_movie'));
I mean that's pretty similar to what JDA offers
or the shitty one
client.api.applications(client.user.id).guilds('guild id').commands.post({data: {
name: 'ping',
description: 'ping pong!'
}})
tho there are tons of ways to implement slash commands in djs
you can stuff everything in one or two events or use module exports
or choose from "thousands" of npm packages
huh
uk49
who that
Conclure what happened to pfp? ๐ฉ
Disappeared
oh, yeah, he messaged me about one of my plugins
Yaaa
I use jda + jda chewtils. and it is a mess. ๐ฅฒ
Is he trustworthy from your pov?
Can't really tell, he just asked me about a feature if I could implement
Ah fair
Said he could pay for it but I rejected the offer, since I don't take payments for my free plugins
And I just implemented it anyway
I might hijack your pfp, I love it frankly
Ah
I'm not even gonna show you my mess of a code
Modi inv me to ur dev ghetto discord
dev ghetto ๐
or won't I
I really thought about doing my own command lib for this. but it took me just a few minutes to realise that I would probably do an even worse job lol.
this one's worse
Jesus
but I really really hate discord commands.
why when I have sub commands the main command can't be used anymore? I could just make 1 command for each sub command if I wanted that.
why can't I just cancel the slash command and still be able to execute code. so I don't have to reply to their message.
Discord is a mess because they really rush everything out
someone posted a message few days ago (might've been adam), showing them working with the actual community on fixing and improving the,.
them*
like in a public discord call or something like that
why can't I hide commands? like completely? for people that do not have permissions
why can't I have sub sub commands.
yeah this one annoys me too
Because Discord doesn't let you
Discord being discord
can't you?
well. then my question is. why does it not let me?
nope.
Cuz fuck you, that's why
Because discord, duuuh
A quick note on nested subcommands and groups. We support nesting one level deep within a group, meaning your top level command can contain subcommand groups, and those groups can contain subcommands. That is the only kind of nesting supported.
this is on their website.
on the docs
ah
like. don't get me wrong. I love the idea of slash commands. but the way they're implemented at the moment, I really hate.
Yeah it has potential
the fact that I can just type / and see all commands I can execute in a server, great.
not having to see what bots everyone has, not having to see what prefixes they use
all that
but they suck
permission based commands should be a thing lol
yeah. that too.
it's annoying to check if user has permission for every command manually
not having to have a role for each command lol.
Command permission is even more messy than commands themselves
oh. right. jda chewtils just adds the possibility to list roles
that can use or cannot use
depending if you set it to whitelist or blacklist
one of the few things I like.
but again, that lib doesn't let you
like send custom messages
or do nothing
when they don't have permission
literally just calls this terminate(event, client.getError()+" You must have a role called "+requiredRole+" to use that!", client);
that's one of the reasons I Wanted to do my own lib
Would be interested to work on it with you
Tho haven't really made any APIs or anything, not sure how much of help I could be
Would be interesting to learn something new tho
my problem is not even like making it
just working in a team.
you would just want to kill me then kill yourself after working with me for like 1 day
lol
Nah, I had worse experiences in uni
where I do all the work and I have to beg others to do at least a tiny bit in my group
like. I have a very bad practice of starting work on something, doing small changes, not finishing, and just starting on other stuff at the same time.
like today I legit changed 20 things in my bot in just 1 commit
and also. I really don't test enough my shit. I sometimes commit before fully testing or even testing at all
honestly, same
and the worst part is I am aware of all these flaws, and do absolutely nothing to improve. ๐ฅฒ
\๐ง
my pc thinks its a marshmallow
dis
lol
yeah. those hoes are quite rare
also. they are not usually foes.
so it would be very rare to see a foe hoe.
If you decide to work on it, let me know, I'd be down to team up
work on what?
๐ฎ
I once started a project called BlitzMenus. supposed to be an alternative to DeluxeMenus but better and in kotlin.
did I just miss something
Never really had much good projects with other people, my uni tries way to hard to push the group work, but everytime I just had to do everything myself lol
M0dii
huh
hire for what
I'm trash at coding
fuck u
Not sure if you want that
have you seen my code lmao
you haven't seen mine. and I'm a "<@&346970042854014978>" lol.
jk. it is not that bad.
๐ฅฒ
https://github.com/Conclure/cityrp-core
free to blame me
https://github.com/M0diis?tab=repositories
run through some repos and have a good laugh
same goes for me
L i t e r a l l y, g o o d, c o d e, https://github.com/M0diis/VenturaCalendar/blob/main/src/main/java/me/M0dii/venturacalendar/VenturaCalendar.java
the allman coding stile.
stile
yes
sey
ies*
*sei
that is what I meant to sai.
I just had a stroke
I do not have the i kei.
u ded will eat
?
eat ded u will
?
will u eat ded
?
I can just smell the sarcasm
5 staff members just got pinged in #placeholder-api. cool.
little too big function
(I was one of em)
๐ฅฒ
well to be more specific, he mentioned all 5 trusted members that are online
I tend to make something first, if it works I don't touch it for like month or two till I get around polishing and refactoring code lol
trusted
๐ฅฒ
I know someone else that does exactly that.
oo I mean the fact that u do refactor and clean ur code is greaaat
and when I get to refactoring the code I literally rewrite like 75% of it and maybe end up just giving up on finishing updating it. lol
hehe
lol, been there

btw. fun fact. I have a spigot plugin and I used to recommend paper over spigot on the plugin page. spigot removed my recommendation and someone gave me a 5 star rating after. I Think that guy might hate paper.
fair
and rule 7.2.2
ye
but.
I should be knowledgeable about those hehe
there are actual plugins on spigot
that warn you if you're on anything else but spigot and also sometimes don't even give you support.
oof
the guy now proceeded to message me. (the one with the ping)

sometimes
welp. going to watch 1 or 2 more episodes of Rick and Morty and going to go to bed after. good night boys.
Gn
btw. R&M season 5, totally worth going to jail for. just saying.
ty for restoring my confidence lol
wh-
Steal 1 mil for me and you win 100k
Ez capitalism
Why antvenom??? :(
Why must you go the dkim19375 way?
Why would they care about old versions lol
Yeah. Title is pretty bad. Video is not as bad lol
It will probably generate a lot of interaction from angry people only reading the title lol
It is all a strategy
Eclipse ๐
btw uh @ocean quartz sorry for ping ;-;
but do you know why this happens? https://paste.helpch.at/huhukitube.cs with TriumphConfig? I'm able to reproduce it, along with the server i'm making plugins for
code: ```kt
object CoolConfig : SettingsHolder {
@Path("channels")
val CHANNELS = Property.create(listOf(792863255168155681L, 891806920627871744L)) // setOf doesn't work either, gives the same error except that it's LinkedHashMap instead of ArrayList
}
Other pieces of code in the stacktrace:
- `CoolPlugin.kt:48` - Constructor#newInstance, which is probably making a new instance of `CoolModule`
- `CoolPlugin.kt:37` - variable (as this is a lazy variable)
- other CoolPlugin stuff in stacktrace - I'm pretty sure you can figure it out by the names \;)
- `CoolModule.kt:40` - ```kt
val config = YamlFile(CoolConfig, File(dataFolder, "config.yml"))
I've done setOf and listOf in configs before.. I'm not sure why it won't work this time
Try mutableListOf
nope, still won't work, gives the same error :(
btw hashSetOf & arrayListOf doesn't work either
Hmm just a sec imma give you a solution in a bit
๐ฎ ty
Dkim. U suck
ik, that's why there's matt :D
https://paste.developerden.net/rutarypazi look what i found ๐
eh, thats really not that bad for someones first java program
cant expect them to do anything more complicated
@half harness Do:
@Path("")
val CHANNELS = Property.create(ListHolder())
data class ListHolder(var channels: MutableList = mutableListOf(792863255168155681L, 891806920627871744L))
ok so im helping a server own with some deluxemenus config files and i want to make a deluxe menu to show case kits but i want it to also show three different items in a slot depending on status. i need an item to show its unlocked, and an item to show they dont have the perms, which i know how to do, but i also need an item that shows the kit is on cooldown
Not configuration help
sorry
It's okay
uhhhhh okay
yo anyone free and want to try to convince Citizens to use gradle?
(well, Sentinel first)
not worth time
You use gradle now?
Good fucking luck, knowing the dev
ah yes, mcmonkey
nah, we were having a good convo about using the system scope
I coulden't find any alternative besides gradle
so I said use gradle
I need ideas for a discord bot name
General utility stuff, moderation, xp system maybe
If it was a public bot i'd agree but i'm making it specifically for my discord server
Harry
Hmm, for some reason, that name reminds me of another bot
Maybe Bee because it goes with your server name kind of
Or something like that
Not bad, i'll consider it
I was just gonna do something like hibiscusbot (which is what it currently is), but our discordsrv equivalent bot has the same name, so people get confused
Oof
๐
Why CC larry?
Because I once talked with him about discord bot names and I mentioned Ava
He was like "hurr durr no"
Ah, got it
Originally was gonna be Kayak (because i was forking speedboat), but it doesn't have slash commands and I don't feel like porting the bot to using slash commands
I mean could still name it that
Sure but it would make more sense to be named kayak if it was a fork of speedboat
(speedboat is a fork of rowboat)
Oh boy Bukkit moment
"PaperSpigot"
I remember back when it was actually called that
Fabric's theme is nice
First time i saw yarn i was like "fabric runs nodejs?" lmao
Lmao
"future of Spigot" - md-5
๐คก
Ooh I have one.
BetterBarry
Barry, Harry, Larry, Terry, Jerry, Kerry, Perry, Merry, Berry, Carry
Terniary
I do like the Bee name actually, considering it
QueenBee
I need to think of a bee pun
I canโt
This is bad
Im just going to sleep now
I'm editing language files, maybe i'll sleep once I do ~200 more lines
Elwood, Walton, Wynn, Ernie, Earl, Dale, Doyle, Daryl, Dan, Dalton, Don
Name it the diminutive of Richard
@wind patio there is no way for me to not reply to / commands right? Like delete them or something.
I would want to execute the code but without any reply.
you could set it to ephemeral so only the user who sent it sees the output
and possibly delete it shortly after
yeah still. not the best option. I'll just send a confirmation message for now
or just reply and delete immediately, not sure if that works and if it'd look janky
I'll just delete it like after 10 seconds. it will be sometihng like "Command executed successfully" or idk.
looks like I can't even delete ephemeral messages.
this is fun.
cool
oh yeah
* <li>Cannot be deleted by the bot</li>
* <li>Cannot contain any files/attachments</li>
* <li>Cannot be reacted to</li>
* <li>Cannot be retrieved</li>```
cool
thanks github this is very good
Do it for ChatColor2
Does anyone have Java 17 in use yet? Can you test if QuickJS works on Java 17 in the JavaScript Expansion?
Oh hi Glare
Thats nice em
I consider dropping spigot support and only support paper, any second thoughts on the decision?
no second thoughts
Definitely makes your life easier
@obtuse gale You're almost top 10!
1k away from bardy
woah
bout to lose pretty pink/pruple color ๐ฆ
conclure i do not care
๐ฆ
beige tho
That isn't really beige lol
that's a light salmon

No, that's lighter amaranth mixed with dark shade of eburnean
oh
Not Spanish Ping when
still beige :p
Soonโข๏ธ
brother it ain't beige
๐
Men and their sense of color ๐ฉ
Men only see 5 colors
according to science
All of our nicknames are basically white

Men only see red, green, blue, white and black, no more no less, confirmed by facts and logic

If you see red, green, and blue, you already see all colors 
That's where you're wrong
๐ฉ
ยง6?
๐ฅฒ
I can, let me install the QuickJS thingy
and the js extension
Epic even tho I don't care
tell me, wtf is quickjs?
I like that decode from stream. Will make working with skull textures a lot easier.
Idk, some implementation of a JS Engine.
how do I install it?
It's inside the JavaScript Expansion
So on a server with Java 17 and PlaceholderAPI just /papi ecloud download javascript and /papi reload or whatever the commands are.
Then idk why the person reported it not working.
Want to do me a favor and respond to https://github.com/PlaceholderAPI/Javascript-Expansion/issues/49 and provide them your current setup and tell them that it works for you?
ofc, give me 20m
No rush, I have to get back to studying.
np
so posted a comment on the issue, the thing is that I do not have ChatControlRed
so I cannot confirm if the issue is from PAPI or CCR
sorry
๐
how would you call multiple data?
Is datas fine? I Don't even know what question to ask lmao.
what is the plural of data. that is what I wanted to ask
data
data
data is the same
singular or plural
nah nvm. according to some websites datum is the singular and data is the plural.
welp. didn't want to use data and data. will find something else.
or I guess I Can use datum
The plural of fish is fishes โบ๏ธ
but only sometimes
what if fish is the plural and fishum is the singular?
and you just never knew?
lol
hmm
so
this won't really work now that I think about it
because I have a class that stores data. so a list of data would still be data.
just gonna call it dataList and data
also. is this like a common practice? or is this something that is usually a no no?
class SomeClass(
var1: Type, var2: Type2,
var3: Type3, var4: Type4,
var5: Type5, var6: Type6,
)```
I feel like it is more readable than just having them all in a line
especially when you add private val to them. lol
I prefer that over a huge single line tbh
why?
why would like breaks for readability be a bad thing lmao
Because a huge line means I'll probably end up having to scroll left/right, which is fucking annoying.
Classes with longer headers should be formatted so that each primary constructor parameter is in a separate line with indentation.
found this on the kotlin website.
that is what I Did at first but wasn't sure
I missread that lol. I thought you said I preffer a huge single line lol.
that is what I was like Why? xD
yeah. I agree. and kotlin coding conventions agree with me. lol
But do you read it datum or datum?
what?
I think I actually read it datum so 3rd option
It's a joke about the two pronunciations of data, smh
well. you see. I pronounce data as data. because I'm cool
my poor laptop has been running for a while. it really could use a restart
lol
please do not ping me
@distant sun ^
with all due respect, heck off
๐
@prisma wave I'm sorry, i won't ping next time
thanks man!
@prisma wave same!
No
Noe
Add to DeluxeMenu option automatically fills slots that will not be set, eg: windshield
?
@distant sun ?
how about you don't ping staff members, you ask in just one channel and also in the correct one? (#general-plugins) thank you.
Banned
lol
bri ish innit?
init {
}
I say day-ta and Iโm American
Yeah i think it more of a per person thing, i've seen a lot of americans say day-ta and i have seen brits say dah-ta
Itโs actually datas
yo. where can I find the spigot source code?
if would people want, could they release new spigot version before md_5 do it?
well not spigot but a fork yeah.
don't think md lets everyone just update it without him going thru the code.
then why paper dont do it for example? why they dont create plugin compatibile version asap before spigot release and then just change things to be fully compatibile with spigot after spigot release
papa had fok



