#dev-general

1 messages · Page 628 of 1

prisma wave
#
java -jar velocity.jar
echo "closed"
#

It's becoming

#

Blocking*

obtuse gale
#

It's becoming...

hot hull
#

The world is becoming..

#

@static zealot

static zealot
#

😿

static zealot
obtuse gale
#

it's becoming

prisma wave
#

youre becoming annoying

ruby dew
#

this server is weird

#

with one of the most weirdest chat i have ever seen

#

more like awkward

distant sun
brittle leaf
uneven vapor
#

I encounter a bug or not wanted behaviour when I used Object::toString. of some reason it convert both values and the key toString (I use #toMap in stream) . So both key and value transform to map key.

took me like 1/2 hour´s to find the problem lol 🙂

#

Is way I both like and hate stream 🙂 some times you get unwanted results.

potent nest
#

Well if you have a stream of Entries, that’s obviously what you get

#

Not really an issue with streams

uneven vapor
#

what is it they say, you learn from your mistakes 🙂

quiet depot
#

you're streaming entries

#

the object is Entry

#

that's what you're calling toString on

#

entry contains both the key and value

#

you can call toString on the key or value specifically in toMap

uneven vapor
potent nest
#

You just need to know Haskell

prisma wave
#

TRUE

distant sun
#

you mean ({[<..;[haskel';;.,,>.>>}})?

prisma wave
#

no

uneven vapor
prisma wave
#

haskell invented streams

#

indirectly

potent nest
#

yeah those methods are like fundamental concepts in haskell

prisma wave
#

functions* 🤓

uneven vapor
ruby dew
#

how did yall get funding for your mc server

uneven vapor
obtuse gale
timber oak
#

What are some of the best frameworks or something like that, to have experience in for future jobs? Or good to have on a CV

potent nest
#

depends

timber oak
#

I think for software development

#

But not sure

#

Something in that area

onyx loom
#

in terms of java spring would be good

timber oak
#

What is spring used for?

forest pecan
#

Web applications but also many other stuff

onyx loom
#

its a huge framework

timber oak
#

Any recommended guides for it? When already knowing Java

forest pecan
#

it’s huge

timber oak
#

Or where to start

onyx loom
#

their website

forest pecan
#

You have to learn slowly ig

timber oak
#

Oh they have a "learn" page, will use that then

#

Thanks

#

Does working on open-source minecraft plugins help getting future jobs? Not minecraft related jobs

distant sun
#

experience is experience after all

#

not everyone makes popular libraries and/or applications

timber oak
forest pecan
#

It doesn’t mean if it’s a video game it can’t be professional

static zealot
#

I mean it can help but if that's all you have there, doubt it. They do like to see you have hobbies tho. Something you work on outside of jobs just bcz you like it

static zealot
timber oak
#

Alright makes sense, thank you

distant sun
#

I like how angular uses a root symbol instead of a check mark for messages lol

√ Compiled successfully.
√ Browser application bundle generation complete.

hot heron
#

And granted that was his personal opinion, so others might not feel the same

timber oak
#

Or well I got a job in a grocery store but that wont do much lol

hot heron
#

You could also potentially get lucky

#

But if you want to increase your chances, internships are a good option

timber oak
#

Ahhh yeah makes sense, I can't work full time right now which is an issue though, I should probably just focus on learning for now

hot heron
#

As always I feel like networking deserves an honorable mention as well

obtuse gale
potent nest
#

(at least 5 years)

obtuse gale
potent nest
#

yeah good luck finding that one person lol

obtuse gale
#

Like, granted, testing, tooling, git, sure, but jfc

hot heron
#

I saw one that wanted 5 years required of experience with two different languages

#

For an entry level position lol

dense dew
#

trash company

naive ingot
#

Question, so im trying to move a file into a logs directory and then zip it but im getting this error: https://paste.helpch.at/agumucanic.bash
and this is my code:

Map<String, String> env = new HashMap<>();
        env.put("create", "true");

        URI uri = URI.create("jar:file:/" + this.getDataFolder().getAbsoluteFile() + "/logs/" + new SimpleDateFormat("yyyy-MM-dd HH:mm").format(new Date()) + ".zip");

        try {
            FileSystem zipfs = FileSystems.newFileSystem(uri, env);
            Path externalConfigFile = Paths.get(this.getDataFolder().getAbsolutePath() + "/config.yml");
            Path pathInZipFile = zipfs.getPath("/config.yml");

            Files.copy(externalConfigFile, pathInZipFile, StandardCopyOption.REPLACE_EXISTING);
        } catch (IOException e) {
            e.printStackTrace();
        }```
potent nest
#

don't use the full path in the zip

naive ingot
#

Should just put the name of the zip inside of the logs folder?

#

so like new SimpleDateFormat("yyyy-MM-dd HH:mm").format(new Date()) + ".zip"

potent nest
#

it's not about the name of the zip file, it's about the name of the entry in the zip file

naive ingot
#

The path in zip file is only config.yml?

potent nest
#

ah lol now I see

#

then it might be related to the mixed / and \

#

just don't use the old file api anywhere :p

naive ingot
#

But if i change it

half harness
#

Or

#

wait

potent nest
#

you shouldn't need an URI for the file system either

half harness
naive ingot
#

thats what i was using

half harness
#

use / everywhere

#

since the file path has \

#

so you can do a .replace

potent nest
#

no just use a Path

naive ingot
#

ok

naive ingot
potent nest
#

tf

naive ingot
karmic fjord
#

or File.separator

#

i had issues with that slash problems for linux before

obtuse gale
#

Path.of("foo", "bar", "baz.txt") 😌

upper galleon
#

hey ya'll, so it's my first time scripting with java and I'm trying to make an autoranking script for new player. (7 groups you can be off the bat) Thing is, i have less than zero clue what I'm doing and I'd like to request if one of ya'll could go over my script and help me figure out what I'm supposed to be doing. I feel like a 1st grader making new words.

forest pecan
#

Scripting with Java?

sick belfry
#

ew

upper galleon
#

man, they said "ew" for scripting with Skript

#

I dont know what to do

brittle leaf
#

skript is ew

#

itd called programming

upper galleon
#

scripting period is ew

#

i feel like 2 year old

brittle leaf
#

scripting is what kids do when they wanna look cool on a cod lobby

upper galleon
#

this isnt helping solve my issue

#

but thanks for the input

obtuse gale
#

of course not, this is helpchat, the least you'll get here is actual help but get flamed for ""doing things wrong""

upper galleon
#

thats fine

brittle leaf
#

when you say autorank script, makes me thing you have everything in 1 class

upper galleon
#

i just wanted someone to go over my script because i have no clue here

brittle leaf
#

go over it and do what exactly? usually people come because something doesnt work right

upper galleon
#

just tell me if it looks ok. Once again I have no idea what I'm doing so I don't know if what I have will work or break. Simple as that

urban sleet
#

This is usually where someone would tell you "try it and see"

brittle leaf
#

you need to test your code

#

exactly

#

try it and see

upper galleon
#

if i had the slightest clue on how to do that, this would be a different conversation

cobalt marlin
#

did you try..

#

compiling?

upper galleon
#

I have zero idea on how literally any of this works. I only know if, thens, and functions, not placeholders, static thingys or just idk man this is cancer for me

upper galleon
cobalt marlin
#

you might want to start from basics then

#

jumping into plugin development with no prior programming knowledge is a bit

#

difficult

brittle leaf
#

very difficult

#

and painful

#

very very painful

upper galleon
#

i was just told to make an array with my groups, and randomly pick them, and some other things about other things

#

Yes. Very painful!

cobalt marlin
#

you should watch some videos on java

#

before attempting it

upper galleon
#

now that i did do

#

I know the basics

cobalt marlin
#

they didnt show how to compile?

upper galleon
#

not from what i recal

brittle leaf
#

tbf compiling a spigot plugin is different from compiling a regular java project

cobalt marlin
#

noot really honestly

brittle leaf
#

then again last time i compiled a java applet i didnt use maven or gradle

upper galleon
#

like what does "PlaceholderAPI.static.setPlaceholders(Bukkitplayer" mean, that right there is my most confusion

brittle leaf
#

what the

cobalt marlin
#

its just an api

#

for placeholderAPI plugin

#

thats not java related

brittle leaf
#

that not related to making a basic bitch spigot plugin

cobalt marlin
#

API means that its an interface basically between your code and their internal code

upper galleon
#

Imma just sit here and twiddle my thumbs

brittle leaf
#

you need to make an empty spigot plugin project

cobalt marlin
#

you really need to just watch couple of basics videos

#

thesourcecode's first couple videos are okay

upper galleon
#

thats what im watching

cobalt marlin
#

just dont get too used to their coding conventions

forest pecan
#

Yeah they are bad

brittle leaf
#

theres a guide on the spigot website in there development section

upper galleon
#

honestly some things went right over my head

brittle leaf
#

for an empty spigot project

forest pecan
#

Also, don’t expect to learn this in one day

#

I’ve been learning for almost 3-4 years now

cobalt marlin
#

yes, its a year long process minimum

#

you can probably make okay plugins in a month or two though

upper galleon
#

I just wanted to randomly assign someone a group off join because I'm not always there to do it myself

cobalt marlin
#

the issue is

#

your probably have those groups on another plugin right?

forest pecan
#

LuckPerms?

upper galleon
#

through luckperms yea

cobalt marlin
#

so you gotta hook up to that and assign

forest pecan
#

Mhm

#

You know in LuckPerms you can set the default group on join

#

In the configuration

upper galleon
#

yea

forest pecan
#

So why not try that?

#

Instead of coding cause you only code when you have to

#

But I’m not saying learning to code is bad at all. I’m just saying that you should always try to search for something first in the configuration file

upper galleon
#

I have 7 groups to choose from

brittle leaf
#

a menu with some buttons to pick a group can work, with like deluxemenus or something

upper galleon
#

ok

cobalt marlin
#

i think it just needs to assign

#

a random group to new players on join

upper galleon
#

i mean yes, but not necessarily

cobalt marlin
#

there might be a plugin for it already honestly

forest pecan
#

I believe that at the beginning you should resort to solutions as what Luna said because you don’t have a great coding experience. But along that learn coding too

upper galleon
#

AutoRank by Staarvin

#

it had troubles enabling then disabling do to some file issue that I don't have access to

#

but yea, what Luna said is actually an optimal idea. Then another problem occurs for my ranking system. but thatll be another problem for another day

#

Thanks!

forest pecan
#

I can’t believe it

#

So beautiful

gilded granite
forest pecan
#

Absolutely stunning

gilded granite
#

i spent many hour on it 🙂

forest pecan
#

Gorgeous

gilded granite
#

thank u

#

i also made a server host company

#

what u think

forest pecan
#

I love it

half harness
#

#

2 stars = 11/10

pallid gale
#

¯_(ツ)_/¯

inner umbra
#

lol

half harness
#

🥴

upper galleon
#

Luna, deluxemenus works perfectly after a tad struggle, darn ' ', so annoying lol.

ionic galleon
#

Hello, I am looking for a Placeholder timer that starts at zero and then counts up infinitely. If the server restarts, the timer should just keep counting. I want to display this timer on a Holograph, how long the server has existed. Does anyone know if there is such a thing? Like the %server_uptime% placeholder but that it continues to count time even after restart that players can see how long the server already exists.

karmic fjord
karmic fjord
ionic galleon
karmic fjord
#

you need to store last count to remember again when server started to continue from the last value

#

something like a config file or just even a text file would be enough
idk if papi provides a data holder for this situation

timber oak
#

How is this an invalid request?

[Serivece] Experienced server owner or server manager
[Request] I'm a developer looking for someone to start a server with, the server will most likely be Skyblock or Prison but I'm up for suggestions, I will handle the development side of the server, but need someone to manage it that has experience with attracting new players etc.
pallid gale
#

typo in [Serivece]

timber oak
#

oh

#

lol

#

mb

#

Yeah works now lol, thanks

distant sun
#

Any idea if its possible to have "Sign commits" enabled for all projects by default?

obtuse gale
#

yeah

distant sun
obtuse gale
#

I remember spending too much time searching in the docs what the setting is named

distant sun
#

Ty xD

pastel imp
#

uhm any ideas of a plugin that lets users join even when mojang services are down?

#

Auth services decided to die

#

lol

hot hull
#

Don't use mojangs auth service

#

ez pz

distant sun
#

online-mode=false

pastel imp
#

fair

half harness
pastel imp
#

but that's actually a good idea, checking via ip

quiet sierra
#

I wonder if it's possible to make an AI model that's made purely to fill out web forms as humanely as possible

#

Tricking recaptcha v3

obtuse gale
#

probably

cinder flare
#

honestly third-party auth servers when?

#

get Paper to run their own auth service

obtuse gale
#

pretty sure you can change the uri it connects to

#

without going out of your way and using a fork

cinder flare
#

yeah I'm sure you can, problem being a reputable authentication server provider lol

obtuse gale
#

oh you mean hosting one for the general public

#

hm

lavish notch
#

Does BungeeAPI have a similar method to Bukkit#getOfflinePlayer(Player)? I'm looking to get a player's UUID from a player name string provided via a command argument.

obtuse gale
#

no

lavish notch
#

Gotta query Mojang's account shit I'm guessing then?

obtuse gale
#

bungee doesn't store any user info, you'd need to either do the caching/storage yourself or web req to mojang (or, like, both with the request as fallback)

lavish notch
#

Aight, cheers.

ocean quartz
#

Messaging channel to get the user offline data from the server kek

obtuse gale
#

lol

brittle leaf
#

get it from one of the hubs ez

quiet depot
#

at least that's what I gathered when I looked in their discord the other day

inner umbra
quiet depot
#

well you can either be for reporting

#

or against reporting

inner umbra
#

Oh the chat

quiet depot
#

that's what star was talking about

#

custom auth service to get around mojang bans

inner umbra
#

Its the client thats banned not the auth. You have to create a new launcher.

#

Unless they have both (Server side and client side).

potent nest
#

What

#

You can still play singleplayer if you‘re banned afaik

#

Yeah it says so in the FAQ

inner umbra
manic vector
#

What's the command that send this output?

cinder flare
manic vector
#

Tysm

#

Is this okay?

cinder flare
#

oh yeah, the pauses being 0ms is the dream

manic vector
#

Perfect

#

Another info

potent nest
#

well everything else would be weird when using ZGC

manic vector
#

Could you please help me with a timings/spark i have?

#

I'm having some lag issues, it was yesterday (i had old gc)

#

now it's to early in the morning so i have just a few player to do some other timings

potent nest
#

if you used G1 on a current JDK version and aikars flags and you had lags due to GC, there's most likely something wrong

manic vector
#

idk if they were caused by aikars flags

#

i just had big lag spikes

#

server went to 13 tps, and then 20

#

down to 14, and then 20

#

it even reached 7 tps yesterday

#

for like a couple of seconds

potent nest
#

do you have timings from that time?

manic vector
#

i do

#

This is the timings

potent nest
#

what CPU is that?

manic vector
#

AMD Ryzen™ 7 3700X

#

Should be good

potent nest
#

it says it only has 4 cores

manic vector
potent nest
#

are you running it in a docker container or something like that?

manic vector
#

I don't

#

pretty sure it has 16 xD

manic vector
#

wrong ping

manic vector
#

where did you get this info?

potent nest
#

in the config tab, system config

manic vector
#

hm

#

why is that 4?

potent nest
#

that's the question :p

manic vector
#

i just run the server in a screen

#

but i'm quite sure that's not the problem

potent nest
#

I think spark can show that info too, maybe you can find out if it says the same

manic vector
#

you mean inside the profiler?

#

Or with a command?

potent nest
#

not sure if it's accessible via a command

manic vector
#

This is a spark from yesterday at around the same time

#

Is it helpful somehow?

potent nest
#

The system is running Linux (amd64) version "5.15.0-40-generic" and has 4 CPU threads available.
hm

manic vector
#

wtf

#

why

potent nest
#

idk, but you should try to find out ig

manic vector
#

Is that a real problem?

#

I mean, since mc is based on single thread

potent nest
#

while the main thread is the most important one, there are more threads involved (e.g. chunk loading, lighting) and also the JVM profits from having more cores available, especially when using ZGC (but also applies for G1)

manic vector
#

So can it be the problem that’s generating the lag?

potent nest
#

well it certainly doesn't help in reducing the lag

manic vector
#

Yeah i see

#

So, right now I’m searching a solution for this

#

In the meanwhile, did you find any other relevant infos from timing/spark?

potent nest
#

it all looks pretty normal besides the old gc runs

manic vector
#

So why those lag spikes?

potent nest
#

well if it's overloaded constantly, it's just too much going on

#

if it's only 4 lag spikes, it came from the old gc runs

manic vector
#

wym with "if it's only 4 lag spikes"?

#

The system is running Linux (amd64) version "5.15.0-40-generic" and has 16 CPU threads available.

#

Problem fixed.

#

It was because of old aikars flag limiting cpu available power

potent nest
manic vector
#

So that’s why of the lag spikes?

potent nest
#

if those lag spikes were only a few seconds, most likely

manic vector
#

Yeah, they went down from 20 to 14

#

And then back to 20

#

But constantly

potent nest
#

there were only 4 old gen collections before you did the timings, so it can only be relevant for 4 lag spikes

manic vector
#

4?

#

So I suppose that’s not fixing the problem

#

So what are the lag spikes I have caused by?

pastel imp
#

quick question, does anyone know if Plotsquared API has changed much from v4, v5 and v6? I wanna know if I can make a plugin compatible with those 3 versions since 1 is paid (freemium) and the others are free

static zealot
#

pretty sure they're like complete rewrites

potent nest
#

only v4 is fully free

#

but there's a lot of restructuring between v4 and v5, and v6 has some parts basically rewritten too

static zealot
#

you can't even get v5 anymore. its the same spigot page as v6

half harness
#

did v5 used to be free? or was it always paid

pastel imp
#

True

#

So there is only v4 and v6

half harness
#

on the versions tab

pastel imp
#

So since they are complete rewrites, the api has completely changed?

potent nest
#

v5 was the first version that was posted as premium resource

static zealot
potent nest
#

rewriting everything at once would be an insane amount of work lol

pastel imp
#

So how would I approach creating a plugin using the plot api?

#

That supports both

potent nest
#

depends on what you actually need, but you'll most likely end up writing separate code for each version

pastel imp
#

Oof okay

potent nest
#

I mean that's basically the reason why they are different major versions

pastel imp
#

Ye fair enough

foggy pond
#

Why are cakes not water-loggable

manic vector
#

Yo guys

#

What are these tps drops caused by?

half harness
#

Lowest TPS I could find was 19.64

manic vector
ruby dew
manic vector
#

And i'm talking about these tps loss

half harness
manic vector
#

orange = tps loss

half harness
#

try to send a spark report

#

oh wait

#

oh yea

#

u have spark installed

obtuse gale
# ruby dew oh alr makes sense lol

Yeah most people who run servers only do it as a side project so they usually have a comfortable source of income to fund it themselves properly

half harness
#

I've gtg rn but maybe someone can help
try sending a spark report when the lag spike happens

obtuse gale
#

And ofc use aikar's flags

manic vector
#

aren't those old?

obtuse gale
#

No

manic vector
#

a lot of people told me zgc are way better

obtuse gale
#

They still work as efficiently as ever as far as I know

#

I'm not an expert on Garbage Collection so I wouldn't know better though lmao

ruby dew
obtuse gale
#

That's a bad idea

manic vector
#

and now they're gone

obtuse gale
#

Servers aren't as profitable as you think unless you make it big

ruby dew
#

but ofc i dont open it for money i just wanna have fun with it

manic vector
obtuse gale
#

Yeah /spark profiler --only-ticks-over 50

ruby dew
#

or the profit is not measured in terms of concurrent players

manic vector
#

i had a 300 players network

obtuse gale
#

Depends on what your server's like and how p2w you're willing to go lol

manic vector
#

and i can tell you that, if you can market it well, you can make a lot of money

ruby dew
manic vector
#

like coding, staff management, marketing etc

#

i'm pretty sure i couldn't do what i did without them

#

so be sure to have a GOOD staff team

#

that will work with you because of passion

#

and not because of money

obtuse gale
manic vector
#

if you take someone in your staff and he just thinks about money it will ruin everything

manic vector
#

that's part of the owner job

#

but, from a personal experience, it's better missing a staff role then having a staffer that should cover that role but can't do it

#

(sorry for my bad english, i'm italian)

#

Maroon btw i think the profiler is ready

#

Here's the link

pliant dagger
#

Does anyone know any decent weather APIs that update frequently for forecasted weather?

obtuse gale
manic vector
#

I know

potent nest
#

-XX:ZCollectionInterval=30 why do you have this flag set

obtuse gale
#

then we can't find the issue woeisme

manic vector
#

What's wrong with it?

ruby dew
manic vector
potent nest
#

you shouldn't need it

obtuse gale
manic vector
obtuse gale
manic vector
ruby dew
#

and how did you even find all your staff members

ruby dew
#

do you need a microphone or sth? or something like a resume

manic vector
#

yeah for sure xD

#

I mean, that's the basic

obtuse gale
ruby dew
obtuse gale
#

If you update your purpur version, they remove timings completely I believe

#

That's in 1.19 though

ruby dew
#

also you said you HAD a mineraft server
now its sold or down i suppose?
Does it mean it needs a lot of work to maintain the server

manic vector
obtuse gale
#

Yeah don't re-enable them lol

manic vector
#

And the one i have one it's a complete remake

ruby dew
#

oh alr

manic vector
#

We re opened it one month and 2 weeks ago

#

29th may

obtuse gale
#

If you want to make something special, that is

manic vector
#

With the new server the player peak has been like 82 iirc

#

and that's pretty good since we just been closed for like 6 months

ruby dew
ruby dew
manic vector
#

yeah we did a amazing job

#

me and the staff

#

i'm so happy with this

#

we did a AMAZING vote system

#

with rank and stuff

#

and with just 82 players PEAK we are the 3* server in italian server list

ruby dew
manic vector
obtuse gale
#

So your other option would be learning to do it yourself

ruby dew
obtuse gale
#

Oh nice nice

ruby dew
#

but i just dont know how to make it a brand

manic vector
#

i think you have to think from the player's view when you create a server

ruby dew
obtuse gale
manic vector
#

Not enough trust in the project

forest pecan
#

Developing this stuff sounds like a pain

ruby dew
manic vector
#

So take someone that do it

ruby dew
ruby dew
forest pecan
#

Just the fighting/anime aspect I’m talking about

#

does not sound fun to code lol

ruby dew
#

its alr just some GUI and a bit of maths and nms for now in 1.8
but i suck at arts and im trying to make the skills look pretty

#

its fun to see the outcome
but its not fun at all for the development having to constantly refresh your mind visualizing how it will be displayed
thats why i quit back in 2017

ruby dew
manic vector
#

Just find some people that can beta test your server and play it from a "player's view"

ruby dew
ruby dew
#

hey guys just one quesiton is 6gb a lot for calculation intensive servers?

quiet depot
#

calculations alone use negligible memory

manic vector
#

Whenever you want

distant sun
forest pecan
#

Forgetting the CSS file be like the cheese falling off the pizza lol

potent nest
#

looks like you failed to find the correct channel

forest pecan
#

Lol

acoustic radish
# ruby dew im thinking of making a hero/anime based fighting server basically a fully rpg ...

MMORPG is not an easy genre, it by default sets the content and mechanics complexity much higher than most of regular Minecraft servers, or games.

It's not only very difficult to code, it's also as hard, or even harder to design first.
To create this kind of a server you would need a substantial experience in game design.
I definitely wouldn't recommend it for a beginner or inexperienced creator, because that's a complex topic.
On top of programming and game design knowledge, you also need good experience in project managing, because it's not a simple survival server which can be done in 2 weeks.
It's a long road to go, and you will have to wisely pick your goals and features that you should work on, and abandon the unnecessary ones.

I have been making servers for 8 years already, and only since this year, I have been able to turn any profits. Since then, I've been making lots and lots of servers to play with my friends, I've been coding some fun features, and we were playing it together. This way I have learned a lot, so now I'm able to undertake tougher challenges, which would never be possible if not all these years.

hot hull
#

Weak

pliant dagger
#

Does anyone know any decent weather APIs that update frequently for forecasted weather?

distant sun
#

number -= -1
This is something

static zealot
#

why

static zealot
#

but that was like at least 1 year ago

pliant dagger
#

There are some that give hourly updates but that's like over $200/month

rotund egret
sage bone
#

Hello can I get help in this server for issues with discord?

compact perchBOT
#
FAQ Answer:

Looking for discord support?
HelpChat is a Minecraft plugin and development support server and is not affiliated with discord in any way.
If you require support from discord, we recommend you to visit their official support website at https://support.discord.com
On this website, you can read their FAQs, or open a support ticket if necessary.

half harness
#

but this isn't a discord help server

#

it's a server mainly for minecraft stuff

sage bone
#

Okay thank you

high blaze
#

is it fine if i look for developers on this chat?

static zealot
#

no

half harness
high blaze
#

okay thank you

static zealot
#

but make sure to follow the rules from those channels as well

#

they're pinned in each channel

high blaze
#

awesome thanks

noble jay
#

If i need a packet listener, and some of the packets I need to listen to have an event in the Event Api, is it worth using the api or is it better to just use the packet listener?

obtuse gale
#

it depends

#

sometimes the event gives more and better context about what is going on

#

sometimes listening to the packets directly gives you more insight on some of the interactions

cursive jolt
#

Such as anti cheats should usually always use packets because bukkit doesn’t expose enough

noble jay
#

thank you @cursive jolt

inner umbra
#

I just had to look into why I can't get all entities on a server async (since I just want the list)
So had to get the entityManager from ServerLevel.
Bukkit's (spigot's) API is limited more then just what you can access with it.

inner umbra
cursive jolt
#

There are weird cases where stuff is safe

#

It should not be safe to get a chunk from outside the main thread but it is

#

The server will execute that request on the main thread

inner umbra
#

You can alter entities such as armorstands async lol

cursive jolt
#

Although once you have that chunk, reading anything is unsafe

#

Although it may be safe because Mojang synchronizes the palette killing performance

#

Although they don’t need any synchronization… it’s weird. It’s like we tell people to not do stuff async then we hurt performance by allowing them to do stuff async that they weren’t meant to do

inner umbra
#

You gotta remember when servers were first introduced, I don't think it used a separate thread at all xD

rocky lark
#

Im using foreach loop to iterate between messages sent before and send them to the user. for some reason I'm getting an error that is repreducable but on my computer nothing weird happens..
Maybe due to downgrading java version in mvn to java 17 (I'm using replit)?

Error:
Exception in thread "Thread-3" java.util.ConcurrentModificationException
at java.base/java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1013)
at java.base/java.util.ArrayList$Itr.next(ArrayList.java:967)
at me.fozystyle.JavaChatServer.readThread.run(readThread.java:54)

Code at me.fozystyle.JavaChatServer.readThread.run 54:
if (server.messageHistory != null) {
for (String s : server.messageHistory) {
sendMessage(s);
}
}
btw messageHistory is a String list:

List<String> messageHistory = new ArrayList<>();

#

**Please ping me if you think you've a solution **

forest pecan
forest pecan
rocky lark
#

It works fine on my local system

#

this issue occurring only in replit

rocky lark
obtuse gale
forest pecan
#

Still

obtuse gale
#

not specific to mc

#

this is more of a chill chat to talk about dev stuff

#

like flaming kotlin

rocky lark
#

ok

urban sleet
fervent tinsel
#

why are u dislike kotlin?

static zealot
#

Bcz when and there yes

ocean quartz
fervent tinsel
#

🗿

#

Next trend will be hate everyone who not using kotlin?

ocean quartz
#

Nah, that's also a trend withing Kotlin devs

obtuse gale
#

Exactly

ocean quartz
#

They are both incredibly annoying

obtuse gale
#

Yeah Kezz would agree

#

@Kezz

#

wtf

rotund egret
#

@kezzzzzzzzz

ocean quartz
#

Kezz left us wtf

half harness
#

was kezz in this server?

obtuse gale
#

probably idk

ocean quartz
#

They were for some time yeah

dense dew
half harness
#

never though of that

#

😈

half harness
#

or is it only for large servers

#

but Minecraft doesn't have it

#

For now, this feature is an experiment available to a select number of communities. Eventually, Home will be a part of every Community-enabled server.
If your community has Home and you want to leave feedback, you can find a survey in the Home settings context menu!

#

Oh

quiet depot
#

wonder if we have it

#

cube probs has some funky way to get it for us

half harness
#

👀

quiet depot
#

when tf did we get 13k members

#

thought we were at like 10k

#

idk if I can check on phone if we have it or not

cinder flare
#

yeah people saw I was in this server

#

so they all joined

ocean quartz
#

We've had over 10k for a while now

cinder flare
#

^ cause of me obviously

quiet depot
#

ur so popular star omg

cinder flare
#

ik ik ik

#

and even with all that popularity, i'm stuck using a single shitty laptop screen when i have three 24" monitors just sitting around waiting to be used

cinder flare
#

it haunts me night and day, i just want to do work for my company!

half harness
#

💀

cinder flare
half harness
#

but

#

then what about before

quiet depot
#

lol

cinder flare
#

hmm?

quiet depot
#

get rekt

#

ur just bad star

#

face it

cinder flare
#

ik ik ik

quiet depot
#

nothing todo with a dock

cinder flare
#

i try so hard

quiet depot
#

ur just bad

cinder flare
#

and this is the thanks i get

#

dockless

#

maidenless

quiet depot
#

yep

cinder flare
#

what do I have?

quiet depot
#

popularity

cinder flare
#

hmm

#

yeah but that's not worth shit

#

when all you really want is to have that one person

#

😔

#

i'm sure you understand pig

#

don't you have a special someone?

#

maybe she goes by the name PlaceholderAPI?

ruby dew
# acoustic radish MMORPG is not an easy genre, it by default sets the content and mechanics comple...

That’s very inspiring to hear!

I should have no problem for programming,but I have little to no trust to my project as the other pro owner said
I’m just too desperate for the results instead of enjoying the development process.Idk maybe because I don’t have friends to play on my server?lol

Also tons of other business to deal with when opening a server like marketing and stuffs

It’s surely hard especially I’m aiming for a server that has super complex game mechanics

obtuse gale
cinder flare
#

oh shit nice

old wyvern
ruby dew
#

hi im new to opening minecraft server
do you guys recommend buying a vps for minecraft server?

rotund egret
#

!host

ruby dew
#

!host

cinder flare
acoustic radish
#

It's also possible that Emily could've helped you

ruby dew
#

ello guys

sly sonnet
#

Heyy

obtuse gale
#

how to add gradient in deluxemenu can anyone help me?

hexed tartan
#

click_commands:
- '[console] bx'
- '[console] advancement grant %player_name% minecraft:story/enchant_item<delay=20>'

#

[18:47:01] [Server thread/INFO]: ...nt Jimaie minecraft:story/enchant_item<--[HERE]

#

need help,I want the second command to run a few seconds after the first

sly sonnet
#

add space before <delay=20>

hexed tartan
sly sonnet
#

Why did you remove < and >

hexed tartan
#
  • '[console] advancement grant %player_name% minecraft:story/enchant_item <delay=20>'
static zealot
old wyvern
#

U broke

hexed tartan
#
  • '[console] advancement grant %player_name% minecraft:story/enchant_item <delay=20>'

need help don't work

half harness
#

Found out that gson... has a number limit??????????? (even though it's a long and so it should be able to store long numbers)

😕
Anyone know why? And should I replace it with a BigInteger or a String?

#

probably a BigInteger

#

RIP 1224 lines of json data 💀

#

most of which have an ID linked to it

obtuse gale
#

hm?

#

what am I even supposed to look at?

half harness
#

will test in like 10 mins

but apparently long isn't stored correctly with gson 🤔

half harness
hot hull
#

:what:

potent nest
#

Not a gson issue, more like javascript numbers

half harness
#

it seems diff from js numbers though

will be afk for like 10 mins so I can't test rn, but I'll test when I get back

#

🥲

#

hmmmm

#

i am confused

half harness
#

im going to go insane

#
path.createFileAndDirs()
val text = gson.toJson(get(), MainDataFile::class.java)
path.toFile().writeText(text)
logDebugInfo("\n\n\nSaved: \n$text\n\n\n", print = false)
```It logs the correct info


**but the file has the incorrect info**

❓ ❓
#

😖

#

😭

obtuse gale
#

sucks

potent nest
#

what

half harness
#

I'll debug more later but not right now

potent nest
#

text is a string?

half harness
#

yes

potent nest
#

why would that change in any way

#

sounds sus

half harness
#

I don't know

#

I'll debug what the file reads

#

right after I writeText

sick belfry
#

open an issue at the github lmao

#

and it is weird lmao

obtuse gale
#

Does anybody know how much of a cut SpigotMC Take for purchases on the site?

tidal chasm
#

??

obtuse gale
#

I thought it was a relatively straight forward question

#

??

#

I'll make it clear

#

Unga Bunga! 🪨 Typey man sell plugin on spigot 🪨 .

#

Ooga Unga! 🪨 Spigot want take money from typey man 🪨

tidal chasm
#

Bruh

obtuse gale
#

🪨 💥 How much money does spigot want? 🥁

tidal chasm
#

That’s actually sad

#

So spigot wants a cut

#

Basically

obtuse gale
#

I'm not sure, I'm asking if and for how much.

#

I don't think Spigot takes a cut? At least I've never heard anyone say anything about that before and there's nothing about it publicly available on their site either

tidal chasm
#

@obtuse gale

obtuse gale
#

yes hello?

hot hull
#

They don't take a cute I don't believe

tidal chasm
#

??

forest pecan
#

No she is not

#

She is a chef

obtuse gale
#

why?

obtuse gale
forest pecan
#

hush

tidal chasm
#

On my mc server

#

But if u work for commissions I am sorry

#

😭😭😔😔

obtuse gale
rotund egret
#

Lul

tidal chasm
#

Why

rotund egret
#

People (generally) don't work for free

tidal chasm
#

Yeah 😭😭

hot hull
#

Slavery is not okay

ruby dew
tidal chasm
#

Yes if u are a dev

#

And know how to work with mc servers

old wyvern
#

Can I get an Aventador?

ruby dew
# tidal chasm Yes if u are a dev

I’m a plugin researcher and I publish paper on how to use plugins more efficiently and including skript syntax research and stuffs
You can check my publication it’s my thesis for my bachelor degree

#

My academic name is Ho lee fuk and I’m an asian

steel heart
#

Please have the indulgence of cooking me a meal using Skript lol

tidal chasm
ruby dew
#

Lol bro can’t you feel the susness?

tidal chasm
#

lol

#

I know

#

But don’t let that discourage u

#

Whoever says anything to you say at least I was able to write a thesis

ruby dew
#

yeah i wont discourage myself im working at a toilet company that deals with shit
and im earning "shit" ton of money
gonna change my name to ho lee shit maybe

tidal chasm
#

😂

#

Ok

#

Ur choice

pastel imp
#

bro...

#

did this guy just say skript?

#

my eyes are burning

#

it's even sadder with the way he sentenced the message so "professionally"

#

it was good until I saw "Skript"

#

lmao

forest pecan
#

Skript is awesome I luv skript 😍

#

I use it daily and make anticheats out of it

acoustic radish
hot hull
#

I can see plenty of reasons, but I am aware his message was a joke (so he doesn't get riled up for no reason again)

pastel imp
#

hate him? Why would a man hate another just like that?

cursive jolt
#

My offer still stands for making a 3.01 reach check in skript for 5k

#

Skript truly can be pushed to the limits

#

But the people who know how don’t use skript

ruby dew
hot hull
#

Speechless at this point, absolutely speechless

ruby dew
#

Losing brain cells at this point, absolutely lack of brain cells

manic spindle
#

Was wondering how one could specify which economy for vault to use. Trying to add an option where people can specify it in a config file but im completely lost.

distant sun
#

I believe that the one with the highest priority on the services manager will be used

prisma wave
#

Sounds about right

distant sun
#

you can create a new instance of the economy you want and register it with the highest priority

manic spindle
#

Ik the one with the highest priority is used. But trying to allow people use like a token economy plugin. which wouldn't take priority

distant sun
#

or well, not an instance, but an wrapper for it

#

I doubt any tokens plugin uses vault for economy

manic spindle
#

trying to make it so people can specify which economy to use from the /vault-info list

simple tapir
#

Can somebody help me with something in java? DM ME

old wyvern
#

or... you could post your issue in #development and someone can help you out

steel heart
obtuse gale
#

SQL GC

forest pecan
#

PHP Anticheat that injects into your BIOS

dense owl
#

hello i want to make a way for people to get the discord and youtube playerhead and when they place and right click on the head they get a message in chat. how can i do this in spigot

#

yes i am coding my own plugin

old wyvern
dense owl
#

pls i need help

old wyvern
#

What have you tried till now?

dense owl
#

alot but if you have some code i can try it

old wyvern
#

huh?

#

have you actually tried to implement what you want?

#

Like what are you struggling with exactly?

dense owl
#

the whole code

old wyvern
#

🙃

tranquil crane
old wyvern
#

I'd suggest reading up on some guides in that case?

dense owl
#

i am a beginner coder so

old wyvern
#

Alright, you still gotta try to learn tho

#

I assume you are new to Java as well?

#

?learn-java

compact perchBOT
#
FAQ Answer:

Online Courses:
Online courses are also great for learning java. Some websites that offer them are:

  • Coursera - Free unless you want a certificate
  • PluralSight - Great courses from what I've seen. Mostly Paid
  • Udemy - Never used them myself but they seem to all or at least most be paid.
    My first ever course was one from Coursera. - I can say it was pretty good at introducing me to the programming world as a whole not just java.

Oracle Docs:
Oracle docs can help a lot at learning and understanding java:

  • Start with this,
  • Breeze through this (skipping stuff that doesn't seem relevant like bitwise operators),
  • Hit this.
    They're the first three from this larger thing which you should definitely go through overall. But those three should be enough for slightly better understanding of what is happening here without feeling like a huge time sink.
    That one is a small part of this larger site wherein "Essential Java Classes" and "Collections" also have good useful stuff

Other services:
Some other cool services that will help you learn java are:

As you can see there are plenty of good ways to learn as long as you're willing to invest the time. Have fun learning!

oblique heath
obtuse gale
#

lol

obtuse gale
#

Which is why, when you messaged me out of nowhere to ask me for free work, I told you people have bills to pay and shit to buy

#

I get that you don't work, but people generally don't work for free unless they A) Undervalue their work OR B) Accurately value their work.

ruby dew
rotund egret
#

Ok

pastel imp
#

Uhm is using an api like Holographic Displays for holograms better performance wise than making my own holograms with armorstands?

weary epoch
#

its been a while

#

ive been doing other languages and such and i wanted to get back into minecraft devoplment

#

but with kotlin

#

is there a good place i should enter or some kind of recources online?

#

@prisma wave have u made the youtube tutorials yet? 😂

obtuse gale
#

yeah he's on it right now

prisma wave
#

yeah man ive got like 1000 episodes ready to go

#

just need to upload

weary epoch
#

finally its been like a year

#

i remember begging for days

prisma wave
#

unfortunately that was a joke

weary epoch
#

:((

weary epoch
obtuse gale
#

yeah he's getting on it right away

weary epoch
#

"playing visual studio code"

prisma wave
#

Playing overwatch actually

#

overwatch 2 to be precise

weary epoch
#

let me guess u made it urself

#

i just want to learn kotlin ;-;

prisma wave
#

i made what myself?

weary epoch
#

I already spend about 10 hours a day doing C i need to do something that i actually like

obtuse gale
#

Not specific to MC but the official docs are pretty good

bright river
#

is it possible to use deluxemenus on a 1.8 server?

prisma wave
#

or simply trial and error until you find something that works

obtuse gale
weary epoch
bright river
obtuse gale
#

I don't, cuz we don't talk about deluxemenus here

bright river
#

alr alr

distant sun
obtuse gale
weary epoch
prisma wave
#

you'll generally interact with the libraries in the exact same way

weary epoch
#

im getting flashbacks to how helpful u are

prisma wave
#

im incredibly helpful yes

weary epoch
#

now i remember why i wanted youtube tutorials so bad

prisma wave
#

i do actually intend to try do them this summer

#

but we'll see

weary epoch
#

its already summer

obtuse gale
#

"this summer"

weary epoch
#

im doing contracting work for summer ill give u like 80% of my check to make youtube videos

prisma wave
#

lmao

#

how much is that?

weary epoch
#

like 12$ they dont pay so well

prisma wave
#

💀

weary epoch
#

nah i make 15-20 n hour

#

its actually amazing

#

and all i have to do is get punched in the face by some bipolar kid that works with me

prisma wave
#

🤨

weary epoch
#

my jaw is still sore

#

😳

#

not like that

prisma wave
weary epoch
#

wtf is kotlin

#

x: Int
instead of int x

#
  1. why need the colon
  2. why does it need to be capitalized
#

its the best language in the world compared to java but it still makes my heart cry

#

no semicolons though so actually kind of nice

distant sun
#

x: Int is the same as int x

weary epoch
#

yes i got that

#

but its still weird

distant sun
#

and that's thee equivalent of java's Integer, because kotlin doesn't have primitives

sick belfry
#

ew

onyx loom
#

declaring the type isnt even necessary

weary epoch
#

what about functions

distant sun
#

for variables/fields is not always necessary

prisma wave
weary epoch
prisma wave
#

what

#

what does python do

distant sun
#

probably suck

prisma wave
#

before you say it

#

kotlin is not dynamically typed

weary epoch
#

x = int(value)

prisma wave
#

it has type inference

prisma wave
distant sun
#

I hope you know that int() is Integer.parseInt

prisma wave
#

^

weary epoch
#

i just realized that

#

i remembered python as being int value\

dense dew
#

haskell better tho

obtuse gale
#

TRUE

weary epoch
#

why cant everyone just be c++ with python syntax ;-; never a perfect language

prisma wave
#

what would that even look like

weary epoch
#
int x = value```
#

where u can choose between the 2 or something

prisma wave
#

that is literally java 10+

weary epoch
#

yeah but java has painful syntax

distant sun
#

var and val means mutable and immutable btw

dense dew
#

try haskell

#

better syntax

prisma wave
#

TRUE

weary epoch
#

classes

prisma wave
#

imagine having classes

prisma wave
#

or objects

obtuse gale
#

classes 🤮

#

types 😌

prisma wave
#

TRUE

dense dew
#

or i can suggest memory safe blazinglx fast language!

obtuse gale
#

yes

#

haskell

prisma wave
#

^^

dense dew
#

yes

weary epoch
dense dew
#

thats what i mean

weary epoch
dense dew
#

all

prisma wave
#

soy object fan vs chad algebraic data type enjoyer

dense dew
#

haskell is universal

#

best lang

weary epoch
prisma wave
#

what

weary epoch
#

no one that can understand it looks like a chad i meant to say

prisma wave
#

wdym we all do

weary epoch
#

just me then... ok

#

I had a theory and idk if its right but all the actual good java programmers get a real jobs that pay really well so all the top tier devs on minecraft servers are low level real world programmers right? it kind of makes sense but idk what the world is

prisma wave
#

minecraft can be a well paying job

weary epoch
#

not more than like 100k a year

#

and mid level programmers can make that

#

maybe only at hypixel

dense dew
obtuse gale
#

Look at all those functional languages 😌

prisma wave
#

functional on top

#

pathetic kotlin and java down where they belong

sick belfry
#

write your own language

#

in assembly

weary epoch
#

how do u think assembly was written

sick belfry
#

then write it in c

#

or c++

weary epoch
#

people actually had to code in binary at one point

#

literal pain

weary epoch
#

Note: you are a C dev

#

@prisma wave u know kotlin so why can java be so easily converted to kotlin but converting kotlin to java is harder

distant sun
#

any idea if chart.js is capable of doing something like this?

prisma wave
weary epoch
#

to do a for loop in kotlin it says for (i in 1..5){} to do it 5 times while in C its for (int i; i < 5; i++){} is there a way to do something like this in kotlin or its strict syntax

prisma wave
#

why would you want to do it c style way lmao

obtuse gale
#

use java for that matter

prisma wave
#

^

weary epoch
prisma wave
#

But why

#

The kotlin version does the same thing

#

And you can just add a condition inside the loop if you really need

rotund egret
#

You can still do that In kt

#

Until, downTo, and , .. are all just syntax sugar

distant sun
#

https://youtu.be/AaZ_RSt0KP8 worth watching tbh, I'm 4 minutes in and is very interesting
Edit: totally dope

Tiny particles from distant galaxies have caused plane accidents, election interference and game glitches. This video is sponsored by Brilliant. The first 200 people to sign up via https://brilliant.org/veritasium get 20% off a yearly subscription.

This video was inspired by the RadioLab Podcast "Bit Flip" https://ve42.co/BF -- they're brillian...

▶ Play video
sick belfry
#

extremely cool

#

watched it like 1 month ago

last nacelle
#

When using hashmaps, do I have to sent all of them to null onDisable? I heard somewhere its good to do that to prevent leaks. They are from another class and I would have to access them with new since I dont have them static, but this doesn't make sense to me since it will have plugins already disabled when calling that. Any advice?

sweet cipher
#

You should not do that, also you wouldn't be able to access them by using new, that would create a new instance

hot heron
#

If they aren't static, they will be handled by the gc

#

Static will as well, but there are more nuances when it comes to that

last nacelle
#

Gotcha, thank you

prisma wave
#

If they're not static it's almost certainly fine

#

The only thing you should be careful about is hard references to things like Players and Worlds, since that might prevent them from being unloaded and cause an actual memory leak / problem

#

Oh this was 6 hours ago

cobalt marlin
#

if you are worried about leaks etc

pastel imp
#

Uhm is using an api like Holographic Displays for holograms better performance wise than making my own holograms with armorstands?

inner umbra
#

You might not have as many features to loop through.

pastel imp
#

wdym

inner umbra
#

Well for the features, you might not have everything that HD does. So you wouldn't have all the bloat to loop through like it does.
Then also you might be using better API calls if you code it in later versions of MC then HD is coded for.

pastel imp
#

so what would be the best option in your opinion?

inner umbra
#

My opinion... Always code your own. You won't have to worry about someoneelses code.

prisma wave
#

Simple holograms are pretty trivial so if you don't need any special features yeah just do it yourself

cobalt marlin
#

i remember someone saying decentholograms is okay but i have never checked their source code

hot hull
#

Honestly using packets ain't all that difficult, consider all the tutorials for exactly this

last nacelle
#

What do you guys use for hosting? I’ve used MelonCube before, but I feel there might be something better for the money 2022. Advice?