#dev-general

1 messages · Page 11 of 1

pastel imp
#

He has been reposting the same request for a while now

eager fern
#

Hope you understand where I am coming from as I need proof from the party that was scammed I can't have any users report on behalf of other users. It would get abused and wouldn't make sense..

eager fern
keen timber
#

the budget give it all lol, but proof is needed

#

which is understandable

eager fern
#

if @quiet sierra opens a report ill handle it and make sure it wont happen again.

keen timber
#

Thank you for understanding our side

eager fern
#

100%

quiet sierra
#

I'll open it today

keen timber
#

I just want to make sure nobody goes into this guy's scam

cobalt marlin
#

only desperate people would accept the whole send the jar then i pay deal he seems to be offering

eager fern
quiet sierra
#

@eager fern Created the report, would be cool to create a ticket as the logs go over multiple days

lavish notch
#

Won't lie, I personally think the account creation date says it all.

#

Joined Discord this year and is already looking to spend hundreds of dollars.

distant sun
#

Idk what to say about that

lavish notch
distant sun
#

I have a friend who's accounts were closed 3 times because he liked to be toxic online kek in fact, he's a nice person irl

lavish notch
#

Fair enough.

distant sun
obtuse gale
#

What language even is that

#

it looked like kotlin but kotlin needs val keyword to declare a variable

half harness
#

could already be a variable

obtuse gale
#

so D is a companion object
p. s. i haven't touched kotlin for months my bad

half harness
#

no

#

that wouldn't work

#

D can be a variable

#

an Int variable

obtuse gale
#

you mean a field?

half harness
#

sure

#

they're still variables

ocean quartz
#

Kotlin doesn't have ternary operator

half harness
#

oh right

#

lol

meager wolf
#

Hi, I tried to create an account in LinkedIn. but I got the issue your nocaptcha user response code is missing or invalid
I changed my browser like edge, firefox, chrome but I got the same issue
How can I fix it?

hot hull
#

Not a discord support server

manic vector
#

Hello guys

#

I get an error whilst trying to create a Gift Card via the Tebex API. Here is the code:

    static public void createGiftCard() {
        try {
            HttpRequest request = HttpRequest
                    .newBuilder()
                    .uri(new URI("https://plugin.tebex.io/gift-cards"))
                    .header("X-Tebex-Secret", "{seceret-key}")
                    .POST(buildFormDataFromMap(Map.of(
                            "expires_at", new SimpleDateFormat("yyyy/MM/dd hh:mm:ss").format(date),
                            "amount", 5.0,
                            "note", "Test Gift Card")))
                    .build();
            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
            Debug.info(response.body());
        } catch (URISyntaxException | IOException | InterruptedException e) {
            e.printStackTrace();
        }
    }


    private static HttpRequest.BodyPublisher buildFormDataFromMap(Map<Object, Object> data) {
        StringBuilder builder = new StringBuilder();
        for (Map.Entry<Object, Object> entry : data.entrySet()) {
            if (builder.length() > 0) {
                builder.append("&");
            }
            builder.append(URLEncoder.encode(entry.getKey().toString(), StandardCharsets.UTF_8));
            builder.append("=");
            builder.append(URLEncoder.encode(entry.getValue().toString(), StandardCharsets.UTF_8));
        }
        Debug.info(builder.toString());
        return HttpRequest.BodyPublishers.ofString(builder.toString());
    }```
#

Here is the debug:

#
[10:32:12 INFO]: [DEBUG] Body: "amount=5.0&expires_at=2023%2F03%2F20+10%3A32%3A12&note=Test+Gift+Card"
[10:32:13 INFO]: [DEBUG] {"error_code":400,"error_message":"Please specify a valid amount."}```
#

Any idea?

distant sun
#

it expends a json body

#

not url parameters

#
{
    "amount": 5.0,
    "expires_at": "...",
    "note": "Test Gift Card"
}```
pastel imp
#

Uhm is there are nicer way to register several listeners without having to spam the getServer().lala.registerEvents for each class?

#

(probably not but asking doesn't take hurt)

hot hull
#

get the manager once, and then register it?

pastel imp
#

but I would still have to register every single class

#

and have like a bunch of lines for it

distant sun
#

List.of(listeners).forEach(register)

pastel imp
#

a bit old

#

but welp

inner umbra
#
public void registerListeners(Listener ... listeners) {
    listeners.forEach(listener -> Bukkit.getPluginManager().registerListener(listener));
}
distant sun
#

That will only work if your listeners don't need any arguments

pastel imp
inner umbra
#

NP basically what Gaby posted lol just with a method.

pastel imp
#

oh didn't see gaby's message

#

mb

distant sun
pastel imp
#

breh

inner umbra
#

"Github" the new dating site. Come git all the girls!

pastel imp
#

if that was the case

#

A LOT of people would be dating

#

since 98% of devs are single 🥲

distant sun
#

code before diamond_hoe 🤣

inner umbra
#

"Pull" in that lucky "source" this holiday season 😉

pastel imp
#

😂

distant sun
#

Np

half harness
#

uh oh jitpack down? ☹️

#

well parts of it

#

also, jeez, there's so much spam on the jitpack github issues

#

didn't know people hated jitpack that much

obtuse gale
#

it's literally garbage

wind patio
#

how does one upgrade gradle

#

I need 7.0

distant sun
#

If you search that on google, you will see the official documentation that give you a command

wind patio
#

yes, except it didnt do nothin

#

nvm just redownloded it

rotund egret
#

That makes me think IJ isn't using the wrapper you have

wind patio
#

yeah well I'm fiddling around with remote dev

#

turns out moving gradle project from windows to debian doesnt just work out of the box 🤠

obtuse gale
rotund egret
#

Pretty sure it was meant to be kotlin but someone didn't realize ternary operators aren't in the lang

obtuse gale
#

also val keyword

rotund egret
#

Yeah you could probably get away with that if it was a var defined somewhere else

half harness
#

iirc that's what it's set as by default

#

for whatever reason

obtuse gale
#

wrapper good

distant sun
#

"advancements.sad_label": ":(" 🤣

half harness
#

Is there (self hosting on a vps) software for uploading file(s)? (specifically jar files)
Using this to create an auto updater and a backup "pastebin" to avoid ratelimits

#

but I could just find things with an entire UI etc

#

but all I want is a simple file hosting software

#

sort of like how maven repos are - you can still access it in the browser but it doesn't have a trillion features

cinder flare
#

you can just host a maven repo lmao

#

reposilite is super easy to setup and run

half harness
#

but it's not supposed to be for maven though

#

I also need to be able to delete files (so that I only have the latest jar uploaded)

half harness
#

so I'm not sure if a txt file and a regular jar would work

#

the text file is because the website that I'm using (similar to hastebin but with a better/non-existent ratelimit and editable pastes) sometimes errors out when using curl etc (now that I think about it maybe it's because I need a user agent?)

and the jar file is to have the latest version, and then I can download that file and check the hash to see if it's updated

quiet depot
#

@half harness you don’t anything but a webserver

half harness
#

I already have nginx setup

quiet depot
#

yes

#

then just upload the jars

half harness
#

would it work for example if I wanted to upload an artifact (and delete the old) using a batch file? although I was originally thinking of github actions but now that I think of it, running a script is probably better

half harness
quiet depot
#

yes you could easily make a script to upload a file with sftp

#

you’re overthinking it

half harness
cinder flare
#

yeah if you're going super simple, you can literally just have nginx serve a directory with those files in it and change those files whenever you update

half harness
#

oh is it really this simple

#
server {
    listen       8001;          # a customed port

    # download
    autoindex on;               # enable directory listing output
    autoindex_exact_size off;   # output file sizes rounded to kilobytes, megabytes, and gigabytes
    autoindex_localtime on;     # output local times in the directory

    location / {
        root upload;
    }
}
```according to some website
#

what directory would these files go?

#

I just put everything in /home/ubuntu but I wonder if there's a better directory

quiet depot
#

/var/www/yoursite

half harness
#

ex it'd be /var/www/mysite/cool.jar

quiet depot
#

yes

half harness
#

oh ic

#

I'll try tomorrow

#

I accidentally used up 5 errors

#

on letsencrypt

#

forgot to set up the domain on cloudflare (dns) :(((

#

nvm ill just try with http i don't feel like waiting for tomorrow

#

do you know where the default root is? everywhere besides 1 example (but it doesn't say what specific directory) has /specific/directory

#

when doing ```nginx
root exampledir;

#

(without the /)

quiet depot
#

wat

#

nginx has a default vhost, which has root /var/www I think

#

might be /var/www/html actually

half harness
#

oh I'll do absolute directory then

quiet depot
#

ye

cinder flare
#

smarter that way yeah

half harness
#

hmm

#
server {
    listen 80;
    server_name files.dkim19375.me;

    autoindex on;
    autoindex_exact_size on;
    autoindex_localtime on;

    location /public {
        root /var/www/files.dkim19375.me/public;
    }
}
```Do you guys see an error with this? It's showing 404 :(( and I have a `/var/www/files.dkim19375.me/public/test.txt`
quiet depot
#

location /

#

not location /public

#

@half harness

half harness
#

oh

#

wait how do I make it a public one? since I want to have a public one and another one where I might have it hidden behind some kind of auth in the future

#

or do I have to use a different subdomain?

#

or a sub-sub-domain

quiet depot
#

probs don’t need a subdomain

#

nginx has basic auth stuff

#

not sure if it can be put on a specific location or is for the entire server block

#

do you even need it to be accessible over http if it’s going to have auth?

#

just sftp and download

half harness
#

like URL("file.url").readBytes()

#

but idk how to do it with sftp since I haven't done it before in code 🥴

quiet depot
#

I’m talking about the auth’d stuff

#

if it’s public sure go http

#

but don’t see much point when it’s behind auth

half harness
quiet depot
#

unless you’re also downloading auth’d stuff in code?

half harness
#

I just remember doing auth stuff with okhttp

#

can't remember exactly what it is

#

probably some api token

quiet depot
#

I’ve never used okhttp

half harness
#

http library I think I just added url parameter

#

do you know what "Bearer Tokens" are or something? That sounds pretty familiar

#

idk if it's related though

quiet depot
#

the http api that was added in jdk11 is more than sufficient for my needs

#

never needed to look into okhttp

half harness
#

oh I usually use java 8

quiet depot
#

fucking dinosaur

half harness
#

I meant

#

java 8 for developing

quiet depot
#

dinosaur

half harness
#

I meant java 8 for developing without kotlin

quiet depot
#

dinosaur¿

half harness
quiet depot
#

nothing you say will make me not say dinosaur

#

java 8 is simply prehistoric

half harness
#

it's just that a bunch of people use java 8 with 1.8 (I'm guessing that spigot or smth doesn't support newer versions?? idk) and so I'm used to it

#

I do use java 16 and 17 though

#

because 1.18 requires it

#

and 1.17 iirc

quiet depot
#

1.8

#

another dinosaur

half harness
#

I haven't developed on 1.8 in like forever

#

probably because I don't really play minecraft anymore

#

:(

#

I develop for it but I don't play it

#

weird

#

TY IT WORKED

#

TY PIGGY

#

AND STAR 🤩

#

🐷

#

🐽

distant sun
#

anyone know a cheap proxy seller? I need romanian ones to be more specific

mighty finch
pastel imp
#

(someone will probably kill me by saying this but...) Anyone knows if there's an more up-to-date alternative to this: https://github.com/mabidux/Java-SQLAPI or if it's still good enough?

Why don't you do your own? 1. A bit lazy. 2. I actually like the structure of this api lol. 3. I can't afford to lose much time doing it preferably.

sly sonnet
#

HikariCP

prisma wave
#

not really the same thing

#

that just looks like a terrible ORM

wind patio
#

Does this method of setting player slots still apply to 1.18.2?

       Method serverGetHandle = plugin.getServer().getClass().getDeclaredMethod("getHandle");
        Object playerList = serverGetHandle.invoke(plugin.getServer());
        Field maxPlayersField = playerList.getClass().getSuperclass().getDeclaredField("maxPlayers");

        maxPlayersField.setAccessible(true);
        maxPlayersField.set(playerList, slots);
obtuse gale
#

Server#setMaxPlayers(int) ?

pastel imp
prisma wave
#

Object–relational mapping

pastel imp
#

their docs are bit sus

#

but will check it

distant sun
pastel imp
#

I would probably do worse knowing myself lol

wind patio
rotund egret
#

d;spigot Server#setMaxPlayers

ruby craterBOT
#
int getMaxPlayers()```
Description:

Get the maximum amount of players which can login to this server.

Returns:

the amount of players this server allows

sweet cipher
#

d;paper#setmaxplayers

ruby craterBOT
#
boolean isEmpty()```
Description:

Check if a vehicle has passengers.

Returns:

True if the vehicle has no passengers.

sweet cipher
#

I’m dumb

#

d;paper Server#setmaxplayers

ruby craterBOT
#
void setMaxPlayers(int maxPlayers)```
Description:

Set the maximum amount of players which can login to this server.

Parameters:

maxPlayers - the amount of players this server allows

viscid charm
#

nice i got scammed by a developer

#

cufp#7021 to be precise

half harness
#

if you want you can make a report with /report to stay updated

#

I would also recommend going on their test server first, although that won't guarantee it not being a scam, it'll help

viscid charm
rotund egret
half harness
#

🥴

#

search "cufp"

#

now I'm wondering how many people he scammed

#

since it's at least 3 now

#

or actually u don't have to search its right in #minecraft

sly hamlet
#

Hey, i wanna make a plugin for a prison server That adds Pouches, which are unlocked after the player has broken a certain amount of blocks while they have the pouch in their inventory. Does anyone have an idea how to go onto that, with the least amount of work for the server? (i can imagine looping through every item in the inventory on the BlockBreakEvent could be alot for the server to manage)

brittle leaf
#

tbh looping over 36 slots a few times every second isnt alot really

sweet cipher
sly hamlet
#

but it would be per player, and with them breaking blocks instantly is gonna make it trigger around 15-20 times per second per player

sweet cipher
#

If it isn't, then you loop and cache it again

forest pecan
#

Whats the best 1v1 plugin

#

??

sly hamlet
sweet cipher
#

You would have to default to looping if it isn't found

brittle leaf
#

that optimizations for you, pain.

sweet cipher
#

Or you can cache the inventory and check if the old inventory is the same as the new one

#

If it is, then don't check for a new pouch

#

Although that would still do looping lol

#

That didn't make sense

#

I honestly would not be too worried about it

sly hamlet
#

i just never cared much about optimizations but with my current plugin i wanna make sure its not gonna make the server slow as hell, since it contains about 80% of all my servers features xD

#

but alr, thanks guys. Imma try it out with normal looping first and check if it works.

sweet cipher
#

If the pouches are the things causing lag, you have bigger things to worry about

brittle leaf
#

i think ive iterated 510k blocks before using nested forloops and havent had lag so id assume looping over 36 itemstacks, 20 times a second wouldnt cause too many issues

sly hamlet
#

alr, Thanks 🙂

brittle leaf
#

that like 720/sec, you got 100 players you got 72000 iterations

#

caching could speed that up

#

well, when you find a good method for that

#

trial and erro

sly hamlet
#

i could make an gui to store the pouches and only check for those, but i dont really want to do that. i want the players to have them in their inventory

brittle leaf
#

just do the way you want to

#

if it causes lag on production, go back to the drawing board

forest pecan
#

Is there any plugin tools wont break and armor?

brittle leaf
#

this isnt the chat to ask about plugins other then if your coding them

sick belfry
#

I'm curious

#

does hacktoberfest need you to PR to 4 different repos or can it be only one

obtuse gale
#

can be the same one

#

but like ultimately it's up to their discretion whether they'll consider those or not lol

sick belfry
#

so for example if the things you contribute are big enough it could count right?

obtuse gale
#

they don't have to be large, they just have to be meaningful

#

which is kinda up to their discretion, for example a whitespace fix in the readme won't do it

sick belfry
#

alright

#

then I got the perfect repo to pr to

sick belfry
#

so I have another question related to git

#

I have several files

#

which I'm working on one by one

#

I want to push these files to the main repo

#

but not in a single go

#

I want to for example only push one

#

from all of the ones that haven't been pushed

#

as far as my git knowledge goes, I would only be able to push all the files at once

#

how can I avoid so?

half harness
#

I forget the exact term

#

Track I think?

sick belfry
#

yeah thats what I'm asking

half harness
#

Or actually

sick belfry
#

I meant that I dont know how I could do so

half harness
#

If you're using intellij git you can still keep all files added

sick belfry
#

using terminal

#

because vscode git integration is shit

half harness
#

If not then git rm -rf --cached .

#

Writing on phone btw

#

So I can't really use code bloxks

half harness
half harness
#

Either remove the files that u want to remove or remove all and manually add

sick belfry
#

not working

half harness
sick belfry
#

alright

#

gonna check it

#

ty

half harness
sick belfry
#

alright

tranquil crane
obtuse gale
#

me when someone brings up Java generics 🤓

tranquil crane
#

at least it isn't kotlin generics

#

giving me an actual headache

obtuse gale
potent nest
#

🤓

tranquil crane
hot hull
#

Yes.

tranquil crane
#

anyone got a link of how to easily do that I'm lazy

#

nvm laziness has disappeared

distant sun
#

good

tranquil crane
#

just accidentally learned you can change any github url to .dev instead of .com and it will open the current file in a visual studio code browser session

#

alternatively accidentally pressing . in an open github file will do the same thing

distant sun
#

yeah, pretty nice

wind patio
#

what would be an average cost of a professional website for a company?
like 5-6 pages, ex. home, about, news, products, prices, contacts

#

like what's a "normal" amount to charge for it? (i know it's somewhat relative and depends on various things, but just looking for opinions)

distant sun
#

is this a static website? Or they need an account system to post news, products (buy them?)

wind patio
#

like a from scratch design, not just plop bootstrap and ready to go
well, static/non-static

hard dagger
#

static just means no real backend

tawny sky
#

OOP is so difficult to learn man

hot hull
#

And I oop

rotund egret
#

Just consider your code like bicycle and then it works

#

Java ™️

oblique heath
#

work with functional languages instead of oo languages, ez

obtuse gale
prisma wave
#

:true:

hot hull
#

:truen't:

sturdy zinc
#

Still having issues with Minimessage setup, I don't want to build on just paper

#

pros of trying to update to minimessage is I fixed my github

rotund egret
#

Why would you have to build on just paper 🤔

distant sun
#

native adventure support

sturdy zinc
#

can't seem to get it to shade

#

for some reason it embeds the jars at the root of my plugin jar

rotund egret
sturdy zinc
#

for some reason if you leave Elements in build it does it as a jar for Kyori stuff

pastel imp
#

Uhm can someone quickly tell me what the 0 in Header is?

#

I know that the 9 is the total amount of Clusters but what's the 0 💀

#

(For reference, it's an MTF-Record AKA used in NTFS (New Technology File System, commonly used in Windows)

sweet cipher
half harness
#

ok I found an issue

sweet cipher
#

Ok

#

Is it because it isn't written in Skript?

half harness
#

🥲

#

totally

#

skript superior

#

kotlin is better though

#

add .idea to gitignore and ```
git rm -rf --cached .
git add .

sweet cipher
half harness
# sweet cipher What does that do?

first command removes all files from git, second files adds all files from git
you have to do that in order to remove the .idea from git

sweet cipher
#

Oh

half harness
#

or ig you can remove the folder but i just remember those 2 commands

sweet cipher
#

I just deleted the folder on GitHub lol

#

Thanks

half harness
#

oh lol

sweet cipher
#

Is there anything bad in the .idea folder?

half harness
#

sometimes it's included

sweet cipher
#

Okay thanks, as long as I didn't upload any passwords I'm good lol

half harness
#

I think

#

🥲

#

I think IntelliJ's (or plugin's) gitignore generator is better

#

it excludes specific directories and files in .idea

#

@sweet cipher update gradle to 7.5.1

#

👍

sweet cipher
#

Lol I'm just going to copy and paste this into my other project, this is more just to see if everything works well

#

But do you know how to set the default gradle version?

half harness
#

assuming you set intellij to look in that file

sweet cipher
#

Yeah I always have to change it each project

deep cypress
pastel imp
#

(aspect/design wise if that makes sense)

distant sun
#

Depends what 2 and gin are

pastel imp
#

school years in luxembourg are weird

#

primary school is from 1 to 6

#

and then high school from 7 to 1

distant sun
#

probably 1 then

quiet depot
#

i disagree

#

that's not weird

pastel imp
#

I mean, not weird for me

quiet depot
#

wait is it 1 or 12

pastel imp
#

but since most systems are the opposite

quiet depot
#

so it goes back in high school?

distant sun
#

1 noob

pastel imp
#

we have 1 extra year

static zealot
#

that is weird

#

wtf

pastel imp
#

so we have till the 13th year

quiet depot
#

yeah i retract my statement

pastel imp
#

xD

static zealot
#

1, 2, 3, 4, 5,6, 7, 6, 5, 4, 3, 2, 1?

quiet depot
#

i just assumed the "1" was missing a second digit

pastel imp
#

yes

static zealot
#

holy shit. why?

pastel imp
pastel imp
static zealot
#

oh no. that does not make sense

#

why is the pronunciation different?

#

how does that make more sense?

quiet depot
#

like gaby said, def 2/gin

distant sun
#

second 6

static zealot
distant sun
#

6.2

pastel imp
#

it still doesn't make sense but WE can differentiate it because of the pronunciation

static zealot
#

well ok

pastel imp
#

translated, from 1 to 6th in primary we say for ex. 6th year

static zealot
#

definitely 2/gin anyways

pastel imp
#

and from 7th to 1st we say it without the year

#

makes more sense in french

#

lol

static zealot
#

hmm

#

maybe. I've definitely seen more weird shit in english

quiet depot
#

yes

static zealot
#

yes

pastel imp
#

okay ty

#

good thing I can easily do this with svelte 😛

quiet depot
#

also addressing the question

#

this isn't so much todo with being user friendly, it's more of a logical decision

#

generally the idea is to make the site user friendly, so people don't have to look at the url

quiet depot
#

tf is svelte

pastel imp
#

can someone get me a shovel?

#

me have to dig a hole

static zealot
#

have you never heard of svelte? even I, a person that hates making web stuff have heard of it.

quiet depot
#

dude when I do web dev, I use bootstrap, html, css, some js, some php if I want to reduce boilerplate

#

that's it

pastel imp
#

💀

#

Vite + Svelte + SvelteKit + Tailwindcss for the win

quiet depot
#

it just seems so unncessary

pastel imp
#

Svelte = Frontend framework
SvelteKit = Backend framework built on top of Svelte.

#

it's like, a better Next.js or whatever

#

simply PRO

pastel imp
quiet depot
#

:(

static zealot
#

tab pickup on firefox is nice

distant sun
#

:)))

pastel imp
#

(AKA Svelte gang)

distant sun
#

INR - indian rupee?

pastel imp
onyx loom
#

yea

static zealot
#

that's INR apparently

distant sun
#

ye ye

static zealot
#

guessing it's a typo?

distant sun
#

yes smh

static zealot
#

oh. you made the typo. LMAO. I thought it was in the post

#

🤣

cinder flare
quiet depot
pastel imp
#

swear to god I thought we had an crypto bot in the server for a sec

cinder flare
#

so if a year contains sections, then year should be first

pastel imp
quiet depot
#

half the "fun" of web dev is wanting to kill yourself because of css

#

these fancy frameworks just skip over that

pastel imp
quiet depot
#

lame

cinder flare
static zealot
cinder flare
#

Svelte just does the JS lol

static zealot
#

or because web in general

pastel imp
#

Svelte isn't a css framework lol

cinder flare
# pastel imp wait wut?

years have multiple sections I'm assuming? So it should go year -> section -> class -> person, etc. right

#

big to small

distant sun
#

yup

pastel imp
#

Tailwind is, but tailwind pretty much just speeds up css, you still kill ys with it lol

distant sun
#

too many frameworks

pastel imp
distant sun
#

why can't people just make one and be good

quiet depot
#

they did

#

it's called bootstrap

pastel imp
pastel imp
quiet depot
#

bootstrap is all u need

distant sun
#

I mean, not necessarily one for js + css + whatever else, but one that's good for each instead of 30 for js, 30 for css

pastel imp
#

Svelte + SvelteKit + Vite is like fast af

cinder flare
#

so like year 1 will have those, year 2 could have 5 gins and 2 gigs, etc.

distant sun
#

start with the year, it makes more sense

pastel imp
#

the number is the year and the "gin" is the section aka it exists 1GIN, 2GIN, 1GIG and 2GIG

distant sun
#

regardless same classes (or whatever gins is) are found in multiple years

pastel imp
#

the purpose of the website is to replace the website I linked in showcase, aka some type of page to download everything needed for class.

cinder flare
#

oh wait what, the number is the year?

pastel imp
#

yes, like, school year (aka in american terms, grade)

cinder flare
#

i would organize it into years then

#

oh it's a grade?

#

not like a full year year

pastel imp
#

it's not like 2022-2023

cinder flare
#

then yeah I mean I would just do flat urls

#

3 in your example

pastel imp
cinder flare
#

since it's not a specifier

#

it's just what that is

pastel imp
#

ye

cinder flare
#

ugh but maybe /gin/2 could be good

#

i dunno, if there's only like 5 it really doesn't matter

pastel imp
#

well, 3 of gig and 2 of gin

#

and that's all

cinder flare
#

yeah then

#

just flat

pastel imp
#

school systems be like

#

k ty

fast plinth
#

Deluxemenus support gradient?

static zealot
#

no

remote goblet
#

it does if you try real hard

static zealot
#

I would've If I had time or any SQL knowledge

pastel imp
#

^^ too much SQL for my liking 😂

sweet cipher
#

lol

#

Too much for my liking too honestly

obtuse gale
#

What is that . placement on those chained calls 😭

sweet cipher
#

Wdym lol

#

Oh, like

test().
hi().
other()

instead of

test()
.hi()
.other()
```?
half harness
#

WHA

#

EVIL

#

FISH

obtuse gale
#

yes

sweet cipher
#

Lol

#

I'm keeping it that way just for you

#

I thought you were talking about on the SQL queries

half harness
#
test()
.hi()
.other()
```is better
winged mica
#

does a vue alternative to react native exists? i saw vue native but it is deprecated

winged mica
#

._.

potent nest
#

what about

test()
      .
hi()
    .
other()
quiet depot
half harness
#

Also you're supposed to have a different header and license file

#

Pretty sure

#

At least that's what I do

rotund egret
#

[fullname] would be pretty pissed.
They worked all of [year] to make that

sweet cipher
#

Exactly

#

Nobody has said anything about the actual code lol

#

This code review is not going well

rotund egret
#

Oh I didn't even see that

obtuse gale
half harness
#

So I can't really help much with that

#

Unfortunately

sweet cipher
#

I swear I turned off the ping

little sluice
#
        server_name map1.-------.org;                                                                     
        listen 80;                                                                                         
        listen [::]:80;                                                                                    
        access_log /var/log/nginx/reverse-access.log;                                                      
        error_log /var/log/nginx/reverse-error.log;                                                        
        location / {                                                                                       
                    proxy_pass http://65.---.--.114:8804;                                                  

}
}

anyone knows why my nginx reverse proxy isnt working ? Its supposed to redirect me to dynmap but its instead redirecting me to pterodactyl

half harness
#

and make sure the port for dynmap is 8804

little sluice
#

i tried that, still moves me to /auth/login at pterodactyl

little sluice
half harness
#

this also happened to me before but i don't remember what fixed it

#

try a reboot

little sluice
#

LMAO its refusing connection now

#

great

primal crystal
# little sluice ```server { ...

The default configuration provided by pterodactyl acts that way… point a subdomain and create a new nginx config…thats what I usually do everytime atleast

pastel imp
#

OK. SEO. We are officially at war.

#

mobile be like: :-:

eternal compass
#

Lets goo
I finally figured out how to easily implement slash commands to my discord bot without making it hell to deploy each time

half harness
eternal compass
#

Actually I technically am, but I'm doing it the correct way

#

where you set them all at once

#

and only as needed

half harness
#

uhhh

eternal compass
#

so not every deploy

#

but every deploy that updates the commands

half harness
#

since it's only supposed to be updated when you change the commands

#

assuming you're using global commands

eternal compass
#

It doesn't really matter if you update it every deploy or not however.
My dev bot just always pushes them

#

but the main one watches git for command changes

rotund egret
#

Flard

#

Also crosspost 😠

wind patio
#

💀

#

forgot to register

fringe crown
#

If the Placeholder returns as null, is it normal that it will return as a whitespace?

#

Or is there any pre-defined placeholder that does this?

#

Planning to create a javascript but thinking it would still be the same.

static zealot
fringe crown
#

I tried doing {javascript_blitztag}{guilds_formatted}{luckperms_prefix}{luckperms_suffix} but still shows Beginner .

static zealot
#

They are from between them

#

P1 P2 if both p1 and p2 are null there's still a space inbetween that will show

fringe crown
static zealot
#

Are you sure you reloaded after making the change?

fringe crown
fringe crown
# static zealot Are you sure you reloaded after making the change?

I'm dumb. I have this javascript created, which only adds a space if it contains something:

function CodeHere() {
    var x = "{" + args[0] + "}";
    var value;
    if (x){
    value = x + " ";
    } else
    value = "doesnt contain something";
    }
    return value;
}

May I ask how to load the placeholder value first before entering the function? It seems here that it always returns as true.

modern coral
#

Hello. I'm having a problem with the creative. Some blocks disappear after breaking them, here is a video for you to understand better. I don't know how to fix it
https://files.fm/f/z8h2yv862

brittle leaf
#

that looks like a plugin being a bit wonky

#

not normal behaviour

sturdy zinc
#

constructor AutorankCommand in class me.armar.plugins.autorank.commands.manager.AutorankCommand cannot be applied to given types;

sturdy zinc
#

I screwed up my constructors last night, seems I have a super constructor that will not go away

#

what I'm attempting to do is add a few lines to a main command class

#
//            plugin.adventure().player((Player) sender).sendMessage(no_permission);```
prisma wave
#

alright

distant sun
#

show actual code @sturdy zinc

sturdy zinc
distant sun
#

and what's the problem?

sturdy zinc
#

this lines I have // the second one plugin is red

#

I try to add a constructor and it breaks all my commands

timid trellis
#

Can anyone help me with the litebans ban list?

quasi totem
#

What's the best vps to buy for cloudnet or having multiple servers

#

need one rn just for developing but when done I plan on using OVH

#

hoping for it to be cheap too but couldnt find much online

queen saffron
#

?hosting

compact perchBOT
#
FAQ Answer:

Free:

Paid:

  • OVH: https://www.ovh.com/us/vps/
    Full VPS starting at $3.49USD/month, choice of OS, high reliability.
  • Digital Ocean: https://m.do.co/
    Starting at $5/month (USD), you can have your own server with 20GB SSD Disk, and 512MB Memory.
  • Linode: https://www.linode.com/
    Starting at $5/month (USD), you can have a server with 20GB SSD Disk, and 1GB memory
  • Vultr: https://www.vultr.com/
    Starting at $2.5/month (USD), you can have a server with 20GB SSD Disk, and 512MB Memory
  • Amazon(AWS) Lightsail: https://amazonlightsail.com/
    Starting at $5/month (USD) (first month free), you can have your own server with 20GB SSD Disk, and 512MB Memory.
  • Time4VPS: https://www.time4vps.eu/
    Starting at €0.66/month, get 20GB Storage, 512MB Memory, 0.5TB Bandwidth, and Daily/Weekly backups.
    Various Linux OS distributions, IP addons and instant cPanel/WHM licenses.
  • VIRMACH: http://virmach.com/
    Full Windows and Linux Desktop VPS starting at $7USD/month and $10USD/month respectively.
  • Sloppy: https://sloppy.io/
    Starting at 5$/month (USD) You can have 500MB Memory, 1TB Transfer per month and 16GB of storage. Extra
    storage and ram can be bought.
  • Bithost: https://bithost.io/
    Just a forwarder to DO, but here you can pay with crypto currencies like bitcoin, dogecoin, etc
  • Galaxygate https://www.galaxygate.net/
    Starting at 3$/month (USD), get 15GB of storage, 1GB of ram, and unmetered bandwidth.
queen saffron
#

@quasi totem

half harness
#

?best-vps-deal

compact perchBOT
half harness
#

contabo also

#

but that's EU iirc

#

Oracle VPS is also another option, if you don't care about using arm64 then you can get 24gb memory and 4 vcpu for free if configured right

quasi totem
#

What is arm64?

queen saffron
#

He doesn't need it @half harness

half harness
# quasi totem What is arm64?

cpu architecture
arm64 works fine for minecraft though - it's just that some programs only distribute amd64 releases since that's the "main" one I think
I may be very wrong here though

queen saffron
#

At least judging from the reply

#

Did u want Windows, Linux? It all depends my dude.

half harness
#

linux I hope

#

if you get a windows vps

#

you're evil

#

ubuntu vps ftw

queen saffron
#

(Me too but u never know)

quasi totem
#

So i have a private-mine core and want to make it span across multiple servers for better performance automatically. So lets say I have 100 players online, it'll have 4 servers (25 mines per server). So basically what should I use to make another server for every 25 mines.

#

linux never windows xd

half harness
#

have you got linux experience?

quasi totem
#

a little

#

but barely

half harness
#

EU or NA

queen saffron
#

I use it as normal shit cuz most of the stuff i use isn't supported on Linux, but for servers. Linux ftw

half harness
#

or other

quasi totem
#

NA

half harness
#

but linux for server

#

pterodactyl too

queen saffron
#

Yes yes

half harness
#

ptero is awesome

quasi totem
#

ye ill use ptero

queen saffron
#

Uhh yeah, I'm used to multicraft tho

#

Cuz for some reason alot of people use it

quasi totem
#

i used it like 4 years ago all the time

half harness
#

ptero >

queen saffron
#

And it's not that terrible once u know what your doing but oh well-

half harness
#

you got to pay for multicraft 🥴

queen saffron
#

Yee

quasi totem
#

so should I use like cloudnet or something If I want to make a new server for every 25-30 mines? Or how do big servers scale out stuff like that. Im use to just one-server type stuff.

half harness
#

ptero discord bot is SO HEPLFUL Too

#

it has like 100 responses

quasi totem
#

me either til the other day lol

#

makes server off template

half harness
#

there's also like Waterfall/bungee etc

quasi totem
#

would it auto-scale or would I have to configure a x amount of servers.

half harness
#

configure - it's just a simple proxy

queen saffron
#

Isn't there some new software that you could link multiple servers in real time? So that everything you did on server one would also update on server 2 instantly?

#

And you could cross play between servers?

half harness
#

those are usually for like SMPs though

quasi totem
#

ye like im doing something like oplegends with private-mines and I want everything to be linked like it's on one server

queen saffron
#

Yeahhh

quasi totem
#

ik there is sqldatabridge

#

just not sure whether to use velocity or bungee

#

or something like that

terse rapids
#

anyone know if there are ever any issues tping someone between worlds when they just joined

obtuse gale
#

should probably use the respective event for that

simple mist
#

Anyone know if there is away to message players once they have reached a certain statistic goal Ex. Mined 50 Blocks = Message sent

rotund egret
#

What part are you having issues with

humble silo
#

Has anyone here gotten one of the new m2 macbooks? I kinda wanna buy a new m2 macbook air for school and software stuff but i want another input

sly sonnet
rotund egret
#

refresh how? The feed should be real-time

faint swallow
sturdy zinc
#

Now that I have updated most of my plugin to minimessage, I need to see if there is an easy way to let server owners convert the &6 color codes to <GOLD> also I would like to merge the new line to my lang file into their old one

honest parrot
#

hey! im trying to make a plugin that teleports you back to the position you were at in a specific world only. so if i am in the spawn world and go to the SMP world, it automatically takes me to where i was last time. saving the data etc. works perfectly fine already but I can't get the player to go to where he was with PlayerTeleportEvent and the setTo method (I am using multiverse core). is there any way the setTo can override the multiverse teleport?

static zealot
brittle leaf
honest parrot
#

I am not that into coding sorry

#

I know what it does but not how to do it...

honest parrot
#

And where would I put the code that should get runned?

brittle leaf
honest parrot
#

u sure its not Main.instance?

#

and delay by 1 tick?

static zealot
honest parrot
#

Alright thank you.

static zealot
honest parrot
#

good

#

i have Main.instance this class and in the main class i just set instance = this right?

static zealot
brittle leaf
#

you should either get an instance of your main class by passing your main class through the constructor of the class where the playerteleportevent is, or doing it through creating a static getinstance method in your main class.

#

the static instances is a bad practise but it works

honest parrot
brittle leaf
#

but other then that not much

static zealot
brittle leaf
#

it is

#

but theres no api docs for multiverse in general

#

very helpful multiverse dev

rotund egret
#

Docs?
Surely you mean code

brittle leaf
#

very helpful

brittle leaf
#

only api code in core, non in portals.

honest parrot
brittle leaf
#

thats why i just suggested using a task, sure its probably not the best but its the only idea i got

honest parrot
#

hmm this isnt working for me...

#
Bukkit.getScheduler().runTask(Main.getInstance(),()->{
                        p.getLocation().setWorld(Bukkit.getServer().getWorld(this.data.getConfig().getString("players." + p.getName() + ".position.world")));
                        p.getLocation().setX(Double.parseDouble(this.data.getConfig().getString("players." + p.getName() + ".position.X")));
                        p.getLocation().setY(Double.parseDouble(this.data.getConfig().getString("players." + p.getName() + ".position.Y")));
                        p.getLocation().setZ(Double.parseDouble(this.data.getConfig().getString("players." + p.getName() + ".position.Z")));
                    });

am i doing something wrong? (i know you could put everything in a new Location(), but since i saved it as different parameters its easier like that)

static zealot
#

there you go

honest parrot
#

no way how did you find htat?

#

i was looking for it soo long xD

static zealot
#

went to the multiverse core javadocs, saw the link they're at so I went to the parent link where I found a bunch of them including portals

brittle leaf
#

im confused, why are you getting the player's x,y,z coordinate from a config instead of just getting the coords from the getFrom() location?

honest parrot
#

its supposed to be a plugin that brings you back to the position in a specific world when you join back into that world.

brittle leaf
#

wouldnt it be better to load the player's world position data into ram once and query that instead of checking the config every time

#

also having a single yml for every player is a bad idea

#

also dont use player names, use their uuid

#

Player.getUniqueID().

honest parrot
brittle leaf
honest parrot
#

i think its easier to save the data xD

brittle leaf
#

well atleast having a yml for each player

#

and use uuid and not player name

honest parrot
#

why a yml for each player?

#

does it matter?

brittle leaf
#

yml has a size limit

honest parrot
#

ahhhh

#

but that probably is huge.

brittle leaf
#

not the file itself, the loader that the server uses

#

its like 3mb normally, paper pushes that up to 64mb

#

or atleast i think that is

#

you can hit the cap, then you cant load the data anymore

#

for anyone

half harness
#

3mb is already huge

#

you shouldn't be saving 3mb into a config/yml anyways

honest parrot
#

holy shit but making custom ymls for each single player is kinda hard for my skill level xD

half harness
#

just do 1 big yml - unless you've got like tens of thousands of players you won't hit the limit

honest parrot
#

okay.

rotund egret
#

Abstract class moment

half harness
#

3mb = 3145728 characters according to google which is quite a lot

honest parrot
#

im struggeling with the API now tho. it says that theres a method called getDestination() and it gives me the datatype MVDestination, which I dont know how to use haha

half harness
#

well that's for portals

#

not a specific Location

brittle leaf
#

isnt teaching better practices early better then just doing whatever?

half harness
honest parrot
half harness
honest parrot
#

after that ill just set the event cancelled and ill tp the player iwth my own commands.

honest parrot
half harness
brittle leaf
#

multiverse is using HIGHEST too.

half harness
#

HIGHEST = called last (well, there's MONITOR which is actually the last but isn't supposed to modify event data)

half harness
#

aw cmon multiverse

#

wait

#

what exactly are you trying to do

#

override a multiverse portal?

inner umbra
#

Cancel the event 😉

honest parrot
#

basically

honest parrot
inner umbra
#

You can listen to it and cancel it still

half harness
honest parrot
#

thats what im trying to do. theres a method getDestination() but I have no idea how to use the MVDestination type

honest parrot
brittle leaf
#

i would assume MVDestination.getLocation(Player);

honest parrot
#

do I need the normal multiverse core API too?

#

so i can actually do something with MVDestination?

brittle leaf
honest parrot
#

yep makes sense

#

oopsie

rotund egret
#

gotem

honest parrot
#

holy shit it works

brittle leaf
#

what does?

rotund egret
honest parrot
#

okay now it isnt doing anything either :/

#

nevermind im actually an idiot

#

forgot to register it in the main

#

nevermind again thats not the issue

#
@EventHandler
    public void onPortalEvent(MVPortalEvent e) {

        Player p = e.getTeleportee();

        if (e.getDestination().getLocation(p).getWorld().getName().startsWith("SMP")) {
            if (!p.getLocation().getWorld().getName().startsWith("SMP")) {
                p.getLocation().setWorld(Bukkit.getServer().getWorld(this.data.getConfig().getString("players." + p.getUniqueId() + ".position.world")));
                p.getLocation().setX(Double.parseDouble(this.data.getConfig().getString("players." + p.getUniqueId() + ".position.X")));
                p.getLocation().setY(Double.parseDouble(this.data.getConfig().getString("players." + p.getUniqueId() + ".position.Y")));
                p.getLocation().setZ(Double.parseDouble(this.data.getConfig().getString("players." + p.getUniqueId() + ".position.Z")));
                e.setCancelled(true);
            }
        }

    }

i have no idea why it doesnt work :/

#

it works now!!!

#

i used p.teleport() instead

brittle leaf
#

and not just .equals()

honest parrot
#

because theres SMP, theres SMP_nether and theres SMP_the_end

brittle leaf
#

why not do something like

Set<String> SMP_WORLDS = new HashSet<>(List.of("SMP","SMP_nether","SMP_the_end"));

and then replace your check
if (e.getDestination().getLocation(p).getWorld().getName().startsWith("SMP")) {
with
if (SMP_WORLDS.contains(e.getDestination().getLocation(p).getWorld().getName())) {

#

means you dont include any worlds that start the same but arent supposed to be included.

hot hull
#

new HashSet<>(List.of("SMP","SMP_nether","SMP_the_end"));
Might as well use Set.of() :3

potent nest
#

just hope getWorld().getName() never returns null then

distant sun
#

🤣

#

d;world#getname

ruby craterBOT
rotund egret
#

d; paper world#getname

ruby craterBOT
rotund egret
#

Double not null

#

Y'know it'd be funny if it just returns "null"

fleet bay
#
@Override
    public void onMessageReceived(MessageReceivedEvent event) {
        String message = event.getMessage().getContentRaw();
        if (message.equalsIgnoreCase("ping")){
            event.getChannel().asTextChannel().sendMessage("pong").queue();
        }
    }```
#

Why doesn't this work anymore for Discord?

#

I read that you have to get the bot verified or something to listen this event..

#

Is that true?

rotund egret
#

Yessn't

#

You do need to enable a priviledge on the developer portal
You need to enable the gateway in the API
You do not need to be verified if you're under a certain amount of guilds (like 100 I think? Developer portal should say)

fleet bay
#

Ahhh oke

#

Where can i enable priviledge on the developer portal?

rotund egret
#

Under the bot button

fleet bay
#

Ahh i see

#

Didn't knew this

#

Just started today with discord JDA java

#

But no tutorial has ever mentioned this

rotund egret
#

Might consider joining the JDA guild if you haven't already

fleet bay
#

Yes

#

Thank you for the help

regal arrow
#

Odd question, how can I get the correct drop of a Goat horn? Is there a goat loot table I can use? Trying to allow you to sheer off a goat horn

distant sun
#

is IJ freezing on dependency indexing for anybody else?

#

I literally have to shut it down trough task manager lol

obtuse gale
#

nope

tall matrix
#

Hi, Nice to meet U. I am a full stack developer with 7+ years experience and hope working with U. Best

rain glacier
#

Greetings everyone, I am a multi-purpose developer from Saskatchewan, Canada. I have 10+ years with experience with server technology, Minecraft java edition plugins, unreal engine and much more. I am hoping to get to know this community more and make a good impression to everyone.

sly sonnet
#

Cool

humble prism
rain glacier
hard dagger
remote goblet
#

and before anyone makes the point, you can be a developer without knowing english well

hot hull
#

average american

distant sun
#

F you barry

humble prism
#

#DownWithBarry

obtuse gale
#

i downloaded the newest version of DeluxeMenus and its now working for me on 1.18.2 can someone help?]\

fathom geode
#

Hi everyone. I'm a web3 full stack developer. Currently looking for a job. Anyone interested DM me 🙂

obtuse gale
remote goblet
#

how about you look for some bitches

prisma wave
#

why so many introductions today

obtuse gale
prisma wave
lavish notch
fossil nymph
#

Possible to have the purchase link of Mc-Market please

prisma wave
#

soon tm

lavish notch
fossil nymph
#

DeluxeChat

#

I would like to buy the plugin except that I can't find it

lavish notch
#

Are you simply looking for a chat formatter or are you after those hover feature as well?

fossil nymph
#

okay

lavish notch
fossil nymph
lavish notch
#

I do however hear it's a good alternative for DeluxeChat.

fossil nymph
#

okay tks

hard dagger
#

Hello Humans. I am a fullstack web3 backeND developer from Austria with 20- years experience. I am Looking For a job and if you want to hire me Please dm Me 🙉

Thank you for you're time.

Thank you

brittle leaf
#

that is getting kinda stale

rotund egret
#

20 years of web3 experience is rather impressive

#

Given its not 20 years old

half harness
#

so less than 20 years

rotund egret
#

I uh

#

Why

half harness
#

minus

#

ddoZ

#

backeND

#

Zodd

prisma wave
#

-20 years of experience

half harness
#

can I press "Add Friend"

#

on your profile

prisma wave
#

no

rotund egret
#

I don't control you

prisma wave
#

i do

#

and i say no

half harness
#

Alright

#

I will listen

#

thanks for the advice

prisma wave
#

happy to help!

half harness
#

such a nice Support

prisma wave
#

yeah

#

@rotund egret wtf

half harness
#

Bastion OP

rotund egret
#

What

prisma wave
#

overwatch 2

rotund egret
#

Huh?

half harness
#

412

prisma wave
#

dkim you're wrong but i appreciate the effort

half harness
#

ok what is best

#

then

#

I appreciate your response

rotund egret
prisma wave
#

why did you

#

remove me

rotund egret
#

I didn't

#

We were never friends lol

prisma wave
#

really?

rotund egret
#

Pretty sure

prisma wave
#

seems unlikely surely

#

after all these years

rotund egret
#

I generally don't add people.
My list is rather small

prisma wave
#

huh

#

well

rotund egret
#

I don't even think EMI or Matt are there

half harness
#

Omg

#

it is op

prisma wave
#

well theyre both losers so thats understandable

#

glad to be an exception

#

"it"

half harness
#

nevermind

#

i died :(

prisma wave
#

lmao

rotund egret
#

Matt is there as well as red and boobi but not emi lmaoo

prisma wave
#

good

obtuse gale
prisma wave
#

you're not excused

obtuse gale
#

..

prisma wave
#

what?

rotund egret
#

Wait are we?

prisma wave
#

im on an old discord version i cant see replied messages

rotund egret
#

Oh apparently she is

prisma wave
#

can you please explain your grievance

#

@obtuse gale

obtuse gale
#

I can

prisma wave
#

okay

obtuse gale
prisma wave
#

terrible maps

#

spain is actually smaller than the us

#

fun fact

obtuse gale
#

no it is not fun

prisma wave
#

yes it is

#

i dont know what your idea of "fun" is

#

but im having a great time

rotund egret
#

Bm is larger than the US

prisma wave
#

true...

#

(i have an extremely large ||brain||)

#

abnormally large

rotund egret
#

Yo btw, Sponge essentials is getting abandoned 😢

obtuse gale
#

yo momma so fat she larger than the US

#

(/j I don't actually know your mum, sorry)

prisma wave
half harness
#

😭

#

Sojourn bad

obtuse gale
#

booty what

prisma wave
#

no you just suck

rotund egret
#

Just sad. It's been the goto plugin for years and dual is stepping away from mc

prisma wave
#

booty jiggla

#

why are you dying @half harness

#

not a rhetorical question

half harness
prisma wave
#

that is not true

#

if you can hit shots she is the strongest dps by a long shot

#

however she might not be an optimal pick in the lower ranks

#

or if you have like 18 minutes of playtime

rotund egret
#

Bm says your bad

prisma wave
#

yeah i do

half harness
#

im so good

#

i got 5 more kills

#

because of your advice

prisma wave
#

well done

half harness
prisma wave
#

see it really is that simple

#

just hit shots

#

and you win

half harness
#

yeah I wasn't hitting my shots

#

also 1v1 against bastion is impossible

#

unfortunately

prisma wave
#

no it's not

half harness
#

you're right