#dev-general

1 messages · Page 600 of 1

wind patio
#

Got it like a month ago, waited for like 2 or 3

#

Copilot pretty nasty in a good way

wintry plinth
#

I love copilot, such a huge help

quiet depot
#

not on sublime 😦

eternal compass
#

Why'd you add bukkit as a dependancy?

#

Atleast use spigot

oak patrol
# eternal compass Atleast use spigot

i wanted to a task to happen in intervals. and i didnt find a method in spigot soo i used both in the dependencies .. spigot for everything else and bukkit for the specific method "BukkitScheduler"

pure arrow
#

And i have spigot as the dependency

org.bukkit.scheduler.BukkitScheduler

jovial warren
#

@hot hull why is the externalPath of PAPI 3's config PlaceholderAPI/config.yml lol

#

Pig said you wrote it incorrectly and I should blame you lol

quiet depot
#

i mean technically it's my fault too

#

I probably merged this

jovial warren
#

lol

oak patrol
#

thanks for the info btw

jovial warren
#

but pig didn't write bad code lol

eternal compass
#

The same way paper includes spigot

eternal compass
#

Well yes

hot hull
jovial warren
#

how did I write bad code here?

hot hull
#

I mean that's the path I was told so 🤷

wintry plinth
#

frosty = bad

hot hull
#

Very much so

brittle leaf
#

guess who closed port 22 and locked themself out of their oracle cloud instance meee

obtuse gale
#

Jennifer Lawrence

sick belfry
#

thats painful and funny at the same time

pure arrow
#

or just acces the emergency shell

#

or whatever it's being called

wintry plinth
brittle leaf
#

i was setting up pterodactyl

static zealot
#

LMAO

jovial warren
static zealot
#

I did that on my dedi. well not really that but rather I've disabled password connection and accidentally deleted my ssh key (from my pc) lol

wintry plinth
#

LOL

static zealot
#

yeah. took me a long time in safe mode to recover it. and to be honest with you, to this day I have no idea what I've done to recover it

#

well. I've added my new ssh key to the accepted ones but no idea how. bcz it took me days and I had no experience with cli or ubuntu (what my dedi was running on)

brittle leaf
#

im back in

#

turns out oracle cloud has this thing called bastion

wintry plinth
dense dew
brittle leaf
#

i can now use the instance which is all i care about

#

currently downloading my old server files to transfer them to the ptero server

winter iron
#

I NEED HELP

compact perchBOT
#

There is no time to wait! Ask your question @winter iron!

winter iron
#

NVM

obtuse gale
#

lmao

wintry plinth
#

Rekt

sick belfry
#

so

#

me have IJ project with things

#

and me want to push that project to an already existing github repo

#

without making a new one

#

how me do so?

static zealot
#

they're not linked rn and you want to link em?

sick belfry
#

yes?

static zealot
#

is the local repo initialized? if not run git init

sick belfry
#

giv a sec

static zealot
#

then add the stuff you want to commit and make a new commit with git commit -m "Commit Message" then set the main branch to something lime main or master (I usually do whatever the github repo main branch is named as) git branch -M main then add the remote git remote add origin REMOTE-LINK then run git push -u origin main

sick belfry
static zealot
#

just say yes

#

then upgrade the gradle version

#

to 7.3.1 or whatever latest is

#

you run ./gradlew wrapper --gradle-version 7.3.1 I think and it should upgrade. if that doesn't work just go in gradle > gradle-wrapper.properties and change the version there

#

and then reload gradle

#

wait

#

also

final scroll
#

How do I iterate over a config section? I want to run the code for "Main.Abilities.exampleAbility1" then for "Main.Abilities.exampleAbility2". How would I go about doing this? This is my current code and .yaml file: https://paste.helpch.at/epokoqulut.php

static zealot
#

xD

sick belfry
static zealot
#

well. its asking you to pull. bcz the github repo is ahead

#

do git pull

sick belfry
#

git pull origin main

static zealot
#

wait. but locally do you have anything different than the github repo? like is it a new repo?

sick belfry
#

ye

#

it is literally empty

#

(the github one)

static zealot
#

oh

sick belfry
#

oh shit my exam

#

give me a min

#

I'll be back

sick belfry
#

so u know what can be?

#

what me doin wrong?

#

I'm alone sob

static zealot
#

yes you are

#

now deal with it

#

lol

#

I actually am not sure what's going wrong there

sick belfry
static zealot
sick belfry
#

what git directory? KEKW

static zealot
#

you can't see it from IJ. You have to go in the folder itself and delete it from there

static zealot
#

wait u sure u ran git init?

sick belfry
#

yes

#

100% sure

static zealot
#

where is the .git directory then lol. its not invisible is it since you clearly can see .idea and .gradle directories

sick belfry
#

idk

static zealot
#

like in the terminal

#

were you in the main project directory? or one of its sub directories?

static zealot
#

try running it again. see what happens

celest laurel
#

How /help pluginname works how can i make the list? (one idea i make in plugin.yml commands and for the look it will work?)

sick belfry
steel heart
#

go to view (file explorer)

#

And show hidden objects

#

.git is hidden

#

Unlike .gradle and .idea

static zealot
#

because he looked using the windows file explorer

#

and its not there

steel heart
#

Idk shit bout Linux hahayes but yeah

static zealot
#

my bad

steel heart
#

Oh yeah

static zealot
#

I just assumed windows hides all files starting with a .

steel heart
#

ah you really thought windows would be that good?

static zealot
#

yeah. lol

steel heart
#

Bold assumption 🌝

static zealot
#

now can we talk about this? xD

steel heart
#

Yeah just upgrade smh

static zealot
#

january 1st 2004 version

steel heart
#

Are you from the future?

static zealot
#

the future is from me actually

steel heart
#

🦥

half harness
#

🤔 i didn't know Block#getDrops also checked enchants

#

i always thought it ignored them

distant sun
#

probably smth new

#

@quiet depot HC advent of code board? 😄

static zealot
#

we got one

#

yugi made one

#

1 sec

#

there we go

#

see pinned

#

also day 3 part 2 is already way to hard for me to try xD. Like doesn't sound hard but it takes a bit of thinking. and yeah I'm not into that

distant sun
#

nice

sick belfry
#

well

#

just bc I'm a sucker imma not use mcdev and make the new plugin module with gradle by hand

#

this is gonna be funny

brittle leaf
#

i finally got pterodactyl setup, the mysql database doesnt really work but everything else does.

sick belfry
#

hey @jovial warren so, I was following the message you made for Lorenzo for mojangs mappings, but I cannot get it working, in settings.gradle it throws:

#

I hope you know whats up with this

humble silo
#

look into the future wont you?

sick belfry
#

is for development mappings

#

so I dont have to use shitty bukkit ones

#

in build it reobfs the jar and tada nothing

humble silo
#

as i said

#

the future is waiting

sick belfry
#

also is private plugin

#

so hell yea

#

or I dont get it

#

lel

#

wait a second

#

maybe I'm more dumb than the dumbest person in earth

#

yeah

#

just

#

I'm a motherfucking dumbass

lucid rock
#

any one have any plugin ideas? im bored

sick belfry
#

only that

#

and you have till tomorrow

lucid rock
#

uh

#

ok

sick belfry
#

or make a gun plugin using bows

lucid rock
#

ill try that one

sick belfry
#

👍

lucid rock
#

I made it you can 1 shot everything

#

like real guns

sick belfry
#

lol

#

now try adding more realistic damage and some trails

lucid rock
#

ok

half harness
humble silo
humble silo
humble silo
humble silo
# lucid rock ok

and a build of it with the source code licensed to me right now

lucid rock
#

lmao

lucid rock
#

A trail

lucid rock
#

Welp idk how to see if the arrow hits a entity

eternal compass
#

Apparently trig is actually super useful

#

I was making the base stuff for a 3D game with movement and all, and the amount of trig needed is insane

#

But it all works atleast

obtuse gale
#

Trig is really cool imo

#

Very satisfying when everything works lol

eternal compass
#

Yeah

#

I have a school project where we have to code a simple game in js

#

Most people are making simple 2D games

#

I'm making a 3D one fingergunscool

jovial warren
ornate lodge
#

Project Game

A Minecraft server I wanna start with a lot of game modes

Survival
Vanilla
Lifesteal
Events
minigames
prison
skyblock

survival with custom map 60k by 60k and custom bosses and mobs

I need ppl who are good with
-World painter and creating custom maps
-Developers
-People who know how to code discord bots and plugins
-modelers with block bench and animators with block bench

I'm going to help with the modelling and building and also I'm going to be a developer I'm still learning how to model but I'm a pro at dev and building

This is just an idea that i have and I wanna see how much ppl wanna contribute
Dm me if ur any of these

distant sun
#

who are these noobs

static zealot
#

1 of em is 195442362992820224 aka Marin

#

no idea who the other one is

#

anyone finished day 3 part 2 and are willing to borrow me the result? xD can't be asked to think

distant sun
#

I see

#

bites 😢

static zealot
#

yes

distant sun
#

I did the firts part, will look at the second later

tranquil crane
#

going through discord's source code and just see this

distant sun
#

🤣

#

280k lines 😬

tranquil crane
#

yeah all the code is just bundled and minified in a single file, takes forever to pretty print it

#

I'm trying to figure out where the default emojis are mapped to specific names

#

there's gotta be a file or something somewhere with a unicode to names list

distant sun
#

well, good luck xd

ocean quartz
tranquil crane
#

it was inlined in the source code

#

god awful

#

was literally just wrapped in a JSON.parse()

ocean quartz
#

Lmao
That took some time for my phone to load

tranquil crane
#

it's a giant file

eternal compass
#

It's OS

tranquil crane
#

Yeah I know, couldn't find any mapping for the names though

#

I may have not looked hard enough but I spent a good 20 minutes on Google looking for a mapping for twemoji that matched discord correctly

eternal compass
#

Ah

#

Well hiding it would be kinda dumb

static zealot
#

its so easy when you have a library to do it for you

#

I should've probably used an imgur gallery but I'm to lazy for that

#

now that I look at this. its missing something. lol xD Where did my footer go

distant sun
#

❌ @static zealot

static zealot
#

ah. there we go

distant sun
#

looks nice

static zealot
#

\❌

distant sun
static zealot
distant sun
#

it looks nice wtf

static zealot
#

does it? I feel like its just hidden

#

like it almost blends in with the background

#

✖️

#

what if I make it black

distant sun
#

idk I like it

static zealot
#

\✖️

distant sun
#

that could look good too

static zealot
static zealot
distant sun
#

for aoc, do you get less points for leaderboards if you don't get the correct answer from the first try?

static zealot
#

I believe its just based on how fast you do it

distant sun
#

ic

static zealot
#

Ok. Question.

With lavaplayer I have 4 options of loading a track: direct link, yotubue search, ytmusic search and soundcloud search.

Currently I have a /play command with 4 sub commands (one for each of them).

What I was wondering is if I should maybe do instead a /play command with an option and then try searching a song in the following order:

link -- if no result --> youtube keywords -- if no result --> ytmusic keywords -- if no results --> soundcloud keywords -- if no results --> tell user there are no results.

#

would this be a good alternative?

jovial warren
#

you probably want some result caching if you want to lookup both YouTube and SoundCloud every time someone wants a track

#

in BardyBot, I cache the audio item results for 30 minutes, which will really make a difference at scale, but you can choose whatever you want

static zealot
#

oh Ic. so no soundcloud. I guess there is no need for yt music since its all on youtube anyways

jovial warren
#

BardyBot uses LavaLink's rest client to look up audio items, which will do the queries for us on its end, but I imagine Lavaplayer has a way to do that too

jovial warren
static zealot
sick belfry
#

I also wanna setup shadowJar but 1.- this god damn paper thing is a pain in the ass 2.- I forgot how

jovial warren
#

idk how to do it with the Groovy DSL, sorry, I'm only familiar with how to do it using the objectively superior Kotlin DSL

static zealot
#

lol

sick belfry
#

so this damn thing is groovy DSL?

jovial warren
#

¯_(ツ)_/¯

sick belfry
#

anyone?

#

I dont wanna lose my mind reading obsfuscated mappings

#

please dont leave me alone

jovial warren
#

lol

#

you could switch to the superior DSL where it works 🤷‍♂️

#

other than that, idk

#

I mean, it's probably doable with the Groovy DSL, I'm just not familiar enough with it to tell you what's wrong with your script

sick belfry
#

but if I switch to kotlin DSL I will have to code in it?

jovial warren
#

not true

sick belfry
#

noice

#

then tell me how I switch

static zealot
#

you change the build.gradle file to build.gradle.kts also the settings.gradle one

#

to settings.gradle.kts

#

then you manually change all the options

#

at least this is the manual way

#

no idea if there's a more automated way

jovial warren
#

it'll tell you what's wrong when you change the file names

#

should be easy enough to fix them

sick belfry
#

@jovial warren help

half harness
#

show settings.gradle 🤷

sick belfry
static zealot
#

try maven("paperlink-here") instead of the { url = }

ocean quartz
#

Yeah, you're using groovy syntax

static zealot
half harness
#

wait isn't that groovy tho? since the last line uses '

#

wait no

#

the error says kts

ocean quartz
half harness
#

how does the last line use '?

static zealot
#

he might need to change that as well

#

the compiler didn't get that far xD

half harness
#

xD

ocean quartz
#

Yeah that's the issue he's using groovy syntax

sick belfry
#

dont mind the photo, just private info that me dont want to show

static zealot
#

LMAO

sick belfry
half harness
#

you don't need def thonking

and on kotlin def doesn't exist

ocean quartz
#

Lmao

sick belfry
#

yeah

half harness
#

btw whats the if statement do?

sick belfry
#

mcdev

static zealot
sick belfry
#

kekw

ocean quartz
#

Btw wtf is this challenge for day 4 kekw

What you can see, however, is a giant squid that has attached itself to the outside of your submarine.

Maybe it wants to play bingo?

static zealot
#

I was like "that squid must be really really bored down there" lol

sick belfry
#

hey

#

then what should I do?

half harness
#

val

sick belfry
#

dont go with the squid Sadge

#

kekw

ocean quartz
#

This challenge seems easy, hint Blitz magic square

#

I think at least

#

Haven't started yet

sick belfry
oak cypressBOT
#

@sick belfry, Help menu!

sick belfry
#

not you

#

=

oak cypressBOT
#

@sick belfry, Help menu!

sick belfry
static zealot
ocean quartz
# sick belfry ?

You need to stop chopping the image, you're always cutting important parts

#

Plus just send the entire file lol

static zealot
#

yeah. just put the file in a paste bin

#

that way you don't have info to hide

#

lol

#

Like class name xD

ocean quartz
#

OIh no, not the class name

static zealot
#

lmao

jovial warren
#

yeah send the whole script

sick belfry
jovial warren
#

I'm back from eating now, I can join in the help brigade lol

#

remove the apply stuff

#

the plugins are applied in the plugins block already

#

line 48, that'll fail

#

just do ```kotlin
tasks.compileJava {
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
options.release = targetJavaVersion
}
}

#

actually, lemme include the other task configurations in that

static zealot
#

matt. what would a magic square have to do with this problem? You're just making me more confused. lol

jovial warren
#
tasks {
    compileJava {
        if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
            options.release = targetJavaVersion
        }
    }
    build {
        dependsOn(reobfJar)
    }
    processResources {
        val props = mapOf("version" to project.version)
        inputs.properties = props
        filteringCharset.set("UTF-8")
        filesMatching("plugin.yml") {
            expand(props)
        }
    }
}
```something like that may work
#

though not sure what that processResources setup you got there is lol

#

if you get "val cannot be reassigned" at inputs.properties = props, try inputs.properties.set(props)

ocean quartz
#

Create an empty 5x5 block, each time a number is given in the bingo mark it own on the position, then check the value of the square, the sum of each column, row, diagonal, is always the same, so if the result is what you think then you have a bingo

jovial warren
#

replace everything from line 38 to the bottom with that above code

sick belfry
static zealot
#

maven("LINK")

#

instead of all that

sick belfry
#

oh right

jovial warren
#

or if you want to keep the names, url = uri("LINK")

#

but there's not really much point tbh

static zealot
#

is it not Uri.parse()? I didn't know you can do Uri()

jovial warren
#

it's just lowercase uri on Project

#

the only reason why you'd want to set the name is if you need to login with credentials or something, in which something like PasswordCredentials will look for {name}Username and {name}Password in your gradle.properties

#

but neither of those need credentials to read, so you don't need to name them

sick belfry
distant sun
#

In recreational mathematics, a square array of numbers, usually positive integers, is called a magic square if the sums of the numbers in each row, each column, and both main diagonals are the same. The order of the magic square is the number of integers along one side (n), and the constant sum is called the magic constant. If the array includes...

static zealot
distant sun
#

ah

jovial warren
#

my bad

#

that's what that should resolve

sick belfry
#

Server Plugin\build.gradle.kts:34:13: Val cannot be reassigned

jovial warren
#

add ```kotlin
val targetJavaVersion = 8
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(targetJavaVersion))
}
}

jovial warren
sick belfry
#

gtg for a bit

#

I'll come back and continue

#

dont leave

sick belfry
#

...

obtuse gale
#

compileJava task

#

Instead of doing = you use set

sick belfry
half harness
static zealot
#

no one is stopping the squid from doing the same

half harness
#

👀

sweet cipher
ocean quartz
#

Well, it was easy just messy

sweet cipher
#

It probably didn't help that I started it late at night lol

distant sun
#

for day 4, why does it use 5 numbers for first example and then 6 for second 🤔

sweet cipher
#

Wdym 6 numbers?

distant sun
sweet cipher
#

Because those are the numbers in the list of guesses, I guess its just saying, that even though 5 numbers are picked,
the numbers don't make a row or column in any of the boards. They probably picked 6 more, because the next guess (12th) solves the bingo board.

half harness
ocean quartz
#

Idk if magic square is the best way to solve it

half harness
#

i just did a check by seeing if the numbers in the row or column are in the list of drawn numbers ¯_(ツ)_/¯

ocean quartz
#

Yeah probably a better idea

half harness
#

wait

#

since when could u put functions inside of functions

#

?????/aWat

static zealot
#

because there can be multiple correct boards

#

but you need to chose the one that gets you the win the fastest

half harness
#

i mean i got the correct numbers so ¯_(ツ)_/¯

static zealot
#

ok

half harness
#

i checked every time i drew a number

#

then i just did firstOrNull

#

thats very long

#

lol

ocean quartz
half harness
#

but

#

but

#

thats

#

interesting

#

it reminds me of python

#

lol

#

like ```py
print("hello")
def function():
print("bye")
function()
print("under")

humble silo
half harness
#

lol

#

matt D:

#

i wonder who is "(anonymous user #963181)" 👀

inner osprey
#

Where's extended clip in this sever?

half harness
#

clip#0001

ocean quartz
#

I wonder too

distant sun
#

day 4 is annoying smh

sick belfry
#

I love and hate gradle at the same time

distant sun
obtuse gale
#

i deserve to win a give away

onyx loom
#

do u?

humble silo
#

Literally my life motto

sick belfry
#

kekw

humble silo
#

Whats ur issue?

#

In gradle?

sick belfry
#

yes

humble silo
#

Lol

#

Yes?

humble silo
#

Oh no idea lol, nothing ive ever seen

sick belfry
humble silo
#

2031

#

First to say it

static zealot
#

so if I have a bot playing music and someone disconnects it how should I handle that?
I was thinking just pause and then listen for either /play or /join and resume if paused.
I could also clear the entire queue but I think the first option is better? Also by default it just continues "playing" the audio and when it joins back its basically skipped the whatever seconds passed

hot hull
#

pause it

static zealot
#

yeah. seems like the best option. it would be weird if you disconnect the bot and it continues playing the audio xD

hot hull
#

No I mean like what if you accidentally disconnect, then it'd be annoying if it wiped the playlist

static zealot
#

well both of those sound annoying. yeah.

#

hmm. Does JDA have an event for when a member disconnects a voice channel? or do I have to make a runnable or something checking every few seconds if the bot is still connected to a voice channel?

wintry plinth
static zealot
#

its gonna be 5 but yeah planned on doing that

static zealot
#

all the voice events have to do with updating the channel name, permissions etc.

#

oh. I might be blind. found it. it was under guild voice events which make sense. GuildVoiceLeaveEvent

distant sun
#

Yes

static zealot
static zealot
#

is it just me or does this just look ugly?

hot hull
#

It looks ugly

remote goblet
#

I hate it when intellij formats stuff into

  }
) {
}
half harness
#
.queue({

}) {

}
``` 😌
old wyvern
#

ew

static zealot
#

dkim sometimes you should shut up xD

sly sonnet
#

no but his example is gud

static zealot
#

what should I use to clear the queue if the bot has been disconnected from a voice channel for 5 minutes unless the bot has joined a voice channel since then?

ocean quartz
#

Oh shit, Mt Semeru in East Java erupted and it looks pretty bad

remote goblet
#

that looks pretty bad

old wyvern
#

d; spigot ServicesManager#register

ruby craterBOT
#
void register(@NotNull Class service, @NotNull T provider, @NotNull Plugin plugin, @NotNull ServicePriority priority)```
Description:

Register a provider of a service.

Parameters:

service - service class
provider - provider to register
plugin - plugin with the provider
priority - priority of the provider

old wyvern
#

uhh

#

what is ServicePriority here?

remote goblet
#

like EventHandler priority

old wyvern
#

event handler priority gives somewhat the order of execution

#

This on the other hand.... uh

distant sun
#

True

steel heart
#

like

#

if someone uses ::load

#

they'd get the highest prioritized provider

quiet depot
#

d;spigot servicepriority

ruby craterBOT
#
public enum ServicePriority
extends Enum<ServicePriority>```
ServicePriority has 5 fields, 3 all implementations, 2 methods, and  1 extensions.
Description:

Represents various priorities of a provider.

quiet depot
#

gee nice docs

steel heart
#

d;fields spigot servicepriority

ruby craterBOT
#
Fields:
org.bukkit.plugin.ServicePriority%Highest
org.bukkit.plugin.ServicePriority%Normal
org.bukkit.plugin.ServicePriority%Lowest
org.bukkit.plugin.ServicePriority%High
org.bukkit.plugin.ServicePriority%Low```
prisma wave
#

sorry what

quiet depot
#

@old wyvern just returns the highest priority

old wyvern
#

ahh

quiet depot
#

if two plugins register under the same service

distant sun
#

Why can you even do that in java lol bm

prisma wave
#

idk lmao

#

some weird quirk

#

i guess it's like byte @Nullable[]

quiet depot
#

that has a purpose though

#

what does ur pic do

prisma wave
#

idk

#

IJ generated it

quiet depot
#

stoopid ij

prisma wave
#

it's probably identical to @Nullable LangMessage.SoundConfig

old wyvern
#

Anti-Annotations Gang

prisma wave
#

very cursed

old wyvern
#

Pragma >> Annotations

prisma wave
#

true!

distant sun
#

do I need gradle installed to be able to add it to an existing project?

sick belfry
#

question, is it possible to modify world gen of end?

gusty glen
dense dew
#

cool

dense dew
gusty glen
#

it already have hocon and json, plus I've never seen someone using toml before, but feel free to open an Issue on github for that

obtuse gale
#

i think it's the format the Velocity config is in

#

and I think it's the format Velocity LP uses as well

#

WHAT

#

it's yaml

#

LUCKO, WHY

prisma wave
#

Mald

static zealot
#

Bald

soft quest
#

Hi! I have a Question! I'm making a Plugin and I would like to block the movement of a player until he write a command. How Can I block the movement ?

prisma wave
#

Cancel PlayerMoveEvent

soft quest
fathom jasper
#

Hello!

#

Someone knows why i'm getting this error with plugin messaging?
||java.io.EOFException at java.base/java.io.DataInputStream.readUnsignedShort(DataInputStream.java:346) at java.base/java.io.DataInputStream.readUTF(DataInputStream.java:595) at java.base/java.io.DataInputStream.readUTF(DataInputStream.java:570)||

obtuse gale
#

Short answer is "there is nothing to read"

#

Now why that is the case I have no idea but you're definitely doing something wrong PepeLa

sly sonnet
#

@gusty glen can sc-cfg be used with bungee?

static zealot
static zealot
#

🥲 I want to die

steel heart
#

I'd be happy to assist

static zealot
#

I got an assignment which was complete 69 problems in C# and I Did, and now turns out I have to explain my thought process thru comments for every single step I took. That means going thru all problems from 0 and writing comments for every line smiling_face_with_3_tears

steel heart
static zealot
wintry plinth
#

"69 problems"

wintry plinth
static zealot
#

ah. I got 2 assignments that both have 69 problems I Need to solve

wintry plinth
#

k :)

#

haha jk

#

damn, rip

static zealot
#

anyone got an hexviewer that I can rip off? xD

sick belfry
#

@obtuse gale you should give me a free website suprakekw

sick belfry
#

hahahahahahaha

obtuse gale
#

jijijija

wintry plinth
#

It needs to be 10 pages with an admin panel, that can support load balancing, and databases per user

obtuse gale
#

I cannot do backend sorry

#

PHP makes me sick

steel heart
#

Spring Boot?

wintry plinth
obtuse gale
#

Don’t even go there

#

React gives me nightmares

#

I just don’t see the point

eternal compass
#

react is so nice

obtuse gale
#

Why tho

steel heart
#

Svelte :p

eternal compass
# obtuse gale Why tho
export default function page() {
  const [test, setText] = useState("text");
  return (
    <>
      <button onClick={() => setText("test2"}/>
      <p>{text}</p>
    </>
  )
}
prisma wave
eternal compass
#

look at how simple it is to make a piece of text update

#

inside a component

prisma wave
#

Or uh

#

Idk

#

node.js

obtuse gale
#

I'm true to pure JS, CSS and HTML

#

I wouldn't even use SCSS

#

Or Less

prisma wave
obtuse gale
#

The average site doesn't need all that funny stuff

obtuse gale
eternal compass
#

you need to set the element's inner HTML

#

manually

#

this does it for you

#

and is way easier to scale

prisma wave
eternal compass
#

and did I mention changing pages without reloading? 👀

prisma wave
#

Spring and stuff is for backend, classic js is for frontend

#

Also elm > react

obtuse gale
#

If you allow jQuery ofc

#

what is a good server host?
my budget is abt 5 dollars per month if there is profit 10 dollars

eternal compass
#

JQuery? 🤢

obtuse gale
#

Yeah man

eternal compass
#

ewww

obtuse gale
#

I love jQuery!

eternal compass
#

is it 2012

obtuse gale
#

Hey, it still works

eternal compass
#

anyway, now do that 20 times in one page

eternal compass
#

me? I'd just render that component 20 times

eternal compass
obtuse gale
#

did not realise

#

Is the effort of setting up all your fancy things and deploying them worth it

eternal compass
#

hell yeah

#

tailwind + styled components 😌

#

inline easy-to-use tailwind components

obtuse gale
#

Tailwind is nasty

eternal compass
#

wtf

#

are you on

prisma wave
obtuse gale
#

I cannot work tailwind

eternal compass
#

What's wrong with tailwind?

obtuse gale
#

Much rather do my own styling

eternal compass
#

...

obtuse gale
#

It's something new to learn

eternal compass
#

flex flex-row space-3

obtuse gale
#

It's like already knowing Spanish

#

And learning Mexican

eternal compass
#

I went from css to tailwind

prisma wave
eternal compass
#

it makes life way easier

obtuse gale
prisma wave
#

rofl

obtuse gale
#

wait

#

nvm

eternal compass
#

you forgot the third one my friend

obtuse gale
#

I don't know what "space-3" is

#

What does that actually mean

eternal compass
#

oh oops space-x-3

#

I'm a bit rusty ig

prisma wave
#

rust reference?1?1?2!1??

obtuse gale
#

I am much quicker using CSS that Tailwind

remote goblet
#

in conclusion

#

web dev sucks

oak coyote
#

Agreed

eternal compass
#

you being slow at it doesn't make it "nasty"

obtuse gale
#

It's a great concept but I just can't use it

#
  • Really messy HTML if you don't use apply
eternal compass
#

then it auto generates everything for you

prisma wave
#

Elm elm elm elm elm elm elm elm elm elm elm elm elm

sick belfry
ocean quartz
#

It is possible

sick belfry
#

yey

#

any docs on it?

rugged spear
#

so i want to develop some plugins, any good tutorials that can help me?, i use IJ IDEA

sly sonnet
rugged spear
#

ty

#

i will do it after finishing my homeworks

sly sonnet
obtuse gale
rugged spear
#

thanks guyss

#

so which spigotapi?

sly sonnet
#

ughhh

#

it depends on which server version you want your plugin to work on

rugged spear
#

oh ok thanks

static zealot
#

what is kotlin native?

onyx loom
#

compiles to native machine code or smth
uses LLVM iirc

static zealot
#

yeah

#

found a page on it

sick belfry
#

so question

#

I'm looking for a VPS or a server thats less than 50 bucks and its on america

#

didnt know were to post it so i posted it here

#

kekw

static zealot
#

ok. cool. keep looking

#

lol

#

I believe soyoustart has some cheaper servers

#

if you want a full server

#

if you want a cheap vps, contabo has some good prices

sick belfry
#

I like how digitalocean looks

#

just idk

sly sonnet
#

hetzner or ovh? HyperThink

foggy pond
#

Is damager a word

#

Is there a better word for damager

#

Like if you hurt a cow

#

You are the cow's damager

#

But the word is shit

static zealot
foggy pond
#

Oh yeah

#

thank

static zealot
#

man I'm just too cool

#

lol

#

going to brag in every channel

sick belfry
sly sonnet
#

??

static zealot
#

and from what I understand people in here use/used them. and they weren't that bad

sick belfry
#

will check tho

#

thx

obtuse gale
#

@static zealot where is the channel pls im registered

static zealot
#

as I said you'll have to wait until the database is updated. it has to be done manually by the admin

#

and they're sleeping rn

obtuse gale
#

tete de oam je vais t'enclencher

foggy pond
#

what the

lime gate
#

Hello!. any news with javascript extension? my server uses this extension a lot and I can't find any information about it. Thank you

wintry plinth
winter iron
#

and its cheap

#

i think they just introduced some nvme ssd's instead of regular ssd's now too

sick belfry
#

will check both

#

thx

sick belfry
foggy pond
#

Imagine getting muted on the GeckoLib discord cause you are not understanding something the admin is explaining

#

Why are devs of big apis (forge, geckolib) so toxic

obtuse gale
#

forge is a cesspool of toxicity

ocean quartz
quiet depot
#

@static zealot contabo is really really bad

#

their drives are painfully slow, the cpus are complete shit, and they have no ddos protection, they'll null route your ip the second you get attacked

#

my friend tried using them for their network a couple years back, that shit lagged to like 10 tps with only 1 person on

#

it's not a viable host for a minecraft server

sick belfry
#

well

#

digitalocean then

sick belfry
quiet depot
#

uh

#

digital ocean is very expensive

#

how do you plan on getting a 32gb server from do with a $50 budget

#

they charge $5/gb

sick belfry
#

jesus

quiet depot
#

probably more for a server with a good cpu which you'd need for minecraft

sick belfry
#

then which one?

#

also its not for mc

quiet depot
#

I don't know of any vps provider that cheap

#

that budget is very low for what you want

sick belfry
#

general repo and so provider

#

I could go up to 100 dollars but I already have the money designed

quiet depot
#

"so" provider?

#

what's so

sick belfry
#

sorry

#

general cloud hosting

quiet depot
#

if you're making a host then buying a vps is not the way to go

sick belfry
#

for some projects that need communicating using a cloud I maid

quiet depot
#

you want a dedi if you're making a host

sick belfry
#

wdym with host?

quiet depot
sick belfry
#

let me re explain

#

the point of the vps is for hosting a personal repo or maybe public and for a cloud that I use on some projects for player data auth and so

quiet depot
#

I strongly dislike the word "cloud" because it can mean so many things

#

just tell me exactly what you're running

#

are you planning on running some virtualization software?

sick belfry
#

meh, player data across projects, auth, matchmaking and network stuff

#

gotcha?

quiet depot
#

I don't know what any of that means but it sounds like it doesn't need 32gb

sick belfry
#

ye

#

so

#

where should I buy one?

quiet depot
#

just buy a small ovh vps or something

sick belfry
#

or there are vps on america?

quiet depot
#

ovh has na locations

sick belfry
#

thx!

eternal compass
#

I hate negative numbers ;-;
I wrote a prerty simple 3D game engine, and everything works in positive coordinates, but breaks in negative ;-;

remote goblet
#

make it work in negatives then

#

loser

obtuse gale
#

That is such a shame

hot hull
#

What a noob

woven dune
#

looking for arm 64 devs

obtuse gale
#

Keep looking

cinder flare
#

guys I found a single nice thing about C++!

#

turns out, as of C++17, it has nice tuple destructuring for iterating over pairs, such as a map

#
    for (auto& [player, _] : bets) {
#

where bets is a std::map<Player*, double> bets;

#

I was very surprised with this discovery, and it only took about 6 obscure forum searches to find out!

#

@obtuse gale did you know about this

wintry plinth
#

I much prefer D.O as you can scale up and down, vs say a Deeicated server

lavish notch
wintry plinth
#

Yeah all comes down to usage, I’d much prefer to use D.O personally, DDOS protection doesn’t really matter day time day, unless you’re running a gaming server

obtuse gale
cinder flare
#

why isn't there more like this

obtuse gale
#

I mean templates are REALLY good stuff if you know how to take advantage of them

cinder flare
#

i physically gag every time I see a template or an error about templates

#

like is there a good way to learn about them? maybe i'd actually kind of like c++

sly sonnet
#

Has anyone ever used sc-cfg?

static zealot
#

no. no one uses secretx's shit lol

sly sonnet
#

when i press Load gradle changes and it just wont download the thing and yeah

#

no errors, no nothing

#

@gusty glen fix pls

cinder flare
#

bro just use MF-Config

#

i trust matt with my life

static zealot
#

lol

sly sonnet
#

where can i find it?

#

it is not in matts website

#

i already use his command framework

static zealot
#

tho it only supports yml

sly sonnet
#

yeah that's what i need

static zealot
#
    maven("https://repo.mattstudios.me/artifactory/public")

   implementation("me.mattstudios:triumph-config:1.0.5-SNAPSHOT")```
cinder flare
sly sonnet
#

and how to use it? are there any examples?

cinder flare
#

here's the example I learned by

sly sonnet
#

ah

#

ok

cinder flare
#

if you just kinda scroll through there, I just asked like a million questions to figure it out

sly sonnet
#

Ok, thanks guys

#

wait, i need to shade it, right?

cinder flare
#

yea

sly sonnet
#

ok, sweet

#

thanks again guys

gusty glen
gusty glen
sly sonnet
#
plugins {
    id 'java'
    id 'com.github.johnrengelman.shadow' version '7.1.0'
}

group 'network.geode'
version '1.0'

repositories {
    mavenCentral()

    maven { url = "https://oss.sonatype.org/content/repositories/snapshots" }
    maven { url = "https://m2.dv8tion.net/release" }
    maven { url = "https://repo.mattstudios.me/artifactory/public" }

    maven { url = 'https://jitpack.io' }
}

dependencies {
    implementation "net.md-5:bungeecord-api:1.18-R0.1-SNAPSHOT"
    implementation "net.dv8tion:JDA:5.0.0-alpha.2"
    implementation "com.zaxxer:HikariCP:5.0.0"
    implementation "org.mariadb.jdbc:mariadb-java-client:2.7.4"
    implementation files("libs/FastLoginBungee.jar")
    implementation "com.github.secretx33.sc-cfg:bukkit:master-SNAPSHOT"
}

tasks.build.dependsOn tasks.shadowJar

shadowJar {
    def yourPackage = "${project.group}.dependencies" as Object
    relocate "com.github.secretx33.sccfg", "${yourPackage}.sccfg"
    // these are all transitive dependencies, added here as convenience
    relocate "com.cryptomorin.xseries", "${yourPackage}.xseries"
    relocate "com.typesafe.config", "${yourPackage}.typesafe.config"
    relocate "io.leangen.geantyref", "${yourPackage}.geantyref"
    relocate "javassist", "${yourPackage}.javassist"
    relocate "javax.annotation", "${yourPackage}.javax.annotation"
    relocate "org.reflections", "${yourPackage}.reflections"
    relocate "org.slf4j", "${yourPackage}.slf4j"
    relocate "org.spongepowered.configurate", "${yourPackage}.configurate"
    relocate "org.yaml.snakeyaml", "${yourPackage}.snakeyaml"
}
gusty glen
static zealot
sly sonnet
#

yeah sorry

#

i remembered about it when i posted

gusty glen
#

looks like jitpack is the issue (self host when? 😥), I would try to maybe clean gradle cache (gradle clean), and them reload the gradle script

sly sonnet
#

gosh how can i disable this pinging in replies

static zealot
#

pres shift before pressing the reply button

slow fjord
#

or click on on

compact perchBOT
foggy pond
#

error

#

mistake ignore that

static zealot
#

lol

frail glade
#

Y'all see MiniMessage got merged into regular Adventure? Meaning it'll be in Paper in the next Adventure release most likely.

static zealot
#

I mean that's nice and all but I might keep using matt's msg lib anyways. I like the formatting a bit more

static zealot
#

tho if that becomes a standard I might move to that as well bcz rn its all a mess lol

obtuse gale
#

The idea (on Paper at least) is for MM to become the standard and replace the almost-a-decade old legacy formating

#

From what I understand tho MM is still very buggy and still in very active development so :')

#

@cinder flare (about C++ templates) I dunno man, I used to think of templates like Java/C# generics which is totally wrong (in fact, my first question on SO was about templates, first response was "They're not like Java or C# generics […]"),
By that time I also used to watch hours upon hours worth of conference talks and content on YouTube, probably a day or two worth of content, and there is very, very interesting stuff out there
Then I found out about template metaprogramming (how you can use templates to e.g. assert when or how a function can or cannot be used, preventing it at compile time) and then SFINAE
https://youtu.be/vwrXHznaYLA
https://youtu.be/VIz6xBvwYd8
https://youtu.be/ybaE9qlhHvw
https://en.cppreference.com/w/cpp/named_req
https://en.cppreference.com/w/cpp/language/sfinae
https://en.cppreference.com/w/cpp/types
This is a lot of content right here, it might (and likely will) take a bit to learn, it's something I used to have the wrong idea of and then something clicked all of a sudden so idrk how to convey my experience :')

#

hmu tho if you need anything I can try my best to help

prisma wave
#

@obtuse gale

obtuse gale
#

Omega lul

cinder flare
#

please respond

prisma wave
#

no

obtuse gale
#

Classic

wintry plinth
#

As I remember paper wanna do their own versions and not be a fork

static zealot
#

in the future

#

you do realise paper has 50% of the market while spigot only has 305 right?

compact perchBOT
static zealot
#

35%

wintry plinth
#

Oh

#

Was gonna say

static zealot
#

keyboard is bvroken

#

it writes double chars, or sometimes my shift doesnt work at all

#

lol

wintry plinth
#

Yeah I know paper is already dominant, but what I mean is dudes will just end up building plug-ins that use paper api only

#

Especially when Hangar becomes a thing fully

royal ether
gusty glen
obtuse gale
#

jitpack 🚮

gusty glen
obtuse gale
#

You are aware central is a thing

#

It's way simpler than what it seems at first really

ocean quartz
#

$5 a month you can rent my repo kek

#

Jokes aside, central yeah

royal ether
#

How do I get it to send a broadcast only to the player who put the protection?
events: on_place: - '' on_distory: - 'nodrop; false'
in on_place
Plugin karen protect

https://paste.helpch.at/sesazikuto
or how do I solve this error?
pls help

ocean quartz
#

Also KarenProtect lmao

#

What a name

distant sun
#

😬 🤣

static zealot
#

I have a seek command with 3 options: hours, minutes and seconds
hours and minutes will be optional and seconds will be required.
Now I'm wondering what would be best?:

  • Add the 3 options up and find the specific time in the track (so basically if someone gives me 2 minutes 100 seconds) I'd go to minute 3 second 30

or

  • Not add them up and basically if someone gives me 2 minutes 10 seconds go to minute 2 second 10 and if the track is 3 minutes 5 seconds tell them the seconds need to be <= 5?

Right now I prefer the first especially if the track is days long for example, then it'll break. but I could make the hours be special and make them accept more than 24 or whatever the track has.

obtuse gale
#

First one

#

Stupid people are stupid, and those that can't math at all will just throw big enough numbers

static zealot
#

well I'll check if the total is higher than what the track duration is anyways

#

and I'll tell em

#

bcz I do expect some confusion

hot hull
#

Anyone else getting lots of issues with latest IJ?

#

Particularly it being slow as shit

static zealot
#

just you

#

at least I didn't notice any difference

#

oh. there's another update

hot hull
#

Nah not just me, a friend just asked and it's been slow for him as well

static zealot
#

welp time to try

obtuse gale
hot hull
#

Also, why the fuck is it white theme????

#

Legit fucking blind now

static zealot
#

jesus christ

obtuse gale
#

Lol

static zealot
#

now I regret pressing the update button

hot hull
#

Last update seems to fuck a lot of shit up

static zealot
#

welp I can't cancel anymore... xD

obtuse gale
#

If you use toolbox you can regress/rollback

static zealot
#

yeah. I know

obtuse gale
#

Unless you don't keep old versions

static zealot
#

oh no. I Forgot they updated the loading screen

#

this one sucks ass

#

I liked the blue one

#

also yes frosty. I can already feel it

#

its exactly how it was for me before upgrading to the ssd. takes a while to load lol

#

the theme seems fine

#

thankfully

#

hange font size in all the tabs
As requested, we’ve made it possible to change the font size in all open tabs simultaneously with ⌘+mouse wheel on macOS or Ctrl+mouse wheel on Windows and Linux.

#

omg

#

thank god

wintry plinth
hot hull
#

Begone heretic

eternal compass
wintry plinth
eternal compass
#

fair

sick belfry
wintry plinth
sick belfry
#

I still dont decide the code font

static zealot
#

ew vscode*

sick belfry
static zealot
#

yes. indeed. thats my exact same reaction

wintry plinth
static zealot
#

no. you use the one matt uses for ij

#

I believe its called fira?

wintry plinth
#

I don’t, I use MonoLisa

static zealot
#

yes bcz you're too rich

wintry plinth
#

Aha

sick belfry
wintry plinth
#

https://dank.sh would be my 2nd best, then jetbrains mono as a 3rd option

Gumroad

A typeface designed for coding aesthetes with modern displays in mind. Delightful ligatures and an italic variant and bold style.The included character set includes latin uppercase and lowercase letters, all modifiers, and diacritics covering most European languages. Additionally it covers an exhaustive list of math symbols, the basic Greek glyp...

ocean quartz
#

Fire Code Medium best

old wyvern
#

uh

#

matt

#

Should spawnParticle cause the particles to spread?

half harness
#

spread?

old wyvern
#

How does one stationary particle

#

Its been so long since I touched this

old wyvern
half harness
#

not from what i can see with my plugin it doesn't really spread

ocean quartz
#

I think you need to change the velocity and the offset

half harness
#

¯_(ツ)_/¯

old wyvern
#

This is what I mean

#

I supposed to be just a few circles spawning

half harness
#

o

old wyvern
#

But it spreads out

ocean quartz
#

Yeah they always have velocity by default

half harness
#

oh does it depend on the particle?

old wyvern
#

I couldnt find the argument for velocity

#

its under World#spawnParticle right?

ocean quartz
half harness
#

use the consumer

old wyvern
ocean quartz
#

d;spigot World#spawnParticle

ruby craterBOT
#
void spawnParticle(@NotNull Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, @Nullable T data, boolean force)```
Description:

Spawns the particle (the number of times specified by count) at the target location. The position of each particle will be randomized positively and negatively by the offset parameters on each axis.

Parameters:

particle - the particle to spawn
x - the position on the x axis to spawn at
y - the position on the y axis to spawn at
z - the position on the z axis to spawn at
count - the number of particles
offsetX - the maximum random offset on the X axis
offsetY - the maximum random offset on the Y axis
offsetZ - the maximum random offset on the Z axis
extra - the extra data for this particle, depends on the particle used (normally speed)
data - the data to use for the particle or null, the type of this depends on Particle.getDataType()
force - whether to send the particle to players within an extended range and encourage their client to render it regardless of settings

ocean quartz
#

There, it's the extra

old wyvern
#

ahhh

half harness
#

o

old wyvern
#

thanks 😄

distant sun
#

had the same problem 🥲

old wyvern
#

🥲

#

That worked 😌

ocean quartz
#

😌

distant sun
#

who did day 7?

#

nvm, looks like it doesn't like that I use a set instead of a list lol

#

man who is (anonymous user #963181)

old wyvern
static zealot
#

195442362992820224 he's this user

#

not gonna ping rn

#

also I stopped at day 3 smiling_face_with_3_tears

distant sun
#

@paper orbit

static zealot
#

...

#

xD

distant sun
#

it was showing Unknown User

static zealot
#

ok

#

welp. how hard are things after day 3?

#

I assume it only gets harder

wind patio
#

and that's "discounted"

#

this better be a joke

obtuse gale
#

Nope, font and font design business is as real as it gets

humble silo
#

idk what your looking at tho

ocean quartz
#

Fira Code Medium is free and open sourced (i know weird for a font but it's on github thonk) though 😌

obtuse gale
#

So is jetbrains mono :P

#

i mean it really is just like art

#

you'll find some for free out in the wild, you'll find some costing little money and you'll find some costing lots of money -- under this or that other copyright license