#dev-general

1 messages · Page 8 of 1

feral notch
#

sorry wrong chat

half harness
#

Run task later still exists

#

Including 1.8

#

Afaik

worthy violet
#
int x = 80;
    ServerPlayer[] fakePlayers = new ServerPlayer[x];
    private final String URL = "http://textures.minecraft.net/texture/ffcc53e10678a0de3dcb1b020e82685eb53aa556a7d2310d9b60823aeeb52bb0";

    public PlayerNetworkListener() {
        String toEncode = "{\"textures\":{\"SKIN\":{\"url\":\"" + URL + "\"}}}";
        byte[] encodedSkin = Base64.getEncoder().encode(toEncode.getBytes());
        for (int i = 0; i < x; i++) {
            GameProfile profile = new GameProfile(UUID.randomUUID(), " ".repeat(16));
            profile.getProperties().put("textures", new Property("textures", new String(encodedSkin)));
            ServerPlayer sp = new ServerPlayer(((CraftServer) Bukkit.getServer()).getServer(),
                    ((CraftWorld) Bukkit.getWorld("world")).getHandle(), profile, null);
            SkySurvivalPlugin.addFake(sp);
            fakePlayers[i] = sp;
        }
    }

I have the following code which generates fake players with a gray skin but for some reason they don't get the skin, does anyone know why?

obtuse gale
#

Hello do I report issues in here?

distant sun
#

Regarding what?

obtuse gale
#

I have this issue:

#

An issue in my terminal? Error code?

#

How can i upload a lot of code because discord wont allow?

#

!paste

#

?paste

#

!paste

compact perchBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
HelpChat Paste - How To Use

obtuse gale
#

I have no idea what is up with this..

#

Its always been alright till now..

#

uh are you developing a plugin/expansion or do you just run a server and happen to have an issue with PAPI?

distant sun
quiet depot
#

person who has clearly never used linux

queen saffron
#

Just found out my pc is windows 11 ready.

#

I hate even thinking about it

half harness
#

I'd switch to Linux if windows wasn't the priority for the majority of apps

queen saffron
#

^^^

rotund egret
#

I recently swapped to dual boot

#

Now I dev in linux

static zealot
rotund egret
#

Ig

#

30 minutes isn't that late

static zealot
#

22*

rotund egret
#

That's even better

half harness
#

I feel like it would just be inconvenient to reboot every time you want to dev and then play, etc

cobalt marlin
#

rest are just inconveniences

half harness
cobalt marlin
#

well thats mainly due to it sucking on windows

#

it feels so natural on linux

#

its just done better there

rotund egret
half harness
#

Yeah... I tend to procrastinate quite a bit 💀

rotund egret
half harness
#

wdym sql?

rotund egret
#

Like starting a database and working with it

half harness
#

i mean its the same process with both (start the service then run sql)
If you use linux terminal a lot though then using cmd prompt would be quite a change

cobalt marlin
#

services are so readily available on linux

#

not so much on windows

#

but once you have set it up

#

on windows it becomes basically the same

rotund egret
#

I also like the terminal in general. Super powerful

cobalt marlin
half harness
rotund egret
#

Tis why it's not a switch

cobalt marlin
#

especially since some of the software i use for work (cad especially) suck on linux

rotund egret
#

It's a dual boot

half harness
#

but like every time you code, you're not going to use the unix terminal

#

so theres not much benefit added

rotund egret
#

I do in fact

cobalt marlin
#

it becomes a constant thing

half harness
#

oh

obtuse gale
#

anything dev related is so much faster on linux

rotund egret
#

I use it from ij even

half harness
#

wdym?

old wyvern
#

Just use whatever you're comfortable with

half harness
#

im used to GUI stuff so I don't understand what things are faster in linux in terminal
and I don't use unix terminal that much

old wyvern
#

People will keep jerking everything and anything

#

Use what you find rpoductive

cobalt marlin
rotund egret
#

No one is jerking wtf

old wyvern
#

I meant in general

#

Not to this discussion in particular

#

People will keep hyping something up

half harness
obtuse gale
#

I meant, e.g. i can build paper from absolute scratch in like 3 minutes, and the whole of jdk in 6

half harness
#

Huh

#

reminds me of that video of compiling chrome or smth

obtuse gale
#

for some reason dev stuff on windows sucks balls in terms of literal speed

old wyvern
#

It might not be equally useful for someone else

rotund egret
#

I really wish I had a server so I could just launch server instances as needed on it

old wyvern
#

Not saying any points are valid/invalid. Just may not apply for anyone to instantly jump to someone else's work style

rotund egret
#

Yeah we get it thanks yuhioh

rotund egret
half harness
obtuse gale
#

Also software development in general, (mostly) regardless of language or environment, is far more mature on Linux than on Windows

half harness
#

and as long as you log in to the dashboard like every 2 weeks

#

you should be fine

rotund egret
#

Huh

half harness
#

no guarantees though, it's a free service 🥲

obtuse gale
#

The few games I play have Linux natives or work with Proton and.... they work better than on Windows lmao

half harness
#

ok but like
anticheat games

obtuse gale
#

Other than that I don't do anything at all that requires Windows exclusivity

#

EAC

#

I mean if you're gonna dual-boot just to play games

#

sure

#

go for it

#

i'm not going to stop you

rotund egret
#

That's what I did

obtuse gale
#

in fact i'd encourage you to do it

#

because odds are setting up proton is going to be a pain in the ass for some games or even impossible

ocean quartz
#

When it comes to dev environment, this
https://www.youtube.com/watch?v=Hj1a7QuwjSI

Y'all asked for it - here it is! Anything I don't answer here is probably in the faq: https://t3.gg/faq

Limit7k coming in CLUTCH with these edits thank you so much man

People seem to be enjoying my instagram so follow me there? https://www.instagram.com/fakiebigfoot
Also check out my twitter https://twitter.com/t3dotgg
And everything else http...

▶ Play video
half harness
#

§x§5§8§6§5§f§2
Isn't this #5865f2? Which if I google gives me blurple but if I do say §x§5§8§6§5§f§2 in console it gives:

rotund egret
#

Do they still use that symbol?

half harness
#

yes

#

paper uses adventure

#

oh wait something is probably changing it to green

#

like rounding the color

#

although green is a weird color

obtuse gale
#

@boreal needle so can you help me with deluxe tags please?

half harness
#

thonking why lucy

boreal needle
#

please leave me alone

half harness
#

lol

#

?help

compact perchBOT
#
FAQ Answer:
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait

Source

obtuse gale
#

bruh

boreal needle
lapis viper
#

can smbd help me in general plugins 2 ?

half harness
half harness
compact perchBOT
#
FAQ Answer:
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait

Source

half harness
#

no one here is paid to help, it's ran by volunteers

lapis viper
#

Okay 😄

half harness
#

I couldn't find any documentation on it

#

besides someone trying to convert &#123456 to hex

#

Even ChatColor.of() doesn't work

#

this is a Paper 1.18 server

#

oh cmon

#

someone has the same issue but didn't post the solution

#

and the thread is not open for further replies

rotund egret
#

Simply use MiniMessage

half harness
#

Can't

#

it's not for chat

#

but I'm using chat for a simple example

rotund egret
#

Oh I see

half harness
#

it's a PAPI expansion

#

for TAB

#

specifically for the glow color

rotund egret
#

Tab doesn't use Components?

#

Oh nvm

half harness
#

nvm ignore above ^^

#

I think I made a dumb mistake

obtuse gale
#

obviously

outer ember
#

    @EventHandler
    public void onStrom(WorldEvent e) {

        Bukkit.getScheduler().runTaskLater(this, () -> {
            for (Player player : Bukkit.getOnlinePlayers()) {
                e.getWorld().setStorm(true);
                player.sendMessage("The Storm started.");
            }
        }, 200);

    }```

Hey, I'm trying to make a storm occur every couple of hours. I've tried using this method but having no luck, would anyone be able to help me try to resolve this?, fairly new to coding in Java so trying to get a decent understanding.
rotund egret
#

When you say "no luck" do you mean there's an error or is nothing happening?
Does the plugin load? Does the Event fire?

lavish notch
#

Also- wouldn't that consistently loop/spam?

rotund egret
#

It would run every 200 TimeUnits

#

Idk what the task is measured in

lavish notch
#

Milliseconds iirc

rotund egret
#

Oh wait I see

#

It would register a task every time

half harness
#

10 seconds

rotund egret
#

That's nasty

half harness
#

Oh wait

#

or do you mean for WorldEvent

compact perchBOT
outer ember
#

woop

half harness
#

why are you using WorldEvent

#

put this in like onEnable

#

and 200 ticks = 10 seconds

#

so you might want to increase the number

#

(1 second = 20 ticks if there's no lag)

outer ember
#

I thought the event would work better with a WorldEvent, I just sent a small tick on it just so I could see it fire up on start. But i'll incrase it

half harness
#

you want to put it in onEnable so that it gets called when the server starts, and that's it

rotund egret
half harness
#

because that code sets up a timer

#

you only want 1 timer

rotund egret
#

So you'd end up with a nasty amount of timers causing storms left and right

half harness
#

and increase it later

outer ember
#

Yeah, it was just to see it at the start to ensure it worked, I plan on having them occurring every couple of hours. I did get an error with the method I used, I'm following a course on Udemy to try to understand what I'm doing a little better. I got this error with the plugin https://paste.helpch.at/zojijolovi.php

It seems to load on the server with no problem, obviously, the event isn't being fired up.

half harness
#

it's a "base" for other world events

#

but again you want to put this in onEnable

#

not a listener

outer ember
#

Okay, yeah I get you. I'll give this a go and see what I end up with, thank you so much!

brittle leaf
#

worldevent is abstract

outer ember
rotund egret
brittle leaf
rotund egret
brittle leaf
#

wyd = what you ?

#

what you doing?

rotund egret
#

Yeah

brittle leaf
#

playing terraria and drinking

#

wbu, anything nicee?

rotund egret
#

Trying to find a project to do. Been a hot minute since I've played Terraria, you liking it?

brittle leaf
#

well i havent started, im waiting on a friend to start up the world and we are playing modded terraria which i dont usually do

rotund egret
#

Oh fun, I haven't done too much of that.
Good luck with your game!

brittle leaf
#

im quite a light drinkerand have never gotten drunk and ive had like 125ml of jack daniels and the world feels a bit distorted and moving around doesnt feel like it had that friction that the regular world has, is that normal?

brittle leaf
#

is this what being drunk is like?

rotund egret
#

Sometimes it's emotional

brittle leaf
#

i guess im a little giggly

ionic gust
#

i wish i knew about objects a month ago 😭

rotund egret
#

Bröther what did you think Object Oriented Programming meant

obtuse gale
#

huh

worthy violet
#

does anyone know of a REST Project which I can quickly upload onto my local webserver to test my Java project that interacts with REST without getting blacklisted or creating unnecessary load on some else's API.

distant sun
#

You can create your own though

obtuse gale
#

SpigotMC offline for you guys too?

gilded basin
#

yup

obtuse gale
#

oh boy

cobalt marlin
#

does anyone know why jetbrains ides sometimes use extreme amounts of cpu

#

feels like there is something going wrong with indexing since it gets fixed with a restart

analog relic
#

hello

#

does anyone know why spotify status doesnt work anymore

#

with discord

#

i tried everything

cunning portal
# analog relic hello

Hi, that's a Minecraft related discord, not a discord one, also that channel is for development

distant sun
primal crystal
outer ember
#

Hey, Could anyone help me out here - I'm trying to have the storm stop after 5 minutes, I tried running this through a .runTaskTimer, but it doesn't seem to be stopping it.

         Bukkit.getScheduler().runTaskTimer(this, () -> {
            for (Player player : Bukkit.getOnlinePlayers()) {
                Bukkit.getWorld("Build").setStorm(true);
                player.sendMessage(ChatColor.translateAlternateColorCodes('&', "&FA Storm has arrived."));
            }
        }, 12000, 6000);
    }```
inner umbra
outer ember
#

Yeah, I am looking to have the storm arrive every so often and last for 5-10 minutes then it goes off again at the first interval for every player. But I'm trying to get it to stop after the 5 minutes, could you help guide me as to how I can make it so it does stop after the 5 minutes?

inner umbra
cobalt marlin
#

cant you just listen to weather change

#

then fire a task to run after 5 minutes to stop it?

prisma wave
#

🤓🤓

brittle leaf
#

why would you set the storm to true for every player and not just once at the top of the task

#

also wouldnt you wanna set the weathercycle gamerule to false aswell?

rotund egret
#

Gamerules effect the server don't they?

brittle leaf
#

also using a broadcast would be better then manually sending a message to every player

brittle leaf
rotund egret
#

Oh word? Since when

#

Maybe always

#

Lmao

brittle leaf
#

afaik always

remote goblet
#

im pretty sure it was always but /gamerule set it to every world Hmm

brittle leaf
#

/gamerule always set it per world as far as i remember

rotund egret
#

I know it's per world on Sponge.
But I haven't hosted many spigot servers

brittle leaf
#

or atleast ive had to set keepunventory on each would manaully in the past

lime plover
#

Anyone know how to disable MongoDB Logging? I have spent probably 2-3 hours googling and trying different things but I get all the standard logging messages no matter what I do.

cobalt marlin
#

wdym by logging? you mean the ones posted by the library?

lime plover
#

Yea

#

all the org.mongodb.driver.client on startup that most people use

        Logger mongoLogger = Logger.getLogger( "org.mongodb.driver" );
        mongoLogger.setLevel(Level.SEVERE); // e.g. or Log.WARNING, etc.

to disable

#

I'm genuinely baffled by it.

cobalt marlin
lime plover
#

what do you mean?

cobalt marlin
#

if mongo registers under another name or uses custom logger implementation

#

then that wont work

#

and you wont get null error either since it returns a new logger if its not found

lime plover
#

yea i get what you mean, but people use different imports all over, alot user the standard package and some use log4j's loggert

jovial axle
#

Anyone that knows why maps that are not in a player hand refresh slower? I suspect it has something to do with a refresh rate that is handled by the server and if this is that case is there any way to circumvent it?

cobalt marlin
#

using the map id

#

if you want them to update according to the world, then you need to do some nms to regenerate it

cobalt marlin
jovial axle
#

aight I see thanks

#

I think I got an example that relates to what you just said, found it on coincidence so I think I can make it work 😄

sturdy magnet
#

may i ask here something related to bash

#

related specifically to bash scripting

obtuse gale
#

yeah it's fine here

distant sun
agile galleon
#

is there a way to change the commit description of the last three commits? accidentally commited something i shouldnt have because cool intellij added stuff it shouldnt have

cinder flare
#

yes but it's a little weird

agile galleon
#

there are two missing

#

im mega confused

cinder flare
#

what did you type lol

#

did you rebase HEAD~3?

agile galleon
#

i think if fucked everything

#

yeh whatever

#

ill just remove these commits

#

well see what happens

#

how do i make it apply?

#

im in vim

#

what do i do now

#

alr

#

code gone haha

#

pain

agile galleon
#

can i change this about a commit?

forest pecan
#

anyone ever used rxjava?

#

seems pretty cool

obtuse gale
#

yes!

#

I'm more of a projectreactor gal myself but the core idea is the same

#

it's the best most poggers stream system in the world

#

ever

gusty glen
#

I didn't really enjoyed it, and now that I know Kotlin Coroutines and Project Reactor, seems like RxJava is worse than those two

runic flume
#

What's the fastest way to check what plugins depend/soft-depend ProtocolLib on my server?

static zealot
runic flume
#

Ah okay, I was looking for a non-code way tbh xD

inner umbra
#

Open every jars plugin.yml

cunning portal
pastel imp
#

uhm any recommendations for intellij themes?

#

I remember someone sending me one that matt made

static zealot
#

Material's atom one dark

#

Ah that's a color scheme

pastel imp
#

but I am on my new pc and cant find it

pastel imp
static zealot
half harness
static zealot
pastel imp
#

thx now I gotta remember how to add it xd

#

found it

static zealot
#

Settings Editor File Color I think

#

Then the 3 dots and import

brittle leaf
#

just softlocked intellij by trying to open crafteventfactory :)

rotund egret
#

ggs

brittle leaf
#

how do i fix it

rotund egret
brittle leaf
#

just removed workspace.xml and its now loading fine

hot heron
#

I had it open and closed intellij so when I tried to open intellij again, it had the hardest time

brittle leaf
#

porting crafting to a chest gui is more work then i thought lol

gilded granite
#

HOLY

#

sorry bot

#

github copilot is so cool

#

oh my god thios is awesome

tribal plinth
#

github copilot isn't as good as it is in python

#

do people still use databases without encrypting when sending data to the database? even if it's not password or anything important?

gilded granite
#

it even knows my chat format

#

how does it know??

static zealot
#

by reading your code

prisma wave
#

^

static zealot
#

Man. I just love adds that are made to look like real posts.

remote goblet
#

why are you still consistently doing translateAlernateColourCodes

#

i swear even youtube tutorials tell you to make it into a method

potent nest
#

imagine using legacy color codes in 2022

remote goblet
#

i mean

#

and do what instead

#

if you want basic colours like white or whatever do you wanna type #ffffff every time

#

or some cringe mini message <white> system

potent nest
#

u r cringe smh

remote goblet
#

probably but answer the question

hot hull
#

He can't

obtuse gale
#

rgb(255, 255, 255)

potent nest
#

yeah I'd use some cringe mini message <white> system

remote goblet
#

ah yes

#

yeah i thought that much

cinder flare
#

components 🤤

remote goblet
#

i have a likely misplaced hatered for components

hot hull
#

You can stick components where the sun don't shine

cinder flare
#

good for i18n, good for your codebase, good for everyone!

prisma wave
#

if "minimessage" is so good why isnt there a bigmessage

ruby dew
#

is there a client good at phasing

prisma wave
#

maybe

remote goblet
#

but when i look at the examples it looks so overcomplicated

cinder flare
#

yeah cause you're not really supposed to do it literally in your code

#

even then, it's very easy to understand, and a lot easier to tell what's nesting and what's not than in legacy

remote goblet
#

i dont really know how the lang files look like when it comes to using components but surely it looks way messier on the user's front, no?

cinder flare
#
permission-denied: '<red>Sorry! You don't have access to that command.'
user-teleported: '<green><bold>You have been teleported to %destination%!'
#

etc.

#

very nice

remote goblet
#

How do hex codes look in there though

cinder flare
#
permission-denied: '<#ff5555>Sorry! You don't have access to that command.'
user-teleported: '<55ff55><bold>You have been teleported to %destination%!'
obtuse gale
#

%destination% :noooo:

prisma wave
remote goblet
#

so it basically looks almost the exact same

#

but with some fancy <> surrounding the codes

#

how useful

cinder flare
cinder flare
obtuse gale
#

why not use MM's own placeholder/tag resolving system

remote goblet
#

who the fuck is doing that

cinder flare
#

oh i dunno cause this is just an example and i got like 3 hours of sleep last night lol

obtuse gale
#

damn you alright?

cinder flare
cinder flare
remote goblet
#

that just sounds like bad developers imo

cinder flare
#

i mean it is

obtuse gale
#

md5 §x§r§r§g§g§b§b moment

cinder flare
#

but regardless, minimessage is much clearer in basically all areas

obtuse gale
#

go do gradients with that

prisma wave
#

imagine minimessage... but in rust

cinder flare
#

even just avoiding the magic &4 is worth the trouble

#

but you also get a lot of other benefits too

remote goblet
#

Working with components always feels like taking so many extra turns for the same result

cinder flare
#

like you can do hovers, gradients easily like emily mentioned, it's a standardized format, etc.

remote goblet
#

maybe im just inexperienced with them but zzz_shrug

cinder flare
remote goblet
#

i also have a minecraft boomer mentality

cinder flare
#

translateAlternateColorCodes vs making a MiniMessage builder

cinder flare
remote goblet
#

no where near the "1.8 is the better minecraft version" im not that stupid

#

i just don't eksdee

#

im just a bigger fan of the legacy colour system and older GUIs

cinder flare
#

i mean yeah, I'm sure there are people who are still bigger fans of Fortran and ALGOL, but most normal people use python or java lmao

marsh storm
#

I like MiniMessage

remote goblet
hot hull
#

MM should parse legacy codes for convenience sake, the end

remote goblet
#

i can agree with that part too

potent nest
#

no

cinder flare
#

no thank you keep that out of my specification

prisma wave
#

legacy is nice for small bits i cant lie

#

luckily MittenLib™️ is groundbreaking and supports both at once

obtuse gale
#

the entire point of minimessage is to not be legacy dumbshit lmao

remote goblet
#

I also use esophose's message parsing system everywhere so switching to mm is so much extra work for me rooSussy1

elfin basalt
#

MiniMessage.miniMessage().deserialize(text.replace('&', ChatColor.COLOR_CHAR))

#

ezpz

remote goblet
#

that looks

#

incredibly ugly

prisma wave
#

i dont think that works

elfin basalt
#

it did in 4.2.0

cinder flare
#

yeah I also don't think that works lol

prisma wave
#

420 blaze it lol

obtuse gale
#

it doesn't work lol

elfin basalt
#

throws an exception now

obtuse gale
#

i mean it "works" but you're mixing both legacy and components and the client will render that very funnily

cinder flare
#

okay guys but can we talk about how awful keeping configurations synchronized between servers is

prisma wave
#

no

cinder flare
#

especially with the quote unquote secret management

#

aka just putting that shit in the same yaml file

#

very hard to separate people who can add shit and people who are allowed to connect to the database yk

remote goblet
#

people asked for my tag plugin to support bungee better by making the tags file sync across bungee

cinder flare
#

though i was looking at this thing called spruce

#

that combines yaml files lol

#

so my idea is to have the configuration part of the config.ymls for various plugins, and then the secrets part, then use spruce to shove em together for the final product

hot hull
hot hull
#

supporting legacy, and adding support for a "legacy" style for convenience sake, are two different things

cinder flare
#

either way, you have to write it as part of the specification for what it does when parsed

#

which, again, would defeat the whole purpose of moving to a better method

obtuse gale
#

MM isn't meant to work along, it's straight up a whole replacement

#

for legacy

cinder flare
#

problem being there's a lot of plugins that don't store data nicely cross server in a database cough essentials cough

#

but like, theoretically, the dream would be to just mount the world folder and have everything else be readonly 😌

obtuse gale
#

CMI cursed_fingerguns

cinder flare
#

yikes no thanks

remote goblet
#

oh yeah how is minimessage when it comes to spigot only servers that aren't use paper since it uses kyori which, i could be wrong, is only a part of paper and paper forks

obtuse gale
#

lmao

cinder flare
#

i just want essentials to support storing userdata in sql

obtuse gale
obtuse gale
#

it's just an extra adventure serializer

cobalt marlin
cinder flare
#

oh shit it's $4.99 wtf

obtuse gale
#

lmao

remote goblet
#

ah hmm

cinder flare
#

yeah this doesn't seem great lol

#

i mean tbh I don't use it for the economy

#

er, well, we don't use the economy on the server at least

#

honestly there's not even much playerdata, basically just like metadata like logout location and last played time and like command cooldowns

remote goblet
#

what

prisma wave
#

so true

#

truer words have never been said

remote goblet
#

im literally so confused

obtuse gale
#

sus

#

among us

#

vents

#

impostor

static zealot
#

There's an impostor among us

obtuse gale
#

😱

remote goblet
#

oh uh by the way they said they just wanna be banned

#

idk why when they could just leave and not rejoin but sure

obtuse gale
#

Among Us™️

static zealot
#

Ori. I dont want to hear about this anymore. And I don't want to time out more people. K. Thanks. Good night

brittle leaf
dense dew
#

yeah

rotund egret
#

Oh huh

#

I guess I need to find repos

distant sun
hot hull
#

Contribute to FJ cause why not

rotund egret
#

Perhaps

dense dew
#

whats FJ

rotund egret
#

FrozenJoin

dense dew
#

you need 4 PRs to get t shirt right

hot hull
#

Yes

#

I got a few repos marked for it, so if anyone wants to contribute, go ahead, just no useless shit like readme's

rotund egret
#

Just cleaned up a few extra spaced mmk

hot hull
#

One day FJ global will be a thing

rotund egret
#

Platform agnostic?

hot hull
rotund egret
#

I had considered just porting FJ and making it a module tbh

#

Oh interesting

hot hull
#

It's also marked for hf so if anyone wants to contribute cursed_fingerguns

dense dew
#

👀

distant sun
#

lol 🤣

static zealot
#

many

gilded granite
#

I do not understand this.

#

Copilot just wrote an ENTIRE command for me

#

With nothing

#

Well it forgot to actually call the reload method but still

#

This is unbelievable

#

It even got my chat format and everything correctly

static zealot
#

I mean. It is literally trained on millions of lines of code. (probably billions actually idk). It is still pretty bad imo

half harness
#

better than nothing

#

:)

#

I probably wouldn't pay for it tho

gilded granite
half harness
#

unless its like a dollar a month

#

idk the price

gilded granite
#

$10/month

#

60 days for free

half harness
#

oh

prisma wave
#

no student license?
megamind.jpg

gilded granite
#

Don't have a student lisence though

static zealot
#

I also have a student license. so I don't pay for it

prisma wave
#

ive found it really good generally

prisma wave
#

it has a few funny moments sometimes

gilded granite
#

It's really good for me

prisma wave
#

but 99% of the time it works great

gilded granite
#

Yeah

half harness
#

or are you on the trial

gilded granite
#

I will pay for this when its over though

half harness
#

o

gilded granite
#

$10 for this is worth it

#

Saves so much time

#

I still don't understand how I pressed newline twice and it wrote the whole command for me

static zealot
# prisma wave but 99% of the time it works great

Can't say it's 99% for me. But it does have its moments. It still does those random repeating lines way too many times, and a lot of the times it just takes over the tab completion given by IJ when I don't want it to

half harness
#

copilot is still pretty smart

gilded granite
half harness
#

it takes in the pattern

gilded granite
half harness
#

unless you're telling it to do a specific thing and you haven't wrote it previously, it sucks

gilded granite
#

Our jobs boutta get replaced 🤣

static zealot
#

idk about that

half harness
#

😭

static zealot
#

made easier, sure

#

well actually. 20 years. it's a long time

half harness
#

although 20 years

#

thats a lot

static zealot
#

so maybe there will be no jobs. maybe we'll live in a "utopia" where robots make everything for us. Or we can live in a dystopia where robots took control and we are their slaves.

half harness
#

well someone's gotta make the robot

static zealot
half harness
#

true
but I guess when there's a bunch more code available in the future, copilot will be massively improved

prisma wave
#

we all have other patterns and ideas in our brains that we're subconsciously using to create things

static zealot
#

you know, I was thinking the same thing as I Was typing. But I'm to tired to get into any of that shit

prisma wave
#

lol

#

likewise

gilded granite
#

we are all getting replaced within the next 100 years

#

AI is becoming more and more advanced by the day

static zealot
#

maybe. maybe not. we'll see. or we won't. depends how fast we die

gilded granite
#

fair

half harness
#

💀

gilded granite
#

or maybe immortality in humans are developed before then via CRISPR or something of the like

#

and we dont die

#

but thats even more of an uncertain question

#

if gen Z and alpha dont achieve immortality we are probably gonna be the last ever generation not to

#

well, "immortality", might be like 20,000 years but immortality im not sure of

#

point is if we dont find out a way to halt the aging process we will be the last generation ever to die before age 10000

static zealot
#

I have no idea what you're saying but good talk.

gilded granite
#

lmao neither do i

#

im just saying whatever i think

static zealot
#

going to play some games half asleep.

#

@half harness best

half harness
#

yes

#

kotlin = best indeed

gilded granite
#

@half harness im too lazy to learn it

static zealot
#

what are you doing right now dkim19375?

half harness
#

uh

#

opening valorant

static zealot
#

how about you open minecraft 1.8.8 instead?

half harness
#

hm

gilded granite
#

1.18 > 1.8

#

its time we abandon older versions

static zealot
#

if the server was made on 1.18. then sure.

gilded granite
#

fair

static zealot
#

So. What you say my fellow kotlin user?

static zealot
#

haha

gilded granite
#

hey blitz you probably don't remember but over the last 2 or so years you've helped me fix like 100 random bugs in plugin configs and java dev so id like to formally say thank you haha

static zealot
#

you're welcome

worthy violet
#

If a dll needs msvcrt.dll does that mean the dll is written in c++ or could it also be written in .NET or even p-code

boreal needle
#

could be anything really

#

a dll is nothing more than a container

worthy violet
#

Ah damn okay was hoping to decompile and see some code

inner osprey
hot hull
#

The losing streak it would appear

hybrid palm
#

hello

#

how are you all friends

#

: )

#

anyone online

queen saffron
#

;0

hybrid palm
#

hi nova

queen saffron
#

Hey

hybrid palm
#

are you playing any game

static zealot
#

Yes

hybrid palm
#

hi blitz

#

which game

static zealot
#

Hello

hybrid palm
#

......?

static zealot
#

All of them

#

at once

static zealot
hybrid palm
#

me playing

#

base attack force

static zealot
#

that's cool I guess

brittle leaf
#

been debugging why this piece of code wasnt working, turns out im stupid and was using variable slot instead of the loop variable i

#

i had put it right for everything but the one bit

#

i love using the wrong variable for one line of code and then using the correct one from every other line before and after it

remote goblet
#

gotta love brains on autopilot

brittle leaf
#

also i had to make a way for shift clicking items into my custom inventory into slots that are valid to modify or be stacked upon and also to tell if the crafting recipe could be changed cus of it.

brittle leaf
#

now im either adding dupes or item deletions to this crafting table smh

sick belfry
#

I have a question about gradle plugins:

Can they add or modify files on the project? like create an src folder or shit like that, because I have been looking at making a plugin specifically for making my life easier when making new projects

#

ig that I could also make an IJ project, but I find it easier to use a gradle plugin than an IJ one

half harness
#

I use a plugin to just avoid having over a hundred lines in build.gradle.kts and a lib for the code

#

DkimCore, DkimBukkitCore, DkimGradle, and Dkim19375JDAUtils 😎

#

Not really utils anymore, more like core, but I don't feel like changing it

#

¯_(ツ)_/¯

#

Ig u could also make an IJ plugin but that's too much work

rotund egret
#

Ij has templates for stuff like that

#

Gradle convention plugins help clean things up a lot especially if you're using a multiproject build

half harness
#

Wait what templates

#

😮

#

There needs to be a way to set run configs too

#

I spend like 5 minutes just setting up a project lol

rotund egret
#

There's 2 kinds of templates

#

There's file templates and live templates

dense dew
#

Dkim 😳

rotund egret
#

You basically writeup a generalization of what your file looks like using placeholders, and then when you make a new file with that template you just fill in the placeholders and it makes it for you

#

Live templates are as you're programming

#

So like if you type fun0 in kotlin for example it generates a function with 0 args

sick belfry
#

So IJ has templates to make plugins that do so right?

#

I'm thinking I could make 2 plugins for both IJ and Gradle

#

The IJ one makes the files and all of that shit

#

And the Gradle one setups the dependencies. Multiversion modules. The run configs

#

And everything

#

That seems like smt fun to do

#

Where can I see the IJ templates tho?

brittle leaf
#

Currently in the process of moving from using a Enum to a String because theres too many itemstack material types and fuck writting them all out manually

#

basically, custom itemstacks and using an enum to store all item ids is bullshit and painful

rotund egret
rotund egret
#

Oh I see, they're all custom, nvm

obtuse gale
#

Registry relieved

dull sun
#

how do i move files with ftp but from one server to another instead of downloading it onto my pc then uploading to the server

rotund egret
#

Are both linux?

rotund egret
dull sun
rotund egret
dull sun
#

is it possible to do, one server is a dedicated one and the one im trying to transfer files from is a shared host

cinder flare
cinder flare
rotund egret
cinder flare
#

don't go around spreading bad information lmao

rotund egret
#

I just asked for you not to ping me, I feel that's not unreasonable.

obtuse gale
#

can anyone help me

#

?

rotund egret
#

Idk maybe

#

I have no idea what you need help with so now the 2 minutes I'm looking at this chat have been wasted

obtuse gale
rotund egret
#

AlexKyle#3879

#

Oh can I copy it

#

yeah they changed it

obtuse gale
#

?

rotund egret
#

You click the name up there now

obtuse gale
#

why did they change it?

rotund egret
#

Probably to support all the other UI elements, idk.
You know this is a minecraft help discord right?

obtuse gale
rotund egret
#

That's odd, I also haven't updated so maybe they broke it

#

lemme see

obtuse gale
rotund egret
#

Oh they did break it

#

That's actually p funny

rotund egret
#

No worries, just wanted to make sure you knew

obtuse gale
#

FTP bad SSH good

rotund egret
#

SSH doesn't support file transfer does it?

#

I guess it does huh

#

Damnit that was scp again

#

Apparently that is the way to transfer over ssh

#

Say google

#

Oh the scp client defaults to sftp on newer versions

obtuse gale
#

although rsync >>>>>>>>>>>

cinder flare
#

yeah dude sftp just works with your .ssh/config file

rotund egret
#

Yeah I setup that already, I've just been using scp

#

So many articles on using scp, not a single one saying it's bad
Very unfortunate

potent nest
obtuse gale
#

i think it has too many pages for me to care peperla

potent nest
#

but there's a lot of funny symbols

obtuse gale
#

oh lord page 8

#

it just keeps going

potent nest
brittle leaf
#

atleast now i can craft with items that have no nbt instead of being stuck to ones that require them

remote goblet
#

all items have nbt hm

rotund egret
#

Not if you ignore it

brittle leaf
#

im talking about
LunixData {
id:<itemid>
}

remote goblet
#

ah

gilded granite
#

So I have a config for messages in my plugin, how can I add placeholder support?

#

Specifically %player%

ruby craterBOT
#
public String replace(CharSequence target, CharSequence replacement)```
Description:

Replaces each substring of this string that matches the literal target sequence with the specified literal replacement sequence. The replacement proceeds from the beginning of the string to the end, for example, replacing "aa" with "b" in the string "aaa" will result in "ba" rather than "ab".

Since:

1.5

Returns:

The resulting string

Parameters:

target - The sequence of char values to be replaced
replacement - The replacement sequence of char values

gilded granite
#

public String replace(CharSequence target, CharSequence replacement)
message = replace(Configuration.get().getString("valuehere").replace(%player%, sender.getDisplayName());

So something like that?

half harness
#

no

#

just the .replace

gilded granite
#

What do you mean?

half harness
#
message = Configuration.get().getString("valuehere").replace(%player%, sender.getDisplayName()
#

wait

#
message = Configuration.get().getString("valuehere").replace("%player%", sender.getDisplayName());
gilded granite
#

ahh thank you

uneven lark
#

What’s the go-to method for performance testing, optimizing, and getting a server ready for production at set playercounts?

#

Is it just botting, spark profiling, running timings, fixing code, then live player testing?

#

Or is there a more tried and true method to this

rotund egret
#

Sorri to hear that

half harness
# uneven lark Is it just botting, spark profiling, running timings, fixing code, then live pla...

iirc there's a botting tool called LambdaAttack
note that it won't be realistic though since the players aren't moving, breaking blocks, attacking, etc
and it depends on what your server is about

fixing code
This doesn't really have to do with optimization, but I guess it's good to fix code :))

spark profiling
This is usually better vs timings - although unlike timings, spark (afaik, might be wrong) is better for measuring specific lag spikes or if your tps is constantly low (vs running it for like 10 minutes while tps is 20 or 19)

And, note that if you're starting up a new server, you only need to prepare for minimal players, you don't have to get super high end specs at the beginning

half harness
#

?help

compact perchBOT
#
FAQ Answer:
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait

Source

obtuse gale
uneven lark
#

Just need to make sure I’m not missing something

half harness
#

¯_(ツ)_/¯

uneven lark
half harness
#

💀

uneven lark
#

Live players are like a commodity

half harness
#

is this for like an event?

uneven lark
#

No this is so we can launch what we’ve been working on

#

Like a whole server

#

It keeps crashing

half harness
#

oh

#

well that's not very good 🪦

#

what type of server?

#

regular lag based crashes are very uncommon

uneven lark
#

Yea whenever we get a few dozen on it just croaks. Prison primarily with an interesting avenue for pvp+pve

half harness
#

hm alr
since I was going to say that if it was an SMP, people could crash it that way

uneven lark
#

BristerMitten helped a bit with a plugin we had made by Sxtanna

#

Pain for both of them

half harness
#

💀

#

wow getting some good developers

rotund egret
#

Tru

uneven lark
#

Yea they were good

#

I def scared them off tho lol :(

#

Not surprised

rotund egret
#

Idk bm isn't easily scared

uneven lark
#

Bm pained by sxtanna’s work

half harness
#

or maybe a bunch of mines are resetting at the same time

uneven lark
#

It’s explosive enchants

#

TE

half harness
#

I mean even still, unless it breaks a lot of blocks it should be fine but I don't remember their enchants so idk

#

for ex with worldedit you have to paste quite a lot of blocks before the server crashes

uneven lark
#

Hundreds-thousands per break

#

Explosion every few seconds with a god pick

half harness
#

o ok then maybe that's why

uneven lark
#

Ye ;,,,,,,,(

half harness
#

in one that I am developing (privately) I had to combat this issue by placing a certain amount per tick

#

sorted by the blocks closest to the original block mined

rotund egret
#

I can't imagine trying to optimize that further than reduction

half harness
#

but if it's a custom plugin/addon

#

maybe you could ask the developer? idk

#

¯_(ツ)_/¯

uneven lark
#

Our dev is pretty deep into a prison core and TE is pain for him

#

So it’s manipulatable

#

We were using VKAP to handle the explosions till VKAP started wiping pickaxe data

#

Bizarre bug

#

So we created our own pickup plugin that seems to be doing fine

#

Anyway, thank you for the help this far

#

I think we’re on the right path :)

half harness
#

might've gotten faster times but that's the first image I could find

#

discord search kind of 💩 sometimes

uneven lark
#

What is that presenting exactly

#

Exhibiting

half harness
#

how if optimized then it can prevent the crashes

#

and since this is probably a custom addon, it may be possible?

half harness
brittle leaf
# uneven lark Hundreds-thousands per break

afaik you can set around 60k blocks in a second using bukkit's setblock before it starts to stall, doing more then that would require you to either space out the blocks broken over a couple seconds or going the nms route which allows for a hell of a lot more blocks changes per second

half harness
#

and for prison, physics can most likely be disabled

#

(using Block#setType(Material, false))

#

it's been like months since I've tested but iirc it's as fast or faster than worldedit
but to be fair, I think WorldEdit applies physics? Although not 100% sure

#

might also depend on some other factors though

#

it was my dev server so there weren't other plugins adding lag

half harness
#

and also spreading it out through several ticks help

#

also FAWE

#

iirc they have an API

#

I forgot about FAWE

rotund egret
#

That's what Odin uses

obtuse gale
#

worldedit is going to be faster than mere bukkit anyway, bukkit does a crap ton of unnecessary conversions

jovial siren
#

emily why aren't you sleeping

obtuse gale
#

I woke up

jovial siren
#

go back to sleep <3

obtuse gale
#

can't

#

that's why I woke up

jovial siren
#

:(

dense dew
#

hacktoberfest starts in 11 hours 😳

hot hull
#

Ayo

distant sun
hot hull
#

Ain't the whole point of not having types

sly sonnet
#

Typescript??

tranquil crane
#

javascript will eventually come full circle to just being a typescript clone

distant sun
#

Yes

#

On another note, this year's hacktoberfest might be the best looking

hot hull
#

yup

vernal rapids
#

looking for a plugin dev that can make 1.18 knockback plugin .i will pay

rotund egret
hot hull
#

a what now

rotund egret
#

Customizable knockback prolly

vernal rapids
#

yes

#

for crystal pvp

signal tinsel
#

Yo

#

I got a topdesk server on my school server

#

I wanna access my topdesk from outside of the server

#

Meaning I just type in the local IP address in my own browser and it would go to topdesk

#

Currently it can't be reached

prisma wave
hot hull
#

Sx lives or?

prisma wave
#

he lives

#

we're on good terms actually i think

#

he dms me shit every now and then

hot hull
#

nice

dense dew
#

hacktoberfest reg open 😏

half harness
#

btw how do ppl create the patches? Especially large ones like that

#

are decompilers that consistent that you can create working patches with it?

#

iirc they use fernflower or smth, or maybe I'm confusing it with IntelliJ's decompiler

obtuse gale
#

IJ uses a FF fork

half harness
#

oh

obtuse gale
#

not sure what your question is tbh

#

but

#

942 files changed, 20129 insertions(+), 2695 deletions(-)

rotund egret
#

Ur mom

half harness
half harness
#

so many questions 🙃

half harness
#

ohhh you have to look at the actual commit

#

oh that makes sense

#

wait

#

huh

obtuse gale
half harness
#

I'm surprised something as big as the mc server can be decompiled consistently without any issues

rotund egret
#

Mappings moment

obtuse gale
#

if you give the same decompiler the same class file over and over again it'll produce the same output tho

half harness
#

true

#

good point

obtuse gale
#

not sure why it would be different between runs

half harness
#

good point

#

idk thats how my brain was thinking of it as

#

lol

rotund egret
#

Sneaky goblins

obtuse gale
#

lol

half harness
#

although what decompiler do they use?

#

since I'm assuming it has to be the same

obtuse gale
#

uh quiltflower? or forgeflower?

#

qf is a fork of forgeflower

half harness
#

oh right there's more than just spigot

rotund egret
#

LigmaFlower

obtuse gale
#

no

rotund egret
#

Yes

obtuse gale
#

no

rotund egret
half harness
#

I wish forge and fabric didn't require their own gradle plugins

#

like how spigot does it

#

and instead have optional plugins

rotund egret
#

I don't imagine they're required are they

half harness
#

although wait

#

well forge has its own gradle thing

#

i dont remember fabric

obtuse gale
#

they aren't mandatory but if you want to have a pleasant development experience then yeah you'll want to use them

half harness
#

for fabric? or for forge too

rotund egret
#

Same with sponge

obtuse gale
#

idk about forge

#

idc

half harness
#

lol

#

fair enough

sick belfry
#

iirc forge doesn't

#

You just do the correct Gradle configs

#

And with fabric you do need loom

#

Because it does all the decompiling of mc

#

And run configs

obtuse gale
#

which is stunningly broken

#

brittle

#

fragile

sick belfry
#

wait true

#

forgor

pastel imp
#

how tf am I supposed to explain Mono/Multi-Tasking in a powertpoint

hot hull
#

While doing the presentation, make yourself a cup of coffee

#

:bigbrain:

pastel imp
#

best idea ever

worthy violet
#

com.x.x:abc:2.2.0:natives-windows using this from a gradle build config what would a maven version of this look like?

hot hull
#

You split it at :

worthy violet
#

is the natives a scope or where do I put it?

hot hull
#

I'm presuming it's a scope

worthy violet
#

Oh cool I will try that, thanks

scarlet storm
#

Hello, guys! Sorry for the link text, but.. I have not a trivial question.

I want to host an event for players from a few communities. We are planning to make a hunger/survival games event.
There are some expectations on player count: 50+ players – the real prediction, 100+ – will be good.

And, I’m wondering does my server could handle such a load? Both from hardware and software sides.
Like, the hardware:

  • xeon 1650v2 3.5 ghz, 8 cores.
  • 12GB ddr3 ram
  • SSD disc
    It is my own serve-pc working in an office, so please do not suggest using any could-services. We are going to use our own machine.
    It was bought about 3 years ago. And, unfortunately, I can't afford to purchase a "high" segment CPU with all the related things: memory and motherboard. So, let's keep the hardware in mind and just take it as it is.

BUT, there are 3 other servers hosted and working there. But they can be partially stopped, or RAM usage can be reduced. So, let's say, at least 8GB I can get for the Minigame even server.

Software: here is the key. I worry about performance with such a huge amount of players. And many guys recommended doing the server on 1.12.2 or 1.15.x – because they are just not as much "lagged" as the newest version, and if needed, just use the viaversion plugin.
Like, I have a few plugins that should be there, like LuckPerms, chat, papi, holograms etc. Those are not very complicated things so, I guess that will be ok. No really "heavy" plugins (I guess).

But, 1.19.2 is better just because there are a lot of new blocks and things (light sources etc) that can be used to build the map (actually we have a few variants for the map, and it will be broken on 1.12 cos z lot of new blocks)

The map for this survival game will be quite small. I guess 200-500 blocks in diameter.. In an empty world. With minimum entities, just players. So, will it still be a big performance problem?

scarlet storm
hot hull
#

That's a yikes server

brittle leaf
#

the question you are asking isnt related to developement tho

hot hull
#

'tis dev general

half harness
#

Since it has server support tag now

queen saffron
#

@hot hull that server won't even support like 10 people on 1.19.2

half harness
#

you sure?
idk what xeon 1650v2 is but 3.5ghz & 8 cores and 12gb ram seems quite good

#

although I guess maybe 3 other servers being hosted could bring it down a bit

#

but probably not <10 players

dull sun
#

oh and only had 6GB ram

queen saffron
#

With 1.19.2?

dull sun
#

1.18.2

#

Very similar in terms of performance

queen saffron
#

Ehhhh ~

#

But reason I said like 10 people is because he's also hosting other servers on it. And not like small ones by the look of it either.

Additionally he's got ddr3 ram. That's massively slower than ddr4&5, even with a good cpu and an ssd (which one?) That's a performance block.

dull sun
#

Oh yeah true

prisma mountain
#

if CommandSender.sendMessage is deprecated, what should i use?

rotund egret
#

paper?

#

d; paper CommandSender

ruby craterBOT
#
public interface CommandSender
extends Audience, Permissible```
CommandSender has 2 extensions, 4 super interfaces, 162 sub interfaces, 2 implementing classes, and  5 methods.
rotund egret
#

Looks like only a few methods are depreciated, but others are available.

prisma mountain
rotund egret
#

d; bungee CommandSender

ruby craterBOT
rotund egret
#

Same thing, looks like you'll need to use Components instead of Strings

prisma mountain
#

thanks

distant sun
drifting aspen
#

@cobalt marlin what's the difference between your approach and slime world manager?

cobalt marlin
drifting aspen
#

I see, so it doesn't support serialization?

cobalt marlin
#

you make a template and create as many of them as you want

#

it does, but for the template

drifting aspen
#

I see

#

Will you make it open source?

cobalt marlin
#

most likely not, its for a commission

#

can also produce weird worlds currently such as:
end skybox with skylight

#

time night but still has skylight etc

drifting aspen
#

👍

rotund egret
#

Gray butterflies are holding the buttons down!

prisma wave
#

nah thats pasta

rotund egret
prisma wave
#

it might be very heavy

#

or hard

remote goblet
#

skill issue

gilded granite
#

First day of using github copilot, it autocompleted some stuff

#

Second day, it learnt my message config style

#

Third day, it learnt to write entire commands for me

#

Today, it wrote an entire class for me

#

Literally an entire class, all it had to work with was me defining the class

rotund egret
#

tomorrow a whole repo

lavish notch
sick belfry
#

my copilot access expired a month ago

#

I miss it man

half harness
#

Rip

#

Not student?

#

🥲

sick belfry
#

nope

obtuse gale
#

imagine studying

sly sonnet
#

Imagine dropping out

hot hull
#

ay I dropped out, what's wrong with that

cobalt marlin
#

its kinda hard to not get a degree here

#

but usa, i aint even sure if its worth

#

with how much it costs

hot hull
#

Well I mean by dropping out, I mean I finished highschool, applied for additional 2 years, to get a higher level, however dropped out as that field no longer interests me

pastel imp
#

uhm so I have been using DI to use methods from other classes in other classes, but I have an object class that requires something from another class, and it's quite annoying to always have to put the other class object inside my object constructor, any good way of solving this issue? Would creating a static instance of the other class be the only option?

potent nest
#

if it gets annoying, they are likely coupled too strong

#

but also depends on the actual situation

cobalt marlin
#

its used for when you want to have only one instance of something that dont depend on the instance its encompassed in

#

are your methods that you use dependent on state?