#dev-general
1 messages · Page 590 of 1
FiNiSh hrypton!
hey you remembered that I still have to finish my motherfucker all-handler, fuck
i have been working on an ANTLR grammar to try and get a prototype out quicker

prototype = stable release 😳
SO TRUE
exactly
but
yeah
if we can get a functioning parser then we can speedrun an interpreter, iron out any issues, and then make a compiler
hi
hi
hi
hi
how is everyone
Great Mr. Lemmo
pretty good
i submitted by uni application yesterday 😎
Mr lmao
Mr lmao?
BibleThump
you spelt lemmo wrong
nice
oops
You're not in uni?
Imagine not
so i have this
but it gives me like a random letters and sometimes a random name
@SubscribeEvent
public void onEntityJoinWorldEvent(EntityJoinWorldEvent event) {
if (event.entity.getEntityWorld().isRemote && event.entity == Minecraft.getMinecraft().thePlayer) {
EntityPlayer player = (EntityPlayer) event.entity;
ArrayList<String> name = new ArrayList<>();
for(EntityPlayer p : Minecraft.getMinecraft().thePlayer.worldObj.playerEntities){
if(p == null || p.getName() == null) {
continue;
}
name.add(p.getName());
}
player.addChatMessage(new ChatComponentText(name.toString()));
}
}```
ig that random letters is entity uuid
maybe, idk
uuids are not formatted like that
ok then what is it 😳
could be NPCs
If you have any NPCs, they are all EntityPlayers
Does anyone know of a good in-depth world generation tutorial? I'm trying to inject custom structure bounding boxes that are farmable
how do i setup a client initilizar?
this is all i hahve in my main class
package com.tomsipsoncurry.vanillaplus;
import com.tomsipsoncurry.vanillaplus.registry.ModBlocks;
import com.tomsipsoncurry.vanillaplus.registry.ModItems;
import net.fabricmc.api.ModInitializer;
public class Vanillaplus implements ModInitializer{
public static final String MOD_ID = "vanilla-plus";
@Override
public void onInitialize() {
// This code runs as soon as Minecraft is in a mod-load-ready state.
System.out.println("Hello World!");
ModItems.registerItems();
ModBlocks.RegisterBlocks();
}
}```
apparently i need a client initializer for color providers fabric btw
Hey guys I wanna have an API for my plugin but I want it to be mostly interfaces. Is there any way to deny access to other classes?
wym deny?
Check out the fabric wiki
Using protected modifier
Or anything lower
To not expose certain things
package private :^)
Provided to YouTube by TuneCore
Will Carry On · MELISA
Will Carry On
℗ 2018 TommoProduction
Released on: 2018-08-04
Auto-generated by YouTube.
meh
https://i.imgur.com/iRWpLtG.png maven bad (still continuing) ;-;
welp it just stopped at 5 mil 17 sec
anyone has leak parkour
stop spamming 🤦♂️
stop acting like idiot and there is chance that somebody will help you
?learn-java
Online Courses:
Online courses are also great for learning java. Some websites that offer them are:
- Coursera - Free unless you want a certificate
- PluralSight - Great courses from what I've seen. Mostly Paid
- Udemy - Never used them myself but they seem to all or at least most be paid.
My first ever course was one from Coursera. - I can say it was pretty good at introducing me to the programming world as a whole not just java.
Oracle Docs:
Oracle docs can help a lot at learning and understanding java:
- Start with this,
- Breeze through this (skipping stuff that doesn't seem relevant like bitwise operators),
- Hit this.
They're the first three from this larger thing which you should definitely go through overall. But those three should be enough for slightly better understanding of what is happening here without feeling like a huge time sink.
That one is a small part of this larger site wherein "Essential Java Classes" and "Collections" also have good useful stuff
Other services:
Some other cool services that will help you learn java are:
As you can see there are plenty of good ways to learn as long as you're willing to invest the time. Have fun learning!
Should I ever make plugins with Kotlin?
Explaoin yourself
kotlin superior
if you like it, yes
Is it compatible?
yes
if you prefer Kotlin over Java, then for sure
99.9999999999999% of java things are compatible with kotlin
and spigot falls in that 99.9999999999999%
What's that 0.0000000000001%??
lol
whats a good site to generate a random password?
make chits with all alphabets and pick randomly
Hmm
dont use site generated random passwords
just code it 🤷♂️
thats effort
but yeah smart
thx will have a look at that
🌝
just paste something existing 😏

ah someone help me
https://paste.gg/p/anonymous/4f7fd56523f746318ec848016543efe2
error:
cannot access org.bukkit.ChatColor
Tbh password is slowly becoming unneeded, 2fa is all you need
or use google authenticator dude
:
that's 2fa
ye lol
ye thats what i said
this website called blue spigot doesnt have 2fa /s
blue spigot??? it exists?
ngl I started using 2fa everywhere, and people be out here setting their password as password123
imo authy for example is better option because you cant restore google auth (except backup codes but i dont remember where i saved codes after year after adding 😅 )
it uses same protocol or how is it called so its compatibile
that it has 5$ worth bitcoin
someone help me
no
i mean the normal vanilla server jar is a thing
what do they have?
a lot more like custom mobs and icons and mobs and a lot more flexability
no mobs btw
I mean you can still add that in to the normal vanilla jar
just a bit more complicated
no but like i really wish they made the own spigot like with a lot more freedom
like you could have an external bootstrap jar which could have something like mixins which you use to inject custom stuff into the normal shit
like that
minecrafts system is quite decently coded such that with mods its not too hard adding new mobs etc ¯_(ツ)_/¯
hmm maybe
Congrats, you just reinvented Fabric
I mean Paper is amazing already
idk
a lot of people are saying allay
and its pissing me off
the only thing i can think of
is a
all of the three are fine imo
Let me present you to "data packs"
no way what is that
With every new version Minecraft is becoming more and more data driven
Myes
Basically
You can do amazing things with them already
And even things you cannot do with spigot plugins such as custom dimensions
what new mob will theoretically add most of new things for plugins devs?
Can anyone help me get my old account back. It asked me last night to verify and I tried but I guess it's so old it's not connected to anything .
Or atleast anything I remember . I really need to retrieve it
So it kicked me from it won't
Let me get back on
oh shit
And just like that, a polar bear becomes a grizzly bear all with the power of Blockbench – a creator-made tool so good, we even used it at Mojang to create the goat and the axolotl!
104
does this work with java and spigot/paper servers?
With resource packs changing the model of an existing mob sure
how specifically?
so pretty...
public fun interface Ticking {
public fun tick()
}
public object HookTickManager {
private val toTick: Queue<Ticking> = ConcurrentLinkedQueue()
private val theTicker: Thread = Thread {
while (true) {
Thread.sleep(tickRate)
toTick.forEach { it.tick() }
}
}
public var tickRate: Long = 50
init {
theTicker.run {
isDaemon = true
name = "Hook Ticker"
}
}
public fun register(ticker: Ticking) {
if (toTick.isEmpty()) theTicker.start()
toTick.add(ticker)
}
}
ew
isnt it gorgeous?
Anyone know what packet is called when I do Entity#setCustomName?
It should be Packets.Server.ENTITY_METADATA with protocollib
ty :D
Np!
oh mah god
mcdev plugin got updated sometime and now it supports completions for synthetic methods when using mixins
i'll never have to write this myself by hand ever again
It has done that for a while no? I remember trying it some time ago and it was completing ;o
for normal methods it does, for synthetic methods (not in source but in the class file, things like lambdas and stuff) it didn't
it is
it also used to highlight it as red because it "couldn't find it"
big surprise
@quiet depot I finally found the root of the issue!!
God that took me way too long lmao
It's the Collectors.toMap
what issue?
The parameter description loses its order on docdex
Because collectors.map will map it to a hashmap
does dd use guava?
try using the ImmutableMap.toImmutableMap collector
it uses the builder so it should retain insertion order (in this case, the order the elements streamed in are in)
Testing now
Yup nice tyty
Don't think it's needed, i'll wait on Piggy to confirm though
2 days debugging for 1 line change, nice
otherwise you can just use Collector.of(...) tbf, it's not hard
That's what I was doing before you mentioned that one
Now for the final test
Still broken 
Fixed :pepehappy:
The parameter description is in the wrong order
Oh wait
You mean what was the second issue
It was the deserialization
Both had to be changed
Beautiful
lol
Sad news for Piggy though, it requires all docs to be re-index 😩
pepebla
can we get pepebla in this server pls
pepebla? 
lmao
This is quite cool
https://www.youtube.com/watch?v=IS5ycm7VfXg
https://www.patreon.com/szeloof
http://sam.zeloof.xyz/second-ic/
Check our Jeri Ellsworth's amazing work making the first transistors and logic gates at home https://www.youtube.com/watch?v=PdcKwOo7dmM&t=1s
Dipping a rock into chemicals until it becomes a computer chip
Upgraded Homemade Silicon IC Fab Process
https://paste.helpch.at/pasicoleka.cs
aaaaaaaaaaaaaa
where in the world is bedwars coming from?!
isn't relocating supposed to prevent this?
might be because those entities were already patched by bedwars
anyone know a way of how i could identify specific armorstands without nbt api? 🤷
What about this one?
GitHub vs GitLab?
What are the advantages of one over another? Currently using GitHub.
pepeola
Gitlab is ugly and less people use it
woa
i just found out how good spark is 👀
timings would only say about where it is
but spark literally shows it like a stacktrace
🥲
opinions? https://i.imgur.com/I4LZAY5.mp4
Wait until you find out what Flare is
link?
Please select a plugin,
1️⃣ - SpaceFlares/Envoys - Extremely Configurable! (1.7.10 - 1.15.2) [97 Downloads]
2️⃣ - AirdropFlare || Crates from Sky || Rewards [53 Downloads]
3️⃣ - MiningFlares [167 Downloads]
4️⃣ - Pixel Flares [100% CUSTOM] [EULA COMPLIANT] [IN PROGRESS] [139 Downloads]
5️⃣ - Redstone Flare [117 Downloads]
lol
Hold on let me generate one, it's the profiler in Airplane https://blog.airplane.gg/flare
Flare is the quickest, cleanest, and easiest profiling suite for optimizing your Minecraft server…
This is on my test server so won't really have anything useful https://flare.airplane.gg/89ed659d
oh-
Only $5 a month
i dont think its that useful to be paid 👀
spark looks identical without the memory section
and for the chart i guess timings has it
I believe there some pros compared to spark but I don't know what they are, i'd have to ask the dev
ooh it has plugin view
Yeah I have to find out more about the advantages but I know one of the good things is that it runs async
speaking of async
i went from this to 800ms just by putting some of the code async 👀 (and it still works async)
🎉
lol
I think Minestom is fully async, I was planning on using it for a lobby/queue server at some point
Flare looks like a theme for Spark lol
Flare runs async by default, compared to Spark which does not https://spark.lucko.me/docs/misc/Using-async-profiler
I think running async makes it more accurate (do not quote me on that)
btw in my config
should i make papi parse async default true or false
¯_(ツ)_/¯
lol
im trying to reduce lag 🥺
💀
is papi thread safe?
Depends solely on the placeholder implementation
I mean, it says it does if it can :d
If it can't, well, it can't
So it doesn't
Lmao
It will be used automatically if your system supports it.
yea
lol
yes
my lazy ass hasnt done anything this month
Shared hosts (a lot of them) don't support it
better go quick
Was waiting to ask if the Map being immutable is fine
ok....?
That isn't Spark's fault
Does flare work with those?
Yes
It doesn't really matter anyway though - I'm just trying to mention what I think the advantages are
🤷
There you go https://github.com/PiggyPiglet/DocDex/pull/52
I love the 2 days of debugging and searching for 2 lines of changes 🥲
I was also part of the solution😌
^ 😌
Oh yeah i know, it was fun though
d;spigot player#playsound
void playSound(@NotNull Location location, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch)```
Play a sound for a player at the location.
This function will fail silently if Location or Sound are null. No sound will be heard by the player if their client does not have the respective sound for the value passed.
volume - the volume of the sound
sound - the internal sound name to play
location - the location to play the sound
pitch - the pitch of the sound
category - The category of the sound
wot
wot wot
void playSound(@NotNull Location location, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch)```
Play a sound for a player at the location.
This function will fail silently if Location or Sound are null. No sound will be heard by the player if their client does not have the respective sound for the value passed.
volume - the volume of the sound
sound - the internal sound name to play
location - the location to play the sound
pitch - the pitch of the sound
category - The category of the sound
lol good plan
Didn't Matt mention something like you need to reindex the docs?
Lol
Whats the change?
Parameter ordering
ohh
The descriptions ordering matches (or, should, lol) the method signature's one
oh i know why it's not working
need to update the bot too
forgot they shared the same type adapters
d;spigot player#playsound
void playSound(@NotNull Location location, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch)```
Play a sound for a player at the location.
This function will fail silently if Location or Sound are null. No sound will be heard by the player if their client does not have the respective sound for the value passed.
location - the location to play the sound
sound - the internal sound name to play
category - The category of the sound
volume - the volume of the sound
pitch - the pitch of the sound
yay
nice
Ayy nice
Hey guys, anybody know how to get the protected field of a java super class in Kotlin? (and its instance?)
I have the class TableViewSkin.java which extends TableViewSkinBase.java, which in turn has a protected member called flow of type VirtualFlow<I>.
My class has access to a TableViewSkin instance in Kotlin, and I need to get access to this member flow and save it to a variable. I know there is reflection like getDeclaredField and set accessible, but I am a bit at a loss as to how to apply this to a super class and get the actual object behind the field.
not all mature yet
oh
Time to decline them 
lmao
done
time to wait, forget that I ever ordered a tshirt, be reminded in 5 months by one of you guys when you get it, then forget again and never get it.
lol
btw how does spark work? like how come you have to record it on a length of time?
so what time does it show in the spark viewer?
average?
Anyone know a tool that would help me copy my HDD to my SSD? I am dual booting Windows 10 and PopOS and the tools I found mostly can migrate just windows and there's some that can migrate just linux but nothing that can just make a 1 to 1 copy of my entire HDD.
found a couple that claim they can do this but they all look like adware or just let you install them then ask you to pay for you to use them.
the only one that actually seem to be able to do what I want for free is Clonezilla but going thur their documentation, got 0 clue how to use xD
What SSD is it?
Because most of the companies that make SSDs give you a free tool to Migrate and Clone.
I know my Samsung M.2 came with a special tool.
I found one a while ago that I used when I decided to install linux as my primary os
had to move windows to my other ssd
let me try find it
can’t you just use diskpart
no clue
the app I found allowed me to clone windows to another drive, even though that drive was smaller than the original
no complications at all, I could boot directly into that drive and everything worked perfectly
think it was this https://www.easeus.com/backup-software/tb-free.html
EaseUS Todo Backup Free is an award-winning and easy-to-use free data backup software for Windows 11/10 users to back up photos, music, videos, documents, system, etc. for PC users.
if not that in particular, it was definitely by easeus
and I didn't pay for it
not sure if it was a trial or not, I don't think it was
samsung. it does give me a tool but only works for windows
will do. I remember I tried using another of their products a while ago. Think it might've been a disk manager to make new partitions or whatever. the app worked and it let me make new partition but when I ended up pressing "Apply" it would require me to pay bcz I had a "free trial" lmao
so basically wasted my time
rip
I remember having to fuck around with their products for a little while before I found the right one
iirc they have 2 products that can do the same thing
one is a free trial and one is fully free
the one I linked can do it, but idk if it's free or free trial
when they have ms you know its the good stuff xD
btw is there any faster method of checking if an entity is valid besides doing Entity#isValid?
since i don't think theres any like "EntityDespawnEvent", is there?
yes. by asking in #development xD
oops
if it isn’t expensive might as well just pay, had to convert old dvd and cd drives to mp4 a few months ago and was like I could just pay for this and not waste my time or have this take like 2 days, ended up paying just to save tim e
its an exe... fuck.
excuse my typing
its 30$. I ain't got 30$
I nearly did pay till I found the free version
well yeah being broke does not help
bcz why put the real price
blotz just use it in windows then
on the website
yeah. my windows is not really working rn xD. slow af
crashes a lot
basically back to what it was before the clean install
inb4 drive is corrupted
reminds me of an old server I had running in my house
came from like 2008
so slowly the drive would corrupt and I’d have to have it fixed and lose some files
clonezilla. but can't figure out how to use it
and it repeated and repeated lmao
IDK. Tried a fresh reinstall on the drive and it worked for a while then it started doing it again
if it starts corrupting is the drive kaput? or just software errors leading to it?
at this point I might just use the SSD and manually reinstall POPOS
but that will take another 2 days of my life 😦 so I'd have to wait until next weekend
clonezilla is very popular
even if there's no official docs
there's lots of info out there
just find a tutorial
then just watch a youtube video
if clonezilla fails you I'm just reading about this thing called "Timeshift" now
have a look at it if clonezilla doesn't work out
I think it can do the same stuff
oh. my. god
more oriented to backups than cloning but I think you can (mis)use it for cloning
this entire time I Was so fucking confused bcz the docs said I need to have clonezilla on my external usb device and all this time I thought they meant on the other ssd. turns out you need the ssd and an a thumbdrive on which you need to install clonezilla
that makes a lot more sense to me
how do I report someone?
can someone explain me in detail whats the differrence between plugins and datapacks ?
@cunning oriole message @compact perch
btw. piggy. ended up buying a laptop for 750 USD. Its an ASUS vivobook 15 X515EA. i5-1135G7, 15.6 inch, 16 gb ddr4 RAM, 1tb of ssd m.2.
pretty happy with it
also has the intelr iris x integrated gpu which is actually pretty ok.
well actually good
not ok
Not good for gaming but its fine for anything basic like Programming/Designing etc.
Then thats fine.
I mean it does run minecraft at 140 fps which is the only game they really play
but yeah wasn't looking for anything gaming related
nvme
The same position as me, I have a MacBook Pro & a desktop gaming tower, I ended up giving the tower to my mum, because I don’t game really ever.
So for me, programming + MC when needed easily works for what I need
https://twitter.com/heychazza/status/1449770251994947589?s=20 pls, helps a lot
Developers, when creating repos on @github, what is your preferred style with the slug?
Slug being, https://t.co/2fHZAtiXth<username>/<repo>
Of course, it's all personal preference, but I see the pros and cons of each. 😅
lower-case superior
Haha, just curious to see because everyone has their own view on it
It sounds silly but it’s still an appearance
what is the default extension for hocon, is it just .hocon?
.conf I think
https://github.com/HeyChazza?tab=repositories just made a ton of my old/legacy projects open sourcr
Which program would you guys recommend for SQLite?
A program like XAMPP for MySQL
Or something
hocon 💪
the command line 🙂
altho i use adminer sometimes, dunno if it does sqlite tho
Does SQLite not use execute() for preparedstatements like MySQL does? I see this used in an example, which I havn't used in MySQL
PreparedStatement statement = connection.prepareStatement(
"CREATE TABLE IF NOT EXISTS `" + RankupPlugin.tableName +
"` (`uuid` VARCHAR(36), `rank` INTEGER, `prestige` INTEGER)");
statement.execute();
statement.close();
It's using execute right there?
Yes but in MySQL I would use executeUpdate I think?
Or is that the same
I'm kinda confused on how execute works and what the different kinds do
Well it depends. I suggest you read the javadoc for executeUpdate, executeQuery and execute. That's how I got to know what each one is for and when to use which
IntelliJ ultimate / datagrip if you have it
I've got neither
Hmm, I think I have an idea of how they work now
But can't see how you would want more than one resultSet in my example, since that's what just execute() is used for
Are you a student?
Yeah, but they do not have my School listed sadly
Doesn't matter
Either use a school email, or submit any proof that you're a student
Any documents work
Hmm alright, I'll give it a shot, I just need to make this first since I've got about 2 hours before it should be finished lol
Yeah yeah just making you aware
I asked my teacher to write a letter that basically said "he goes to our school" and that was good enough lmao
Lmao, I've got some documents that proves I go to the school, I'll just send those.
Thank you
Do y'all not have student IDs lol
Oh yeah I actually do
I do now but my old school wasn't on the list and didn't have a .edu email
I just wrote a basic readme.md of my lib sc-cfg, and I would appreciate if you guys could give me your feedback: https://github.com/SecretX33/sc-cfg/tree/develop
You don't need a .edu email, so long the domain is registered to the school
What kind of whack ass school was that then
Secret maybe make it moshi compatible?
But very nice
I have added it to my try out list (;
still on development though, JSON will throw an exception for now haha
abstraction goes brrr
so im looping in the players inventory how do i set a itemstack as another?
@EventHandler
public void onJoin (PlayerJoinEvent e) {
for(ItemStack itemStack : e.getPlayer().getInventory()) {
if(itemStack == null) {
continue;
}
if(itemStack.getItemMeta() == null) {
return;
}
MasterItems masterItems;
if (ItemUtil.isMasterItem(itemStack)) {
masterItems = ItemUtil.getMasterItem(itemStack);
if (masterItems != null) {
ItemStack newItem = masterItems.getItem();
//set the itemstack in his inv to another one
}
}
}
}```
thanks, it took me quite the brain power to think about all that abstraction
I thought of doing something similar just me being superiorly lazy
But now I don’t have to 
Is an edu mail enough?
still poorly documented, but I promise I'll write an entire wiki for it soon™️
yeah he said a .edu so I thought he means the tld .edu
Ahhh nice, I've got one of those
When is anyone even gonna check my report, prob more ppl will get scammed. I got sacmmed 60$ bruh
when they have time probably. it might also be discussed already.
Hm ok
oh man. I should really start thinking before I randomly start working on something. this is not the first time when I just randomly start working on a project and end up with a full rewrite so the whole time I can't even fix existing bugs until I finish the rewrite bcz I didn't make a new branch...
I mean fix bugs on the live product
How can I fix this? It happens when a method is run too many times inside a while loop
https://paste.helpch.at/iboroximov.md
while loop in spigot plugin 🥶
while (true) {
// die server lol
}
Ye not sure what to use if not a while loop
Oh yeah fak, true
what r u doing?
u can use bukkitscheduler
to run every tick
aka 20 times per second
while (server.isTicking()) {
}
Are there any React/Vue frameworks that can allow me to create a UI that looks and functions like this?
Definitely possible with both, but probably a nightmare
Maybe a nightmare but I gotta :p
Any idea how that UI in the video was made?
I'll reupload w/o download
Looks like a lib for graphs
looks like a css grid to me
make the grid, then use some logic to snap where elements go
To get it as complex as that it'll be a lot harder than just that
well any given element is easy enough, you'll just have to make it by hand / with its own library
then use grid or flex depending on how you want it to feel
or both
then make row sizes changable
Yo, is anyone smart with using bungeecord for minecraft serverS?
Probably better to ask in #minecraft
oh didn't even see that chat.
who can do whmcs things here?
git stash 😌
ELM
ELMO*
yes
Is it normal for my plug to be 3MB when shaded with reflections package?
Ew
I'm not making my plug 3 MBs bigger just to flex on people that will decompile my jar that I can register all the events with a for loop
That's a great idea. Imma do that
why do u need reflections to register events with a for loop
i am confused
why not
true
It's a bigger flex if you do it yourself by scanning the jar file
Yas!
has anyone tried any of the ai auto complete IDE plugins? how well do they work?
Codota is cool, but it merged into Tabnine which doesn't work so well for me so I still use Codota
Is there really a reason to use codota/tabnine? In my experience IJ's auto completion works more than fine
It's not like I rely on completions, most of the time I start typing the thing I need and just tab/enter to adjust for caps
For me the only advantage of codota is that instead of just autocomplete it gives me completions based on things I do often which actually does help a lot
For example if you do item.getMeta() a lot, it'll slowly become the top one so item.g would instantly be meta
And adapts quite well to what you're doing
do you have any intellij plugins that you recommend?
strange
Nyan progress bar is a must have
Literally the most important plugin
understood
Rainbow Brackets
It's not strange at all, you're probably minimizing
SO TRUE
Doesn't IJ do that too? Maybe it's more "session based" but I'm fairly certain it does something based on usage frequency too
Like for real not even joking, Material UI and icons, Nyan progress bar, Rainbow brackets, Discord integration, and GitToolBox, are the main plugins I always install
so if you dont mind imma go and punch my head to understand NMS
From my experience it's not as good as codota

git tool box?
is that always displayed or?
ye better
Maybe
It's good enough for my use cases so I lol anyway
Only when you click on the line
But you can change it i think
ah nice
Oh yeah and also adds git info to files
Branch name and how many commits ahead it is
couldn't they use an uglier symbol lol
You can change xD
⬆
ty. I like the default theme and I opted for a different progress bar but I got the others.
WHAT
😬
You HAVE to get Nyan cat progress bar
material ui*
the one i got is more personal to me ;)
Also String Manipulation plugin is pretty cool too
what now
lol close
if you are talking about keybinds to turn a string upper / lower case, isn't that built into IIJ?
You select something and it gives you option to change case, repeat, encode, escape, etc
Ah nice
that's nice lol @ocean quartz
Yeah
keep cool things for you, noob
Edit the Nyan plugin to instead of having rainbow have the trans flag, best of both worlds
Let me introduce you to structural replacement
LMAO
WHAT
🥴 🥴 🥴 🥴
what is even inappropriate about that 😂
no
Kangarko uses notepad 🥴
are you surprised?
what the fuck
no
also, where is that from lol

nice consistency with the brackets too 👍
no, the ss
Maybe, but I feel this is way more powerful, it does things like add imports if needed, code cleanup, formatting, escaping
It's not your every day Regex find and replace
It does have a quite steep learning curve
Seems cool yeah
Uni is fun, today I was very busy, couldn't do anything for work and now I have to stay over time to finish my tasks 🥲
Ain't that cool
Spent 6h doing nothing
And at the end we had a teacher yelling at us lmao
If you had a problem she was like "obvious it doesn't work, silly, you did something wrong, idk what but you did"
@obtuse gale Here is one example of what imo is better, it fills in the method, while IJ's doesn't
Fill in as in possible arguments too?
Like, i have a list called arguments, the method takes a list, and the parameter is called arguments so it'll associate both and automatically add the list there
Yeah that's fair, IJ does that but for very basic/common/"predictable" things, e.g. Stream#collect (can complete with different Collectors), String#toLower/Uppercase (usually fills in Locale.ROOT) and maybe something else
So yeah that's neat
Sir this is #dev-general
i'm new, sorry
Skript 🥴
ConsoleSpamFix or smth should do the trick
It isn't because it's just for 1.16.x
Does it not work? Have you actually tried it out?
If you need something exceedingly customized then #893353492075413524 / #893353492570312704 is the place to go
But from what I know CSF should work fine (I haven't used it in literal years tho)
It worked on 1.16.5
I updated on 1.17 and i get an error
Also it's plugin related so #general-plugins, #development is for programing related stuff
Ok, sorry for disturbing
No worries
It's okay no need to be sorry
oops discord rich presence just crashed my intellij
Discord integration > Discord rich presence
noted
u don't?
🥴
What is the problem with using async in some examples?
Because it will modify a value after you might need it? Or what
Uh sometimes doing stuff async can be hard to test
Personally had some problems with atomicity
But then we got the fact that you might be dealing with non thread safe stuff
What would an example of “non thread safe” stuff be?
Maps?
You know how code is built up of super small instructions
Like store value to variable, get value of variable, sum 2 values etc
Ye
That depends on the implementation of the Map, for instance a HashMap or a TreeMap are not thread safe, but a ConcurrentHashMap is
Same would apply for List and other Collections; but it's not bound to collections only, it can be just about any kind of mutability (things that can change)
when stuff is done async, concurrently or in parallel you might have this:
a = 5
Now let’s say you want to increment the value the variable is holding in two threads where both threads run
a++ (which is by getting the value of a, add 1 to it, store it back in the variable a)
If you increment variable a two times in one thread it will look something like this:
get value of a (5)
add one (5+1=6)
store value 6 back to a
get value of a (6)
add one (6+1=7)
store value 7 back to a
In two threads it might be something like
(T1) get value of a (6)
(T2) get value of a (6)
(T1) add one (6+1=7)
(T2) add one (6+1=7)
(T1) store value 6 back to a
(T2) store value 6 back to a
So despite incrementing the value of variable a in two threads the result is that the value of the variable only got incremented once.
Race conditions and deadlocks are the main ones
sheesh
There's a good tom scott video on this I think
Sometimes, numbers on sites like YouTube and Twitter jump up and down; subscriber counts lag, like-counts bounce all over the place. Why is it so hard for computers to count? To answer that, we need to talk about threading, eventual consistency, and caching.
Thanks to my proofreading team, and to Tomek on camera!
The Cambridge Centre for Compu...
i can't count either
and not just sometimes
Ohhh that makes sense. That could definitely be a problem then yeah. Thanks for taking your time to explain this!
monkey
blonkey
fuckey

suckey
cockey
pussy
wow wow we goin too +18, lets keep it sfw lmao
still
first this is #dev-general second come on man, why the fuck would you want to go a bit +18 on a dev channel?
because why not?\
It’s because blotz like kotlin
who's kotlin?
Joe mom

just saying, if there is any problem it is your fucking problem (again not ma problem)
careful what you say. you might choke on an onion soon
xD
welp time to continue punching in my head to understand NMS
I can punch your head if you want

or if you don't want too
😃 🔨

What should I do if I want to send components? but still use deluxechat
Nooo don't use Shouko like that, that scene was sad
A little bit of anime cringe
How could a nice company like github create a shitty mobile app for their service??
why is it shitty 😔
Cannot agree more
Had to uninstall it
So I could use the web version instead
what's wrong with it
everything
too late
- Has very basic functions (view your profile, repos, open issues, view code and whatever)
- The code lines are split into multiple partes so they fit on your screen
- Doesn't feel like an app made by a company that worth billions, rather by a team of 3 people
The code lines are split into multiple partes so they fit on your screen
have you tried, idk looking into the app settings?
Has very basic functions
what else do you need? you can review PRs, manage labels, collaborators, org teams, ...
oh
Yeah forgot about that, they have eventually added an option
idk about you gaby, I just feel its more elegant browsing the web ver
than going through button after button on the app
like repos and orgs especially
Is not the best app
how ironic we're chatting on discord
o
I am almost level 9!?!?!?!?!
congrats
Such an achievement
Haha thanks
I personally really like this Discord Server tho
it has a nice and friendly community
Does anyone know SkUnity?
I used to ask for help there
But they weren't as friendly as people here
most annoying thing about it is that you CANT copy code!!!!!
Whynnnnnnn!Nan
I'm.. sure you can?
Idk what phone you have but I can not
I mean I really doubt it's dependent upon what phone you have lol
I can select lines & copy 'em; not select specific sections within a line, but highlight lines, share and copy them yes
Its still missing a lot I think
I remember not being able to do some work through the app a while earlier
Nope, it doesn't work
Might be releases, not sure?
Do you use the beta version, Em?
err
let me check
wasn't there a section in the play store to see which apps you're in their beta program?
yes, i am in the beta program
Right
agreed
you're like 2/3rds my age lmfao
yeah I don't see how that's relevant
"kid"
No thank you
ok boomer
hi
@gusty glen you can use com.github for your own projects? I thought the domain is io.github 🤔
Nice project btw
It was .com in the past but they switched due to security concerns iirc
tbh idk, I used to use .io but I then I realized that github was .com and not .io so I changed my group. And thanks 😄
@quiet depot with dependency injection I can avoid some static variables right?
yes
Cool thanks
as long as you don’t use ewwy guice
y u no liek guice
hard readability from a certain perspective
personally I find it easier to read than normal di
that's bcz you got experience with it. but for me its not that easy since I never worked with guice
Just passing around dependencies normally feels easy enough
I mean they’re necessary but I don’t really like them
Personally I can’t find a big gain of using guice instead
just make everything static, problem solved
just stop programming huge brain move
just use Go
become cto
ez claps
become lemmo
still waiting for my job invitation god damn it
lemmo if i move to netherlands will u give me job
i will rewrite your js clusterfuck in java
with guice
Just use a paradigm that doesn't need dependency injection
if you move to the netherlands yeah I’d get you a job
great
yes I would be happy
DO I need to include jetbrains annotations to the shaded jar file
No
thx
With Guice I'll never need to initialize a new object the default way right? I can just do it all with Injectors
someone give me some entertaining youtube videos please. my youtube recommendation page is trash
Videos like this are only possible with your help, consider becoming a bonnie bee today! https://www.patreon.com/cgpgrey
‣ Discuss this video: https://www.reddit.com/r/cgpgrey
Related Videos
💖 The Tale of Tiffany 💖https://www.youtube.com/watch?v=9LMr5XTgeyI
Physical Characteristics of The Tiffanys: https://www.youtube.com/watch?v=ZhCAbDeL...
Ty
Why does it check twice wtf mojang
cause different check?
The hasFixedTime Frosty
I mean why not
return !isDay() is all it needs, it already checks the fixed time in the isDay
cuz !isDay() checks hasFixedTime() wheras isNight checks !hasFixedTime()
How? if isDay checks if it's false then !isDay checks if it's not false
Alright I tested it, it's not as dumb, only matters if hasFixedTime is true, still could be a lot DRYer though
That's a weird check
Yeah
Also it's kinda odd that it checks for night based on sky darkness instead of time, i understand why, just odd
Is the snakeyaml responsible for configs in spigot?
In part yes
It does all of the "heavy lifting" which is the actual de/serialization process from/to yaml format
Can I implement a similar algorithm for my configs?
Huh? Algorithm?
Like, a serialization deserialization
You mean the actual yaml serializer? That takes an object of a certain type and creates a valid equivalent for the yml spec into a file and vice versa?
Or what? Not sure if I understand
Uh no
Gson is a json serializer, snakeyaml is a yaml serializer
I'm still not sure what is it you're asking exactly
Nvm, that partially answered my question xD
Why did I think that binding a SINGLETON Scope to Main would not instantiate it ever?
What?
Guice
bind(Main.class).in(Scopes.SINGLETON);
Idk i felt like this would never need to instantiate another Main in the first place
Oh god, enum main class flashbacks lmao
What?
both check hasFixedTime()
^
Both check if it isn't fixed, but by doing !isDay it also checks that.. it is fixed
It's giving you a blog post about it
Silly idea but maybe you should read it, probably
Couldn't find anything about how to use it for commandline but I'm probably just blind
Found it...
Huh, why?
Much better, won’t require entering a token periodically
So I can just push whenever I want if I'm on a pc with a specific ssh key?
I should probably look into how they work for github
Sounds like a terrible user experience message above was deleted 😩
Hi when I add a vote to a player its not working its telling me that I have added a vote to% player_name% do you know why ( VoteParty Plugin )
Lol why did you delete it?
I copy the message from a random instead of my message x)
elixir 👍 or elixir 👎
in general plugin
Head to #spigot-linking then #voteparty
I did not buy the plugin, it's my colleague
Then your colleague will have to be the one asking it in the right channel
elixir good
plz someone help - everyone on my server is invisible i have no clue why...
its 1.17 bungee
No worries
Thanks!
Lmao
Any way I could use components in AsyncPlayerChatEvent without conflicts with chat plugins? || Specifically DeluxeChat ||
and without making my own chat plugin
couldn't be paper's AsyncChatEvent
if anything you'll have to use the legacy serializer for that event though
since, well, it's legacy text
ye but it doesn't support hover etc :(
sucks to suck
this plugin detects the incoming packets and puts <cmd=uuid> but deletes it in packet out
although i feel like that might conflict with other plugins 🤷
hm
hijacking chat out packet to inject "custom stuff" is SO prone to exploitation
actually wait no
since in AsyncPlayerChatEvent u dont see the <chat> stuff
oh wait because it sends its own
hmm
my chat packet listener doesn't detect it either tho
even though the listener priority is MONITOR
huh?
basically
what i think this plugin does
is that
Chat packet inbound: cancel packet, send new inbound packet with <chat=uuid> at the end
AsyncPlayerChatEvent: cancel event, send new event without <chat=uuid>
Chat packet outbound: cancel packet, and send new outbound packet without <chat=uuid>
I mean plugins can still handle cancelled events, maybe it's just modifying it instead of cancelling and dispatching a new one
🥲
oh wait no
thats in the inbound packet listener
hmm
idk im confused
ohh i think i know
it cancels the packet event
and just sends its own AsyncPlayerChatEvent
empty viewer set 🥴
🥴
what plugin is that
InteractiveChat

