#dev-general

1 messages · Page 207 of 1

static zealot
#

no no no no.

regal gale
#

This is where it's from

obtuse gale
#

that's the steepest arrow code I've seen in a good while

#

*uses 8 chars long tabs*

#

there we go

regal gale
#

Also, am I allowed to modify every single script thonking

static zealot
#

wait but all those ifs could have been done in one if could they not ?

hot hull
#

Question is what the hell is that spacing

static zealot
#

what spacing?

#

also function hasitem() { 😦

#

also it uses if and this time they could have just used switch.

regal gale
#

Can i modify it?

static zealot
#

I mean I assume you can. Can't you?

#

but also

#

there's the checkitem expansion now

#

so

#

is it rly needed?

hot hull
#

Wdym what spacing lol, u blind?

a ( a )

static zealot
#

oh

#

that one

regal gale
#

IJ just crashed on me...

#

Also, aboody is the author of has_item script

#

Idk if it's really needed now

static zealot
#

yeah I know.

#

that's what I'm saying

regal gale
#

Also, "data" script seems too complicated for new users

static zealot
#

I mean its good tho.

regal gale
#

Just realized

static zealot
#

there is a wiki for data

#

if they want to learn how to make their own

regal gale
static zealot
regal gale
#

Should've edited that sometimes soon

#

There is Data.setIfNull()

static zealot
#

wait

#

but where do those example even show on?

regal gale
#

?

static zealot
#

is it the community scripts ?

regal gale
#

Yeah

static zealot
#

the thing is

#

that's not meant to be easy ...

#

its good as it is

#

that's not for examples. Thats for use.

regal gale
#

Btw, who's the author of faction script?

static zealot
#

faction script?

#

what even is that

regal gale
#

Ok found it

#

From frosty

#

I am adding credits inside each scripts

#

// Author: aBooDyy && NathanG

static zealot
#

wait but the factions one is not on the community scripts

regal gale
#

It's not, yeah

static zealot
#

its the only one that is not there I think

regal gale
#

I'm adding new changes to v1.6.1 expansion now

#

It includes Data.setTemp(), Data.getTemp(), Data.clearTemp()

#

When you use this, after Placeholder.saveData() and restart, everything in this data will not be saved

static zealot
#

oh so its basically saved until a server restart

regal gale
#

Yeah

static zealot
#

no matter what

regal gale
#

Or even expansion reload

winter iron
#

Not sure where to ask this but my server has plugins which have updaters which are not connecting their hosts, I cant even join the server it says authentication error so I assume it isnt contacting Mojang. Not sure what to do 😦

#

running on linux

obtuse gale
#

i have a question for a plugin dev, is there one whom i can talk with ?

hot hull
#

Ask away

obtuse gale
#

is it possible to make a plugin that can manage "Speedruns"
Make a world per player and keep track of there progress.
Delete their wold if they play on hardcore and die and then they have to create new world.

#

and so on

hot hull
#

Possible yes

obtuse gale
#

Hmm, would it be best to get a standalone plugin made for this. Or try and find different plugins that might be able to do this.
Or could that effect the performance

hot hull
#

Doubt anything like this would even be possible with mix matching different plugins

obtuse gale
#

Ok. because i only know of a plugin that makes world per player.

hot hull
#

@ocean quartz Why is mf gui maven :c

ocean quartz
#

Cuz maven central

hot hull
#

Gotta make a project so I can even debug shit first ;C

frigid badge
#

Cuz maven central
@ocean quartz wut

hot hull
#

He's a 4head

ocean quartz
#

@frigid badge It is extremely annoying to publish to maven central through gradle, the only way i got it working was to stage but i had to manually release on the website so i switched back to maven

onyx loom
#

can i create a private repo then make it public at another time? or would i have to create another repo for that?

hot hull
#

You can yes

onyx loom
#

awesome

#

installing a new ssd so im wiping my drives and need to save my projects somewhere fingerguns

prisma wave
#

what a coincidence

#

i am also installing a new ssd

onyx loom
#

LMAO

#

amazon prime day?

#

and which one u get

prisma wave
#

yep lol

#

wd blue 1tb nvme

#

you?

onyx loom
#

samsung 860 evo 1tb

prisma wave
#

very nice

onyx loom
#

u 2 😄

#

ur first nvme?

prisma wave
#

yup

onyx loom
#

exciting

prisma wave
#

installing it was surprisingly easy

onyx loom
#

indeed

#

simple standoff screw, place it in m.2 socket

prisma wave
#

yea super easy

#

damnnn

onyx loom
#

hell yea

#

i need to do a CDM for my nvme too

#

i got a 970 evo nvme too lol

prisma wave
#

how you got 2

onyx loom
#

860 evo is sata

prisma wave
#

ah right

#

yeah

onyx loom
#

altho i was thinking of getting another nvme, i have m.2 slots on my board

prisma wave
#

fancy

#

could be worth it

onyx loom
#

just didnt feel the need for another nvme as the difference isnt too big in games

#

compared to OS boot times for example

#

u put ur OS on nvme?

prisma wave
#

yeah true it's basically unnoticable for games

#

im going to

#

backing stuff up to reset pc

onyx loom
#

noice

prisma wave
#

debating whether or not to dual boot linux now i have the space

#

what's wrong with adopt

#

yes

onyx loom
#

"Videos"

prisma wave
#

there we go

obtuse gale
#

lmao

umbral mica
hot hull
#

Or the dude just forked it 3 times

#

Which wouldn't be that big of a surprise

static zealot
#

agreed xD

#

I did it 2 times in the same day once.

umbral mica
#

erm you can't have multiple forks of a repo lol

static zealot
#

pretty sure you can fork it multiple times

umbral mica
#

Even if you're forking a fork, and have already have forked the original, it will just go to your fork

hot hull
#

You delete the previous one

umbral mica
#

that led to some interesting versioning

#

Well yes you can do that ofc

hot hull
#

I do that when I have to rebase since it's 100x faster

ocean quartz
#

That's one of the devs from IS

static zealot
#

yeah

#

the PlotSquared expansion is his I think

#

that's what he pushed as well

#

I'll merge the update

obtuse gale
#

no

#

pls dont

static zealot
#

what? why?

obtuse gale
#

do it for me 🥺

static zealot
#

andre did it .. xD

obtuse gale
#

LMAO

flat flume
#

is this how you play a sound?

            player.playSound(player.getLocation(), Sound.ZOMBIE_INFECT, 1.0F, 2.0F);
onyx loom
#

?tryandsee

compact perchBOT
distant sun
#

max volume and pitch is 1.0f iirc

empty flint
#

I have this stupid IntelliJ problem where a kotlin standard function results in an unresolved reference. I have tried invalidating the cache and restarting IJ

#

but it did not help

#

StringBuilder.appendLine(...) -> Unresolved reference: appendLine

#

Any ideas what I could do?

obtuse gale
#

dead channel

#

😔

onyx loom
#

ok

hot hull
umbral mica
#

who needs comments?

ocean quartz
#

Then there is me who comments even the most obvious thing kek

hot hull
#

@frigid badge Did u accept my pr?

frigid badge
#

forgot

#

i will look at it

#

now

#

merged

hot hull
#

Make sure to mark it as hacktober accepted

frigid badge
#

isn't necessary since the repo is already marked as hacktoberfest

#

but sure I will just for you

prisma wave
#

does anyone know of a command framework that supports "in-between arguments"?

#

so something like ```
/booster <blah> activate
/booster <blah> deactivate

where blah could be anything
#

ACF doesn't seem to, doesn't look like MF does either

frail glade
#

Does cloud?

prisma wave
#

potentially

#

Although I can't find any definite information and don't wanna spend time rewriting everything just to find it doesn't work

static zealot
#

I was going to say you could probably use @Optional with MF but I forgot it only works on last parameter.

prisma wave
#

yeah 😕

#

time to waste a week adding this to acf?

static zealot
#

just 1? that's worth it xD jk

distant sun
#

to MF*

static zealot
#

yeah add it to MF

#

if you can

#

I use MF xD

prisma wave
#

never used mf

distant sun
#

is never too late

ocean quartz
#

@prisma wave What do you mean by in between arguments? ;o

prisma wave
#

pretty much exactly this

#
/bossbar add <id> <name>
/bossbar set <id> color <color>
/bossbar set <id> name <newname>
/bossbar remove <id>```
#

where id could be anything

#

I could just use @CatchUnknown but then no tabcompletion 😦

obtuse gale
#

Yeah cloud can do that

prisma wave
#

interesting

#

might be worth a look then

ocean quartz
#

Wouldn't that be just public void command(Player player, Object id, Color color)?

prisma wave
#

no because it's color not <color>

#

i.e it has to be literally "color"

#

like a subcommand

ocean quartz
#

Oh okay, sounds complicated

prisma wave
#

yeah it seems tricky to implement

#

@obtuse gale do you know if Cloud will properly tabcomplete with brigadier with those?

obtuse gale
#

Ye

static zealot
#

I mean you could just check if second parameter is "color" or "name" can't you?

prisma wave
#

I could, but then I'd lose tabcompletion and it would defeat the point of using a framework

#

ok ty

#

i'll look into cloud

#

looks quite good

static zealot
#

you can add it yourself

#

the tab completion

prisma wave
#

messy

static zealot
#

using @Completion

#

welp I mean it works xD

obtuse gale
#

While cloud isn't really "thought" rn for annotated commands or whatever tf they're called, they are somewhat supported and they'll get properly into it, right now City just wants to clean it up as much as they can

prisma wave
#

yeah but so does cloud hopefully :))

static zealot
#

👍

prisma wave
#

Makes sense

#

The builders are kinda ugly imo, but hopefully the annotations are good enough

obtuse gale
#

If you want to go with annotations that is

#

Would share an invite to the discord but Barry won't like that lolz

prisma wave
#

it's on the github so np

obtuse gale
#

Incendo

#

Yeah

prisma wave
#

it's quite a lot of boilerplate to make a commandmanager

obtuse gale
#

City isn't on this discord

#

Rip

rotund egret
#

Fefo 👀

obtuse gale
#

👀

steel heart
#

City ma man

#

Undoubtedly he is also Swedish fingerguns

#

Cloud hooks into commodore right?

hot hull
#

Is there an IJ plugin which auto documents stuff? 🥺

distant sun
#

Lol

steel heart
#

Yep, there’s a plugin that writes the code for you

obtuse gale
#

Cloud hooks into commodore right?
@steel heart yessir

#

Also hi

distant sun
kindred hatch
#

Hipity hopity, the code is now my property

static zealot
#

you stole my line that I stole from Dani.

kindred hatch
#

Go drink milk

static zealot
#

shut! shut!

kindred hatch
#

But

#

Is it just me

#

Or is squidward looking...

static zealot
#

kinda sad 😦

kindred hatch
#

B

hot hull
#

shut shut yes

heady birch
#

theres a QR one that is really cool

#

dani. have you watched that netfliks show?

quiet depot
#

welp i fucked up dual boot

frigid badge
#

lmao

#

what did u do

quiet depot
#

i'm not 100% sure

#

first thing I switched from raid to achi

#

then I resized the c partition, and make a new partition for ubuntu

#

told ubuntu to install on that partition

#

then it said it's going to create it's bootloader on "blahblah0" or something

frail glade
#

Did you install on the wrong on

quiet depot
#

ig that overwrote the windows loader

#

I think I needed to select the "install alongside" instead of "install on partition" option

#

so reinstalling windows, not going to manually make the partition this time, will let ubuntu do that

frigid badge
#

but why didn't you just use wsl2?

#

if all you want is ubuntu & windows

quiet depot
#

"all i want"

#

ubuntu is like weed

#

it's a gateway drug

frigid badge
#

I mean wsl can run many distros

hot hull
#

What's wrong with weed :c

quiet depot
#

i mean nothing

#

i've been using ubuntu for years and never needed to switch

#

on the server side of things that is, not the desktop

#

regarding why not wsl2, no reason in particular

ocean quartz
onyx loom
#

Me

static zealot
#

Me

#

I'm literally working on 3 projects at the same time and the one I started yesterday I just left it xD

hot hull
#

Only working on 1 project now cause I've abandoned the rest <o/

old wyvern
#

is Collidable a word?

#

uh

#

What is proper english for "something that can be collided with"

onyx loom
#

yes

quiet depot
#

i'd say a "physical object"

old wyvern
#

hmm yea that makes more sense

#

Thanks pig

onyx loom
old wyvern
#

Holy

#

xD

onyx loom
#

yup. i cba reading it for myself 😄

old wyvern
#

Im just gonna go for physical object for now

quiet depot
#

what u need it for?

hot hull
#

To describe an object that can be collided with duh

old wyvern
#

A weird HCI project

quiet depot
#

hci?

old wyvern
#

just a presentation, but the professor is a bit strict about how its worded

#

hci?
@quiet depot
Human Computer Interaction

quiet depot
#

oh

#

if collidable is an explicit requirement, then perhaps a diagram is in order

#

have a gif of you punching said object as hard as possible

#

show the damage

old wyvern
#

Nah its actually just used in a sentence about a drone avoiding "collidable" surfaces

quiet depot
#

collidable

old wyvern
#

I changed that to physical objects

quiet depot
#

o

#

can I see the sentence?

old wyvern
#

sure

hot hull
#

Okay so I need some suggestions, my wifi is shit, do I just take a hammer and beat the shit out of the router or?

old wyvern
#

Destroy it

quiet depot
#

put your router in the microwave

#

or the dishwasher

onyx loom
#

keep it as physical objects, theres more words there kek

quiet depot
#

The drone would be equipped with proximity sensors to prevent collisions.

old wyvern
#

Ahhhh yes that is a much better sentence

hot hull
#

lol

#

Oh wait I can just get Kali to nuke my location

quiet depot
#

don't do that iss thing

#

you'll get arrested

hot hull
#

That'll be more effective I think

#

Yugi, please fix those color tones tho, that's gotta be a bitch to read

quiet depot
#

yeah light text kthx

old wyvern
#

wdym frost?

#

Thats the text formatting that came with the template

hot hull
#

Disgusting

old wyvern
#

😢

prisma wave
#

what's the point of Adventure? is it just a nicer version of the componentbuilder api?

quiet depot
#

yes

prisma wave
#

worth shading?

quiet depot
#

if you're going for platform independence

prisma wave
#

Probably not, just Cloud uses it for its help message generation so I guess I'll need it

distant sun
#

what's this 'cloud' thing?

frail glade
#

New command frameowkr

quiet depot
#

waffle

#

i installed 1.0

hot hull
#

Anyone else love db connection errors 🥺

frail glade
#

kk

quiet depot
#

but daemon is broke

distant sun
#

link?

frail glade
#

Oof.

#

Do I need to fix it?

quiet depot
#

maybe

#

do I need to upgrade to the new daemon?

frail glade
#

DM me the stuff and I'll investigate so you can go to bed.

quiet depot
#

guessing I do

#

i'll try first

#

I just don't see an upgrade guide for it

#

o found it

#

ok it's working

#

@frail glade go crazy

frail glade
quiet depot
#

check pms too

frail glade
#

I need to continue working on TP beta.

distant sun
#

TestPlugins ?

frail glade
#

Mhmm

distant sun
#

"TP 2020 update coming in 2021"

distant sun
#

how do you use when () with enum?

heady birch
#

when (enum) {
is VALUE -> {
}
}

#

something like that

surreal quarry
#

no is

ocean quartz
#

It's just

when (enum) {
    Enum.VALUE -> {
    }
}
distant sun
surreal quarry
#

is PetType a variable here?

ocean quartz
#

PetType?

#

Exactly ^

surreal quarry
#

it needs to be a variable of type whatever enum you have

distant sun
#

wait I'm stupid lol

frail glade
#

Those when statements are god-tier.

#

I had to write one the past few days to handle a bunch of on-demand changes and it's been amazing.

static zealot
#
when {
  PetType == PetType.MONEY -> {
  }
}```
#

gaby

steel heart
#

Yo Java has that also nocap

static zealot
#

when? I think I saw someone saying it has it on newer versions

steel heart
#

It has the functional version like case A, B -> {}

#

not the boolean thing I think

distant sun
#

any idea why this doesn't go over 2? minedBlocksMaps.merge(owner.uuid, amount) { _, value -> value + amount }

#

ah I need to switch _ with value

ocean quartz
#

Java 15 has

switch (enum) {
  case Enum.VALUE -> 
}

Which is similar to when

scenic oak
#

Is there a way to limit how far a mob wonders from a certain position in mc

#

I know I could make a check for but I feel like that would be making too many calculations since I am already making distance calculations for the player to a specific landmark block. There are up to 40 landmark blocks in the world (all within 1000 blocks)

distant sun
#

is not possible to use switch with Enum#values @ocean quartz ?

#

kotlin syntax is sometimes confusing

ocean quartz
#

@distant sun Wdym?

distant sun
#
switch (Enum.values()) {
  case Enum.X:
  case Enum.Y:
}```
ocean quartz
#

I mean that wouldn't work in java either, values is an array

distant sun
#

ok I need a break

ocean quartz
#

What are you trying to do?

distant sun
#

ye idm xd

silent swallow
#

I have literally no knowledge of plugin dev, but I found the src for a plugin I want on GitHub. How do I turn it into a JAR file for me to use?

static zealot
#

you download it and open it using IIJ or something then you compile it if everything works fine

silent swallow
#

So I am in Eclipse trying it

#

is that wrong LOL

surreal quarry
#

well no but yes

silent swallow
#

again total noob here

surreal quarry
#

intellij is better

static zealot
#

well yes and yes

#

xD

silent swallow
#

OK from my researcxh, i have figured out the plugin ises 'Gradle wrapper"

static zealot
#

IIJ > Eclipse

silent swallow
#

does that make sense?

surreal quarry
#

if you just wanna compile it, you can use like mvn package or ./gradlew build

silent swallow
#

uses*

#

James I also did try the gradlew build after installing, but i get a mess of errors

#

so I am trying a diff method

static zealot
#

what errors exactly?

silent swallow
#

first it said the plugin uses deprecated features not available in Gradle v7.0

#

so I went down a version, then just siad some generic error

#

I will pull it up again one sec

distant sun
#

What plugin & errors

surreal quarry
#

deprecation usually isnt an error its a warning

distant sun
#

^

silent swallow
#

thats what Im trying to compile

surreal quarry
distant sun
#

Ok, and the error?

surreal quarry
#

he has a jar right there

silent swallow
#

3.0.2 doesnt work

surreal quarry
#

oh

silent swallow
#

but 3.0.3 does

#

but 3.0.3 JAR isnt 'released'

distant sun
#

8 feb 2019 though

silent swallow
#

yea its ancient

#

but it does work

#

if i can get the gd jar lol

distant sun
#

Send the error you are getting from gradle

silent swallow
#

for sure 🙂 give me a few

#

I also could be using gradle totally wrong

distant sun
#

run gradlew shadowJar

surreal quarry
#

build already depends on shadow jar

silent swallow
#

Wait hang on jsut so I am clear here

#

I downloaded then extracted a ZIP of the git hub

#

from that plugin

surreal quarry
#

you can usually just git clone <link> but that will work too

distant sun
#

ok, now open a cmd and run that

silent swallow
#

do i go to the directory with my src files in it from github

#

or just anywhere

distant sun
#

Outside src

surreal quarry
#

from the root directory of the project

silent swallow
#

Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain

#

I obv missed a step lol

#

thanks for taking the time to answer me

surreal quarry
#

no he doesnt have the gradle wrapper included

#

in the source code

distant sun
#

Great lol

surreal quarry
#

i suggest you download intellij and import the project as a gradle project

#

which should generate the missing gradle files

silent swallow
#

will do

distant sun
#

Does eclipse have no support for any build tool?

silent swallow
#

It does say i can Import Gradle Project in eclipse

#

and I did that

#

but IM literally lost after that step

surreal quarry
#

uh it might but i dont like eclipse nor know how to make it work lmao

#

if you wanna use eclipse you could send some screenshots and we can try to figure it out

silent swallow
#

taht seems to be general consensus from forums ive been on all day trying to do this

distant sun
#

Well yea but is not worth to download another program just for that

silent swallow
#

nah its good im installing IntelliJ right now

#

Importing now to IntelliJ

#

OK done

distant sun
#

open build.gradle and press the green triangle near build

silent swallow
#

opened, but dont see the green triangle

#

is it a Play button

distant sun
#

ye

silent swallow
#

Run Anything?

distant sun
#

|>

#

run build or smth

surreal quarry
#

gaby are you trying to reload the gradle project or build?

distant sun
#

ah you can do it from the gradle tab as well

silent swallow
#

trying to send Screenshot but I dont see that

distant sun
#

gaby are you trying to reload the gradle project or build?
@surreal quarry doesnt it index the dependencies when the project is opened?

surreal quarry
#

i think so gaby
lucfours - on the far right side there should be a gradle panel, open that up and then double click build

distant sun
#

Thanks james

silent swallow
#

Doing that now

#

23 errors RIP

distant sun
#

Good

surreal quarry
#

?paste

compact perchBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
HelpChat Paste - Usage
Hastebin

surreal quarry
#

send them ^

silent swallow
#

Every single error is related to a "?" symbol being at the end of the inferred type

#

I will do that now James

distant sun
#

James is possible to paste a config section to a yaml file?

surreal quarry
#

wdym?

#

like the yaml extension on that paste?

#

thats automatically inferred based on the first line or something

#

also lucfours, the author of this plugin needs to fix that or you can try, but he basically has done a bunch of stuff that you can't do in kotlin

distant sun
#

ConfigurationSection

silent swallow
#

Hmmm, cause I know this plugin is running on this exact version on a few other servers

#

So maybe they did it themselves somehow?

#

the Author is no longer active 😦

distant sun
#

Since it is open sourced people can just fix it for themselves

surreal quarry
#

@distant sun how do you have a ConfigurationSection without a YamlConfiguration that you can save

silent swallow
#

Ahhhh

distant sun
#

I mean copy from a file and paste to anthet file

silent swallow
#

How much would someone charge to fix this type of issue do you think? I obviously cant learn java or whatever this is overnight

surreal quarry
#

oh gaby i think you would need to make a file, then iterate over whatever configsection you have and save each part to the new file

#

but thats just my guess

static zealot
#

I can do it for 400£ if you want :)) Not expensive at all

silent swallow
#

SOLD

#

whats one of those to a canadian dollar

prisma wave
#

$2

silent swallow
#

RIP

static zealot
#

681,22

distant sun
#

400 GBP is probabily like 700 usd

static zealot
#

Canadian Dollars

surreal quarry
#

worth it

static zealot
#

its just 516 USD tho

silent swallow
#

ill go see if there is a premium plugin i can buy or somethingf

frigid badge
#

I'll do it for 200 Euro

static zealot
#

£ lost value in the past few years gaby

silent swallow
#

Thanks @surreal quarry @distant sun for your time

surreal quarry
#

np

static zealot
#

199.99

#

here

distant sun
#

300 RON

static zealot
#

100 RON

surreal quarry
#

50

#

of any currency

#

your choice

distant sun
#

Yen

static zealot
#

ugh

#

wtf is that country called?

frigid badge
#

Rial

distant sun
#

Bollivians

static zealot
#

fuck. The one where they have like a 100,000 note

distant sun
#

¥

prisma wave
#

Venezuela or Zimbabwe I think

frigid badge
#

give me 50 Kuwait dinar

static zealot
#

50 yen is like 0.5 $

#

xD

#

ugh that's 160$

#

xD

frigid badge
#

Rial is the lowest currency

distant sun
#

of any currency
@surreal quarry

static zealot
#

how can it be the lowest?

surreal quarry
#

lmao gaby

frigid badge
#

1 rial = 0,000024$

surreal quarry
#

i actually only accept HC XP as of now

distant sun
#

Why are my kittens fighting their mom lol

#

2v1 is not fair

static zealot
#

yeah. You should help the 2

#

so they have a chance

frigid badge
#

lol

#

have you seen gaby

surreal quarry
#

fr the poor kittens

frigid badge
#

c'mon

#

that's still easy for the mom

#

xD

distant sun
#

Mf

surreal quarry
#

gui

#

tm

distant sun
#

She's actually running xd

static zealot
#

just mf

frigid badge
#

kidding gaby's built different y'know

distant sun
#

Bones flesh and duct tape

obtuse gale
#

t

distant sun
#

Down for some code review @frigid badge or anybody else?

steel heart
#

Sure

#

If it’s java

distant sun
frigid badge
#

oh yeah I saw that

#

looked pretty neat tbh

#

haven't looked into it as a review tho lol

distant sun
#

Do it! 😈

steel heart
#

Wow you actually written javadocs

distant sun
#

public void deleteCommands​(@NotNull @org.jetbrains.annotations.NotNull int[] commands) nice one javadocs

digital patrol
#

is there a place on this discord where i can talk to sysadmins

surreal quarry
#

this is probably the closest you are gonna get to a channel where you will find sysadmins

digital patrol
#

i want to run maybe 3 or 4 servers with this dedicated

#

do i buy 3 serves

surreal quarry
onyx loom
#

magic

ocean quartz
#

For "unlimited" ram

static zealot
#

omgserv xD

ocean quartz
#

Always expect good service from that

surreal quarry
#

lmfaoo

#

unlimited ram pog

static zealot
#

download unlimited RAM for your laptop. ✅ NOW FREE!! ✅ DO NOT MISS !! ✅

surreal quarry
#

ah yes

static zealot
surreal quarry
#

unlimited ram and storage

static zealot
#

Do I download?

surreal quarry
#

yea

static zealot
#

:))

distant sun
#

anybody needs some PRs?

surreal quarry
#

lmfao

static zealot
#

wait HD can still read files using a command?

#

HolographicDisplay

onyx loom
#

so u name uhd and fhd but dont know HD? ur thinking of resolutions which is high definition bruh

surreal quarry
#

Make your own holograms plugin. Be different. Be better. Be Elite.

static zealot
#

Use Elara.

distant sun
#

he said 'be better'

onyx loom
#

😮

#

rude

#

nice

steel heart
#

HD is high display right?

#

Yo srsly though

onyx loom
#

i mean im sure it can mean a lot of things

steel heart
#

Bruh

static zealot
#

stop right there

prisma wave
#

maven 😐

static zealot
#

Do you have 2 minutes to talk about our lord and saviour Gradle?

distant sun
#

well if the other option is not using a build tool then it is

onyx loom
#

gradle even easier 🙂

static zealot
#

Maven is the devil. It takes many forms but that one is the worst

#

that's why you need to stay away from it

prisma wave
#

XML in 2020 😬

static zealot
#

and don't let yourself get attracted by it

#

not even for 1 moment

distant sun
#

imo the worse part of maven is that it uses xml

onyx loom
#

yup

frigid badge
#

guys instead of flaming maven, just explain it in a normal manner

prisma wave
#

piggy's one

distant sun
#

agree lime

prisma wave
#

We have before lemmo

distant sun
#

=wiki gradle

compact perchBOT
#
Wiki Result:

Gradle - HelpChat Wiki
Gradle is a build tool, especially common among JVM languages as an
alternative to another build tool, Maven. Gradle offers a few key benefits over
maven ...

static zealot
#

Lemmo believe me the only reasons I know maven is better its because its faster and has shorter code xD

prisma wave
#

Maven is slower, less extendable, more verbose, lacks portability, and just generally sucks

distant sun
#

better in comparation to?

static zealot
#

but I mean its enough

prisma wave
#

gradle is the opposite of that

steel heart
#

Only reason to use maven if you’re a frontend nerd

prisma wave
#

Gradle does have a bit of a learning curve tbf, but so will any build tool compared to IDE drag and drop

distant sun
#

wdym conclure

frigid badge
#

maven doesn't suck, gradle just improves on a lot of things

prisma wave
#

maven sucks in comparison

steel heart
#

markup languages Gaby

distant sun
#

you mean xml?

steel heart
#

It’s similar to html

frigid badge
#

too much circlejerk for me cya

#

;p

prisma wave
#

lol

#

kotlin good

#

java bad

onyx loom
#

🌝

heady birch
#

Sgml

steel heart
#

theres even xhtml

prisma wave
distant sun
#

well because html is xml

steel heart
#

Not really

heady birch
#

Soap > Rest APIs

prisma wave
#

the thing with build tools is you won't see the benefits until you're actually familiar with them - they might look like overcomplicated mess right now, but when you know how to use them well, you won't want to go back

#

that goes for Maven AND gradle

steel heart
#

xml have way stricter rules than html

distant sun
#

they both suck 🤷

heady birch
#

rule 3

steel heart
#

I mean they have their functionality

heady birch
#

"the third rule"

distant sun
#

is there any reason why something should use xml?

ocean quartz
#

html isn't that bad

distant sun
#

for example, json > xml for rest api

ocean quartz
#

How is gradle too much work? .-.

steel heart
#

xml is very strict making it quite maintainable if you understand it

distant sun
#

I do understand it but is horrible

steel heart
#

True

#

@obtuse gale java 7 :/

ocean quartz
#

What lol, you have like 3 or so lines in gradle for every 20 maven

prisma wave
#

Gradle is less work than Maven

#

a simple spigot project will literally be about 10 lines

distant sun
#

compile(group: 'group', name: 'name', version: 'version') can be replaced by compile('group:name:version')

prisma wave
#

implementation 🙂

#

??

#

how is that 3 lines

#

lmao

#

no lol

#

you need all of those

#

that's at least 12 just on your dependencies

distant sun
#

2 for dependency block, group, artifact, version and scope

ocean quartz
#

implementation "something:something:1.0"
vs

<dependency>
  <group>something</group>
  <artifact>something</artifact>
  <version>1.0</version>
  <scope>compile</scope>
</dependency>
prisma wave
#

no?

ocean quartz
#

Oh yeah forgot scope

prisma wave
#

you have to paste it in

#

or type it ofc

#

maven usually involves copy pasting though

distant sun
#

is generated by minecraft dev plugin

onyx loom
#

Oh yeah forgot scope
lol, more lines 🙂

distant sun
#

nothing is auto generated

prisma wave
#

kind of

#

Gradle and Maven both generate a basic empty script, you have to add the spigot stuff yourself for both of them

#

unless you use minecraft dev plugin

distant sun
#

^

prisma wave
#

which kinda sucks but it does the job

distant sun
#

which is not working for gradle

prisma wave
#

oh yeah then they're automatically generated

distant sun
#

you got placeholders for @version@, the jar is being sent to your plugins folder and relocations in only 50 lines vs 200 with maven

prisma wave
#

gradlejerk

onyx loom
#

always

distant sun
#

can even use this plugin called manadrop to generate the plugin.yml btw

prisma wave
#

spigradle >

obtuse gale
#

@onyx loom tier 7 :0

onyx loom
#

👍

#

epic

#

boutta overtake frosty too :)

prisma wave
#

tier 8 will never be reached

#

ever

#

by anyone

onyx loom
#

lmao

prisma wave
#

you will be stuck in tier 7 for eternity

onyx loom
#

took me like 2 weeks to do 59-60

ocean quartz
#

can even use this plugin called manadrop to generate the plugin.yml btw
@distant sun Or the one i wrote, works pretty well too ;p

obtuse gale
#

Damn bru

distant sun
#

xd

onyx loom
#

i have been slacking on the xp, but thats besides the point

ocean quartz
#

This is with mine, you don't even need to add the main or version ;p

distant sun
#

how do I clone the dev branch of mfg?

onyx loom
#

oo nice

ocean quartz
#

Fork it and change branch gab, it clones the entire thing

#

I use gitkraken to change branch but can be done on IJ

distant sun
#

ic

obtuse gale
#

git clone <remote> --branch <branch> 👀

#

I think lmao not entirely sure

ocean quartz
#

Command line is meh ;p

obtuse gale
#

yOurE MeH 😤

steel heart
#

Command line pogCool

distant sun
#

anybody looking for some pull requests? sad_fingerguns

prisma wave
#

pdm

steel heart
#

Yes

#

My life (:

winter iron
#

Best way to store a map in database?

steel heart
#

As a json object perhaps

#

So basically serialize it

winter iron
#

json

#

ok

ocean quartz
#

Make a table for it

obtuse gale
#

I mean the core structure of a table gives you a key:value relationship.. why not make proper use of a database if you have one?

#

Conclure

#

You disappoint me smh

#

😔

steel heart
#

¯_(ツ)_/¯

ocean quartz
#

Exactly

winter iron
#

hmmmmmmmmm

steel heart
#

Guess I like json too much

distant sun
#

Does gson know to convert an array of objects to a list without having to tell it how to?

ocean quartz
#

I think so

distant sun
#
    "payments": [
        {
            "txn_id": "abc0asf5",
            "time": 1561124237,
            "price": 4.2,
            "currency": "USD",
            "status": 1
        },
        {
            "txn_id": "X-ABA123-ASDK8374",
            "time": 1561123598,
            "price": 4.2,
            "currency": "USD",
            "status": 2
        }
    ]```
`private List<Payment> payments;`
#

ok it does, sweet

#

any idea how can I turn this into a map?

    "purchaseTotals": {
        "USD": 771.22,
        "GBP": 150.94
    }```
vast ore
#

Okay I'm doing

 public void SetOwnerName(String OnwerName) 
 {
     this.OwnerName = OwnerName;
 }
 
 public String GetOwnerName(){
     if(OwnerName == null){
         return "No Owner";
     }
     return OwnerName;

this is in another class
And in my main class doing

        Sat SatCome2 = new Sat("Hey");
        SatCome2.SetOwnerName("Amir is the owner");
        
        System.out.println(SatCome2.GetName());
        System.out.println(SatCome2.GetOwnerName());

And I get in the output

Hey
No Owner
prisma wave
#

@vast ore your setter has a typo in the parameter name

#

You're assigning OwnerName to itself

#

Any good IDE should've noticed that

#

Also variable names should be lowerCamelCase

heady birch
#

sat?

prisma wave
#

Sars

distant sun
#

SATA

hot hull
#

So I've got a slight issue, when I turn on my pc normally, it's unresponsive (keeps loading something but I've no idea what since it's slow af), and when I turn it on in safe mode it works perfectly fine, so I'm guessing it's a program that's being a cunt? Any suggestions

quiet depot
#

consider using a cunt eradication tool

frigid badge
#

lmao

quiet depot
#

a sledge hammer to the computer usually does the trick

hot hull
#

I'd happily do that, but no, there's gotta be a less brutal way

quiet depot
#

guillotines are meant to be painless right? quick and easy, less brutal

#

just slice the laptop in half

hot hull
#

What confuses me is that it was working perfectly fine yesterday, and now it's acting up

quiet depot
#

you any closer to buying a new pc?

#

anyway to actually help, try running some windows diagnostic tools and shit

#

might find a problem

frigid badge
#

open task manager on startup?

#

and look at the processes

hot hull
#

I can't lemmo, it's unresponsive, the mouse works just can't click any programs or do anything

#

It's loading somet

#

Something*

#

@quiet depot I'm not no, rona keep fucking shit up

frigid badge
#

did you update a driver or something?

hot hull
#

Not that I'm aware of

#

And looking through installed programs, none were updated this week

oak coyote
#

Does anybody know if there is an which one is the best MCP help server

#

I realise we can’t share links here but a name is all I need really

distant sun
#

bedrock?

#

Doesnt nukkit have one?

quiet depot
#

what u talking about gaby?

distant sun
#

"Mcp"

quiet depot
#

mod coder pack

distant sun
#

Uhh

quiet depot
#

if op meant pocket edition, surely they would've said "mcpe"

distant sun
#

Anyways, is anybody familiar with moodle api? It uses php and I dont know php and the docs are kinda weird xd

quiet depot
#

@oak coyote don't know of any mcp discord, I'd try asking around in forge/sponge

oak coyote
#

alright

quiet depot
#

(forge doesn't have a discord btw, but they have a forum)

oak coyote
#

thanks cause honestly i'm losing my mind i can't get it to find new assets

distant sun
#

Why do people use PHP 😭

hot hull
#

Because they have suicidal tendencies

distant sun
#

Thank god moodle has a mobile app

hot hull
#

It's fucking horseshit tho

#

Better than having to login every fucking time tho

onyx loom
#

ew moodle

distant sun
#

The app itself is actually pretty cool, esp when teachers know how to use it

frigid badge
#

what is moodle

hot hull
#

It's an online site for school assignments and shit

fervent obsidian
#

Someone can give me a hand? i developed like a repair kinda plugin, but when using the commands, this exception comes out: https://pastebin.com/GMV01eLX

turbid idol
#

the bot is offline to give me roles is there another way I can get some help?

surreal quarry
#

@fervent obsidian tokenrepair.java:157 is null

#

also please use helpchats paste in the future its a lot nicer to look at lol

#

?paste

compact perchBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
HelpChat Paste - Usage
Hastebin

fervent obsidian
#

@fervent obsidian tokenrepair.java:157 is null
@surreal quarry The line is null or wdym?

#

also please use helpchats paste in the future its a lot nicer to look at lol
@surreal quarry Okk i will

surreal quarry
#

thats where the NPE is coming from

#

send the whole tokenrepair class

compact perchBOT
#
📋 Paste Converted!
https://paste.helpch.at/ezedubafih

A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!

ocean quartz
#

I gatchu with the paste

surreal quarry
#

cube should let like tier 5 + and nitro boosters use that lol

fervent obsidian
ocean quartz
fervent obsidian
#

The inventory of the player returns Null

frail glade
#

Don't feel down, we all start somewhere man.

surreal quarry
#

oh im stupid

#

i see the issue lol

#

wait acutally nvm

ocean quartz
#

Btw my "no" was to james' message xD

surreal quarry
#

i dont think having a jugadorIntroducio variable is what you want

#

i think you want to move that variable inside the commands themselves

#

or at least reassign it for each command

fervent obsidian
#

"jugadorInv" is my players inventory, and "jugadorIntroducido" is a name of a player

#

jugadorIntroducido is wrong assigned right?

surreal quarry
#

do you want those to be changing for every command, or are you trying to assign them once and they never change

fervent obsidian
#

I want to assign them in every command, i forgot to reassign "playerIntroducido"

#

u are right

#

I cannot do "jugadorIntroducido = (Player)args[0];"

surreal quarry
#

Bukkit.getServer().getPlayer("name") iirc

#

yea

steel heart
#

You don’t need getServer() but that’s correct ^

surreal quarry
#

true

fervent obsidian
#

jugadorIntroducido = Bukkit.getPlayer(args[0]);

steel heart
#

That looks right

fervent obsidian
#

Ok, let me try it 😄

surreal quarry
#

but remember getPlayer can return null

#

so its a good idea to have a null check there

player = getPlayer(...)
if (player == null) {
  // no player found message
  return
}```
fervent obsidian
#

Like Players will have to click on an npc, for making the console to run the command, so i think it wouldnt be null

#

or im wrong

#

?

steel heart
#

Maybe

fervent obsidian
#

Bcs the player who clicked on the npc is online

surreal quarry
#

args[0] implies its a user input

#

but either way its still better to check

fervent obsidian
#

but either way its still better to check
@surreal quarry Okeyy

steel heart
#

The player might log off

fervent obsidian
#

so its a good idea to have a null check there

player = getPlayer(...)
if (player == null) {
  // no player found message
  return
}```

@surreal quarry This makes the code not run right?

#

the return alone

surreal quarry
#

return will stop the method wherever it is and return that value meaning code below won't have a chance to run

#

also since this is an onCommand you may need to return false

#

cause spigot didn't want to make that a void :)

fervent obsidian
#

Look at my lines 154 and 262, do u mean that returns?

steel heart
#

return false should imply that the sender doesn’t have permission iirc and it will in addition send an ugly message to the sender. However return true should represent a success of the command execution.

surreal quarry
#

i think false is just in general it wasn't a success

steel heart
#

Hmm yeah I don’t remember, was like 6 months since I compiled

surreal quarry
#

but most people do their own handling of that so i feel like its just extra

fervent obsidian
#

Okkk, im trying it wait me 1 sec

steel heart
#

What if we could have Unit in java

heady birch
#

isnt Unit just void

surreal quarry
#

what if java was good fingerguns

steel heart
#

returnable void

onyx loom
#

unit is just void afaik

heady birch
#

returnable void

surreal quarry
#

yea i think of them as basically the same

heady birch
#

kind of sounds like its making a new Unit object for every void method 😦

nocturne dock
#

Why does this

        if(!event.getAction().equals(Action.LEFT_CLICK_AIR) || !event.getAction().equals(Action.LEFT_CLICK_BLOCK)){
            return;
        }

Not cancel a PlayerInteractEvent when they throw a snowball?

surreal quarry
#

#development is the support channel. also thats not enough code to tell :)

steel heart
#

Firstly use event.setCancelled(true); second compare enums with ==

surreal quarry
#

also isn't there a projectile launch event

nocturne dock
#

yeah! But this is for reloading snowballs in a paintball

steel heart
#

There is

nocturne dock
#

that is the whole code

surreal quarry
#

?paste

compact perchBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
HelpChat Paste - Usage
Hastebin

surreal quarry
#

we dont do screenshots lol

nocturne dock
heady birch
#

I havnt read through this

#

But pretty sure that event fires twice, once of left hand, once for right hand

#

Oh nevermind just read your code

steel heart
#

Use ==

#

Little faster

nocturne dock
#

yeah! It kind of does, when I throw a snowball it triggers the "no left click" and then also reloads the snowballs

#

okay! I will use == 🙂

steel heart
#

Hmm I don’t know but I think setting it cancelled doesn’t always have the effect of “cancelling” it you might need to set the result instead

nocturne dock
#

so event.setcanceld(true)?

heady birch
#

Yes

#

If you want to cancel the event use that

#

return; will just leave the method, but the event will still go to other plugins

steel heart
#

cancel will as well usually

nocturne dock
#

alright

fervent obsidian
#

listaItemsInv[i].getType().getMaxDurability() > 0 this can return NULL?

#

After checking if the item is or not null i mean

nocturne dock
#

now it works! thanks!

#

oh wait

#

it doesn't

steel heart
#

No it won’t

nocturne dock
#

well kinda

#

it doesn't reload, but it doesn't allow me to throw the snowball

steel heart
#

anything that returns a primitive type will never return null and can’t never be null

nocturne dock
#

and left click doesn't work eather

fervent obsidian
#

@steel heart ok thx

steel heart
#

@nocturne dock wait can you explain what functionality you wanted?

heady birch
#

int i = null;

#

🙂

#

impossible

steel heart
#

4head

surreal quarry
#

no

nocturne dock
#

Okay! This is a paintball plugin, I want it when I leftclick with snowballs to run the plugin.gameManager.gameFunctions.addSnowballs(player) method. When I right click snowballs I don't want that method to trigger but still want the snowball to be thrown

steel heart
#

check if the event has items involved, check what item. If the action was left click do something

#

First 2 checks could be used with an implicit else design

nocturne dock
#

well isn't that exactly what I did?

steel heart
#

Not really

#

first check could be used with !event.hasItem()

nocturne dock
#

👍 Implemented that now

steel heart
#

Don’t use the implicit else design to check if the action was left click

nocturne dock
#

well, for me there is basically always an item in the event, cause I am holding snowball

steel heart
#

The event is fired independently though

nocturne dock
steel heart
#
//listener
if (!event.hasItem()) return;
if (event.getItem().getType() != Material.SNOWBALL) return;
if (event.getAction() == Action.LEFT_CLICK/*you check both*/) {
  //todo
}
``` I was thinking this
#

But I think you should have switched the || to &&

prisma wave
#

kind of sounds like its making a new Unit object for every void method 😦
@heady birch it's not

steel heart
#

because it was just checking if it wasn’t a left click air nor a block, not both

prisma wave
#

They compile to return void and just use Unit.INSTANCE if it's actually needed

nocturne dock
#

@steel heart umm, how can it right click air and a block at the same time?

steel heart
#

No you’d use || in my example

#

In yours you should have used &&

nocturne dock
#

So here ```Java
event.getAction() == Action.LEFT_CLICK_AIR || event.getAction() == Action.LEFT_CLICK_BLOCK

steel heart
#

using && there will always return false

#

it can’t be both at the same time

nocturne dock
#

yeah! That's what I said 😛

#

also event.getItem.getType returns an Itemstack

steel heart
#

That’s why you use || to check if any of those are true, in an implicit else design you would have used the && to filter

#

Make it return a Material and see if it’s a snowball

nocturne dock
#

Like I have already? ```Java
if (!event.getMaterial().equals(Material.SNOWBALL)){
event.setCancelled(true);
return;
}

steel heart
#

yeah but don’t cancel and use != instead

onyx loom
#

also event.getItem.getType returns an Itemstack
@nocturne dock will return a Material right?
getItem returns the ItemStack afaik

nocturne dock
#

Alright!

#

when I throw a snowball it even reloads twice exactly at the same time

#

Why in the world does Spigot count throwing a snowball as left click?

steel heart
#

That’s weird wth

fervent obsidian
#

Amm im not understanding why when using these jugadorIntroducido.getItemInHand().setDurability(jugadorIntroducido.getItemInHand().getType().getMaxDurability());
The durability of the item turns "0"

obtuse gale
#

The durability is "the wrong way around"

#

0 means it's not damaged

#

10 means it has 10 durability points less

fervent obsidian
#

Im trying to repair it

obtuse gale
#

Then set it to 0

#

0 means it's not damaged

fervent obsidian
#

jugadorIntroducido.getItemInHand().setDurability(0); ???

obtuse gale
#

Yes

fervent obsidian
#

Like thise?

#

This*

#

Okk

#

thx

#

Is throwing me this exception Error:(73,55) java: incompatible types: possible lossy conversion from int to short

#

Ok nm i parsed it like a short value jugadorIntroducido.getItemInHand().setDurability((short)0);

hot hull
#

@quiet depot So I left the pc for a day, and now it works as it should again, I'm confused

hot hull
#

Also if anyone has any "semi" large repo's I could contribute to lemme know I need 2 more PRs :C

umbral mica
hot hull
#

Hell naw

umbral mica
#

hey I can do it and have very little java experience

quiet depot
#

gaby i'm shook

#

you removed me from royalsaga

hot hull
#

kek

quiet depot
#

i'm physically shaking

distant sun
#

I think I have accidentally removed all collaborators last night O.o

quiet depot
#

a server that I've contributed so much to

distant sun
#

please pig .. 😭

quiet depot
#

(out of curiosity why was I in the org? I honestly don't know why)

distant sun
#

forgive me

quiet depot
distant sun
#

I think I have asked you once for your opinion, I don't remember

quiet depot
#

¯_(ツ)_/¯

distant sun
#

do you have the code used by pinger?

hot hull
#

Piggy I mean.. if only the fucker showed the entire stacktrace

quiet depot
#

is the server log not full?

hot hull
#

Did not even see the server log eee

#

Caused by: java.lang.ClassNotFoundException: net.kyori.adventure.audience.Audience
There's your issue

quiet depot
#

no

hot hull
#

Gimme 40$ now

quiet depot
#

there's your issue

#

go fix it

#

it's a super easy fix too btw

hot hull
#

I assume he's just not shading it

quiet depot
#

velocity shades adventure

#

try reproduce the issue with the latest version of adventure

#

I have a sneaky suspicion op isn't using the latest

hot hull
#

Ain't got a server sad_fingerguns friend is switching hosts so

quiet depot
#

o rip

#

although I don't see the connection

#

does your friend pay for your server?

hot hull
#

He pays for his server, and I use his server