#dev-general

1 messages ยท Page 233 of 1

brisk burrow
#

make

half harness
#

um

brisk burrow
#

Ok finishing setup for the jetbrain toolbox

#

thing

#

Is jetbrain where I find all the cool dev download I will need?

ocean quartz
#

You can give it the source code and it'll fix that

distant sun
#

how ๐Ÿ˜ฆ

#

and why cant it read the javadoc jar smh

ocean quartz
distant sun
#

again, shouldn't it do that automatically?

ocean quartz
#

Not necessarily, most of the times it's just the jar, so it'll show the decompiled java, since it's kotlin it's a bit different

forest pecan
#

what dafaq

#

why does day 9

#

i need longs?

#

tf

#

Wait

#

part two is easy

#

just use prefix sum

obtuse gale
#

What was day 9 about?

#

I forgot already lol

#

All I know is that I needed a long[] instead of an int[] or it crashed lol

forest pecan
#

Yeah

#

Day 9 was about the the thing where its like you need to check

#

if 2 numbers in the past preamble

#

add up to the current number

#

My solution for part 2 is only O(N+N^2) ๐Ÿ˜Š

obtuse gale
#

Oh I remember yeah

#

For part 2 I did 2 nested for loops with some magical offsets and magical streams :^)

#

I didn't have to manually add shit kekw

#

Thank you LongStream EnkiduPray

forest pecan
#

bruh

#

i used one loop

#
    public static long getContiguousSet(List<Long> list, long target) {
        List<Long> prefixSum = new ArrayList<>();
        long sum = 0;
        for (long l : list) {
            prefixSum.add(sum);
            sum += l;
        }
        for (int i = 0; i < prefixSum.size(); i++) {
            for (int j = 1; j < prefixSum.size(); j++) {
                long begin = prefixSum.get(i);
                long end = prefixSum.get(j);
                if (end - begin == target) {
                    long min = Long.MAX_VALUE;
                    long max = Long.MIN_VALUE;
                    for (int k = i; k < j; k++) {
                        if (list.get(k) < min) {
                            min = list.get(k);
                        } else if (list.get(k) > max) {
                            max = list.get(k);
                        }
                    }
                    return min + max;
                }
            }
        }
        return -1;
    }
#

๐Ÿ˜Š

#

Prefix Sums ftw

obtuse gale
#

I see 3 loops

forest pecan
#

well

#

it only took me 5 minutes to think

#

lol

obtuse gale
#

So did mine lol

forest pecan
#

did you brute force

obtuse gale
#

For part 2?

forest pecan
#

yeah

obtuse gale
#

Lemme turn on the computer lmao

forest pecan
#

the main idea tho with prefix sums

#

you just add them together

#

like

#

[1, 3, 5, 7, 9]

#

apply prefix sum

#

you get

#

[0, 1, 4, 9, 16, 25]

#

then take any two numbers

#

inside that array

#

and if you subtract them

#

it equals the sum in between

#

those 2 indexes in the original array

obtuse gale
#

Yes I know how it works, I think I had to use it to implement radix sort? ๐Ÿค”

forest pecan
#

Radix Sort KEKW

#

Yeah

#

its a useful algorithm

#

for general purposes as well

#

Have you seen Gravity Sort

#

the one with beads

#

and shit

obtuse gale
forest pecan
#

Yeah

#

Have you seen gravity sort though

#

like

#

who has the mental power

#

to think of how smart

#

that is

#

i would never think gravity kekw

#

it will be the last thing i would think of

obtuse gale
#
  final long[] raw = // ...

outerLoop:
    for (int i = 2; i < raw.length; ++i) {
      for (int j = 0; j < i - 1; ++j) {
        final LongStream longStreamSum = Arrays.stream(raw, j, i).parallel();
        final LongSummaryStatistics statistics = longStreamSum.summaryStatistics(); // :^)
        final long min = statistics.getMin(), max = statistics.getMax(), sum = statistics.getSum();
        if (sum == invalidNumber) {
          System.out.printf("%d + %d = %d", min, max, min + max).println();
          break outerLoop;
        }
      }
    }
#

streams are dope

forest pecan
#

yea

#

bro im like

#

why the fuck

#

they had to use

#

longs

#

like

obtuse gale
#

idk lmao but the first crash I was like huh

forest pecan
#

i used int and i got NumberFormatException and im like

obtuse gale
#

yeah that lol

forest pecan
#

wanna 1v1 fist fight

obtuse gale
#

na I'm good thanks

forest pecan
#

y not

#

i wont hurt

#

i promise

unborn hedge
#

Not sure if this is where I'm supposed to put this, but I'm trying to create my first plugin. I have very very basic knowledge of java and bukkit. I'm trying to create a plugin that randomizes all the items in a player's hotbar after a set amount of time. It would keep randomizing every few minutes or so until a command is used to stop it. Would this be possible for me to do or do I need to know more about java first?

ocean quartz
#

I would highly recommend to learn more about Java first

unborn hedge
#

How do you recommend doing that? I'm not exactly sure where to look to find everything I need.

obtuse gale
#

?learn-java

compact perchBOT
#
FAQ Answer:

Start with this -
https://docs.oracle.com/javase/tutorial/java/concepts/index.html
Breeze through this skipping stuff that doesn't seem relevant like bitwise operators-
https://docs.oracle.com/javase/tutorial/java/nutsandbolts/index.html
and then hit this
https://docs.oracle.com/javase/tutorial/java/javaOO/index.html

They're the first three from this larger thing - https://docs.oracle.com/javase/tutorial/java/index.html
Which you should definitely go through overall. But those three should be enough for slightly better understanding of wtf is happening here without feeling like a huge time sink
That one is a small part of this larger site - https://docs.oracle.com/javase/tutorial/index.html
wherein "Essential Java Classes" and "Collections" also have good useful stuff

obtuse gale
#

@unborn hedge ๐Ÿ‘†

#

It's not something to rush it

#

It will take days, maybe even weeks

#

Make sure you get and understand what the topic is about, learning by itself is a long tedious process

#

And ask questions if you're in doubt, people are here to help

#

Hi efe

unborn hedge
#

Thank you!

obtuse gale
#

And that's cool

#

You'll always be learning new things as you go

ocean quartz
#

Yup, if you take a code from me from 4 years ago or even from last year it's so much different

jovial warren
#

what's this day thingy you two were on about earlier?

#

is this like advent of code or something?

distant sun
#

probably

jovial warren
#

advent of code is way too hard for me lol

#

actually, I suppose it just requires some thinking outside the box

prisma wave
#

The first few days are easy

#

4 and 5 were difficult

distant sun
#

^

static zealot
#

ye

#

6 was easy

#

Gave up on 7 tho

#

still have to do 7, 8, 9 and 10 if I ever get to it lmao

distant sun
#

Didnt had time for 5+ ๐Ÿ˜ฆ

prisma wave
#

Day 10 is annoying

#

Yet again brute forcing seems to be the only way

obtuse gale
#

part 2 is

#

erm

#

what

jovial warren
#

I just can't even with these lol

obtuse gale
#

Surely, there must be an efficient way to count the arrangements
๐Ÿฅฒ

steel heart
#

fuck

obtuse gale
#

me

steel heart
#

no im not homosexual

obtuse gale
steel heart
#

@static zealot I have a proposal, rename Nitro Booster to Santa Booster or smtng z)

obtuse gale
#

why blitz lol

steel heart
#

idk

#

he has the power

obtuse gale
#

he can't even =offtopic

steel heart
#

well he has access to staffchat ?

static zealot
#

Yes I will

#

Just give me 2 years

#

I'm still working on the plan to take down funnycube and take his power

jovial warren
#

you'd need a BigInteger to store that jesus christ

obtuse gale
#

I did lol

jovial warren
#

what is this for?

obtuse gale
#

aoc

jovial warren
#

lol

#

gonna try and do these, from day 1 lol

forest pecan
#

its gonna take you like hours

#

if you are starting from day 1

jovial warren
#

lol

normal talon
#

start what

jovial warren
#

advent of code

normal talon
#

what is it about

jovial warren
#

basically a programming challenge every day until the 25th

normal talon
#

aah

prisma wave
#

Day 25 will be in Elara

#

Mark my words

normal talon
#

anyone a link ?

lunar cypress
#

your words are marked

prisma wave
#

Cool thank you

lunar cypress
forest pecan
#

Imagine

#

having a name

obtuse gale
prisma wave
#

โ„ข๏ธ

forest pecan
#

(c)

steel heart
#

(L)

#

@forest pecan wtf is ur name

steel heart
#

ok stop

forest pecan
#

but

#

answer it

steel heart
#

yes obv

#

who isnt gay nowadays kappa

forest pecan
#

yeah JitterEyes

normal talon
#

me

steel heart
#

weirdo

normal talon
#

thx ๐Ÿ˜ข

old wyvern
obtuse gale
#

??????????????????

obtuse gale
jovial warren
#

I think what he's implying is that your result is wrong and the correct answer can be stored in a long

old wyvern
obtuse gale
#

well yes that is way more than probable, but the comment was on the number I sent

old wyvern
#

the constraint is far far less

jovial warren
#

which comment?

jovial warren
#

^

old wyvern
#

for the actual result

obtuse gale
#

I know

#

but the comment was on the number I sent

prisma wave
#

unsigned long long

#

var result int64

old wyvern
#

I wasnt commenting to what you said was I?

obtuse gale
#

sigh forget about it

old wyvern
#

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

obtuse gale
#

I mean yes no shit the result is way off

prisma wave
#

let result = 0 asLong

obtuse gale
#

You don't have to be a prodigy to know that, Sherlock

old wyvern
#

Again, did not even tell you about any of that fingerguns

obtuse gale
#

oh fuck off

old wyvern
#

lol

prisma wave
#
tail :: [a] -> a
tail [x] = x
tail [elem:list] = tail list
#

Kotlin could never

steel heart
#

tail [x] *= x

prisma wave
#

?

steel heart
#

elara?

forest pecan
#

Brister?

prisma wave
#

Haskell

steel heart
#

kotlin

#

R

prisma wave
#

mitten

steel heart
#

rust

forest pecan
#

J

steel heart
#

go

forest pecan
#

C++

#

C

steel heart
#

pascal

forest pecan
#

C#

steel heart
#

ruby

forest pecan
#

python

prisma wave
#

much LOVE to Go!!

lunar cypress
#

you forgot the funny

prisma wave
#

lol

#

True

obtuse gale
#

javascript

steel heart
#

typescript

prisma wave
#

y'all forgetting about the best language, Elixir

obtuse gale
steel heart
#

Skript obv

#

man I hate Iterable

obtuse gale
#

no you don't cct

steel heart
#

yes you do

#

never

obtuse gale
#

tomorrow

steel heart
#

bad

winter iron
#

Can i use location.getNearbyPlayers() on an async task?

#

im only getting the players

steel heart
#

try and see

winter iron
#

shouldnt be an issue tho right

steel heart
#

probably works fine

winter iron
#

๐Ÿ‘

steel heart
#

ya use CompletableFuture ?

winter iron
#

I just need it running in an async task

#

every second

#

then get player uuids

#

and thats it

#

all should be good async

steel heart
#

idk why the async part is so important

#

the getNearbyPlayers() method isnt that heavy afaik

blazing walrus
#

there is getNearbyPlayers?

#

Isn't it getNearbyEntities?

prisma wave
#

yeah it is

#

which i believe may provoke chunk loading

blazing walrus
#

you can actually

#

but through AsyncPlayerLoginEvent

#

cough couldn't be you

steel heart
prisma wave
#

?

steel heart
#

oh nvm voice talk exist

obtuse gale
#

a.k.a APPLE

#

:] now you will think of APPLE every time you work with that event

steel heart
#

go away

normal talon
#

How can you disable that people can decompile your plugin and see the sourcecode ?

steel heart
#

u cant

forest pecan
#

you can obsfucate

#

but they can still view src code

steel heart
#

use a license

ocean quartz
#

Open source it, that way they won't need to decompile fingerguns

normal talon
#

It is opensoruce kinda, If I know how to put it in there without copy pasting everything

obtuse gale
#

what

ocean quartz
#

If it's open source why do you want to prevent decompiling? .-.

obtuse gale
#

Matt I think you are too smart for this shit

heady birch
#

OpenSource.disable();

normal talon
obtuse gale
#

if it's open source why are you worrying about it

steel heart
#

lombok???

#

sounds like it tho

normal talon
#

wtf is that

#

Fefo, because I don't like it xd

obtuse gale
#

well

#

you cant

normal talon
#

there is no other reason

obtuse gale
#

it's open source

#

tell the people to grab the code instead

#

and if people decompile it, it's on them for being that stupid

normal talon
#

and also if you decompile you can't see the gradle build

forest pecan
#

lmfao

#

just add a bunch of weird ass dependencies

frail glade
#

Weird flex, but okay.

onyx loom
obtuse gale
#

Matt

#

no

#

stop

#

don't

#

good

onyx loom
#

๐ŸŒ

obtuse gale
#

MATT

#

STOP right now in the name of THE LAW

ocean quartz
#
KiteBoardPlugin.makeOpenSourceLater(delay = โˆž)
frail glade
#

PDm ^^

onyx loom
#

๐Ÿ˜ญ

obtuse gale
#

I see you ignored my warnings Matt

heady birch
#

๐ŸŒˆ x1

ocean quartz
obtuse gale
#

hi back

#

I'm fefo

#

fefofury

forest pecan
#

banana

obtuse gale
forest pecan
#

banana

onyx loom
#

cyberpunk

forest pecan
#

minecraft

#

lea

obtuse gale
#

/gamemode creative

forest pecan
#

/ban Conclure

obtuse gale
#

lmao

forest pecan
#

Shhh

#

Lol

obtuse gale
#

oh wow......

#

I

#

can you even teleport to your homes lol

#

hm

#

feetures

lavish notch
#

With EssentialsX - how can I have "per-world" teleportation delays?

#

@ me

prisma wave
#

doesn't really belong here

obtuse gale
#

boomer

#

party pooper

prisma wave
#

Soz

lavish notch
prisma wave
#

No

obtuse gale
#

๐Ÿชƒ

lavish notch
#

Ouch

onyx loom
#

large oof size

heady birch
#

If I use git via command line. How get intellij to update class name clours

prisma wave
#

it should do already I think

#

It sets up a file watcher on .git

#

As far as I know

steel heart
#

cba to rewrite every project I've ever done in kotlin

prisma wave
#

why

onyx loom
#

why not

ocean quartz
onyx loom
#

๐Ÿ˜ณ

steel heart
#

oh wait that exist?

#

oh ye im just dumb

onyx loom
#

i promise that wont break atleast 50% of the code

steel heart
#

nice promise

onyx loom
#

thanks

#

its true

steel heart
#

promise.reject()

ocean quartz
steel heart
#

epic

ocean quartz
#

Just looking at that and seeing how much boilerplate java has, jesus

onyx loom
#

๐Ÿฅฒ

steel heart
#

java fans be like "no its more verbose"

onyx loom
#

u love to see it

steel heart
#

one guy argued for that kotlin is bad cuz of the name fun

obtuse gale
#

Matt

#

package what

onyx loom
#

fun is epic

ocean quartz
#

It's my test project

onyx loom
#

override fun

ocean quartz
#

override fun onEnable

#

Public is redundant

#

There is private

onyx loom
#

everything is defaulted to public

ocean quartz
#

And there is one amazing thing Java lacks, internal

obtuse gale
#

how do you achieve package-private thonk

ocean quartz
steel heart
#

not needed anyways

ocean quartz
#

Yeah

obtuse gale
ocean quartz
#

It's package-private

steel heart
#

we can agree to disagree

#

oh lol

obtuse gale
#

good

#

I agree

steel heart
#

yeah me too I agree

obtuse gale
normal ether
#

Anyone here familiar with the pterodactyl panel?

static zealot
#

familiar with the installation process or just the panel itself ?

surreal quarry
static zealot
#

they are if you understand anything lmao

surreal quarry
#

i would assume if you have a vm or dedi to setup ptero on you have some understanding of the OS its running and the command line

normal ether
#

Just looking for where the root files for the individual servers are

#

on my dedi

surreal quarry
#

i believe by default ptero puts them in /opt but all the servers are named as UUID's. its better to access the files via the FTP that your panel gives you or from the website itself

normal ether
#

not in /opt

surreal quarry
#

ls -al /opt

normal ether
#

the thing is that I want to move my server from the panel to a different place on the machine

#

so I don't want to have to download then reupload

surreal quarry
#

i assume you still want to use the ptero panel right

normal ether
#

No

#

Idk, but it's just too glitchy and laggy

#

I keep timing out

#

Never had that issue when running everything trough screen and commands

cursive wren
#

Hello everyone. Im considering buying the plugin Guilds but i have some questions I need to be answered before buying it. Anyone there to help?
Questions:

  1. I saw on GitHub Issues that someone suggested a banner system. Pretty good suggestion and pretty dynamic. Was that implemented? If no is there a way to make it?
  2. The war arenas can be set my ADMINS and when you join that arena only members of a guild can PvP?
  3. Is there a way to give like a plot to each guild?
  4. Does the guild bank has interest?
  5. Does the leveling system work on unlocking features? Like more vaults or a bigger bank space something like that?
  6. Is there a way to create a Guild Shop based on the guild level? Or is there a way to when you level up the guild you receive a custom permission?
surreal quarry
#

what plugin

static zealot
#

Guilds

cursive wren
#

yes Guilds

surreal quarry
#

oh yea just read the last thing lol

static zealot
#

I'm afraid only WolfeBershad and Glare know enough about that plugin lmao. I don't want to ping them as I know Glare has some problems. Idk about Wolfe

cursive wren
#

:/

#

cause if i can find a way for tht i would even pay more for the plugin

#

if allowed ofc xD

onyx loom
#

have u checked out the wiki / plugin page? it may answer some questions idk

static zealot
#
  1. Is there a way to give like a plot to each guild?
#

I know this

#

The plugin uses WorldGuard for claims

onyx loom
#

u can always compile the plugin too and test the features that way if u wish, that way u wouldnt have to buy it to be disappointed

static zealot
#

currently

#

and I think people can claim areas themselves

#

Oh yeah Noitbois it is freemium

#

so you can compile it yourself I guess.

cursive wren
#

wdym?

static zealot
#

and test. and only pay if you need the support

#

The code of the plugin is Open Source

cursive wren
#

oh

static zealot
#

You pay for the support and for the feature requests mostly

cursive wren
#

hmm

#

about the plots i mean like giving a plot like PlotMeSquared does

#

custom plot

#

sized

#

on a plot world

static zealot
#

I don't know. I know the only thing they use for claiming is WG regions.

cursive wren
#

where can i get the freemium version?

static zealot
#

github

#

its just the code

#

you'll need to compile it yourself into a jar

#

or maybe ask a friend or someone that knows how to do it if you don't know

cursive wren
#

aaaah yeah cause idk how xD

cursive wren
#

yeah i have no clue how to do it

#

im trying to compress it and i have no clue what i am doing

#

xD

static zealot
#

Not compress. You need to compile. You need an app like IntelIIJ or Eclipse (first one is better)

onyx loom
#

omg why have we not been compressing our kotlin jar files?

#

no more 1.6mb jars amirite?

lunar cypress
#

i mean joke's on you jar files are already compressed

onyx loom
#

smh

smoky crypt
#

wait

#

just a quick question

#

is it possible to compile an image in to the jar

#

then when running the jar, load the image as a file

ocean quartz
#

Yeah

smoky crypt
#

how

#

one file java applications sounds coolio

ocean quartz
#

Normally you'd just add it to the resources folder and maven/gradle would compile it into the jar

obtuse gale
#

this EAP version of IJ for m1 macs is speedy :))

smoky crypt
#

dont kill me but i almost never use maven or gradle

#

i am the sort of guy that only uses the system libary for everything he does

#

even though it could be done 1000x easier with a libary

obtuse gale
#

Welp

#

nows a good time to start using gradle ig

smoky crypt
#

why would i use gradly purely for packing files in to the jar

obtuse gale
#

one sefc

lunar cypress
#

because it's not only a dependency manager

obtuse gale
lunar cypress
#

it's very useful even if you don't use external libraries

obtuse gale
#

How does one declare a task with the kotlin gradle dsl

normal ether
#

Anyone ever experienced not all files getting duplicated when using cp -r on unbuntu?

lunar cypress
obtuse gale
#

whats Type?

lunar cypress
#

whatever you want the task to derive from

obtuse gale
#

what

lunar cypress
#

do you know gradle tasks?

obtuse gale
#

no lol

lunar cypress
#

well then start there lol

smoky crypt
#

i need a good argument to start using gradle:
-i already have fast build times, since i dont use libaries and my projects are small
-i dont need it as an dependency manager since i dont use libaries
-i dont need to automate any tasks

onyx loom
#

even faster build times

lunar cypress
#

you get a standard, uniform layout that is used across virtually all java projects

smoky crypt
#

i dont even know what that means lol

lunar cypress
#

what, the words?

smoky crypt
#

no like in the context

ocean quartz
#

You are very resistant to anything that you don't know about huh? xD

smoky crypt
#

is it just a template project that everyone uses

#

yea

#

indeed i am my friend lol

lunar cypress
#

no, it's a project structure and build flow

smoky crypt
#

i literally wrote a render engine from scratch since i couldnt wrap my head around opengl

#

still dont know about how open gl works

#

its like reading chinese lol

#

i have tried using gradle once

#

because apparetly it was way easier than decompiling minecraft without

#

and stil i couldnt do it lol

#

then i just gave up on it

#

in my head it will always keep the place of dependency manager

#

i am 100% self thought so i probebly have all the bad programming habits, probeblhy also new ones and maybe even mutated ones ๐Ÿ˜Ž

ocean quartz
#

Most of us are self taught, you just gotta be less resistant to change, accepting new things is not a bad thing

lunar cypress
#

a lot of people are self taught

obtuse gale
#

basically this is what im tryna convert into kotlin gradle

#
task deploy {
  doLast {
    ssh.run {
      session(remotes.webServer) {
        put from: 'example.war', into: '/webapps'
        execute 'sudo service tomcat restart'
      }
    }
  }
}```
#

and this

#
remotes {
  web01 {
    role 'webServers'
    host = '192.168.1.101'
    user = 'jenkins'
    identity = file('id_rsa')
  }```
#

im stuck at the session()

static zealot
#

welp for the past 3 days I've been working on a plugin

#

no testing or anything

#

time to see if it compiles

#

๐Ÿ™‚

#

And that's a first ... it did

normal ether
#

Anyone know if it is possible to allocate like more ram or some shit to Pterodactyl, cause it's so slow and laggy for some reason, keeps timing out lol

forest pecan
static zealot
#

well

#

...

#

you're you

#

I'm me ...

#

:))

forest pecan
#

๐ŸŒš

#

well

#

im in more trouble

#

likely

#

i really should be debugging from time to time

onyx loom
#

u spend 3 months on a plugin just to find out: Error - Invalid plugin.yml

static zealot
#

wel

#

at least that's easy to fix

forest pecan
#

I saw piggy

#

go online for a second

onyx loom
#

after u fix the plugin.yml

static zealot
#

ye

#

me too

#

lmao

forest pecan
#

hes watching all of us

half harness
#

u guys are very observant

onyx loom
#

Error - plugin dont work

forest pecan
#

we are being spied on

static zealot
#

you think?

forest pecan
#

ping

#

pong

#

game

#

who wanna play

onyx loom
#

๐Ÿ“

half harness
forest pecan
#

the ping game

#

๐Ÿ“

static zealot
#

@forest pecan

forest pecan
#

@static zealot

half harness
#

@forest pecan ping

forest pecan
#

@half harness

static zealot
#

yoo

half harness
#

yayy

static zealot
#

and now...

#

he repsoted again

forest pecan
#

pass the ball back nerd

static zealot
#

lmao

half harness
#

lol

forest pecan
#

lmfao

#

yo

half harness
#

@forest pecan

forest pecan
#

@half harness

half harness
#

@forest pecan

forest pecan
#

@everyone

#

oh wait

onyx loom
#

barry broke

half harness
#

it doesn't ping

forest pecan
#

yeah lol

half harness
#

@everyone

brisk burrow
#

@half harness Pls dont ping @everyone

half harness
#

...

#

I didn't ping everyone

surreal quarry
#

i was pinged

brisk burrow
#

Sane here.

half harness
#

um

#

but

#

i

#

theres no yellow thing

#

plus I don't even have the perms

#

-_-

brisk burrow
#

@half harness You will be muted within 24 hours.

#

For arguing with staff.

half harness
#

.........

#

hes not staff

#

and I'm also not arguing

#

and you're not staff either

surreal quarry
#

lmao

half harness
#

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

brisk burrow
#

?Ban @half harness

half harness
#

;-;

onyx loom
#

๐Ÿ†—

half harness
#

:confused:

obtuse gale
#

idk what to make

static zealot
#

a cake

#

make a cake

#

Welp turns out its not all good

#

lmao

#

error when loading the plugin

#

fuck

obtuse gale
#

Haha

#

You crook

static zealot
#

wait what was this about Caused by: java.lang.ClassNotFoundException: kotlin.jvm.internal.Intrinsics

#

But

#

the library is there

#

why would it not find it

obtuse gale
#

You're doing it wrong then

#

:]

onyx loom
#

common solutions to fix this error: dont use pdm

#

there is no other solutions to fix this issue.

static zealot
#

:)))))

regal gale
#

Lol

static zealot
#

I wonder if the problem is that in this plugin I use kotlin 1.4.10 but the one that is already downloaded I think is 1.4.0

#

time to delete libraries

#

and let's try a clean build

#

Nope. Doesn't even install the libraries

#

lmao

#

well at least I know why its not working

#

time to see what I forgot

#

Welp I guess its time for shading

#

lmao

cursive wren
#

Hello everyone. Im considering buying the plugin Guilds but i have some questions I need to be answered before buying it. Anyone there to help?
Questions:

  1. I saw on GitHub Issues that someone suggested a banner system. Pretty good suggestion and pretty dynamic. Was that implemented? If no is there a way to make it?
  2. The war arenas can be set my ADMINS and when you join that arena only members of a guild can PvP?
  3. Is there a way to give like a plot to each guild?
  4. Does the guild bank has interest?
  5. Does the leveling system work on unlocking features? Like more vaults or a bigger bank space something like that?
  6. Is there a way to create a Guild Shop based on the guild level? Or is there a way to when you level up the guild you receive a custom permission?

(no i don't know how to convert the GitHub files into a .jar to teste it ๐Ÿ˜ฆ )

static zealot
#

@bronze yew can you answer him please? I'm sorry if I'm bothering. please lmk if you don't like getting pings.

cursive wren
#

sorry to insist tho ๐Ÿ˜ฆ

bronze yew
#

No worries, Blitz i don't mind

bronze yew
# cursive wren Hello everyone. Im considering buying the plugin Guilds but i have some question...

~~0: Why is this not in the #guilds channel (probably cause you didn't buy it yet, right?) ๐Ÿคฃ ~~

  1. I saw on GitHub Issues that someone suggested a banner system. Pretty good suggestion and pretty dynamic. Was that implemented? If no is there a way to make it?
    It's not implemented. Glare is busy and it's not a priority. If you upvote and comment on it in the github there are more chances Glare will implement it.
  1. The war arenas can be set my ADMINS and when you join that arena only members of a guild can PvP?
    Server admins create arenas (warzone) where guilds will PvP each other in a last-man-standing mini-game when the initiate guild challenges between each other. Rewards can be issued via console commands, and all members (include guilds masters) can participate in these mini-game wars.
  1. Is there a way to give like a plot to each guild?
    If you enable worldguard-claims in the configs, guild masters can /g claim to create a worldguard region at that location with a size defined in the configs that belongs to the guild. You can also make pre-defined regions (like plotme or plotsquared) and sell those regions to guild through guild claim signs.
  1. Does the guild bank has interest?
    No, it's just safe storage, and where the tier upgrade cost, and buff costs are pulled from.
  1. Does the leveling system work on unlocking features? Like more vaults or a bigger bank space something like that?
    Guild tiers have multiple benefits, additional vaults, increase bank size, xp multiplier, damage multiplier, and member limit increase, as well as unlocking more and more powerful buffs. All configurable in the configs.
  1. Is there a way to create a Guild Shop based on the guild level? Or is there a way to when you level up the guild you receive a custom permission?
    There are custom permissions distributed guild wide for upgrading guild tiers, so you could tie it to the third party shop plugin.
static zealot
#

@bronze yew yes. He is asking a prepurchase question

#

Like he knows its OS but he is thinking about buying but he wants to know if those features are going to be added or exist

bronze yew
#

I answered everything to the best of my knowledge

static zealot
#

ye I was just confirming

cursive wren
#

thats great

#

rathering the 3. question

#

what i wanna know is if there is a way to make it work like PlotMe (if you know it) like having a plot world and give a random free plot to the guild

bronze yew
#

hahaha

#

someone didn't read ๐Ÿ‘€

cursive wren
#

oh!

#

xD

#

didint read the whole thing sorry

bronze yew
#

it just needs to be a WorldGuard region

cursive wren
#

the final part of the senteced runned away from me

#

hmm

#

and will i need to manually add each member?

#

or the Guild plugin will like "claim" that land for the guild and guild members will be able to edit it

bronze yew
#
    claim-signs: false
    # Would you like to make it so that claims can only be aquired through the purchasing with signs?
    # This will disable the regular claim commands.
    force-claim-signs: false```This is the config option for claim signs
cursive wren
#

would all tiers have access to editing the terrain?

#

or i can make it like a per tier permission?

bronze yew
#

all members of the guilds are added to the worldguard region

cursive wren
#

oh...

#

so all would be able to edit it

bronze yew
#

but there are role permissiosn too

cursive wren
#

yikes i think ill need help configurating that part

#

xD

bronze yew
#
        name: Member
        permission-node: guilds.roles.member
        permissions:
            activate-buff: false
            add-ally: false
            ally-chat: true
            change-home: false
            change-prefix: false
            rename: false
            chat: true
            demote: false
            deposit-money: true
            invite: false
            kick: false
            open-vault: true
            promote: false
            remove-ally: false
            remove-guild: false
            toggle-guild: false
            transfer-guild: false
            upgrade-guild: false
            withdraw-money: false
            claim-land: false
            unclaim-land: false
            destroy: true # this one
            place: true # this one
            interact: true #this one
            create-code: false
            delete-code: false
            see-code-redeemers: false
            modify-motd: false
            initiate-war: false```
cursive wren
#

my brain is spinning xD

bronze yew
#

destroy/place are on the list

cursive wren
#

so i can make them able to interact with chests furnaces etc

#

but not build

#

right?

#

btw bank = vault right? does not store money?

bronze yew
#

look up โ˜๏ธ

cursive wren
#

thats great gosh u have thought of everything for an RPG server!

bronze yew
#

bank = money storage (also where the tier upgrade cost and buff cost comes from
vault = item storage

cursive wren
#

ok good

bronze yew
#

It's a great RPG system

cursive wren
#

regarding the question 1... tht was an request from like 2 years ago

bronze yew
#

fair warning there is no raiding though

cursive wren
#

is there a way to pay more and have tht feature included?

#

the banners thing?

bronze yew
#

like you can't break into a guild claim

#

it's 100% secure for that guild

cursive wren
#

thats great

bronze yew
#

the guild war system warps both guilds to a warzone setup by server admins

#

You can try asking in the github if Glare is taking commissions. I doubt he is though. The sourcecode is open source and you could pay someone to PR it and Glare would more than be happy merge it into his master.

#

Although he has said he will be working on it over the holidays... so maybe get a bunch of people to upvote that github issue and it'll get his attention.

cursive wren
#

yeaaaah but i dont know any dev and no1 better then the owner of the plugin u know...

#

you know any way i can go arround this problem?

bronze yew
#

And this is where my support ends ๐Ÿ˜‰ Since the sourcecode is open source the #guilds channel is reserved for people who paid to get support ๐Ÿ˜‰ no hard feelings...

cursive wren
#

like any other plugin tht has a banner system tht i can add to Guilds?

#

aww xD

#

okok

bronze yew
#

best best is ask in the github and upvote it

cursive wren
#

most of my doubts are clear now so now I can look into buy it

bronze yew
#

he should have time over the holidays, and if it's one of the higher voted features he might add it

#

but i can't confirm anything as i'm just a "helpful" person ๐Ÿ˜„

cursive wren
#

btw i was talking about this one

#

Guild Banner #156

#

thts the issue

#

i upvoted and left a comment

bronze yew
#

yeah i got the notification that you commented on it (i think it was you)

cursive wren
#

EpicRealms is my crew yes ๐Ÿ™‚

bronze yew
#

Then sadly just wait and see

#

i know he's planning on adding RGB support for tags, prefixes, and guild names next. If the banner idea is simple enough he might add it too.

#

@cursive wren i up-voted it too. ๐Ÿ˜‰

cursive wren
#

yey ๐Ÿ™‚

#

im having my crew to up vote it

obtuse gale
#

html is fine tbh but fuck css

static zealot
obtuse gale
#

idk i just hate it

static zealot
#

Fucking hell.

#

My fps go to 0

#

when I'm on my survival server

#

but when I'm in lobby its fine

#

oh nvm

#

its back to normal now

static zealot
#

@ocean quartz with your GUI-FM when I want to put items on the second page how do I do it?

#

Do I just go slot: 55, 56 etc?

ocean quartz
#

You can't do that, the pages are the same for static items, page items are added automatically to the pages with addItem

static zealot
#

ah

#

I see

#

I'm using setItem

#

well I'll use addItem

forest pecan
#

GUI-FM ebic

#

ebic api

static zealot
#

it also makes sense why it overrides the next page item

#

lmao

#

wait

#

so I can't have different click actions for slots

#

in different pages?

ocean quartz
#

Wdym?

static zealot
#

so in page 1 slot 0 I want a click action but in page 2 slot 0 I want another one

ocean quartz
#

Just check the current page number

static zealot
#

oh

#

I can also set actions

#

for items

#

so I guess I can just do that

ocean quartz
#

Yeah

obtuse gale
#

How come I can still compile with stuff like this?

static zealot
#

IIJ broken

obtuse gale
#

is it actually? Cos its doing this on multiple PC's across multiple versions of IJ

static zealot
#

ah

#

nvm then

#

I never compiled. Always fixed

#

then compiled

obtuse gale
#

yeah its not like a red error either

#

its like a warning

ocean quartz
#

Also what Kotlin version?

obtuse gale
#

ah of course

#

its a java method im calling

ocean quartz
#

Yeah, that would make sense

obtuse gale
#

javaMethod(nullableThing)

#

yeah

#

this IJ EAP version for new macs im using is like wayyyy better than the normal version lol

ocean quartz
#

2020.3 was an amazing update

obtuse gale
#

even 2020.3 on my mac was running incredibly slowly

#

almost unusable

obtuse gale
#

Is there a javadocs api?

obtuse gale
#

object Thing {
val x:Thing<X>= "Thing"
val y:Int = 5
val z:Thing<X> = "Another Thing"
}

How can I iterate over everything in there of type Thing<X>?

obtuse gale
#

yes

#

how

prisma wave
#

You'll need reflection

obtuse gale
#

sounds like a blast

#

how does one

#

I managed to get over all the fields, I just cant seem to cast it to what I need it to be

#

actually nvm I dont need this lol

#

hello

#

can someone help me plz?

prisma wave
#

With what

obtuse gale
#

gpu

prisma wave
obtuse gale
#

do i must ask it in off toic?

#

cause i did

#

but noone answered

old wyvern
#

Wait?

obtuse gale
#

what?

prisma wave
#

Lol

static zealot
#

๐Ÿ˜ฆ

prisma wave
#

Lmao

obtuse gale
#

now im tryna get a configMe Property<String> by its name

#

how do I like cast a Field to a Property<String>? Casting it doesnt seem to just work unfortunately

prisma wave
#

Well yeah

#

Because it's a Field

obtuse gale
#

yeah lol

prisma wave
#

you need to cast the value

obtuse gale
#

getValue takes in two parameters?

prisma wave
#

since when

#

Field#get ?

#

or getValue

obtuse gale
#

wait it only takes one

#

what do i pass it

old wyvern
#

The object of whose field's value you want?

prisma wave
#

the instance to get the field from

#

Or null if it's static

obtuse gale
#

yeah its static

#

i think at le ast lol

prisma wave
#

Bear in mind that it you're using Kotlin the Bytecode might not be what you expect

#

properties in objects aren't static unless you have @JvmStatic for example

obtuse gale
#

yeah I have JvmStatic

#

eyy it works

steel heart
#

damn just found out about Instrumentation class exist

#

fuck Im so late

obtuse gale
#

With MF JDA CMD I cant have optional command params can I?

steel heart
#

when updating titles for inventories, do we have to re open the the inventory as well for each viewer?

obtuse gale
#

How do I like deploy my spring boot app

#

like I can just chuck her on the server than start it with java -jar app.jar but then I cant use the terminal at all since its always in the apps terminal

jovial warren
#

what?

#

you can run your Spring Boot app with java -jar if you have built it in to a JAR

obtuse gale
#

yeah

jovial warren
#

make sure that you don't use shadowJar with Spring Boot though

obtuse gale
#

but then my terminal is always on that lol isnt it

jovial warren
#

Spring Boot has it's own JAR packaging system that comes with the Gradle plugin

obtuse gale
#

yeah ive built it right

#

and i can run it with java -jar right

jovial warren
#

yeah

obtuse gale
#

but when i do my ssh terminal is like locked onto the terminal for the spring boot project

#

I cant do any commands to the vps

#

thats my problem

jovial warren
#

maybe you should try either using screens or running it as a background process

#

or better yet, in a docker container

#

what OS you using? (important because RHEL dropped support for screen in favour of tmux)

obtuse gale
#

ubuntu

jovial warren
#

apt install screen

obtuse gale
#

ye?

jovial warren
#

screen -S nameofscreen

obtuse gale
#

now just run my app on this?

jovial warren
#

yep

#

then to get out, CTRL + A (command) followed by D (detach) on its own

obtuse gale
#

can I make it so this is done when my vps starts up?

#

or is that pushing it lol

jovial warren
#

if you want to do that, I'd recommend using docker

obtuse gale
#

should be fine for now

#

ill cross that bridge when i come to it

jovial warren
#

fair enough lol

#

you don't necessarily have to use docker, but I recommend using it as it's really nice

obtuse gale
#

im doing control A followed my D and its just saying detach aborted

#

whats it do lol, ive heard about it but never looked into it

jovial warren
#

docker is basically a system that runs small embedded systems called "containers", kinda like having a virtual machine that only does one thing

obtuse gale
#

o

jovial warren
#

and it has it's own network and stuff, which is really nice

obtuse gale
#

got that control a thing sorted

#

o nice

#

i might set it up in a bit if i get time lol

jovial warren
#

I don't know that much about docker, I just know a bit about how it works and how to use it lol

obtuse gale
#

just for future reference, how do i get back to the screen i just created

jovial warren
#

screen -x screenname

obtuse gale
#

ty

jovial warren
#

yw

obtuse gale
#

now to work out why my things not working lol

#

is there a certain port something has to run on for https to work?

#

cos now that ive chucked my thing on my vps its stopped working, saying the server where the page is isnt responding

#

its running on port 42069 and im going to publicip:42069 and its not working

#

ah, nvm the port was blocked or smtghn

prisma wave
#

spring /gradle has a plugin to build things to docker images I believe

#

Would recommend docker

obtuse gale
#

how fix cloudflare 525 SSL handshake failed

#

do i need to do something on my server regarding this ssl thingo

prisma wave
#

probably

obtuse gale
#

how do

jovial warren
#

do you have SSL on full and have a certificate on both ends?

obtuse gale
#

atm its on flexible

#

also idk if this is relevant but im not tryna connect directly to the domain, im going to mydomain.org:2053

prisma wave
#

I am pretty sure cloudflare only provides SSL for port 443

obtuse gale
#

o

jovial warren
#

flexible SSL is weird

prisma wave
#

You need the enterprise version to secure other ports afaik

obtuse gale
#

ll try 443 i guess

#

is 443 the default for https? Does that mean if i ever want a website to run on this then id need to change this or something? Since this isnt a website, just a spring app that has a webhook endpoint

jovial warren
#

443 is the default port for HTTPS yes

obtuse gale
#

So am I gonna run into problems if I ever wanna put another app on this domain, but one thats an actual website so needs to go on 443

jovial warren
#

just have all your HTTPS traffic use 443

obtuse gale
#

Can I run two apps on the same port tho?

jovial warren
#

as long as it's all using the same web server, you'll be fine

obtuse gale
#

o ok

#

what if theyre both spring apps tho

#

wont it say like 'cannot start becausesomething else is running on 443'

prisma wave
#

Bind to different subdomains

#

Or setup a reverse proxy with nginx

obtuse gale
#

that sounds complicated

jovial warren
#

yeah just reverse proxy

#

with Caddy, it's like 3 lines

#

with NGINX, probably more like 20, but still pretty easy

prisma wave
#

A simple nginx reverse proxy is also 3 lines

#

well 4 or not

jovial warren
#
mydomain.com
reverse_proxy 127.0.0.1:port
#

morning

prisma wave
#
location domain {
    proxy_pass domain:port;
}```
#

3 lines

jovial warren
#

surprising lol

prisma wave
#
import elara/web

webServer "domain" {
    reverseProxy "otherDomain:port"
}
frigid badge
#

oh god

prisma wave
#

Pragmatic

jovial warren
#

NGINX actually isn't that much for once

obtuse gale
#

alrighty got this bad boy starting up on 443 now lets se if it works

frigid badge
#

k8s dropped docker runtime ๐Ÿ˜ฎ

prisma wave
#
(server "domain" 
    (reverse-proxy "other:port"))
obtuse gale
#

er

#

it seems without my knowledge apache seems to be running on my server

frigid badge
#

lmao

obtuse gale
#

now idk what to do lol

frigid badge
#

get rid of it?

obtuse gale
#

I get that when I go to my urkl

#

except im not going on port 80 im going on port 443 lol

#

which just gets rid of the port alltogether since its the default

prisma wave
#

.bashrc
sudo apt purge apache2

:slight_smile:

frigid badge
#

lmfao

prisma wave
#

Apache

obtuse gale
#

is that the actual command i do or is this some form of elara joke im misunderstanding

#

can never be too sure

prisma wave
#

the command is right

obtuse gale
#

oki

prisma wave
#

Probably doesn't belong in .bashrc though xd

obtuse gale
#

idk what bashrc is but alrijgt

prisma wave
#

Or maybe it does

#

It's Apache

prisma wave
obtuse gale
#

now im getting a 521 "Web server is down" error..... but my spring boot app is up

frigid badge
#

is nginx running

jovial warren
#

systemctl status nginx

frigid badge
#

service nicer tho

#

don't need to constantly get my caret to the operation

obtuse gale
#

dont think i even have nginx intsalled....

#

Unit nginx.service could not be found.

#

do I need it? Doesnt spring setup the server or whatever

frigid badge
#

it has an embedded web server yea

#

tomcat

obtuse gale
#

so why no work ๐Ÿ˜ฆ

frigid badge
#

what port is spring running

obtuse gale
#

443

frigid badge
#

does spring even support tls out of the box

obtuse gale
#

idk

#

when i run this locally it works

frigid badge
#

I always reverse proxy spring so idk

obtuse gale
#

I just want it to work lol

frigid badge
#

just set spring to run on port 8080 or something like that

#

and just install nginx

#

also is your firewall open

obtuse gale
#

yeah pretty sure

#

i checked if the port was open on one of those websites lol idk if they work or do what i need but yeah

frigid badge
#

ufw status

obtuse gale
#

what am i looking fof

#

for

frigid badge
#

just screenshot it

obtuse gale
#

just installed nginx

#

ok got my spring thing on 8080

#

now what lol

obtuse gale
#

halp

#

tbh its almost as if the spring server isnt running at all

hot hull
#

Fellas have we figured out who jolheiser is?

static zealot
#

no

#

maybe or maybe not

static zealot
#

I no longer get to chose between package, kotlin file and whatever used to be there

quiet depot
#

you're not in a source root

static zealot
#

what's a source root?

quiet depot
#

a directory for sources

#

like classes

half harness
#

src fingerguns

static zealot
quiet depot
#

right click src

#

mark directory as

#

source root

static zealot
#

ah I see

#

Idk what I've pressed to change it xD

half harness
#

โ“

#

hes still not active/online

#

o

hot hull
#

I'm back yea

half harness
#

๐Ÿ˜ฎ

distant sun
#

@static zealot why dont you use a Pair<Int, Int> instead of Array<Int>

static zealot
#

I "stole" the method

#

xD

#

I didn't think of changing it. I just saw it works

lavish notch
distant condor
#

Learning some NLP for fun, anyone knows some good reference/learning materials/resources?

quiet depot
#

nlp?

distant condor
#

natural language processing

#

seems like everyone does it with python more than kotlin sadly

quiet depot
#

idk

#

I just use dialogflow

distant condor
#

For this specific kind of NLP it's more like taking in large corpus of text and processing it

#

like reviews and blog posts then doing stuff like tf-idf to figure out what's important etc.

#

But resources for learning NLP is really sparse and all over the place :/

eternal blade
#

why on VPS
File#getAbsolutePath
IS not working and on windows machine it is working fine relented to spigot..

old wyvern
#

not working?

eternal blade
#

nope

old wyvern
#

How exactly?

eternal blade
#

it is saying null to YamlConfiguration and File

old wyvern
#

You probably havent created those files?

eternal blade
#

same jar file

#

on VPS doesnt work

#

on localhost windows works

#

same code same jar file

#

same paths

old wyvern
#

If you are using any hardcoded paths, keep in mind that file path separators in linux and windows are different

eternal blade
#

that probably the issue