#dev-general

1 messages ยท Page 67 of 1

remote goblet
#

:)

prisma wave
#

Afraid not

pale shell
#

i wanna comission something from you alex

remote goblet
#

fuck

pale shell
#

OI

hot hull
#

Lol

prisma wave
#

Oh no

#

Ok

#

Do it

pale shell
#

FROSTY

remote goblet
#

delete it

pale shell
#

$50 FOR THAT

#

paypal

remote goblet
#

DELETE IT FROSTY

#

:(

pale shell
#

I'm not joking frosty

hot hull
#

bet

pale shell
#

1 sec

#

Mark

hot hull
#

Delete that

#

Right now

remote goblet
#

sweat

pale shell
#

sorry mark

distant sun
#

Lmao

hot hull
#

Why did I switch to main account ffs

#

shitty paypal guideliness

remote goblet
#

For this you should honestly take the money and delete the edited message

pale shell
#

check paypal

remote goblet
#

cus like

prisma wave
#

it's only a bit corrupt

pale shell
#

i sent the money Mark

hot hull
#

yea ofc, 50cents

remote goblet
#

I wish i had my external emojis

pale shell
#

ss

hot hull
#

Kyle

remote goblet
#

:(

hot hull
#

No

pale shell
#

oh

#

no

remote goblet
#

kek

pale shell
#

i caused this

hot hull
#

You said 50โ‚ฌ not 50 cents

remote goblet
#

You seriously did

pale shell
#

dont expose me ๐Ÿ˜ 

hot hull
#

a favour given is a favour returned

#

๐Ÿคทโ€โ™‚๏ธ

remote goblet
pale shell
#

idc about that

#

he used my name ๐Ÿ˜ 

remote goblet
#

You used his name

#

Kinda ironic

pale shell
#

so?

hot hull
#

Noone knew my name before you said it kek

prisma wave
#

we're using our made up names

pale shell
#

yes alex

hot hull
#

Cause noone checks my paypal link kek

distant sun
#

Lmao

prisma wave
#

you can't do that

pale shell
#

sorry alex

distant sun
#

Thats how you keep a secret

prisma wave
#

just as well idc

remote goblet
#

only sxtanna knows mine :wonk:

hot hull
#

If I wasn't forced to move paypal to my main, noone would've known it smh

pale shell
#

whos sxtanna

#

isnt that the person who knows nothing about java poggers

remote goblet
#

You can all attempt to guess my name from the word "Oribuin" but goodluck honestly

distant sun
#

And bm

prisma wave
#

your name is buin

#

ez

hot hull
#

Said the man who owes me 49.50โ‚ฌ

pale shell
#

who

remote goblet
#

oh fuck you figured it out

prisma wave
#

gotcha

remote goblet
#

๐Ÿ˜ข

pale shell
#

who owes 49.50

remote goblet
#

you

hot hull
#

You do

remote goblet
#

BM

pale shell
#

can i get a lawyer in

prisma wave
#

D:

hot hull
#

Nope

frail glade
#

Ori, you should apply again for the role. They are going to go through them soon.

pale shell
#

i paid my debts ๐Ÿ˜ 

hot hull
#

You'll lose <o/

remote goblet
#

ugh

pale shell
#

role?

prisma wave
#

developer

#

i mean

pale shell
#

wtf is that

hot hull
frail glade
#

yEaH buT yOu geT a baDgE

pale shell
#

fucking flex

hot hull
#

For the cool kids

remote goblet
#

did that send cause barry usually has an issue with me

prisma wave
#

ngl the badge is cool

pale shell
#

what badge

frail glade
#

Yup it did.

#

=profile

hot hull
compact perchBOT
#
pale shell
#

i dont 'like it

frail glade
#

The developer one

remote goblet
#

nice

prisma wave
hot hull
#

Shows up on lvl best

#

=lvl

compact perchBOT
prisma wave
#

oop wrong screenshot

pale shell
#

i want the badge

prisma wave
pale shell
#

let me in ๐Ÿ˜ 

prisma wave
#

apply for developer then

pale shell
#

how

remote goblet
#

It's difficult asf

pale shell
#

nah

remote goblet
#

Can I just kinda say

#

they show up

#

on every single resource

distant sun
#

Fr

pale shell
#

ye

prisma wave
#

whats mcbbs

quiet depot
#

developer role is for the most elite humanoids

pale shell
#

china

remote goblet
prisma wave
#

oh

remote goblet
#

everytime

prisma wave
#

weird lol

frail glade
#

I mean. If they put it on mcbbs, it links it to spigot, more downloads.

prisma wave
#

i can't even access it?

#

does it only work in china or something

pale shell
#

I can't apply for the developer thing, because i have no public plugins i work private all the time

#

no

remote goblet
pale shell
#

i use it

quiet depot
#

give us access to some private repos then

frail glade
#

You can provide us access to private repos to get them looked at.

prisma wave
#

oh no they just haven't configured the dns properly

#

you have to have www.

pale shell
#

that takes effort to add you ;-;

quiet depot
#

add PiggyPiglet & LemmoTresto

hot hull
#

Then no badge for you

steel heart
#

Wait where do I find Spigots resource guidelines?

prisma wave
#

and me for good luck

pale shell
#

the issue is i don't have multiple projects

#

I work on one big one

#

actually this project is bigger than expected lol

remote goblet
#

okay brb

#

is it "project learn kotlin"

pale shell
#

no

#

never

remote goblet
#

should be

prisma wave
#

learn kotlin

pale shell
#

piggy

frail glade
pale shell
#

can it be one big project instead

quiet depot
#

no

hot hull
pale shell
#

wtf

hot hull
#

I don't know what to say cause never used the plugin

quiet depot
#

lol yeah sure

#

actually no

#

I've denied people in the past for that

#

no exceptions

pale shell
#

?

#

i'm confused now lol

hot hull
#

Just make 2 quick plugins

pale shell
#

no, yes, no

quiet depot
#

just make a quick project

pale shell
#

argh

#

can i get brister to make it instead

hot hull
#

It's not the size that matters, it's the skill I guess

quiet depot
#

if you have one gigantic project out of 2 active projects

#

chances are i'll only check the gigantic one

pale shell
#

the thing is piggy, i'm putting a whole server in a gigantic project ๐Ÿคทโ€โ™‚๏ธ

frail glade
#

Sounds like you're giving more reasons for us to not look at it then to look at it.

pale shell
#

i'm too lazy to upload 50 plugins or so. Instead i'm making 1

quiet depot
#

odin, I don't care

#

a project is a project

pale shell
#

alright soz

rotund egret
#

Do you just look at if its actively maintained or do you actually look a bit more in depth?

frail glade
#

They dig through it

distant sun
#

pro mc players

rotund egret
#

Neat

pale shell
#

Glare, who would i add to the project? I need to add you because it's a private project.

distant sun
#

PiggyPiglet LemmoTresto

frail glade
#

Piggy and Lemmo usually look at them, but I'd be down to look at it too.

pale shell
#

I may be dumb, but i forgot how to invite people. ๐Ÿ˜„

hot hull
#

go to settings

#

and it'll say add contributors

quiet depot
#

collaborators

pale shell
#

ah got it

#

invited you piggy

#

Glare, what's your Github?

frail glade
#

darbyjack

pale shell
#

gotcha

frail glade
#

Damn. PyCharm 2020.1 released, just waiting on IJ to.

steel heart
#

@prisma wave frick CommandExecutor contains boolean. Can that be an exception?

quiet depot
#

wew

#

boolean is for usage

prisma wave
#

primitves aren't objects

steel heart
#

Ok thanks

#

God dang it

#

TabCompleter

#

Is a List bruh..

prisma wave
#

hmm

hot hull
#

Do you need tabcomplete tho?

steel heart
#

That's true

hot hull
#

That's a luxury :p

prisma wave
#

hypothetically

#

if you were to use Unsafe#allocateInstance

#

that might not count

steel heart
#

hmm okok

prisma wave
#

or you could find a list that already exists somewhere

#

and edit that

quiet depot
#

wadu hek

#

i see unsafe

#

what's going on

steel heart
#

synchronized

quiet depot
#

transient

#

volatile

steel heart
#

is gonna be lit

quiet depot
#

fun stuff

prisma wave
#

we're looking into the "no object challenge"

quiet depot
#

what's the floating point keyword brister

prisma wave
#

strictfp

quiet depot
#

yes

#

fun stuff

#

that I've literally never used

prisma wave
#

which is almost entirely useless

#

yeah lol

steel heart
#

what is egen transient and volatile?

#

I've seen them but never used it

quiet depot
#

egen?

lunar cypress
#

Transient excludes fields from serialisation

steel heart
#

Ah

lunar cypress
#

Volatile ensures that variables are updated on each thread accessing them

quiet depot
#

only use volatile on primitives

lunar cypress
#

And don't view them as a replacement for synchronisation

frail glade
quiet depot
#

why do u even have pycharm

prisma wave
quiet depot
#

webstorm is 2020

frail glade
#

I have reasons.

#

RC doesn't count.

prisma wave
#

it kinda counts

quiet depot
#

red chicken

prisma wave
#

it's halfway there

frail glade
quiet depot
prisma wave
#

woaah oh

hot hull
#

How would one convert this into a single line

for (Player players : Bukkit.getServer().getOnlinePlayers()
{
  players.spigot().sendMessage(ComponentSerializer.parse(message));
}
prisma wave
#

don't?

hot hull
#

Would it be possible tho?

quiet depot
#

yes

#

use a foreach

#

duh

prisma wave
#

oh yeah on 1 line

#

totally won't look ugly as hell

hot hull
#

hOw, still got no clue about how to use forEach

quiet depot
#

well

#

put your head to it

#

if you don't come to a solution after a few hours

#

quit

distant sun
#

Bukkit.getServer().getOnlinePlayers().forEach() ?

frail glade
#

Is it sad that I know the tag ID for that video basically memorized now so I already knew what it was before clicking?

prisma wave
#

it's just a for loop but backwards

hot hull
#

Gaby yea I know that much :p

#

Not sure what to put where tho :p

quiet depot
#

forEach(player -> ur code here)

distant sun
#

it's lambda

quiet depot
#

when are generic var args coming

lunar cypress
#

They.. exist?

#

Or what do you mean

quiet depot
#

like this I mean though lol

#

complete and utter shit

#

but somewhat useful in extremely niche circumstances, where a proper design hasn't been thought out

#

<T...>

frail glade
#

Just use Kotlin 4head

prisma wave
#

wha?

quiet depot
#

extends ShittyParent<Hmm, Hmm2>

hot hull
#

screw this, just gonna make a method for it

prisma wave
#

not T... ?

lunar cypress
#

And what'd be the semantics of that

prisma wave
#

<T...> ??

quiet depot
#

I'm trying to think of a use

#

give me a few secs

distant sun
#

none

lunar cypress
#

That kinda sounds like you're trying to make java dynamic

quiet depot
#

yeah I can't think of one rn

#

I had a use for it the other day

#

enum generics would be nice

lunar cypress
#

Kinda

#

But that's something else

quiet depot
#

indeed

prisma wave
#

imagine not having sealed classes

quiet depot
#

surely there's some hack to get generics on enums

steel heart
#
Bukkit.getServer().getOnlinePlayers().forEach(player -> player.spigot().sendMessage(ComponentSerializer.parse(message)));

@hot hull

lunar cypress
#

What's the point of for each there

steel heart
#

Idk more compact

lunar cypress
#

I don't like the method

quiet depot
#

frosty wanted it in 1 line

steel heart
#

But it's the same as the for loop in the end?

lunar cypress
#

If you want a for loop, make a for loop

#

Use it as a terminal operation for streams

#

Which could be done here btw

#
Bukkit.getOnlinePlayers().stream()
    .map(Player::spigot)
    .forEach((player) -> player...)```
hot hull
#

Doesn't matter already got a method for it

#

was trynna make it 1 line cuz

this.manager.addAction("broadcast_json", (player, data) -> broadcastJsonMessage(data));
steel heart
#

:]

quiet depot
#
for (int i = 0; i < Bukkit.getOnlinePlayers().size(); Bukkit.getOnlinePlayers().get(i).spigot().sendMessage(blah));```
#

there's ur 1 line using for loop

#

it's horrible

distant sun
#

or lambda, frosty

#
(player, data) -> {
// code
}```
lunar cypress
#

They're already using a lambda

#

Just wanted it as an expression

distant sun
#

not inline lambda I mean

hot hull
#

lambda inside lambda?

lunar cypress
#

It's good with the extra method

rotund egret
#

Recursive lambda

hot hull
#

I mean in the end doesn't really make a difference what I use kek

#

Need to think of more shit to add so I don't update the entire plugin for just 1 addition..

quiet depot
#

add a mad guy with a fish

hot hull
#

elaborate

remote goblet
#

it went well

quiet depot
#

frosty

#

there'll be a guy

#

he'll be a mad guy

distant sun
#

:))

quiet depot
#

and he'll have a fish

distant sun
#

Funnycube

#

Funny ๐Ÿก

quiet depot
#

๐ŸŸ

frail glade
#

Good job Ori!

remote goblet
#

:D

prisma wave
#

did you serialize a Gson instance??

remote goblet
#

yes

frail glade
#

You're getting somewhere.

prisma wave
#

lmao

#

nice

quiet depot
#

lol

#

he saved the gson object

remote goblet
#

I seralized a Map<Integer, String> in gson and then saved it in a string

quiet depot
#

he called toString on the gson object

#

and saved it

remote goblet
#

i'm trying lmao

prisma wave
#

brilliant

hot hull
remote goblet
quiet depot
#

if ur being verbose with final parameters

prisma wave
#

oh lord

quiet depot
#

may aswell go with nullable and notnull too

remote goblet
#

this is going well

#

I promise

quiet depot
#

is it os?

remote goblet
#

I don't know

quiet depot
#

nice

remote goblet
#

I'm just doing whatever i can think of lmao

quiet depot
#

you don't know if your own project is os

rotund egret
#

Ahaha

remote goblet
#
try (FileWriter fileWriter = new FileWriter(dataFile)) {
  jsonMap.put(jsonMap.size() + 1, quote);
  gson.toJson(jsonMap);
  fileWriter.write(jsonMap.toString());
  System.out.println("done");
} catch (IOException e) {
  e.printStackTrace();
}
``` what am i doing lmao
prisma wave
#

not using the json?

#

toJson returns a String

grand ingot
#

So like

#

A teacher told me all variables should be 1 letters

prisma wave
#

they're an idiot

grand ingot
#

Yes

#

Yes they are

#

Granted, they are a math teacher, but still

quiet depot
#

lol

#

of course

#

x y z

#

what's your math teacher doing teaching programming

grand ingot
#

They aren't

#

They are teaching math

#

But, he never specified the context

prisma wave
#

you had me there

grand ingot
#

And was talking about word problems

#

Not letter problems

#

smh

#

Also, apparently college students don't know what fractions are?

prisma wave
#

??

grand ingot
#

Because my college math professor was teaching us fractions and decimals

#

That was all of last week's unit

rotund egret
#

I believe ir

#

I dont even know what a faction is

#

But I do know how to divide, so I guess that's cool too

distant sun
#

You don't know what a fraction is?

#

like 1/2

civic stone
prisma wave
civic stone
#

shit wrong channel. my bad

prisma wave
#

np

remote goblet
#

okay

#

so progress

#

I can type ;quote add <String> and it will have

{
  "1": "test"
}
``` in the file but the number never changes and you can only have one string :D
rotund egret
#

@distant sun
Twas a joke, not a great one.

The step before solving division is a fraction effectively,

distant sun
#

ยฏ_(ใƒ„)_/ยฏ

cinder ingot
#

Guys, can someone please help, ive been having the same issue for 11 years

#

My father seems to be an NPE

prisma wave
rotund egret
#

What

cinder ingot
#

everytime i try to access my father it says its null

prisma wave
#

oh

#

OH

#

OHHH

#

lmao

rotund egret
#

Ahahahaha

signal tinsel
#

I'm retarded

#

I compiled my public plugin a few times for an update

#

Now when I pressed the compile button it compiled that instead of the plugin I was working on

#

Was wondering why it didn't work

steel heart
#

String.valueOf(("Hello world").toString());

rotund egret
#

You forgot to cast it

steel heart
#

Who needs to cast things nowadays

#

Just go with unchecked :;)

hot hull
#
(String) String.valueOf((String) String.valueOf("Hello World"));
obtuse gale
#

I'm looking for Developer and Builder

steel heart
#

Looking to hire?

prisma wave
#

Wrong channel

#

What part of "dev-general" makes you think that this is a good place to find builders?

steel heart
#

Dude

cinder ingot
#

He did say developer to be fair

steel heart
#

He meant code builders obv

cinder ingot
#

im not saying this is the right channel but he did say developer

steel heart
#

Calm down :}

remote goblet
#

He mean developers who can code buildings :wonk:

steel heart
#

He meant builder that builds developers who code builders to build code that builds stuff

remote goblet
#

ah yes

prisma wave
#

I love coding buildings

runic flume
rotund egret
#

Building building = new Building(Cathedral)

prisma wave
#

building.build()

hot hull
#

building.sell()
building.profit()

signal tinsel
#

yes

naive sierra
#

hey guys, how are you?? do someone here have already worked with luck perms api? I am having problems to understand all the node structure they have and how to apply some data like meta / suffix to the nodes / groups ๐Ÿ˜ฆ

remote goblet
naive sierra
#

thank you!

ocean quartz
#

Just realized I was accepted for the open source JetBrains license almost a month ago and didn't see it lol

distant sun
#

..

obtuse gale
#

Shouldn't you have a mail or something?

ocean quartz
#

Yeah, just didn't see it xD

sharp saddle
#

hi

#

are we allowed to share a spigotmc resource(plugin) of our own in #showcase ?

pallid gale
#

Yeah @sharp saddle assuming its had a recent update and it's your plugin, go for it!

sharp saddle
#

@pallid gale thanks ๐Ÿ˜

obtuse gale
#

hey guys, I was reading online and it said Manager classes are bad design? Is this true

#

Depends on whatever inside that class

nimble jungle
#

okay i know this sounds dumb
but im trying to add the spigot-1.15.2.jar into eclipse as an external jar but its not importing

nimble jungle
#

how do i compile a jar in eclipse ๐Ÿ‘‰๐Ÿ‘ˆ

quiet depot
steel heart
quiet sierra
#

where did #request-paid go

prisma wave
#

good question

pallid gale
#

you people notice things quickly

#

Took it out for 30 seconds to test something with Barry.

#

Should be back

quiet sierra
#

lmao

#

I'm tryna get money here

pallid gale
#

apologies, ill take -free next time

#

lol

remote goblet
#

lol

pallid gale
#

shrunk like 200 lines in barry's service manager to 30

remote goblet
#

:o

pallid gale
#

trying to optimise him a bit

quiet sierra
#

reminds me of when people learn to use maps lol

pallid gale
#

removing duplicate code and what not

#

making use of promises in js

remote goblet
#

i need to learn canvas one day

pallid gale
#

its kinda hawt

#

pain in the ass

#

but hawt

remote goblet
#

yes

pallid gale
#

Takes barry 270 lines just to generate the =lvl image

remote goblet
#

i mostly hate JS because of the lack of tab complete on vscode

pallid gale
#

Yeah..

prisma wave
#

No autocomplete is annoying in general

#

Typescript seems to make it somewhat better

#

But still

remote goblet
#

there's autocomplete but it only shows current names and none of the methods after

#

Looking at documentation is a lot of work

obtuse gale
#

There's one way to cheese the auto tab thing there

#

Cut all lines of code inside a scope then paste it again, done

#

Even though it's annoying..

remote goblet
#

i could make all the commands in the index.js and just copy everything over but that's annoying

obtuse gale
pallid gale
ocean quartz
#

You might regret asking for people to review your code here, we're all mean xD

pallid gale
#

Pig will tear it to pieces

obtuse gale
#

That's alright

ocean quartz
#

Well, I'll start of with a crucial thing, indentation

#

You need it

remote goblet
#

oh no

#

pig is here

obtuse gale
#

@ocean quartz I used Eclipse's auto format just now, is the indentation supposed to look like that?

remote goblet
#

Don't use eclipse

#

that was the first mistake

ocean quartz
#

You might wanna use IJ yeah, but definitely that is not how indentation is supposed to look like

#

Let me give you an example

remote goblet
#

also what is with everyone and recreating hypixel

ocean quartz
#

Just by looking at the code, if you can't tell me, there is a problem

obtuse gale
#

onEnable

ocean quartz
#

Then why is Bukkit.getConsole.. aligned with it?

#

See the problem?

obtuse gale
#

Yeah

ocean quartz
#

Another small thing, you have a send message method, which you use on the enable, but you also use Bukkit.getConsoleSender which does the same thing, you either use one or the other, not both

remote goblet
#

pig is still typing ๐Ÿ˜…

obtuse gale
#

Alright I changed a setting from Eclipse conventions to java conventions

ocean quartz
#

Another thing I'll point out, be consistent, you have CommandInfo, CommandRegistry then you change to PhazeCommand, try keeping it consistent

distant sun
#

pig my ide is still ugly ๐Ÿ˜ฆ

pallid gale
#

Its not a good sign pig is still typing

remote goblet
#

it seriously isn't

hot hull
#

lol

remote goblet
#

that should mean you hsould run

pallid gale
#

Suggesting @obtuse gale you're gonna receive an essay

ocean quartz
#

@distant sun I had to select the theme again and it fixed it

obtuse gale
#

Btw

ocean quartz
#

@obtuse gale Never catch exception if you can, try catching specific ones instead

obtuse gale
#

I run my ij the whole way through without actually using any themes

remote goblet
#

that's horrible

#

you should reconsider that

obtuse gale
#

It's not actually the best view when it comes to themes

remote goblet
#

funnycube, Should I try to create my own command framework for discord.js thonking

obtuse gale
#

Ok

pallid gale
#

You do you

#

I mean I won't use it

remote goblet
#

It's one of the main reasons I hate discord.js

#

the lack of command framework

obtuse gale
#

Considering the screen is a laptop actually, with 1360x788

pallid gale
#

Commando was a hot pile of mess

obtuse gale
#

It's actually bad for my eyes

remote goblet
#

it seriously is

ocean quartz
#

Also this is a nono protected final Spotlights main = Spotlights.getPlugin(Spotlights.class);, first it shouldn't be protected, second if you need the plugin you should be getting it through DI

pallid gale
#

Barry has like 30 lines and it loads all the commands in /commands/

obtuse gale
#

Mine has that kind of discord.js cmd workspace too ๐Ÿ˜‚

pallid gale
#

I lied, its 10 lines

quiet depot
#
  • Inconsistent indentation; mix of tabs and spaces. Be consistent - spaces only. Tabs do not render nicely on browsers
  • Follow the single responsibility principle. Is your main class a provider of "SpotlightManager", or is it your plugin's entry point? I honestly can't tell. Is "PhazeCommand" a command api, a tab completer, or a messaging utility? Util is yet another class that doesn't follow this principle
  • Use the diamond operator; avoid explicitly declaring generic parameters when not needed
  • Cache reflective lookup operations into constants.
  • Avoid unnecessary static - the list in CommandRegistry doesn't need to be static.
  • Follow the interface segregation principle; shit shouldn't be forced to depend on stuff it doesn't use. For example, AnimationCommand is forced to implement onCommand, yet it doesn't actually use onCommand.
  • Use line breaks, super long lines are hard to read.
  • What on earth? L#26-27 AnimationCommand
  • Use final more often
  • Considering storing the dependency you need, instead of the dependency that provides it. e.g. calling getManager() on Spotlight, instead of simply storing the manager instance (CrystalDamage)
  • DRY, if you use it more than once, it should probably be in a variable, for readability, and maintainability.
  • Try keep business logic separated from your entities
  • Calling #contains(object) and then #remove(object) on a set is redundant. Simply call #remove
  • Using @Nonnull and Preconditions is pedantic
remote goblet
#

Jesus

quiet depot
#

@obtuse gale

ocean quartz
#

Oh boy

quiet depot
#

code isn't actually that bad, I just nitpicked on literally everything

obtuse gale
#

Good job piggy ๐Ÿ˜‚

#

Thanks guys for the feedback

remote goblet
#

posting your code asking for it to be reviewed while piggy is active is usually a mistake and it runs any ego you had originally

obtuse gale
#

No I liked the feedback

hot hull
#

It's usefull feedback @remote goblet

obtuse gale
#

There's a bad habit of me is that every classes i did, I actually pressed "Enter" a lot for my convenience, actually leaving bunch of unnecessary lines at the bottom

hot hull
#

Piggy usually nitpicks so most things aren't that yikes

remote goblet
#

it's useful feedback but it's scary and lowers any ego you had :p

#

Spotify is telling me to clap at 8pm

quiet depot
#

@obtuse gale it's actually convention to have an empty line at the bottom, although 100 may be considered as excessive

distant sun
quiet depot
distant sun
#

ugh

ocean quartz
distant sun
#

ye idk why it looks like that

quiet depot
#

that looks default

#

are you using material theme icons?

distant sun
#

wait it asked me to install atom icons but i didnt had to last time

quiet depot
#

well, try installing them

distant sun
#

idk how

quiet depot
#

file > settings > plugins

#

search atom icons

distant sun
#

oh there we go

#

ty

obtuse gale
#

So, when I code I never seem to have an issue with it not working, i can normally fix that easily, but my code is messy AF, how can i improve that?

remote goblet
#

write decent code

#

dont rush it

sharp saddle
#

Take some time to understand oop and inheritance properly too. It can help add new functionality to your plugins quicker

steel heart
#

arrow code

hot hull
#

If you're making arrow code, atleast don't forget to make a bow..

steel heart
#

Hahah yes sir

obtuse gale
quiet depot
#

yes

remote goblet
topaz bay
#

because your 4head is massive

remote goblet
#

this plugin

#

was made so bad

#

what the hell

steel heart
#

ew

remote goblet
#

Currently recoding this entire plugin

#

because what the fuck

prisma wave
#

@remote goblet ew

#

you've let me down

remote goblet
#

fucking

#

what

ocean quartz
#

Oof package private fields

remote goblet
#

Even the config file

#

is a mess

ocean quartz
#

Always fun to look at old code to rewrite, you find the most wonderful things

remote goblet
#

You find the most disgusting things

wise grove
#

Does anyone here is programming with C# and with Databases?

hot hull
#

@remote goblet Would be easier if you started from scratch if you ask me

remote goblet
#

I did yeah

#

I deleted everything I've done

obtuse gale
#

qฬตอ‘อœwฬดฬขฬ…eฬตอ–อล•ฬตอ™tฬดฬชฬŽyฬถฬปฬ‹uฬทออ รฏฬทฬคoฬทฬฒอpฬดอˆฬ€aฬดฬ˜อ›sฬธฬจอ‘dฬทอ อ…fฬดฬฉอ‘gฬตฬซอ‘hฬตฬณฬ“jฬตฬ ฬˆkฬดอ–ฬ”lฬถฬฐฬ†zฬถฬ˜ฬ€แบฬตอ“cฬธฬฉฬฟvฬตอ™อแธ‡ฬตฬ€แน‡ฬตฬ•mฬทอฬ…1ฬดฬ ฬ’2ฬธฬฎฬ€3ฬตฬนฬ4ฬทฬ˜ฬ†5ฬตฬฐฬŒ6ฬถอ‘อ…7ฬดอ”อ›8ฬตอ•ฬ9ฬถอ‰ฬˆ0ฬดอ‡อ‹qฬถฬฑฬŠwฬดฬปฬŒeฬตฬซฬŠrฬทฬอ tฬดอ™ฬ€yฬทฬงฬลฉฬตฬ แป‹ฬทฬ†oฬธฬบฬŽpฬดฬฑฬ€รฅฬดฬฌแนกฬตฬฑแธ‹ฬถอ™fฬถอ“ฬพ

ocean quartz
#

Me too

twin carbon
#

heeellloo

#

i need help

loud gyroBOT
#

Theres not time to wait! Ask your question @twin carbon!

twin carbon
#

pls

hot hull
#

Don't we all

twin carbon
#

frostyy

#

how to add

#

color

#

material: shield;16701501

hot hull
#

I'd assume it's data, also not the correct place to ask this question

twin carbon
#

deluxemenus

hot hull
#

Yea I figured, still not the right place

prisma wave
#

definitely wrong channel

twin carbon
#

where is the chat

prisma wave
twin carbon
#

sry

obtuse gale
#

Hey guys, I have this code but the texture pack freezes my game, 1.15.2

>     @EventHandler
>     public void onJoin(PlayerJoinEvent e) {
>     Player p = e.getPlayer();
>     
>     if (!textureEnabled) {
>         p.sendMessage(Util.color(textureDisabledMessage));
>         return;
>     }
>     
>     new BukkitRunnable() {
>         
>         @Override
>         public void run() {
>         p.setResourcePack("https://srv-file9.gofile.io/download/2Rh0Tw/texturessssz.zip");        
>         }
>     }.runTaskLater(main, 20L);
>     }
> ```
https://media.discordapp.net/attachments/690470011382267904/697933244133277757/SPOILER_Screenshot_122.png?width=1120&height=630
remote goblet
#

are you trying to

#

constantly set your pack?

#

idk honestly

#

๐Ÿคท

obtuse gale
#

No its happens 20 ticks after the player joins, someone reccomended that I do that but it doesn't work still. I'm only setting it once

frail glade
violet creek
#

@obtuse gale Texture packs on servers can be a pain sometimes. Your code seems fine actually. What happends if you use an already existing resource pack plugin, and insert the same resource pack url? If it also crashes, you know the issue is with the resource pack. If it doesn't, idk

thick tulip
lunar cypress
#
git clone https://github.com/isokissa3/WorldGuardExtraFlagsPlugin.git
cd WorldGuardExtraFlagsPlugin
git checkout 7ceace5eba71a5a0597b4797c7a0e3364b96251e
mvn clean package
#

do that in git bash

thick tulip
#

okay

lunar cypress
#

install git and maven if you haven't already

thick tulip
#

how do you install maven?

lunar cypress
thick tulip
#

yeah thats where im stuck, i downloaded the .zip

prisma wave
#

Extract and add to your path

thick tulip
#

ahh ok

#

now how do i build the jar from the compile?

prisma wave
#

mvn clean package

thick tulip
#

ok

#

i did that

#

but no jar file was made

lunar cypress
#

what does it say in the console

compact perchBOT
#
HelpChat Paste

Please use a paste service to share configs, errors, code and long logs.
โ€ข HelpChat Paste

thick tulip
#

forgot to add that one

prisma wave
#

Essentials repo is down by the looks of it

#

This is where the fun begins

thick tulip
#

oh o xD

lunar cypress
#

you can download the essentials jar and install it manually on your local maven reporsitory

thick tulip
#

essentials or essentialsX?

lunar cypress
#

it says Essentials 2.13 there

thick tulip
#

ok

#

and how do i install it manually to the repository?

thick tulip
#

ty

prisma wave
#

Or if essentials uses maven

#

Just clone that and mvn install

#

Oh yeah you said that

lunar cypress
#

if essentials uses maven this will work

mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=<path-to-file>
#

but yeah you can also clone and build yourself

thick tulip
#

do i change anything in that? or just copy n paste?

lunar cypress
#

path-to-file

thick tulip
#

what do i change that to?

lunar cypress
#

should change that to the path of the essentials jar

thick tulip
#

ok

#

https://paste.helpch.at/howabamoze.sql i get this, not sure if im putting it in correctly mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=D:\Desktop\WorldGuardExtraFlags\essentials\Essentials.jar

prisma wave
#

You need to do \\

#

And also D:\Desktop?

#

Shouldn't it have Users\Username\Desktop?

distant sun
#

^

hot hull
#

it has to be the entire path ye

lunar cypress
#

The specified file ... not exists

#

thank you maven

thick tulip
#

that is the hole path

distant sun
#

it can't be

#

the desktop is assigned to an user profile afaik

thick tulip
prisma wave
#

It's probably C:\Users\Username\Desktop\Blah

#

iirc the folder properties shows the full path

thick tulip
#

but my desktop is D drive not C Drive

prisma wave
#

D:\ then

thick tulip
#

ok

#

idk where to find the user because it doesnt show

distant sun
#

press there and you will see the full path

thick tulip
#

thats what i did

#

it only shows what i pasted before

#

D:\Desktop\WorldGuardExtraFlags thats what gets shown when i click on it

#

the user/<username> doesnt show for me

prisma wave
#

iirc the folder properties shows the full path

#

windows is weird

thick tulip
prisma wave
#

huh

#

ok so for some reason that is the actual path

#

you need to use \\ to separate the directories

#

bc java

thick tulip
#

ok so use \ instead of the ?

#

*

#

instead of the \

prisma wave
#

D:\\Desktop\\WorldGuardBlah

thick tulip
#

okay there we go

prisma wave
#

you have to do 3 backslashes

#

they get escaped

#

\\\ = \\

thick tulip
#

i did 2 and it built successfully

prisma wave
#

cool

#

ok so now try building the main plugin

#

it should work now

thick tulip
#

so now i dont have to do that again and just run the compile thing again?

prisma wave
#

pretty much yeah

thick tulip
#

got the same issue as before

#

can someone build it for me and send it to me?

lunar cypress
#

you might have to remove the essentials repo from the pom.xml

#

@thick tulip

thick tulip
#

@lunar cypress how do i do that exactly?

lunar cypress
#

actually check whether it's even in the local repository

#

go to the .m2 directory in users/user

thick tulip
#

ok

#

doesnt look like it

#

it is

lunar cypress
#

correct version too?

thick tulip
#

2.13.1

#

is what the version is

#

i cant find 2.13

lunar cypress
#

then change the version in the pom.xml

thick tulip
#

ok

#

which pom.xml?

lunar cypress
#

the one of the world guard extension

thick tulip
#

ok

lunar cypress
#

2.13.1 should be compatible with 2.13

thick tulip
#

cant seem to find where the essentials version is stated in the WG pom.xml

#

nvm found it

#

its in the WG folders

lunar cypress
#

if there are multiple poms, replace it in all of them

thick tulip
#

yes i will

#

now im getting the error message for 2.13.1 isnt found xD

lunar cypress
#

what's the error

thick tulip
lunar cypress
#

and also show me what you've found in .m2

#

you need to remove the essentials repository it seems

lunar cypress
#

from the pom

thick tulip
#

so just remove it from the WG pom.xml?

lunar cypress
#

yeah

#

that should work

#

if it doesn't, send the pom.xml

thick tulip
#

ok

#

wrong one

#
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR]
[ERROR] -> [Help 1]
#

im sure i've installed JDK

lunar cypress
#

Change your java home variable

thick tulip
#

how?

lunar cypress
#

How do I set my JAVA_HOME variable? (Windows)

  1. Look for "environment variables" in the search bar and open the suggested settings.
  2. On the bottom right, click on "Environment Variables...".
  3. In the system variables window, look for a variable JAVA_HOME. If it doesn't exist, create it. Set its value to the path to your JDK.
  4. Select the variable Path and click Edit. If there are any java-related paths in the list, delete them. If the value doesn't exist already, add %JAVA_HOME%\bin .
  5. Repeat 5. for the Path variable in the user variables.
  6. Close all settings with OK.
  7. Open a new command prompt (Windows + R and enter "cmd") and type java -version. You should see the version of your JDK now.
thick tulip
#

I dont have a JAVA_HOME variable

lunar cypress
#

...

thick tulip
#

lol

lunar cypress
#

read the instructions

#

If it doesn't exist, create it. Set its value to the path to your JDK.

thick tulip
#

ahh yes

#

i did all that but it still shows

Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
Java HotSpot(TM) Client VM (build 25.241-b07, mixed mode, sharing)``` in the command promt
lunar cypress
#

show me your Path variable contents

thick tulip
#

after looking at your instructions

lunar cypress
#

you haven't looked at the instructions closely enough

#

If there are any java-related paths in the list, delete them

#

If you just follow those instructions from start to end, literally nothing can go wrong

thick tulip
#

Nothing java was in there before

#

nvm

#

C:\Program Files (x86)\Common Files\Oracle\Java\javapath remove that?

lunar cypress
#

yes

thick tulip
#

is there any others I'm missing?

lunar cypress
#

If you're unlucky, there might be a java binary in system32

#

does it not work?

thick tulip
#

nope it still shows the same

lunar cypress
#

remember to save and open a new terminal each time

thick tulip
#

i did

#

could you possible build it for me?

#

the WG

lunar cypress
#

then look whether java is in system32

remote goblet
#

delete system32

#

jk dont

thick tulip
#

lol

lunar cypress
#

And also

#

have you checked both Path variables

thick tulip
#

yes

lunar cypress
#

do echo %JAVA_HOME%

quiet depot
#

@prisma wave my other idea was space invaders

#

i liked galacticraft more tho

remote goblet
#

so, scrolling through new resources on spigot ๐Ÿ˜…

prisma wave
#

Space invaders sounds cool too

#

Possibly easier as well

quiet depot
#

not in the way I was thinking of it

hot hull
#

I got a neat idea, issue is I'd need rps to make it look nice

quiet depot
#

mine requires a resource pack

ocean quartz
#

I think i'll do something related to the moon

prisma wave
#

?plsnoarrowcode @remote goblet

remote goblet
#

If I had an idea, i couldn't make it :)

pallid gale
#

just make the moon

quiet depot
#

mine requires 3d models & world gen stuff mainly

prisma wave
#

ambitious

remote goblet
#

look at it tho brister

hot hull
#

Going all out I see

prisma wave
#

It's hideous

remote goblet
#

uppercase packages and full on arrow code else

quiet depot
#

I've never messed with 99% of the spigot api, so this is gonna be fun

ocean quartz
#

Trying to mess with gravity will be fun

hot hull
#

bunch of velocity shit kek

pallid gale
#

or jump boost and levitation effects

remote goblet
#

make me a plugin that turns me into a circle

ocean quartz
#

Yeah that's what I was thinking

#

Sounds easier

prisma wave
#

You could probably give levitation and slow fall for like a second when they jump

ocean quartz
#

I think 1.15 has the slow falling effect

remote goblet
#

si

prisma wave
#

omg I've had an idea

#

NoMinesSky

#

Procedurally generated planets

#

possibly custom ores and stuff

quiet depot
#

yikes.

ocean quartz
#

Oof good luck

prisma wave
#

yeah

remote goblet
#

Do it

prisma wave
#

I've got a week

#

Could probably get a command or two done in that time

quiet depot
#

people have recreated minecraft in a week using c++

#

this is ez

remote goblet
#

do it in java to add the pressure

prisma wave
#

true true

#

No

#

No Java

pallid gale
#

Make it better then the original

prisma wave
#

I need max productivity

remote goblet
#

remake minecraft in a plugin

prisma wave
#

lmao

pallid gale
#

club penguin ploogin

#

pls

remote goblet
#

YES

#

I NEED THAT

quiet depot
#

space related

pallid gale
#

they take up space

prisma wave
#

club penguin in space

pallid gale
#

on and island

prisma wave
#

The iceberg starts flying

quiet depot
#

space titanic

hot hull
#

flappy bird in space

pallid gale
#

listen to the switch hand effect to launch a snowball

prisma wave
#

space titanic
Doctor who did that

remote goblet
#

remake flappybird

quiet depot
#

when lol

#

what season

prisma wave
#

like 2006 I think

#

Second David Tennant Christmas special

quiet depot
#

oh

prisma wave
#

Voyage of the damned

quiet depot
#

I've only watched a few episodes of pre matt

prisma wave
#

The early ones are worth a watch

quiet depot
#

idk

prisma wave
#

pretty consistent in quality

quiet depot
#

I grew up watching matt smith's season, so that's my favourite

ocean quartz
quiet depot
#

tardis plugin in mc

#

already done though

prisma wave
#

Matt Smith's are the best

quiet depot
prisma wave
#

And capaldi

quiet depot
#

ugh I can't remember the gh

prisma wave
#

But the earlier ones are good too

quiet depot
#

there we go

#

massive respect for that guy

#

that plugin is literally og

pallid gale
#

Just googled "Club penguin plugin", found a spigot thread on it, scrolled down, saw a post by me on it

#

scary shit

prisma wave
#

That's pretty cool

quiet depot
#

been around for ever

#

it's the best plugin hands down

#

you can teleport around in your tardis

#

you can grow rooms

#

evolve your tardis

#

make gadgets

#

like jammy dodgers

#

a sonic

hot hull
#

"tardis"

#

tf does that even mean

prisma wave
#

It's massive

#

time and relative dimension in space

quiet depot
#

time and relative dimension in space

prisma wave
#

ha

quiet depot
#

I had to look it up, guess i'm not a real fan ๐Ÿ˜ฆ

lunar cypress
#

poser

quiet depot
#

And capaldi
capaldi was good

#

I haven't watched the new one with the girl

#

don't really want to

hot hull
#

Piggy, gimme a cool idea, ktnx

quiet depot
#

space invaders

lunar cypress
#

jodie whittaker good

hot hull
#

elaborate

quiet depot
#

ur in space

#

there's invaders

lunar cypress
#

@hot hull the arcade game

hot hull
#

ur in space
there's invaders
Ah yes

quiet depot
#

be creative nerd

remote goblet
#

ive been doing this for so long

prisma wave
#

The latest Whittaker series is decent

#

The first is kinda wack

lunar cypress
#

haven't seen the latest unfortunately

#

I don't want moffat anymore ๐Ÿ˜”

rotund egret
#

Moffat? Is that like a type of fruit?

quiet depot
#

lel

#

he was the writer

#

or is the writer?

rotund egret
#

Oh uhh... dr who?

quiet depot
#

yea

rotund egret
#

I used to watch it.
Got tired out after old man took stage

quiet depot
#

I honestly don't know if that's a reference to your own age, or capaldi

#

i'm gonna assume capaldi

#

in which case, capaldi was great

#

you should totally watch it

rotund egret
#

Maybe.
I did try watching the older stuff and it was too bad of acting for me to get into it.
(Product of the times sadly)

prisma wave
#

capaldi was awesome

#

moffat is gone now

quiet depot
#

@frail glade u participating in this contest?

frail glade
#

No

quiet depot
#

y

frail glade
#

I have 3 exams next week

quiet depot
#

lame

frail glade
#

(:

rotund egret
#

What contest is this?

frail glade
#

We should drop PAPI3 for the contest

quiet depot
#

it's space themed though

#

if neptunepowered was still a thing, I could've done papi 3 support for neptune

rotund egret
#

Just use spaces instead of tabs, and call it themed

frail glade
#

Man's got a point

quiet depot
#

ez

#

@hot hull there's ur idea

frail glade
#

We should just put a spacer line after every line of code

quiet depot
#

like deluxemenus

frail glade
#

Ya

hot hull
#

oof

frail glade
#

(:

hot hull
#

I have an idea, if I can pull it off, it'll be neat af

frail glade
#

Awesome

steel heart
#

        if (stack.getStackSize() > 1 && stackSize == 1) {
            stack.setStackSize(stack.getStackSize() - 1);
            EpicSpawners.getInstance().getDataManager().updateSpawnerStack(stack);
            return true;
        }

#

bruh EpicSpawners code is meh

hot hull
#

what in the lol

remote goblet
#

You realise this now?

#

I've been telling everyone songoda sucks :o

obtuse gale
#

How do servers bypass Mojang blacklist

quiet depot
steel heart
#

I've been telling everyone songoda sucks :o
@remote goblet I'm sorry but I never heard of them

#

But this was shocking though

remote goblet
#

be thankful tho lmao

steel heart
#

Yes lol

#

I'm suprised they earn money

ocean quartz
#

Songoda is alright, the website is pretty buggy but it's getting more and more people

steel heart
#

Some of their code is kinda meh tbf

ocean quartz
#

The creator dashboard is great
Was talking about the website though

steel heart
#

Yeah ig

ocean quartz
remote goblet
#

dear god

ocean quartz
#

That was just changing the scale from 0.005 to 0.01

frail glade
#

Am confused to why when I convert files from Java to Kotlin, the file size increases ZoomEyes

#

I'm removing like 10 lines per-class. You'd think it'd be smaller.

prisma wave
#

source code size or compiled size?

frail glade
#

Compiled

prisma wave
#

because kotlin compiles all sorts of checks for you

frail glade
#

Ahh

#

Well then I'm okay with that.

prisma wave
#

every single non null variable gets null checked with a message for example

frail glade
#

Ohhh that's right

#

I've got about 40 commands left to convert.

#

Over half way!

prisma wave
#

Nice

topaz bay
#

@frail glade you should probably also realize, just because the source is smaller, the actual bytecode representation is still generally the same

#

it still makes actual java classes and methods

frail glade
#

That is also true

#

Alrighty, not really a concern. I'm just focusing on cleaning up some stuff to get rid of extra size where I can.

#

I was able to get rid of the guava I was compiling and commons IO so far ๐Ÿ˜Ž

topaz bay
#

@frail glade add these flags

-Xno-param-assertions
-Xno-call-assertions

to the compiler

#

And watch all those nasty intrinsic calls slip away

frail glade
#

intrinsic?

#

Not sure what you're talking about

topaz bay
#

The kotlin instrinsics are the checks the compiler inserts into every boundary to assert state

#

At the beginning of methods, before access of method results

#

To assert non null at runtime

frail glade
#

Why would I want to get rid of them then?

topaz bay
#

Well to be entirely honest, working with kotlin only code you have very little need for them

#

Since nullability is defined at the type level

#

And 2. it could reduce jar size