#dev-general

1 messages · Page 213 of 1

obtuse gale
#

what tz are you in lol
-3

#

Nothing better than a whole cup of coffee after a good nap

onyx loom
#

we should not associate people with genders in 2020

#

then why ask 🤔

#

u getting into risky territory with these questions

obtuse gale
#

makes people happy when you call em by how they wanna be called

#

Eeh I'm a male but you can call me whatever you want honestly, I don't mind

static zealot
#

Hello male. I'm blitz

#

wait that's post malone?

#

Since when does Post Malone act in movies?

obtuse gale
#

wat

#

today

static zealot
#

I just opened netflix for the first time in like the past 7 months or so

#

and I clicked on the movie Spenser Confidential

obtuse gale
#

lmao

static zealot
#

and while it was loading there was a photo with Post Malone

#

in jail

obtuse gale
#

Imagine opening netflix and seeing post malone

#

Blitz be like "I don't have to imagine"

static zealot
#

look its him

#

I'm not going crazy

obtuse gale
#

yeah that's him

#

109%

#

-9%

static zealot
#

He's fighting the guy from the Mission Impossible movies

obtuse gale
#

Tom Cruise?

#

Bames Jond?

static zealot
#

Com Truise

ocean quartz
#

Spenser Confidential?

obtuse gale
#

very on topic dev talk

ocean quartz
#

Tom cruise isn't in the cast of that movie

static zealot
#

Matt why you got to ruin the impostor fun?

ocean quartz
#

Oh

static zealot
#

Its the guy that looks like Tom Cruise but its not Tom Cruise

#

better? xD

ocean quartz
#

W-who?

static zealot
#

Idk what his name is. Mark something I think

#

here. Googled it for you

#

Mark Wahlberg

ocean quartz
#

Damn, i don't don't think he looks like tom cruise xD

static zealot
#

I mean if I put their photos near each other they don't but if I just look at a movie then later look at a movie from the other guy then they do look simillar xD

#

Bye

#

yes what

prisma wave
#

bug or feature?

ocean quartz
#

Yes

static zealot
#

Agreed

prisma wave
#

¯_(ツ)_/¯

#

might as well keep it

#

easier than implementing raw strings lol

distant sun
#

Wtf bm

#

C style namespace ??

prisma wave
#

more clojure style

#

But yeah

#

organisation/module

onyx loom
#

hawt

half harness
#

ahhh this is so confusingggg

obtuse gale
#

Spigot plugin

#

I mean you can make it work on both

#

But for those "commands" listed there, you'll want to use them from a spigot plugin

half harness
#

Also, do I have to name the channel "BungeeCord"?

#

prob not actually

obtuse gale
#

yes, that's the one proxy uses to communicate

#

you can set your own channel for other purposes, for your own "private" messages, but those won't be intercepted by proxy

#

BungeeCord on the other hand, will be

half harness
#

so I should make it Bungeecord?

#

also, this is really confusing, one last question: How can I run a command from console if the receiver is a player?

#

Please ping meee

obtuse gale
#

@half harness BungeeCord, caps matters

half harness
#

oh

#

also, this is really confusing, one last question: How can I run a command from console if the receiver is a player?

obtuse gale
#

Plugin messaging uses player connections to "travel"

#

Some of those "commands" are player specific

#

Others are irrelevant and can use any player

half harness
#

well PlayerList can use any player

#

but... what about console..

obtuse gale
#

they aren't commands per se tho

half harness
#

uh

obtuse gale
#

they don't "run in console"

half harness
#

y

obtuse gale
#

they are messages that proxy responds to

half harness
#

what if you run a command in console to get a player list

obtuse gale
#

there needs to be at least one player online for it to work

half harness
#

rippppppppppppppppppppp

obtuse gale
#

I mean, why would you want a network wide stat to be shown in a server where there is nobody for it to see it

half harness
#

so that console can see

#

for example

#

so that console can see how many players are on server 1

#

without having to open up mc

obtuse gale
#

then.. use server 1 console?

#

and run /list?

half harness
#

what if you wanted it to do it with a plugin ¯_(ツ)_/¯

#

plus

#

it only works for the current server

#

i think

obtuse gale
#

???????????

half harness
#

99% sure

obtuse gale
#

the PlayerList message will return the total number of players of the server you ask it

#

that is clearly stated

half harness
#

or on ALL the servers.

obtuse gale
#

also

#

if you want the player count, you should use PlayerCount

#

if you want the names you should use PlayerList

half harness
#

ik

obtuse gale
#

it only works for the current server
?????????????

half harness
#

also, this is really confusing, one last question: How can I run a command from console if the receiver is a player?

#

baaaaaaaaack to here

#

bc i dont think a player var that has null will work

obtuse gale
#

a player var that has null
what?

half harness
#

so

#

what if

#

ur on console, and you do ... /getamountofplayersonallservers

#

how would that work?

#

bc console isn't a player

obtuse gale
#

forget about the word "command"

half harness
#

._.

obtuse gale
#

it has nothing to do with actual commands

half harness
#

okay

#

well then what if it broadcasted the playercount every 1 minute

obtuse gale
#

BukkitScheduler#runTaskTimerAsynchronously?

half harness
#

wat

#

i have no idea what that method deos

obtuse gale
#

it runs a task

#

on a timer

#

asynchronously

half harness
#

okay

#

then

#

well then what if it broadcasted the playercount in a while loop

obtuse gale
#

say for example you set the while loop inside an onCommand

#

the while loop will enter

#

and it won't exit

half harness
#

yes

obtuse gale
#

completely halting the game

half harness
#

yes

#

it will keep going until the server stops

obtuse gale
#

mhm

half harness
#

and the loop is in onEnable()

obtuse gale
#

completely halting the game

#

while loops don't run in parallel

half harness
#

uh

#

the server has 10000GHz CPU and 30GB RAM

obtuse gale
#

🤦

half harness
#

;-;

#

pls

#

just

obtuse gale
#

what are you tryna do?

young kettle
#

could someone help me maven clone a github plugin?

#

its used by a few servers and is public. they just dont have a spigot page

#

i managed to do it before but im having issues with my craftbukkit dependency not being found even tho its in the .m2 org bukkit craftbukkit file

obtuse gale
#

do you have cb 1.10.2 installed in your local repo?

#

or which version do you have?

young kettle
#

i believe that is the correct version. i recall having to install it somehow to clone another github plugin.

#

not sure if that helps. read it and i thought i already have the requirements seen in that pic above.

obtuse gale
#

Time for my favourite 👏 frontend web development 👏

prisma wave
#

Fun

dusky drum
#

anyone here ever used like programs coded in python, it says i should run this and this command but when i run it either i get syntax error if i do it in phyton if i do it in pure cmd i get unknown command..

prisma wave
#

What

dusky drum
#

eh

#

nvm

onyx loom
#

🙂

hot hull
#

So I keep getting this

java.lang.ClassCastException: org.bukkit.configuration.MemorySection cannot be cast to java.util.Map
Using:

base.spawn(Location.deserialize((Map<String, Object>) configuration.get("location")));

Stored data being this:

location:
  world: build
  x: -41.5
  y: 5.0
  z: 20.5
  pitch: 0.0
  yaw: 0.0
#

Is that not how you deserialize a location?

prisma wave
#

getValues?

#

or can't you do getSerializable()

hot hull
#

Seems I can just set the object itself and just retrieve it through casting

distant sun
#

Does bukkit yaml have a custom serialization and deserialization class that you can implement on your own objects?

quiet depot
#

gson >

#

just feed ur snakeyaml data into gson

#

ez

distant sun
#

O.o

#

H Ø ₩

distant sun
#

Where is FileAdapter from @quiet depot

quiet depot
#

papi

#

it's in the same package

#

just an interface

#

pro tip if u don't see an import for it it's either part of the jdk, or in the same package

hot hull
quiet depot
#

unless there's a wildcard

#

in which case get fucked

distant sun
#

O.o

hot hull
#

Any thoughts Piggy?

quiet depot
#

honestly no sorry

#

I've never used that functionality of bukkit

hot hull
#

I really don't want to do it myself cause it's gonna be a fucking pain

#

base64 it is

ocean quartz
#

You can easily make a method to serialize it to a simple String like world\:x:y:z ACF has a method for that in their utils

hot hull
#

Itemstacks matt, itemstacks

oak coyote
#

Do an essentials

ocean quartz
#

Oh you had a location example above

oak coyote
#

Serialize like they do

hot hull
#

Gonna see if base64 works

oak coyote
#

It’s totally not a mess to reverse it

hot hull
#

Which I assume it will

ocean quartz
#

For itemstack i use the yaml serializer then turn it into base64

distant sun
#

what's up with the C lang style @prisma wave

prisma wave
#

which bit?

distant sun
#

struct, namespace

prisma wave
#

I don't think c has namespaces?

#

c++ does if that's what you mean

#

but C wasn't really the inspiration - the namespace system is from clojure, no real reason I just thought it was pretty clean. structs are in lots of languages, and they seemed like a good counterpart to functional programming

prisma wave
#

1 downvote ☹️

onyx loom
#

crusade @distant sun

distant sun
#

😦

#

once again, can I use modules to create a 'common' code and 3 sub projects that use that code?

#

the thing is, I need a different jar for each

ocean quartz
#

Yes

#

For example my messages project

- commonmark
- core
- bukkit
- adventure

Then when building it'll build like

- bukkit > core > commonmark
- adventure > core > commonmark

And give me 2 jars

distant sun
#

Interesting

old wyvern
#

once again, can I use modules to create a 'common' code and 3 sub projects that use that code?
@distant sun
In Elara, Yes

#

Now upvote

distant sun
#

nop3

errant geyser
#

What u got against Elara

prisma wave
#

^^

prisma wave
#

@hot hull why D:

remote goblet
#

what frosty do

prisma wave
#

downvoted elara

#

😦

onyx loom
#

crusade @hot hull

distant sun
#

@ocean quartz how do I build it lol xd

errant geyser
#

He shall receive death

old wyvern
#

Build the one which depends on the rest gab

ocean quartz
#

@distant sun The same way, is it on github?

distant sun
#

I see yugi

#

no Matt

ocean quartz
#

Ah okay, well you have to structure it correctly, i build the entire project and it does every module correctly

distant sun
#

not for me =/

hot hull
#

@prisma wave You know why I did it.

prisma wave
#

I do not

#

explain

hot hull
#

I'm sure you do, think hard

prisma wave
#

I actually have no idea

#

Is it just because spam

hot hull
#

Nono, you know what you did a few days ago

prisma wave
#

Oh

#

The FJ review?

#

Lol

obtuse gale
#

m00d

obtuse gale
#

Doom Slayer

#

In the first age, in the first battle, when the shadows first lengthened, one stood.

#

Burned by the embers of Armageddon, his soul blistered by the fires of Hell and tainted beyond ascension, he chose the path of perpetual torment.

#

In his ravenous hatred he found no peace; and with boiling blood he scoured the Umbral Plains seeking vengeance against the dark lords who had wronged him.

#

He wore the crown of the Night Sentinels, and those that tasted the bite of his sword named him… the Doom Slayer.

prisma wave
#

?

remote goblet
obtuse gale
#

Ori what did you do!!!!

remote goblet
#

i dont know!!!!

obtuse gale
#

D:

remote goblet
#

I think my mod fucked things up sadcat

obtuse gale
#

Totes

lost edge
#

Do you guys think 1.16.4 will have a NMS version change?

remote goblet
#

maybe

frail glade
#

I've heard strong theories going both ways.

lost edge
#

Yea I feel like it may change they added some stuff regarding chat

frail glade
#

Correct, there was some packet-level changes.

#

It's up to md5.

umbral mica
#

when md's involved, all bets are off lol

prisma wave
#

Isn't it mojang's decision?

#

the nms package is from mojang not spigot after all

frail glade
#

I'm like 80% sure md5 makes the R1 R2 R3 version decisions.

light venture
#

md5 is a big guy

static zealot
#

you seen him?

#

how big? 6ft ?

obtuse gale
#

300 pounds of jiggy jiggy

ocean quartz
normal talon
#

He is 20 pounds

#

And 7ft tall

young kettle
#

tried doing it myself but im getting issues with craft bukkit

#

spent ages trying to fix it etc.

#

it is public/allowed to be used by whoever but just doesnt have a spigot page.

#

would really appreciate it

ocean quartz
#

Why does it even have both spigot and bukkit api?

young kettle
#

honestly, no idea.

#

im a bit out of my depth with java/git bash and all that. i generally stick to plugin configurating.

obtuse gale
#

bruh that plugins soure code tho

#

aaa yes

#

classic one classes plugin

half harness
#

whats wrong with the code?

#

o

#

741 LINES?!

#

and thats also the javaplugin class

strong ridge
#

😰

obtuse gale
#

that's nothing compared to what I once had to downgrade from 1.14 to 1.12

ocean quartz
#

whats wrong with the code?
Way too many things

strong ridge
#

reminds me of the first iteration of Head Database

half harness
#

Way too many things
@ocean quartz the only issue I can find is jamming a bunch in one class

strong ridge
#

it was all in one class

strong ridge
#

that was a big mistake

obtuse gale
#

The amount of imports already tells you how crappy this is lol

half harness
#

the imports are 183 lines long ;-;

#

9939 LINES!!!!!!!!!!!!!!!

#

I thought it was bad to go over 300..

ocean quartz
#

@half harness It creates the entire config on enable, arrow code, imports, no what so ever care for SRP, variable names, and way much more

young kettle
#

is anyone able to maven it for me though any chance or help me download it? - its code might be a bit janky but its my only option for what im going for.

half harness
#

woah

#

thats a fork btw

young kettle
#

oh

half harness
ocean quartz
#

@obtuse gale That class made my browser freeze for a second lmao

#

I mean what's wrong with it being a fork?

half harness
#

idk

#

just unusual

#

¯_(ツ)_/¯

#

ack

#

wait

obtuse gale
#

That class made my browser freeze for a second lmao
I know lmao xD

half harness
#

it has a pom.xml

#

can't you just import it with an IDE then build?

ocean quartz
#

just unusual
I mean spigot itself is a fork xD

half harness
#

🤔

#

@young kettle

young kettle
#

oh which is the official

half harness
#

use the fork

young kettle
#

i was told about it in the AP dev discord

half harness
#

just build

young kettle
#

ok il try again

half harness
#

do they not have a built jar?

young kettle
#

not to my knowledge. they want people to build it.

half harness
#

k

#

well, you can download to a folder

#

then in the IDE, you can import then build using Maven

onyx loom
ocean quartz
#

Just clone it

half harness
#

u need to pay for that

ocean quartz
#

What?

half harness
#

Clone in IntelliJ IDEA?

ocean quartz
#

Yeah

young kettle
#

that was the forked version tho

half harness
#

pls forget what I said about it being a fork

#

Yeah
@ocean quartz u need to pay

#

I only have community edition

ocean quartz
#

You don't?

half harness
#

u need ultimate

#

it only takes a few minutes to import the code anyways

onyx loom
#

why would u need to pay to clone?

ocean quartz
#

You don't need to

half harness
#

u need intellij ultimate iirc

onyx loom
#

yea i find this extremely hard to believe

half harness
#

..

#

ok

#

well if im wrong then ive just wasted a lot of minutes of my life :P

ocean quartz
half harness
#

iiiiii haaaaaaaaaaate thiiiiiiiiiiiiiiis

#

😦

ocean quartz
#

Had to install just for this lmao

half harness
#

;-;

#

how did you get that Git thing tho

onyx loom
#

?

ocean quartz
#

It comes with IJ?

half harness
onyx loom
#

lul wut

ocean quartz
#

You need to create a git repo

half harness
#

o

#

but

#

wut

#

so u need to make a repo to clone a repo?

ocean quartz
#

No

half harness
#

\😕

#

oh

#

i never knew what that button did

#

and with that theme u can only see like 10 lines of code ._.

ocean quartz
#

That's nothing to do with the theme it's just i like the font to be big

#

Also deleted cuz i forgot the camera was there kek

half harness
#

whaat i uninstalled the theme bc of that

ocean quartz
half harness
#

what about

#

bc its kind of annoying being able to see 3 problems at a time 😦

ocean quartz
#

Uhh what, where?

half harness
#

Problems

ocean quartz
#

Oh, i just don't have errors lmao
Just.. click on it to hide it

half harness
#

.....

#

im still java nub

#

how about project files?

ocean quartz
#

What about them?

half harness
#

how do u "shrink" them

ocean quartz
half harness
#

noo

#

closing gaps between the stuff

#

so that I can see more files

#

bc im too lazy to scroll down :P

ocean quartz
#

You can lower the font size

young kettle
#

so can i git clone AP turrets with intej

#

ive opened the AP turrets folder with it

#

its asking for a URL

#

when i tried cloning.

half harness
#

You can lower the font size
@ocean quartz but then the text is super small!

ocean quartz
#

Yeah the clone url

young kettle
#

getting the same error: Could not find artifact org.bukkit:craftbukkit:pom:1.10.2-R0.1-SNAPSHOT in spigot-repo

ocean quartz
#

You shouldn't need craftbukkit

young kettle
#

i tried using gitbash before

#

this one does annoyingly

ocean quartz
#

No, what i am saying is you shouldn't need, so just remove it

half harness
#

so with the bungee plugin messaging whatever stuff can I just use it on any player on the server?

young kettle
#

ay it worked - thanks!!

#

just hope that removing that doesn't effect the plugin

#

im not sure why its in there.

#

movecraft which is the plugin is built for is quite old. some of the code might be quite old.

hot hull
#

Can someone tell me how tf does this make sense? The runnable is on a 1 second (20 ticks) delay..

[06:05:57 INFO]: Procced Minion with UUID: dac70e90-e1c5-4ab7-868d-e5b92c0e7efe
[06:06:00 INFO]: Procced Minion with UUID: dac70e90-e1c5-4ab7-868d-e5b92c0e7efe
[06:06:03 INFO]: Procced Minion with UUID: dac70e90-e1c5-4ab7-868d-e5b92c0e7efe
[06:06:06 INFO]: Procced Minion with UUID: dac70e90-e1c5-4ab7-868d-e5b92c0e7efe
[06:06:09 INFO]: Procced Minion with UUID: dac70e90-e1c5-4ab7-868d-e5b92c0e7efe
[06:06:12 INFO]: Procced Minion with UUID: dac70e90-e1c5-4ab7-868d-e5b92c0e7efe
[06:06:15 INFO]: Procced Minion with UUID: dac70e90-e1c5-4ab7-868d-e5b92c0e7efe
obtuse gale
#

Can I get my jetbrains student thingo renewed next year? Or is it one year only

#

Cos it says its gonna expire feb next year, can I renew that bad boy?

quiet depot
#

as long as your a student

obtuse gale
#

alright

hot hull
static zealot
#

10 fps

hot hull
#

Shut up

static zealot
#

guys I did it! I made my OreRegenerator plugin work.

hot hull
#

Noice

#

Show code so I can ree

obtuse gale
#

Ew

static zealot
obtuse gale
#

I'd that a fancy client

hot hull
#

Laby mod Aj

obtuse gale
#

Kinda cringe if you ask me :)(:

hot hull
obtuse gale
#

Are you like 13 now or something lol

static zealot
#

Frosty. The code is listen for BlockBreakEvent, check if the block is the one you want to do this for, if it is then take its drops and drop them, replace the block with bedrock and run a task later that sets the block back to what it used to be xD

hot hull
#

Is that modded

static zealot
#

No. its resource packs

hot hull
#

ew

static zealot
#

👍

hot hull
#

@obtuse gale These are years old settings, someone bought me a cape a couple years ago and couldn't give two shits

static zealot
#

DeluxeBlitzFrozenOreRegenSoon™️

#

?

hot hull
#

Frosty. The code is listen for BlockBreakEvent, check if the block is the one you want to do this for, if it is then take its drops and drop them, replace the block with bedrock and run a task later that sets the block back to what it used to be xD
@static zealot You aren't making a new task everytime are you?

static zealot
#

ye I am. dw about it.

hot hull
#

smh

static zealot
#

I'm just experimenting stuff xD

#

Idk what else I could do rn. I was thinking of having a task that loops every 20 ticks and this task would loop thru the bedrock blocks and replace them back.

#

if the time since they have been replaced into bedrock has passed x amount.

young kettle
#

turns out i do need craftbukkit i believe

#

is there a way of me linking the dependecy/repo towards the craft bukkit file i have on my pc?

#

C:\Users<myname>.m2\repository\org\bukkit\craftbukkit\1.10.2-R0.1-SNAPSHOT

ocean quartz
#

You most likely don't need it
Like i said just remove it from the pom

obtuse gale
#

I mean if it compiled without including the dependency, means it doesn't use nms/obc directly, but that doesn't mean it will work straight away lol

young kettle
#

i did try that but the plugin had errors

#

whether its due to craftbukkit i cant be sure

#

but to be certain i was hoping i could try and get that dependency working

#

movecraft plugins do seem to all have craftbukkit on their dependency

ocean quartz
#

Are you going to be using 1.10 anyways?

#

Because if it needs nms and only has 1.10 it'll only work on that version

hot hull
#

Y u lie @prisma wave

prisma wave
#

about what

onyx loom
#

y u lie

prisma wave
#

sorry

ocean quartz
young kettle
#

I’m using 1.12

#

It claims to work fir 1.10 - 1.12

ocean quartz
#

That fork won't if it requires nms for 1.10

obtuse gale
#

1.0

#

Yes

surreal quarry
#

in kotlin is there an easy way to go from a string like like

listOf("SHARPNESS:1", "EFFICIENCY:3")```
to a map like
```kotlin
mapOf(
  "SHARPNESS" to 1,
  "EFFICIENCY" to 3
)```
I know i could just loop through it all and split it but its there a way to do it using like List#mapTo or something
#

nvm i think i can do something like

list.map { it.split(":")[0] to it.split(":")[1] }.toMap()```
ocean quartz
#

This would probably be faster list.associateBy { it.split(":")[0] to it.split(":")[1] }.toMap()

surreal quarry
#

ok thx

ocean quartz
#

Interesting actually, that is making the key be (SHARPNESS, 1)

#

Oh yeah do associate instead of associateBy

surreal quarry
#

ty

ocean quartz
#

Just watch out that if it doesn't have : it'll throw IOOB

surreal quarry
#

yea i check for that

ocean quartz
#

There i was bored kek

val map = list.map { it.safeSplit() }.associate { it.enchant to it.level }.toMap()

data class Enchants(val enchant: String, val level: Int = 0)
fun String.safeSplit(): Enchants {
    val list = split(":")
    if (list.size == 1 || list.size > 2) return Enchants(list[0])
    val level = list[1].toIntOrNull() ?: 0
    return Enchants(list[0], level)
}
prisma wave
#
let map = list.to-map-by {
    it.until ":", it.after ":"
}
#

🙂 👍

onyx loom
#

🙂 👍

remote goblet
#

Would 1.16.4 have new nms

umbral mica
#

A question everyone is asking

#

only MD will know

remote goblet
#

it sounds like it would

hot hull
#

Probably will

steel heart
#

It will

#

Presumably a new packet type or smtng is coming -> new nms version

hot hull
#

At least two new packets from the changelogs

steel heart
#

^

#

then defo new nms

obtuse gale
#

then fefo new nms

surreal quarry
#

whats the gradle task for changing placeholders in your projects files

#

for example replace version with the version

hot hull
#

Open up any project ever which uses gradle and check smh

steel heart
#

just do it during processsResources

ocean quartz
#

1.16.4

frail glade
#

Yurp

#

NMS changes dab

umbral mica
#

well that's not a huge surprise

ocean quartz
#

Great

#

Does that mean i have to revive CitizenCMD?

steel heart
lavish notch
#

RegExp is slowly killing me, does anyone know how to replace a string such as @User in RegExp? (RegExp just doesn't like @)

obtuse gale
#

tried escaping it?

#

whenever regex doesn't like something you just escape it lol

young kettle
#

Can I run a local host server without internet? Would just be for me connecting of course

#

WiFi down etc

prisma wave
#

I don't think it's a special character in regex

#

@young kettle yes

#

@lavish notch send code

obtuse gale
#

Can I run a local host server without internet? Would just be for me connecting of course
yeah that's literally what offline-mode is for

young kettle
#

Ah I recall it not working when I tried a while back

obtuse gale
#

¯_(ツ)_/¯

lavish notch
#

You'll need to turn it to offline mode

young kettle
#

Couldn’t connect to mc client either

#

Ah ok

obtuse gale
#

works fine for literally 50% of the servers out there lol

young kettle
#

Gotcha il try it

obtuse gale
#

48%

#

damn

#

but I would assume those also include servers connected to a bungeecord proxy

lavish notch
#

@prisma wave Ignore the missing brackets at the end (part of larger code), and the poor code quality - old code, currently updating it

obtuse gale
#

oh no, js

#

my archenemy

ocean quartz
#

@steel heart @obtuse gale Sadly doesn't work, the dragon doesn't move

#

Guessing the navigation is different for dragon

tranquil crane
#

I'm fairly sure AI is just disabled by default for dragons outside the end dimension

ocean quartz
#

Let me try the end

#

It's dead there too cryingblob

tranquil crane
#

this is mildly concerning

#

I just killed ender dragons in my world using /kill @e[type=ender_dragon] expecting a single one to die, but instead 9 died

#

seems like the command kills each segment of the dragon individually which is interesting

ocean quartz
#

It doesn't trigger the pathfindergoals like normal entities hmmm
Oh so dragon is like many entities?

tranquil crane
#

if you press F3+B you can see it has several hitboxes

ocean quartz
#

Ooh interesting

#

Looks like a duck tape job

#

Yeah my dream to make the dragon follow items is gone cryingblob

tranquil crane
#

are you using the paper pathfinding api?

ocean quartz
#

Nah NMS

#

Guessing dragon uses PathfinderTargetCondition instead of the normal GoalSelector

onyx loom
#

thats a big fella

ocean quartz
#

Or not, idk well it was just gonna be a joke anyways kek

onyx loom
#

just make it move

#

give it a brain

ocean quartz
#

It doesn't have one

onyx loom
#

then give it one

#

🥲

ocean quartz
#

let me see if i can patch it by changing from a goal to it's tick method xD

#

Well the main part works like that but the dragon doesn't move

#

Ah, alright imma give up i'm guessing it'd need to add path points to it .-.

onyx loom
#

i can see this is a joke project

#

java disgustedjiro

ocean quartz
#

That's the decompiled code from the server xD

onyx loom
#

O

#

oh makes sense now

#

bJ 👍

prisma wave
#

boris

onyx loom
#

🤣

#

hes a joker himself

vapid spade
#

Can anyone tell me where I report bugs from DMenus?

umbral mica
vapid spade
#

Thanx

obtuse gale
#

tfw the error youve been tryna fix for 3 months is because theres an outdated database entry

ocean quartz
obtuse gale
#

is 'ngrok' safe to use for localhost testing webhooks? Cos for paypal webhooks you have to use a url with https, and obviously my localhost doesnt have that

vast pilot
#

Hello 🙂

obtuse gale
#

👋

vast pilot
obtuse gale
#

If someone is, they will

surreal quarry
#

^^ double posting isn't gonna help lol

vast pilot
#

😅

obtuse gale
#

lovely for working on your old crappy projects from when you didn't know any better

regal gale
#

I already noticed that long ago

#

And it's good 90%

obtuse gale
#

tf was i thinking with that themem

#

tf are you looking that far back

ocean quartz
#

Damn you're digging deep, looking for dinosaurs?

obtuse gale
#

I'm having some problems with NMS, I'm trying to great an npc but the player entity doesnt show up ingame, only on tab

distant sun
#

@prisma wave should I use with(config) instead of apply?

        config.apply {
            set("type", petType.name)
            set("rarity", rarity.name)
            set("progress", progress)
        }```
hot hull
#

with sounds better

static zealot
#

yo how is it usually? <arg> - is a required argument and [arg] - is an optional argument or is it the other way around?

hot hull
#

Nope that's correct

static zealot
#

kk. thanks

remote goblet
#

are you doing @version@ or '@version@'

#

or its the line above

hot hull
#

@version@

#

Same as I do with all my other projects

remote goblet
#

try '@version@'

static zealot
#

wait where does @version@ takes the version from? build.gradle?

remote goblet
#

yes

static zealot
#

oh. That's good to know xD

#

I always forget to update plugin.yml

remote goblet
#

i hate plugin.yml

hot hull
#

That's why I use mcdev

#

So I don't have to deal with that bs

static zealot
#

well the thing is... I don't know how to use mcdev. I added it but doesn't seem to work for some reason

#

I don't even know what that plugin is suppose to do ...

hot hull
#

Make your life easier in the grand scheme of things

static zealot
#

:))

#

but how is it suppose to do that? because for me it does absolutely nothing

hot hull
#

Sec, lemme finish what I'm doing and I'll show you

static zealot
#

👍 ty ty

#

btw can I use @version@ anywhere in the plugin, not just in the plugin.yml I assume?

quiet depot
#

anything in the resources dir

static zealot
#

oh I see. thanks

hot hull
#

@static zealot You click Minecraft, select what platform click continue and follow instructions

#

(When creating a new project)

static zealot
#

Ohhhh

#

I see.

steel heart
#

Lol imagine using replace tokens

light venture
#

@hot hull FakePlayer?

#

think spoofing

hot hull
#

Stop stalking me big boi

light venture
#

<3

#

forever i shall stalk

hot hull
#

Look out the window

light venture
#

its a bird

#

nvm its the window cleaner

regal gale
#

Does Forge gradle usually take very long time to import to project?

steel heart
#

Yeah

#

Even fabric

#

But fabric has a much better api

regal gale
#

I've been waiting for 10 minutes now

static zealot
#

My plugin has 1 command class that is 450 long 😦

remote goblet
static zealot
#

To be honest... it used to be 600+ xD

prisma wave
#

@distant sun doesn't matter really, I usually forget that with exists so up to you lol

light venture
#

wheres ur quest plugin

#

or config

distant sun
#

oke doke

hot hull
#

IJ

static zealot
#

Minecraft Developer plugin

remote goblet
#

I have the plugin but hardly use it

obtuse gale
#

same lol

remote goblet
#

I mostly use it so it can remind me what stuff is needed to be put in plugin.yml

obtuse gale
#

it just pre-sets a few files

#

md_5 10/10 💯👌

#

v1_16_R3 --> v1_16_R2 --> v1_16_R3

#

just a fancy nbt editor

frail glade
#

The dude rly tried to undo the NMS rev change.

#

Well, DeluxeChat confirmed working on a single build in 1.16.4 KEKW

static zealot
#

anyone feels like updating my plugin? :))

hot hull
#

What plugin

static zealot
#

RandomTeleport

hot hull
#

And what's wrong with it

obtuse gale
#

I'll tell you what's wrong with it

#

author: Blitz

static zealot
#

author: BlitzGamer_88 *

obtuse gale
#

Wow

#

That's... that's low

static zealot
#

And what's wrong with it
besides the 450 lines command class?

#

and the bad code?

#

and the unoptimized code?

#

Shall I go on? xD

frail glade
#

How many commands in the command class?

static zealot
#

well its the main command with subcommands.

hot hull
#

What do I gain from it Blitz

frail glade
#

I mean, not the end of the world.

hot hull
#

Do I get a cookie?

static zealot
#

no

#

I get a better plugin

#

you get experience

hot hull
#

I mean, not the end of the world.
Certainly it is the end mister, 10 lines per class tops!

frail glade
#

At one point I had Guild commands in 2 classes. One for regular, one for admin.

#

Th regular command class was about 2,000 lines for 80 commands.

static zealot
#

4 Waffle. 4 subcommands

#

ye. I have a plugin that has 2 classes. The admin ones and the normal ones and its like 400 in total

#

I think

frail glade
#

I put each command in their own class now-adays.

#

At least when I have more than 20.

static zealot
#

Well I juse matt's FM and usually I have just 1 main command and a load of subcommands

frail glade
#

450 sounds like a lot for 4 commands if you're using mf-cmd

static zealot
#

well the thing is. I have an option argument at the end. And based on that argument the entire command does something different. xD well not fully but kinda

#

its like having 2 commands in one. Just didn't know how to make it

frail glade
#

That's fair.

static zealot
#

its basically it either does all the checks and all the things for the sender or for a target

frail glade
#

I also tend to full-send sometimes.

#

You could just create a player variable for who to teleport. If it's null, set it to the sender, or set it to the target if it's there.

#

Make that the first few lines and then just run the command once.

static zealot
#

hmm. that is true. I do have a few checks that are based on target / sender tho. But still I can make it half basically.

#

didn't even think about that.

hot hull
frail glade
static zealot
#

:)))

hot hull
#

I said sec while I push smh

frail glade
hot hull
#

Go check out Gh's yt channel while you wait :kek:

ocean quartz
frail glade
#

Imagine still being on Optifine.

ocean quartz
#

I don't really need sodium, i use Optifine because it makes the game look better, which sodium doesn't

hot hull
#

I bought another OF cape the other day, after I gave mine away last year in a giveaway kek

frail glade
#

Boutta do a sale soon. Buy VP and get a Mojang cape*

  • (Have to migrate to MSA first)
hot hull
#

lol

ocean quartz
#

In other news, no need to revive it just yet, it works on 1.16.4, thank you for that PR Glare xD

frail glade
#

Ya

#

You could do an update anyways and just say "Added support for 1.16.4"

#

Gotta get those downloads.

ocean quartz
#

True true

hot hull
#

Glare

#

I have pushed, go judge

ocean quartz
hot hull
#

:bruh:

#

I barely use kotlin anymore

ocean quartz
#

Frosty why do you do this to me

#

@NotNull private final
@Override public void

hot hull
#

:>>

frail glade
#

Inlined-annotation lookin-ass.

hot hull
#

It's nicer heck out

frail glade
#

If you're going to use annotations, be consistent.

hot hull
#

Yea it's not finished Glare

ocean quartz
#

Can't wait for @EventListener @NotNull @Contract("_ -> new") @Override public void

hot hull
#

That I would never

ocean quartz
#

Well you'll need to be consistent, if you have them inline you'll also stack them inline

frail glade
#

Why does clip keep updating DeluxeJoin lol

hot hull
#

Cause FJ gone fingerguns

ocean quartz
#

Yeah this noob removed it from spigot for some reason

frail glade
#

Bruh.

hot hull
#

Don't bully me

ocean quartz
#

Why did you remove it though?

hot hull
#

cba with upkeeping it and giving support anymore, it's still on github if anyone wants it

frail glade
#

Ahh, finally got a taste of the public plugin lifestyle?

ocean quartz
#

Also Glare, been working on the bean stuff, this will be possible what do you think so far? ;p

hot hull
#

I mean if anyone wants it I'll even give you art for it poggers

frail glade
#

I think that'll work.

hot hull
#

What's Child tho

frail glade
#

Rocketeer is 1.16.4 ready sunglas

hot hull
#

What's Rocketeer tho

static zealot
#

in IIJ was there a way to see where methods are used?

light venture
#

ill be waiting for messagetoggle

ocean quartz
#

@static zealot CTRL + click it

static zealot
#

bcz it doesn't warn me that its not used...

#

but its not used

ocean quartz
#

Oh

#

I mean it's only used by reflection

static zealot
#

well

frail glade
static zealot
#

it should warn me on the right Matt

#

like all the other command methods

#

but for this one it doesn't

ocean quartz
#

You might have added it to not warn if annotated by Default

static zealot
#

oh. You can do that?

ocean quartz
frail glade
#

Frosty, that video above is Rocketeer.

hot hull
frail glade
#

Idk. I have them all tho.

hot hull
static zealot
#

noipe it does warn me.

#

for other methods

#

annotated as default

ocean quartz
#

Huh idk then

hot hull
#

Are the keys permanent Glare?

frail glade
#

Yes

static zealot
#

I'm telling you IIJ is messing with me 😦

hot hull
#

Frosty, that video above is Rocketeer.
@frail glade 😮

kindred hatch
#

@frail glade What pl is that?

hot hull
#

Rocketeer..

kindred hatch
#

o

frail glade
#

Lmao

#

It's Coming Soon™️

kindred hatch
#

😄

frail glade
#

More-detailed avatars are harder to render, but, it does get a decent amount of it.

kindred hatch
#

Damn

static zealot
#

yo Waffle you made me think to much. Now my brain is melting sad_fingerguns

frail glade
#

Hmm?

static zealot
#

with the player variable made out of either the sender or a target.

frail glade
#

Ahh

static zealot
#

since I have a few checks that are different for each option I need to make them work together somehow xD

ocean quartz
#

Couldn't you just do val player = target ?: sender? If target isn't added it'll use sender

static zealot
#

ye. that's exactly what I'm doing

#

but for example I have a cooldown thing. and I have a part of the code that resets it.

#

but for the target there's a permission to not reset the cooldown

#

there isn't one for a sender.

#

I know its not hard don't get me wrong. I'm just not in the mood today to think xD

hot hull
#

check if the target is an instance of player and check for perm, otherwise don't

static zealot
#

or ya know... check if target is null

hot hull
#

Or that

#

Why is JDA being a whore when it comes to listeners, they aren't firing again

prisma wave
#

classic

#

Did you register it?

hot hull
#

Yes BM, I'm not that dumb

heady birch
#

Set correct intents

prisma wave
#

ah yes

hot hull
#

wdym?

prisma wave
#

Discord intents

#

For certain events

hot hull
#

You mean scopes?

prisma wave
#

Nah I don't think so

#

Certain events and actions need the intent set

#

I think

hot hull
#

Or just the select it as bot and select the perms

prisma wave
#

Idk

#

Go to the bot settings and tick the 2 intents maybe

#

Depends what the event is

hot hull
#

Oh I see what you mean

static zealot
#

So far 120 lines less in my methods.

#

And I probably still have a few more to remove xD

ocean quartz
#

Send the method i can help ;p

static zealot
#

I got this.

#

but thanks

hot hull
#

Damn Matt idk how you'll recover from that

ocean quartz
#

Uh from what?

static zealot
#

me refusing you most likely.

#

Frosty if only I said that bcz I knew I was better than him ... but I said it bcz I don't want ya'll to see my shitty code xD even tho its OS on GitHub ... :)))

hot hull
#

kek

ocean quartz
#

Ugh can't think of a good way to do this, i need a way to export a property but at the same time save it's data 😩

hot hull
#

saveAndExport

#

ez

static zealot
#

Boys ... 261 lines! from about 450.

frail glade
#

Woot

static zealot
hot hull
#

251 too many

obtuse gale
#

replace \n -> , down to one line 👌

static zealot
#

:))

#

I mean if it was to delete all empty lines it will probably be 200 lines

#

Also I have debug messages. Which will serve no purpose for people that will use the plugin just for me when testing the plugin.

lavish notch
#

Previously I've been using relocate in my ShadowJar build tasks, but what do I put if I'm not wanting to add anything to it?

frail glade
#

What

obtuse gale
#

?

lavish notch
#

Pardon me, I don't know my terminology.

frail glade
#

but what do I put if I'm not wanting to add anything to it?
I'm confused on this part.

lavish notch
#

For example;

relocate "me.mattstudios.mfgui", "net.mackenziemolloy.SGPSellGUI"
What if I only want my code compiled?

#

IE: I remove "me.mattstudios.mfgui"

frail glade
#

Then remove it?

lavish notch
#

I tried, but it errored

#

Could not find method relocate() for arguments [] on task :shadowjar

frail glade
#

I mean, don't leave an empty relocate in there.

lavish notch
#

Where does that save to?

frail glade
#

The normal build directory.

lavish notch
#

i don't see anything

prisma wave
#

Intellij has a tendency to hide it

lavish notch
frail glade
#

Are you actually calling the shadowJar task?

lavish notch
#

Ah, it would help if I was actually calling shadowJar.

#

lmao

#

Thanks

frail glade
#

Gradle compiler go brrrr.

left horizon
#

can yall update deluxetags to 1.16 so that we can use custom colors

frail glade
#

Idk how much hex support is there but I know you can hex the tags.

#

EssentialsX Compile Times:
Maven: 11.845s
First Compile Gradle: 7s
Consecutive Gradle Compiles: 3s

#

Not bad.

static zealot
#

indeed not bad

frail glade
#

Goes down to 570ms if I make minimal changes.

onyx loom
#

who said maven was faster kekw

frail glade
#

¯_(ツ)_/¯

hot hull
#

Maven doodoo

heady birch
#

Typical of glare to post incorrect statistics what he didnt show you is he added 10 seconds on to the maven result time

onyx loom
#

🤣

frail glade
#

Yikes

#

Exposed.

#

"I'm coding in maven".

hot hull
#

I'm coding in sudoku

frail glade
#

You can specify for it to use Gradle.

heady birch
#

Ah I didnt give the adapter the correct capability for 1.16 hex colours so the animation ignored them 😐

lost edge
#

Anyone know if NMS is still 1_16_R2 or did it go to R3?

frail glade
#

It went to R3.

lost edge
#

Thx glare!

frail glade
#

👍

heady birch
#

Yeah its annoying so I tried giving reflection ago, but it only takes one field name to change to ruin that as well

#

For example in 1.16.1 to 1.16.2 a field b changed to a lol

lost edge
#

yea ik its annoying xD

#

Odd question but I recently installed Docker Desktop and updated my computer and now it seems like I revoked some permissions for myself... Any idea how you can disable/enable the search feature in the windows start menu?

gloomy grove
#

Hey, I am trying to return an integer of the number of players with certain permission in my bungeecord proxy. I am using this to get all players online

    public static int getOnlinePlayers() { 
        return
            BungeeCord.getInstance().getPlayers().size();
    }

I am not sure how I can get a int for players with permissions

lost edge
#

I haven't used the bungee api much but you can loop the players and check if they have the perm and increase a counter. May not be the mot efficient way but its a way.

gloomy grove
#

something like
for (ProxiedPlayer p : ProxyServer.getInstance().getPlayers() ) {
if (p.hasPermission('permission') return p;
}

lost edge
#
public static int getOnlinePlayers() { 
int count = 0;
for (ProxiedPlayer p :    ProxyServer.getInstance().getPlayers() ) {
    if (p.hasPermission('permission') count++;
}  
return count;
}
#

that should work

gloomy grove
#

yeah exactly, thanks

lost edge
#

np

ocean quartz
remote goblet
#

I would of steam filtered it

ocean quartz
#

Lmao, static is the hard part

heady birch
#

Finally finished whole chat component n stuff in pure reflection

#

Probably cached to an extreme but blazingly fast

ocean quartz
#

And yet most people use it wrong

remote goblet
#

I dont use static unless I have to

obtuse gale
#

public static main 🌝

prisma wave
#

@heady birch

reflection
blazingly fast
🤔

remote goblet
#

yeah but no one does Main.main(String[] args)

prisma wave
#

Java moment

obtuse gale
#

lmao

steel heart
#

So you’re a spigot dev? Name every spigot api class

onyx loom
#

😬

steel heart
#

Okay what the fuck, why can’t we use lambas when the type is Object

#

I hate java

obtuse gale
#

uuh yes you can?

#

the hell are you doing lol

steel heart
#

Object obj = (t, s, u, v) ->

#

Didn’t work

#

4head

obtuse gale
#

well

#

because Object itself isn't a functional interface

#

duh

#

🙃

steel heart
#

How do you know?

#

Last time I checked it was a functional object

obtuse gale
#

because shit like Runnable, Consumer, Function etc are annotated with @FunctionalInterface lmao

steel heart
#

I mean I can do this:
Consumer<No> yes = (maybe) ->
Object fuck = yes;

obtuse gale
#

yes

#

no

#

yes

#

maybe

steel heart
#

SO WHY NOT MAKE US ABLE TO DO IT directly :///

#

okay ik ppl can have different ones

obtuse gale
#

broo

#

you need to cast xD

steel heart
#

but like the convience

obtuse gale
steel heart
#

I hate you

obtuse gale
#

xDD

steel heart
#

It’s a redundant cast

obtuse gale
#

not my cast

#

¯_(ツ)_/¯

steel heart
#

Yes

obtuse gale
#

D:

steel heart
#

Now why void

obtuse gale
#

uhm

#

uuuhm

#

( . _. )"

#

you ask too many questions

steel heart
#

They make sense at least

half harness
#

what does isAuthorized() do?

ocean quartz
#

Uh, context?

half harness
#

Uh

#

Is it a spigot/bukkit/java method?

ocean quartz
#

I mean i have no idea, you tell me lol

half harness
#

._.

#

im looking in essentialsx source

#

and it has isAuthorized()

#

but is that their own method or not?

#

bc can't hasPermission() do the same?

#

user.isAuthorized("essentials.some.permission");

ocean quartz
#

Their own

half harness
#

o

#

what about User

#

aka type of variable or whatever idk the name for it

ocean quartz
#

I mean if the method is their own, and the method is from User then you should be able to get to a conclusion xD

half harness
#

¯_(ツ)_/¯

#

whats User called?

#

like String or int

ocean quartz
#

What?

half harness
#

private Boolean Check(final User user, final boolean input) {

ocean quartz
#

I mean it's an User

half harness
#

mhm

#

but you can't create a type of variable..

#

right?

#

or is it an object

#

im so confused diuhasiudhiuah

ocean quartz
#

You can?

#

It's an object

half harness
#

😕

#

but isn't an object just a variable?

#

oh whatever

#

WAIT

#

I have question

onyx loom
#

OOP 🙂

ocean quartz
#

^

#

Ask the question xD

ocean quartz
#

Me right now

#

Can't figure what to do 😩

ocean quartz
keen creek
#

if a large area of blocks was changed with sendBlockChange would it lag the server at all or just the client?

obtuse gale
#

Tf is intellijs spacing

#

Like do people actually put a space before and after the ( ) normally?

#

.. yes?

#

bruh

#

😐

hot hull
#

You're a fucking weirdo AJ

onyx loom
#

lol

#

aj be like
if(ahh == null){

#

😐

obtuse gale
#

😐

#

Thats literally what I do ._.