#help-development

1 messages ยท Page 289 of 1

harsh totem
#

๐Ÿ’€

vague swallow
#

I'm german

remote swallow
quiet ice
vague swallow
#

do you know why that is?

quiet ice
#

No.

#

How should I even?

tender shard
#

Your build.gradle.kts does not work. it's not relocating JeffLib. It's still inside com.jeff_media

quiet ice
#

?jd-s

undone axleBOT
vale ember
vague swallow
#

p.setDisplayName();
p.setPlayerProfile();

vale ember
#

Remove include line if you want all lib to be relocated

#

And exclude nms from minimize

tender shard
quiet ice
remote swallow
#

if you are handling anywhere it would be needed it would

remote swallow
#

it would be less hard to impl for other things maybe

#

like chat

tender shard
#

I mean obviously I wanted to relocate the whole lib, not just part of it lol

remote swallow
#

tab

#

ect

quiet ice
#

Yeah, I don't know if it is possible or not, but it might be

vale ember
# tender shard and how can I relocate all of those without declaring it twice?
plugins {
    id("com.github.johnrengelman.shadow") version "7.1.2"
    java
}

repositories {
    maven("https://hub.jeff-media.com/nexus/repository/jeff-media-public/")
}

dependencies {
    implementation("com.jeff_media:JeffLib:12.0.0")
}

tasks.shadowJar {
    relocate("com.jeff_media.jefflib", "me.username.jefflib")
    minimize {

        exclude("com/jeff_media/jefflib/internal/nms/**")
    }
}
``|
quiet ice
#

setTextures does look nice though

#

The question is whether the update will be sent to other players

remote swallow
quiet ice
tender shard
remote swallow
vague swallow
vale ember
tender shard
remote swallow
tender shard
#

yeah maybe that's why so many people dislike it

vale ember
remote swallow
#

i like not having to type 300 different tags to add one plugin

tender shard
#

don't you have an idea that auto-completes it?

remote swallow
#

most of the time it didnt

tender shard
#

I literally only typed <p and javadoc

remote swallow
#

alex you should get wakatime

remote swallow
tender shard
#

why would that not work lol

#

I mean it's intelliJ and not notepad

quiet ice
remote swallow
#

because that doesnt follow any formatting stuff

tender shard
#

which formatting stuff?

#

i dont get it

quiet ice
#

What do you think

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">

is for?

remote swallow
#

not just typing the plugin name

quiet ice
#

That provides the format of the XML in an standarised format so ANY IDE can auto-complete it

tender shard
quiet ice
#

M2eclipse also does that for dependencies you have in your mavenLocal. Super easy to implement since it is basically just scanning mavenLocal for plugins and other dependencies

tender shard
remote swallow
#

that one makes sense

quiet ice
#

Fucking discord

remote swallow
#

discord doesnt like .mkv

runic needle
#

Looking for developer java bukkkit with experience in prision plugins
msg-me
๐Ÿ˜„

undone axleBOT
remote swallow
#

cant lie

quiet ice
remote swallow
#

the maven dep we have in intellij

#

nothing special

quiet ice
#

Industry standard, y'know

#

And considering the state of prison plugins I'd expect a very high 3 figure wage. Perhaps even 4 figure

#

Morally incorrect jobs pay very large sums of money

remote swallow
#

do you ever just get bored so want to code things you will most likely never use

#

like now i want to code a prison server that im never gonna use

quiet ice
#

That pretty much sums up everything I do

#

Okay, well - perhaps half of the Starloader suite is used by me. But the rest of all things I've written is pretty much never used by myself

remote swallow
#

ive wrote in total like 10 plugins that have been on servers that were used

quiet ice
#

The only plugin of mine that is used in a production-scale setting is EnchantmentsPlus - and even that is debatable considering that it is a fork

remote swallow
#

ive got 1 plugin on spigot that doesnt work

#

i was updating it earlier but stopped

#

because idk

#

im working on another plugin that would go on spigot

#

it might actually get used

quiet ice
#

There's also EasyConomyAdvanced that is on spigot - but that is also a fork.
Then there is Presence but that one is defo not used due to it only being present on the paper forums and github

summer agate
#

I've got three or four plugins depending on how you count, though only one is used by more that one server which also happens to be a fork

frank kettle
#

is there any proper thread explaining on how to make custom "images" on maps using urls?

#

i tried searching but couldn't find any thread talking about it properly on how it works

quiet ice
#

Just render the URL on the map?

#

The client won't download any URLs by itself - so the server would need to do it

summer agate
#

The plugin would have to get the image, resize the image to a proper size, translate the image to blocks(is there a way for this effectively?) and then put those blocks on a map

frank kettle
#

but how to create this custom "map" tho? ๐Ÿค” never touched maps thats why im asking for some thread explaining it

summer agate
quiet ice
#

Without using OpenGL I'd not touch image drawing even with a giant pole.
And since I have no idea about how to use OpenGL I'd not touch it at all. But for pre-rendered images OpenGL is not needed I guess

frank kettle
misty current
#

can you execute code when a plugin is loaded before its onEnable method is called?

ivory sleet
#

Yes

#

Static initializer, initializer or nullary constructor

remote swallow
#

couldnt onLoad also be used

#

that triggers somewhat before onEnable

ivory sleet
#

Myea

misty current
#

oh i haven't specified, i can't modify the class

#

i'm tryna patch a plugin that doesn't work in modern versions

#

and I need to write a field before it's loaded

#

sadly the plugin is not open source

ivory sleet
#

Sure

#

Just do it in onLoad as epicebic suggested

misty current
#

aight thanks

crystal palm
#

as you can see, i saved 2 players, both having 2 points. however, when i open up the .db file (or just.. rejoin the server), it shows the points as "1".
here's the autosaver. https://bin.birdflop.com/laqibomopa.java

#

i am losing my sanity ๐Ÿ’€

tender shard
#

oh wrong reply

remote swallow
#

one moment

tender shard
#

I hate it that it's not possible to remove the "replied to"

misty current
misty current
#

can I just modify a loaded class with it?

#

at runtime

remote swallow
#
maven {
  name 'name'
  url 'url'
}
quiet ice
remote swallow
#

or just

maven { url = 'url' } 
quiet ice
#

But it does not work at runtime - you can't modify a class at runtime without javaagents (which we have no access to)

remote swallow
#

if you need to specify java version use something like sourceCompatibility = targetCompatibility = JavaVersion.VERSION_16

tender shard
#

hm in kotlin one can just do maven("url")

#

why is groovy so much longer lol

#

thx

remote swallow
#

no clue

#

i like it more tbh

#

also i thought there dep stuff was maven{ uri = "url"}

misty current
#

also why do we not have access to javaagents

quiet ice
#

There is also the UnsafeValues#processTask hack which you could use to modify classes at runtime, but that does not work in your space

remote swallow
#

what does maven/gradle even have names for repos for

misty current
quiet ice
remote swallow
misty current
#

anyways pretty interesting, thanks

tender shard
#

I'm just trying to convert some projects to gradle for fun and it's a pain lol

remote swallow
#

lol

#

the one thing i dont like about gradle is its multi module

#

its quite jank

tender shard
#

i also never understand why some things are

  this = "sth"
}

while others are simply likethis("sth")

remote swallow
#

yeah

lapis belfry
#

EpicEbic

remote swallow
#

yo

lapis belfry
#

It's fixed now

remote swallow
#

nice

lapis belfry
#

I saw auto kick player in config files so i set it to false

remote swallow
#

normally the better thing to do for anticheats

lapis belfry
#

It's very good, my friend and i tested it

crystal palm
remote swallow
crystal palm
#

thats what i did in the image?

#

its 2.

lapis belfry
#

EpicEbic

remote swallow
#

yo

crystal palm
#

the value b4 the uuid shows the points that said uuid has.

remote swallow
#

oh i didnt see the photo

#

ive got no idea what might cause that lol

crystal palm
#

:suicidal:

#

seriously? no custom emojis?

#

bleh

remote swallow
#

custom emotes are booster perk lol

crystal palm
#

lame.

remote swallow
#

yeah

lapis belfry
#

Is there any plugin that help us to connect minecraft server to discord (except DiscordSrv, EssentialsDiscord)
Like for bot
!stats %player%
Execute in discord:
IGN: %player%
Rank: %uperms_prefix%
Kills: %kills%
Deaths: %deaths%

remote swallow
#

i dont know of any that might do that

#

i can probably write something that could do that

lapis belfry
#

i need discord Placeholders for it

remote swallow
#

do you use essentials discord or discordsrv?

lapis belfry
#

in mc it's %player% and idk tbh discord

remote swallow
#

or want it on a separate discord bot

lapis belfry
#

Separate

#

But I'm going to setup DiscordSrv tomorrow if it doesn't work

crystal palm
#

so.. update is required instead of insert???

remote swallow
#

i think so

#

its been a while since i touched sql lol

crystal palm
#

oh wait

#

isnt it

#

REPLACE INTO

ivory sleet
#

A special type of function argument

#

Sort of

crystal palm
#

or maybe UPDATE OR INSERT instead of INSERT OR IGNORE

remote swallow
crystal palm
#

or maybe.. all 3 at once ๐Ÿ’€ time to tryitandsee

lapis belfry
#

k. Ima go now it's 12am+ rn

tender shard
#

okay so is there any difference between groovy and kotlin besides the syntax? Is one better than the other? Because I really wanna try switching to maven but now I don't even know which lang to choose lol

ivory sleet
#

The best thing about kotlinscript is the additional ide support

#

And since yk

#

Kotlin is statically and strongly typed

tender shard
#

when I googled "kotlin vs groovy" then only things that come up are guides on how to switch from groovy to kotlin lol

#

so seems like it indeed is better

tender shard
quaint mantle
#

Kotlin is better

tender shard
#

I just thought maybe groovy has at least ONE advantage

#

lol

ivory sleet
#

Well, you dont need kotlin if u use groovy

#

Thats the advantage ig

tender shard
#

well I don't like kotlin but groovy seems even worse

ivory sleet
#

It is

#

Well

#

If you hate weakly, dynamically typed languages

#

Then yes

#

And the second hand ide support

tender shard
#

yeah Ill go for kotlin, thx

ivory sleet
#

Epic epic

#

Wise choice

tender shard
#

unfortunately gradle init seems broken

#

I mean

ivory sleet
#

Its far from perfect

tender shard
#

what's the last question?

#

lol

ivory sleet
#

Lol what the

crystal palm
tender shard
#

ok I got it to work to show the full question

#

what should I choose?

remote swallow
#

depends

#

would you need to use them

tender shard
#

plugin!

remote swallow
tender shard
remote swallow
#

the features that might come

tender shard
#

I don't know lmao, how would I know that before they get released

#

maybe

remote swallow
#

fair

tender shard
#

I mean in maven I ofc can always use new features when they come

remote swallow
#

does 1.12 support java 11

tender shard
#

so I guess I wana choose yes

wary kettle
#
    private Block breakInfinite(Block initialBlock, Material type) {
        for (final BlockFace loopFace : BlockFace.values()) {
            Block loopBlock = initialBlock.getRelative(loopFace);
            if (loopBlock.getType() == type) {
                loopBlock.breakNaturally();
                return loopBlock;
            }
        }
        return initialBlock;
    }



        int f = 0;
    while (f < 20) {
        testBlock = breakInfinite(testBlock, Material.COAL_ORE);
        f++;
    }
#

Can someone spot why my loop breaks when looping south

#

idk what happened to the formatting on discord but yeah

#

it works correctly except when going south

tender shard
#

what is it supposed to do?

frank kettle
#

oh wow, making maps with custom images is so easy, thought i would need to send packets to players or so ๐Ÿ˜‚

wary kettle
#

break connected blocks until theres no more of that type thats connected

eternal oxide
#

looks like it checks every block around an origin for a coal and breaks it

#

20 times

tardy delta
#

^^

eternal oxide
#

if you run out of coal it will hang in your while loop

tardy delta
#

you'd have to change the loopBlock if you want it to look further than the blocks around that initial block

wary kettle
#

I do

#

the method returns the new block

#

and runs again on that new block

tardy delta
#

isnt there also a BlockFace.SELF?

wary kettle
#

it works correctly just only breaks when it goes in the direction BlockFace.SOUTH

#

im not sure why

tender shard
#

wow IJ's new UI is so ugly

#

it claim to use less space but it uses more

tardy delta
#

its thicc

#

but i like thicc

upper plover
#

what is the server ip

tardy delta
#

๐Ÿค”

#

another idiot who thinks this is a mc server

dusk flicker
#

0.0.0.0

#

thats the server

wary kettle
tender shard
hardy garnet
#

Are you guys familiar with world creation with spigot?

wary kettle
dusk flicker
#

the new ui is horrible

undone axleBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

wary kettle
#

The first gif is breaking blocks going north

#

the 2nd gif is breaking blocks going south

#

idk why it stops when going south

tardy delta
#

clearly more

dusk flicker
#

Alex the new ui in your video is different from what I see

hardy garnet
# tender shard ?ask

So, I need to load a world from memory every 24 hours. Doing this takes quite a bit of time. This blocks the main thread for a long time which is annoying. I was wondering if there is anything I can do to speed this up, or stop it blocking the main thread entirely

tardy delta
#

my os doesnt want to me to code

tender shard
dusk flicker
wary kettle
#

anyone got a clue on my issue

tender shard
dusk flicker
#

oh mine actually looks different today than yesterday. Today it looks like your video; yesterday it was like all icons and no text for the sidebars and stuff

tardy delta
#

i think it looks better than the old one

#

if i could only open ij ๐Ÿ’€

#

have to open it from the app store cuz my pc crashed and stuff is behaving weird

#

discord blocking my screen ๐Ÿ’€

tender shard
#

does anyone know why gradle complains about the "api" dependencies?

tardy delta
#

ok looks fresh doesnt it?

chrome beacon
tender shard
chrome beacon
#

Add the java library

tender shard
#

thx. weird, gradle init auto created the file

hardy garnet
#

Okay, so changing region files while a world is loaded always ends badly correct?

chrome beacon
#

Yeah

#

Don't do that

hardy garnet
#

I'm not an idiot. Well actually I am and I've seen what happens if I do that

#

but that was a few days ago

#

I was wondering if there would still be issues if I ensured no chunks in the world were loaded when changing the region files

chrome beacon
#

Why do you need to modify the region file

hardy garnet
#

Basically, I have a world (world a) people are building in. Like 3k by 3k map right?

#

and for 1 hour I want them to go over to map B, which is identical to A

#

and I want them to be able to grief B as much as they want

#

and then go back to A, which does not have any of those changes

chrome beacon
#

To ensure the world is in a safe state I would unload both of them and move all players to a 3rd world

#

then copy the world and load it

#

and move players there

tender shard
#

can someone explain to me the difference between "implementation" and "api" in gradle? I don't really get it. I just wanna shade JDA, SnakeYAML and similar stuff. Should I use api for that, or implementation?

remote swallow
#

impl for jda is pretty much all i know

#

no idea what the difference is

#

because you also have compileOnly

tender shard
#

"gradle init" converted all my maven "compile" dependencies into "api"

#

in maven I simply think "do I have to shade it?" and when yes, I choose compile, otherwise provided. So what's the equivalents for that in gradle?

chrome beacon
#

Use implementation

hardy garnet
#

I just realized something. I have been trying to do all this world switching stuff, when in reality the solution is much easier

#

fml

tender shard
#

from what I know
maven compile = gradle implementation
maven provided = gradle compileOnly
BUt what does api then mean?

chrome beacon
#

Dependencies appearing in the api configurations will be transitively exposed to consumers of the library, and as such will appear on the compile classpath of consumers. Dependencies found in the implementation configuration will, on the other hand, not be exposed to consumers, and therefore not leak into the consumers' compile classpath.

quiet ice
remote swallow
#

i found

quiet ice
#

implementation and compileOnly do not exist in maven

tender shard
quiet ice
#

The api part means that the dependency will be looked up too as a transitive dependency

tender shard
#

another question: why are backticks in plugin names only sometimes required?

#

like why does java not require them, but java-library does?

quiet ice
#

likely due to dashes

tender shard
#

ah ok

quiet ice
#

Syntax bullshit I'd say

tender shard
#

I simply want to shade snakeyaml and use lombok

#

in maven I used provided for lombok and compile for snakeyaml

remote swallow
#

use the gradle lombok plugin

#

id "io.freefair.lombok" version "6.6-rc1"

tender shard
#

huh why that

remote swallow
#

no clue

#

it exists

tender shard
#

on their website they claim to do it like this:

quiet ice
#

Assume mylib has mydep as a dependency and myplugin has mylib as a dependency. If you use api or compileOnlyApi to declare mydep then mydep will be visible on the classpath of myplugin - however that is not the case for compileOnly or implementation

tender shard
#

oh wait you are right

#

I missed the plugin part

remote swallow
#

lol

tender shard
#

I have a standalone app and I want to shade snakeyaml

#

what scope should snakeyaml have?

quiet ice
#

api or implementation

tender shard
#

which one

quiet ice
#

It depends on whether you want it to be a transitive dependency or not

tender shard
#

I don't know

#

I just want to shade it into my jar

#

so I can use it

#

lmao

quiet ice
#

Then either will do the job

tender shard
#

yeah but I wanna know what the "proper" way would be

quiet ice
#

I recommend api if you have no clue

tender shard
#

okay but why? ๐Ÿ˜„

quiet ice
#

Because that is the compile scope of maven

#

implementation simply excludes the dep from the generated pom

tender shard
#

oooh I see now

quiet ice
#

(but it is still present on the build and runtime classpath - thus it is shaded)

tender shard
#

so let's imagine spigot shades apache commons

remote swallow
#

OfflinePlayer player = Bukkit.getOfflinePlayer(Bukkit.getPlayer(args[1]).getUniqueId()); am i correct in saying this would be never be null

tender shard
#

and they it to set compileApi, then I could use apache commons in my plugins

quiet ice
#

Yep

tender shard
#

erm wait

#

I meant implementationApi

#

if it would just use implementation, then plugins could not use it

#

alrighty thx

#

now I get it

quiet ice
#

Uh, simply api

tender shard
#

erm yeah

remote swallow
#

is api kotlin or something

quiet ice
#

implementationApi is a paradox

tender shard
#

weird why is gradle's naming scheme so fucked up

quiet ice
#

implementation = implementation-specific
api = exposed as part of the project's api

quiet ice
remote swallow
#

if i attempt to get an offline player from name, if they have never played would it be null?

remote swallow
quiet ice
remote swallow
#

ah

quiet ice
#

Although sometimes it does not - idk

#

It's confusing - alright

remote swallow
#

mojank

quiet ice
#

?jd-s

undone axleBOT
remote swallow
#

thanks

tender shard
#

am I stupid?

quiet ice
#

Nah, that is bukkit jank

remote swallow
quiet ice
#

They want api or implementation

quiet ice
#

compileOnly is not it

tender shard
#

uugh

#

gradle is really way way more complicated than maven

quiet ice
remote swallow
#

gradle got more complicated

#

i always just use compileOnly or implementation

#

i use which is on the docs or does what i need

quiet ice
tender shard
remote swallow
#

lol fiar

quiet ice
#

I am kindof shocked that maven does not have something like that

tender shard
quiet ice
#

With ages ago I mean like 2 years ago - more or less

#

Or perhaps it was only removed with gradle 7? Idk

tender shard
#

okay but actually I don't want to shade the annotations

remote swallow
#

am i correct in saying to get a Player instance they would have to be online? or can i get player instance if they are online or offline

tender shard
#

so shouldn't I use compileOnly ?

quiet ice
#

Yeah - removed with gradle 7 and deprecated in gradle 6

tender shard
#

I mean who shades jetbrains anotations?

quiet ice
tender shard
#

that's only useful for an api

tender shard
quiet ice
remote swallow
quiet ice
#

Don't want ABI diffs to suddenly break my plugins for no reason at all.
But then for other plugins I just don't care

remote swallow
#

oh wait

#

im blind

#

it says in the jds

quiet ice
remote swallow
#

ah thanks

quiet ice
#

If in doubt, OfflinePlayer is always correct.

#

Since Player extends OfflinePlayer

tender shard
remote swallow
#

it makes sense now

#

tyty

tender shard
#

tbh I would have rather named it Player and OnlinePlayer

#

I mean players who are offline are still players, right?

remote swallow
#

yeah

tender shard
#

just like people who aren't in the same room are still people

lavish hemlock
#

There's probably an even better naming convention.

quiet ice
#

Player vs PlayerEntity

gleaming grove
#

What m'I doing wrong, why both ChunkLoadEvent or ChunkPopulateEvent are not triggered?

gleaming grove
#

yes, the server load event message appears in conosle

quiet ice
#

Ah yes right. Was expecting it somewhere else ๐Ÿคฆ

gleaming grove
#

and the pianoDataRepository.findAll() return 2 objects so its not empty

remote swallow
#

did you fly about at all

quiet ice
#

Other alternatives I could find is that the chunks are not reloaded

remote swallow
#

i dont think the chunk load event gets called on startup, only for when a player may join or walk about

quiet ice
#

The reload command likely only reloads plugins, but not chunks or player joins and stuff

rotund ravine
tender shard
#

am I correrct that, in order to declare a main class in MANIFEST.MF, I gotta add the "application" plugin additionally to the java-library plugin, then just set the "mainClassName" attribute and then after runing "gradle shadowJar", it should work?

rotund ravine
#

Sadly bukkit is a big legacy meds

gleaming grove
quiet ice
#

Yeah, sponge does not have an OfflinePlayer

#

Or if it does Player is the OfflinePlayer

#

Where as the online player either is LocalPlayer, RemotePlayer, ServerPlayer or ClientPlayer

#

And here my people, I'd prefer bukkit's terminology

tender shard
#

wow JDA has such a weird idea about "apis"

#

between 5.0.0-alpha12 and 5.0.0-beta2 they renamed every package containing "Channel" classes

remote swallow
#

yeah

#

jda is weird

tender shard
#

I could understand renaming packages between 4.X.X and 5.X.X

#

but not between 5.0.0-alpha and 5.0.0-beta

remote swallow
#

a lot of changes happened in 5.0.0-alpha

late sonnet
#

well its a alpha... make sence make breaking things (?

tender shard
#

I only just switched to beta.2 to get rid of the vuln warnings lol

#

no I don't think so

#

the API should not change between 5.0.0-a and 5.0.0-b

remote swallow
#

beta is the actual release

tender shard
#

I would expect bug fixes, but not breaking API changes

remote swallow
#

alpha was out when 4.0.0 was still the recommended version to use

tender shard
#

the breaking api changes should have happened between 4 and 5, not between 5a and 5b

remote swallow
#

yeah

#

but jda is weird

late sonnet
#

still are the Lib with the most of things.. the other is D4J but its a little outdated in recent features

quiet ice
#

Uh no? Neither alpha nor beta should be set in stone (especially the case for alpha)

#

Only for stables release (especially -final) or release candidates it should have stable api

tender shard
#

uuughm am I stupid? where can I get the bot token? isn't that the "client secret" in discord's OAuth2 -> General tab?

late sonnet
#

you know need "reset token" for the

tender shard
tender shard
#

I have to "Reset" the token in order to get one in the first place?

remote swallow
#

yeah

tender shard
#

I always hated the discord developer portal

remote swallow
sterile token
tender shard
remote swallow
tender shard
#

worst thing is, where even is a link to the portal on the official website?

#

I always have to use google to find the actual link to the dev portal

remote swallow
#

when you create a new bot it never shows the token

#

you have to reset it to get it the first time

late sonnet
#

yep

remote swallow
#

it was so annoying when they changed that

sterile token
#

What?

remote swallow
#

on the discord dev portal

sterile token
#

What are you talking about?

remote swallow
#

it no longer shows it once

late sonnet
sterile token
remote swallow
#

yeah

late sonnet
#

and now add snow

tender shard
remote swallow
#

idk what it is

late sonnet
sterile token
#

Because when i use to code with discord.js v12, you were able to get the token directly, then they changed to see the token 1 time only, if you lost it you have to reset it, and now they came back as it was on the past so?

remote swallow
sterile token
#

snowflake what a pathetic name tho, its really descriptive ๐Ÿคก

remote swallow
#

it was so annoying

sterile token
sterile token
late sonnet
remote swallow
#

discord is owned by google?

sterile token
remote swallow
#

ah

sterile token
#

Google offered to buy discord, but they didnt never accept it

#

So changing topic, is there any documentation for spigot scoreboard api? Where it fully details what object are for that and what exactly does the Objective, Criteria, etc?

quiet ice
#

Wasn't it MS that wanted to buy discord?

remote swallow
#

they did at somepoint i think

sterile token
sterile token
sterile token
#

Scoreabord api on 1.19 its really weird, there is no official tutorials for that version

#

The docs, dont explain much, for example does Criteria neither Objectives etc

tender shard
#

lmao copilot again wrote the whole class for me

vocal cloud
#

Probably would want the no perms before invalid args

sterile token
tardy delta
#

i once let it do sql and everything was cursed

sterile token
tender shard
#

it's not a spigot plugin

sterile token
tender shard
#

and it uses gradle lol

remote swallow
#

oh also alex if you want to use gradlew build instead of gradlew shadowJar add

build {
    dependsOn shadowJar
} 
#

somewhere in the build file

sterile token
late sonnet
remote swallow
#

ive also got the stuff to auto set version in plugin.yml

tender shard
#

I hate how you have to use "echo" to return stuff in bash functions

tender shard
#

they are so annoying

spring minnow
#

Hi, i have this task that spawns boss every Tot time, i want to create a placeholder that tells you how much time is left to spawn another boss, but i don't know how to check how much time does it take for the runTaskTimer to be executed again

tender shard
#

slash commands are a fucking pain

late sonnet
tender shard
#

my bot just has a configurable prefix

late sonnet
tender shard
#

if only slash commands would work without having to "confirm" them, I'd 100% love them

late sonnet
spring minnow
#

thanks

frank kettle
#

I've tried to search about the "players list" on the server list ping that some plugins allow to edit.

Does anyone know exactly how's that called or a thread explaining/talking about it?

#

I only find plugins, no threads

remote swallow
#

pretty sure that needs packets to modify it

frank kettle
#

Yeah but I don't know what name it's called

tender shard
#

and sometimes awk

remote swallow
#

despite if they have already been built

remote swallow
#

so i can run all buildtools

tender shard
remote swallow
#

i thought it only runs what hasnt already been ran

tender shard
#

oh you wanna rebuilt even existing versions?

remote swallow
#

yeah

tender shard
#

then just change the one function to always return 1

remote swallow
#

thanks

tender shard
#

oh wait

#

I meant

remote swallow
#

function isInRepo {

tender shard
remote swallow
#

make it always return false?

tender shard
#

change this to always return $TRUE

#

I mean $FALSE

remote swallow
#

ah

tender shard
#

yes

remote swallow
#

do i need to change the if [ "$remapped" == $TRUE ]; then?

tender shard
#

function isInRepo() { return $FALSE; }

remote swallow
#

even better

tender shard
#

alternatively, just delete ~/.m2/org/spigotmc/spigot directory

#

I mean if you wanna rebuild every version anyway, just remove the existing ones beforehand

#

but why would you do that?

#

1.19.3 is the only version that might change

#

the older ones will stay the same

remote swallow
#

get all the versions i dont have already

#

in case i need to use them in future

tender shard
#

does anyone know how I can rename a TextChannel name in JDA 5 beta2?

remote swallow
#

TextChannel.getManager().setName("name").queue

#

or something like that

tender shard
#

oh ok thx

#

ughm how again can I add a bot to a discord server

#

I always forget this

#

I have a server, I got a discord bot application - but how do I make it join that server?

#

I have looked for 5 minutes and cannot find it

remote swallow
#

i find that the easiest way

tender shard
#

but what's the official way? ๐Ÿ˜„

remote swallow
#

on the oauth2

#

set scopes and perms on general

#

then use url generateor

#

most of the time you can use bot, then you can set perms again

tender shard
#

why is this fucking developer portal so extremely shitty

tender shard
remote swallow
#

its the discordsrv setup thing

tender shard
#

why isn't there just a button in the dev portal "Add to server: <server name>"

remote swallow
#

its easier than making the url myself

dense geyser
#

I have a question involving editing a plugin. Is this where I would go for that?

dusk flicker
#

I mean you could ask here, would probably need more context if you wanted a 100% direction where to go.

undone axleBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

quiet ice
dense geyser
#

thereis a plugin on Spigot (IDK if i can add links on here) and I want to know if someone can change a couple lines of code. As it is set up, it will randomly spawn mobs between level 0 and 10. (levels added by the plugin) I wan to know if someone can make it so that evey 20ish mc days it'll got from say 0-10 to 1-11 and so on

tender shard
#

if you want someone else to do it:

#

?services

undone axleBOT
quiet ice
#

If the source is public that may be the right place, otherwise I doubt so - the amount of people that know java bytecode is minimal

tender shard
#

no need to - just decompile it, change the code, and compile it again ๐Ÿ˜„

quiet ice
#

Depends on the size of the plugin

tender shard
#

true

quiet ice
#

I've done it once for a plugin - it is a tedious affair to fix all compile errors

tender shard
#

just send the link to the plugin @dense geyser

compact haven
#

the problem with modifying decompiled code is getting all of the dependencies used to be available when compiled

#

because a lot of things in spigot are available at runtime so they arenโ€™t shaded or anything, so if they donโ€™t compile with dependency info youโ€™re kinda left on a wild goose chase

sterile token
#

Is this bash correct? Im on windows trying to start a sever with Java 17 but the process start and then instantly get killed

sterile token
#

okay, so something else must be wrong

tender shard
#

well it will print sth to console when you run it

#

just enter that command and you'll see what's wrong?

sterile token
#

Hee', didnt understand

#

There is a command "-jar Spigot.jar"

tender shard
#

?

quiet ice
#

Does not compute.

sterile token
#

The sever is not started tho

tender shard
#

i dont get what the problem is

quiet ice
#

What is the console output?

tender shard
#

run your script and show what the output is in your terminal

sterile token
#

I mean just open for seconds and then get closed

quiet ice
#

Then run it through the terminal

tender shard
#

you are not supposed to double click it lol

#

run it from your terminal / shell

sterile token
#

okay, weird

tender shard
#

what's weird

#

i literally don't understand the problem lol

sterile token
sterile token
tender shard
#

how is your script even called?

sterile token
tender shard
#

then do ./start

compact haven
#

itโ€™s ./start.sh

tender shard
#

then it's called "start.sh" and not "start"

quiet ice
#

If uppercase ./Strart.sh

compact haven
#

whatโ€™s this file called xd

quiet ice
#

Eh, just give us what ls -l prints

sterile token
#

Wait i the server dosnt even start running the script content manually

quiet ice
#

-.-

sterile token
#

yeah that why i asked if the script was correct

#

๐Ÿคก

#

That why the sever wasnt started

#

I love spigot tho

tender shard
#

I love how you don't give the full stacktrace but only one line

sterile token
tender shard
#

java -jar Spigot.jar

#

what does that print

sterile token
#

That why im using the asb path

compact haven
#

can replace Java with the path to 17

sterile token
#

yeah but its a mess them because i always use 8

compact haven
#

I meant

#

run that command

sterile token
#

Just need to start the sever to test a plugin

#

ok

compact haven
#

with โ€œjavaโ€ replaced with the path

tender shard
#

then do /path/to/java17 -jar Spigot.jar

#

and see what that prints

sterile token
#

LIke that so?

quiet ice
#

without the jvm args

sterile token
#

okk

quiet ice
#

Also what exactly is this "Spigot" jar?

compact haven
#

downloaded from the black market

sterile token
#

๐Ÿค”

quiet ice
#

That is the wrong spigot I'd guess

tender shard
#

I don't see any "Spigot.jar" in that folder

quiet ice
#

You need to use the bundler spigot (or the shaded one - idk)

tender shard
#

how do you manage to write plugins but fail to start a server lol

quiet ice
#

But likely not from that folder

quiet ice
sterile token
tender shard
#

it works the same though?

quiet ice
#

Bundler

#

Bundler is the issue

tender shard
#

only difference is that you specify the java17 exec instead of the java 8 one

sterile token
tender shard
quiet ice
#

But bundler.......

tender shard
#

I bet against that

sterile token
#

So what i can do?

quiet ice
tender shard
#

it's literally just... copy spigot.jar somewhere, then do /path/to/java17 -jar spigot-1.19.3.jar

tender shard
#

not the one from the Spigot/ dir

sterile token
quiet ice
#

the shaded jar!

tender shard
#

bruh

quiet ice
#

Not the ordinary jar!

tender shard
#

if you run buildtools in C:\Buildtools

#

then use the .jar from C:\Buildtools\spigot-1.19.3.jar

#

that is the only proper server .jar

quiet ice
#

Yeah, that works

sterile token
tender shard
#

WHICH jar

sterile token
quiet ice
#

I think we'll sit until tomorrow.
Just use paper

sterile token
compact haven
#

paper is not bad

quiet ice
#

The noob-proof solution

compact haven
#

yall just tripping on rocks

tender shard
#

...

sterile token
sterile token
#

Because you all where shitting me and one of us told what one to use

tender shard
#

because you literally ignore everything we say

compact haven
tender shard
#

After running Buildtools, you have a file that is EXACTLY called "spigot-1.19.3.jar"

compact haven
#

is telling you itโ€™s the wrong one

tender shard
#

I wrote this 4 times already now

sterile token
#

That why i dont get spigot jars, from build tools its a fkg mess

quiet ice
#

And don't fetch it from the "targets" folder

compact haven
#

youโ€™re right it is a mess

#

when do we get a spigot โ€œpaper clipโ€ solution

quiet ice
#

Someone wrote one actually

compact haven
#

really? ๐Ÿค”

tender shard
#

you run buildtools and then you use the file called "spigot-1.19.3.jar"

#

how is that a fucking mess?

#

You simply do not read the instructions

tender shard
#

BuildTools even tells you what the file is called and where it is, after it completed

quiet ice
#

It's older though

#

Mar 2021
A year older than I had expected actually

compact haven
#

that is not what I was expecting

sterile token
#

It still not starting just created folders and nothing else

compact haven
#

I meant the jar that you can download from paper and thatโ€™ll compile paper on first load

#

as if you downloaded paper from the paper site instead

tender shard
#

if you would simply read the console output, you would have noticed that you are supposed to accept the eula now

#

but idk you never read anything

compact haven
#

bro is stuck in 1.8

compact haven
#

wait

sterile token
compact haven
#

isnโ€™t EULA also in 1.8

quiet ice
#

It's just a differential that is applied, which is what paperclip does

compact haven
#

the need to accept

sterile token
#

I never have to started a server since 2018

quiet ice
rough drift
#

Fuck me

#

sure when

compact haven
#

a differential? Wdym

sterile token
#

Server is still not starting fucking 1.19

quiet ice
#

(not you in particular though, I'm replying it each time I get this answer)

tender shard
#

ike gay? since when

compact haven
#

they donโ€™t distribute compiled mojang code

rough drift
#

whenever one says "fuck you" we just reply "sure when"

tender shard
#

hm on grindr it actually works like that

rough drift
#

oh

compact haven
#

rofl

rough drift
#

;-;

buoyant viper
#

o ya wat r u working on that u wanted maxplayers and motd method eyes @remote swallow

rough drift
#

also

#

alex

buoyant viper
#

ur own pr?

rough drift
#

I did a thing

rough drift
#

so it's yes patch or no patch?

#

binary patch

compact haven
#

well I know that binary patches are applied to update

#

but at first time it downloads sources and compiles

quiet ice
#

They are applied on top of the vanilla jar

#

But it never compiles anything

sterile token
#

Okay definitly not understanding how works the 1.19 bundler shit

compact haven
#

gimme a sec

sterile token
#

Sever is not starting too

quiet ice
#

Compiling paper with janino or eclipse would be stupid

quiet ice
rough drift
#

Sure when

sterile token
rough drift
#

lol

compact haven
#

my bad ur right geol

quiet ice
#

Although spigot is compiled with eclipse. So probably might also work for forks

sterile token
#

๐Ÿคก

quiet ice
#

But uh, I'd not be the one to test that

quiet ice
sterile token
#

What shity modifications they have done from 1.8 to 1.19!!! LMAO

fossil pike
#

can someone help me make a quick change to a plugin? I'm trying to just edit it to add a version dependency for 1.15.2, but the computer I'm currently on isn't even powerful enough to finish the build on IntelliJ

quiet ice
#

Well spigot is close to vanilla - tooo close to vanilla for my liking

#

Takes like 10 minutes to shut down

rough drift
rough drift
quiet ice
#

Some forks on the other hand - like 3 seconds

rough drift
sterile token
tender shard
fossil pike
quiet ice
rough drift
compact haven
#

why is buildtools in a tmp directory ๐Ÿค”

tender shard
sterile token
rough drift
#

check #general, I did a thing

quiet ice
compact haven
#

just realized he was here?

tender shard
buoyant viper
#

speaking of BuildTools, i never bothered to see how to test a fork

#

i want to say itd be BuildTools.jar --dev --dont-update but i only did mvn install on Spigot project

compact haven
#

interesting

fossil pike
#

can someone help me make a quick change to a plugin? I'm trying to just edit it to add a version dependency for 1.15.2, but the computer I'm currently on isn't even powerful enough to finish the build on IntelliJ. I

tender shard
# sterile token

this video literally ends exactly before the part where eclipse indeed does an obvious mistake

undone axleBOT
rough drift
tender shard
#

also who the fuck still uses 1.15.2

sterile token
#

I need the song name too

#

I really like the song

sterile token
tender shard
rough drift
#

LETS GO

tender shard
#

yeah

#

pretty sure

rough drift
#

yeah

#

it is

#

also

#

alex

compact haven
#

if youโ€™re able to run Discord, as an electron app, you can run maven build

rough drift
#

check #general

quiet ice
# sterile token

The first 10 seconds are skill issue.
The slow typing speeds even more so.
And the cast thing is a user error

quiet ice
#

White background is user brain damage

rough drift
#

otherwise eclipse all the way

quiet ice
#

I don't really see how completions can be improved but whatever

rough drift
#

ij just has them better

quiet ice
#

Not very convincing

wary kettle
#

Does anyone know the difference between BlockFace.NORTH_EAST, and BlockFace.NORTH_NORTH_EAST and etc for west

rough drift
#

I know

#

used both, I can tell the difference

rough drift
#

one east

#

the other is one north

#

one east

wary kettle
#

why is that a thing in minecraft lol

quiet ice
#

that is not it.

rough drift
#

no clue

compact haven
#

at least IJ has built in Maven support

wary kettle
#

what is that used for

rough drift
sterile token
#

Why when i start the server it open a shity white interface from Minecraft Server?

quiet ice
rough drift
quiet ice
rough drift
#

:O

#

send screenshot

compact haven
#

that exists but not by default, at least not always

#

but no Iโ€™m not going to crusade anyone for using eclipse

compact haven
#

I personally have used all 3 ides

rough drift
#

don't care

#

send

quiet ice
#

As you see Northeast is between north and east

compact haven
#

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

sterile token
rough drift
#

but double north

quiet ice
#

This is useful for signs

rough drift
#

what is double north

compact haven
#

(being netbeans, eclipse and IJ)

rough drift
#

k

quiet ice
buoyant viper
quiet ice
#

At least not in Spigot world

compact haven
#

that I will crusade for

rough drift
#

nah nah guys

#

you use the wrong IDEs

quiet ice
#

Command line โ™ฅ๏ธ

rough drift
compact haven
#

mate cli and ide support are 2 vastly different levels

rough drift
#

then I paste it into my console making java compile the string of the code

tender shard
rough drift
#

and then run the .class

buoyant viper
#

yeah

rough drift
#

manually loading it in spigot

quiet ice
#

./gradlew build and ./mvnw package are the top ones

compact haven
#

well I havenโ€™t touched fleet yet xd

buoyant viper
#

i just didnt want to open intellij

rough drift
tardy delta
#

i tried to do my coding on linux and then my os decided to throw ij away

tender shard
#

btw why does everyone use gradlew instead of gradle?

quiet ice
#

Yeah

rough drift
#

maven

buoyant viper
#

was simpler to just right click -> open with vscode

tender shard
buoyant viper
#

so its safer to use the provided wrapper

quiet ice
#

Artifact transformation mostly

quiet ice
#

And not having a shit plugin API

rough drift
#

Someday will be the day I make my lang with my own build system

quiet ice
#

Or rather said an API that you cannot understand

buoyant viper
#

personally im still waiting for @lavish hemlock s minimal buildsystem

gray merlin
# rough drift >maven

Maven is like butter: Soft, tasty, nice looking.
Gradle is like cement: Rough, not tasty, dull looking, likely to give you a headache upon consumption.

quiet ice
#

The artifact transformation thing is mostly only needed because I mod galimulator though

tender shard
#

it is indeed

compact haven
#

so many less lines tho

#

xml is just disgusting

buoyant viper
tender shard
#

ah oki

compact haven
#

have you seen shade plug-in config

quiet ice
#

XML is okay

compact haven
#

itโ€™s like 30 lines long

#

well this is true

quiet ice
compact haven
#

shadowJar isnโ€™t even made by gradle

quiet ice
#

Absolutely incomprehensible

tender shard
#

gradle cannot even shade without third party plugins lol

compact haven
#

kekw

gray merlin
#

XML is only disgusting if you don't get to know it, but if you give it time, love, attention, and get to know it for what it really is, you'll see that it is actually very nice.

quiet ice
tender shard
#

how can it do that?

compact haven
#

I donโ€™t want to give it love and attention

quiet ice
#

Due to natives or what?

compact haven
#

although I use maven most of the time anyways xd

tender shard
compact haven
#

but gradle much less lines

compact haven
rough drift
#

@quiet ice how dows your buildtool look like

compact haven
#

Alex I meant the literal <configuration> tags

tender shard
gray merlin
#

I'm trying to figure out how to add another plugin as a dependency to my plugin, in order to use stuff from it; Specifically WorldGuard and WorldGuard Events. I've figured out that there's a "depend" I needed to add; Done. Now how do I add the plugin to the "buildpath"?

compact haven
#

you need configuration, then artifactSet, then excludes, then exclude tag

tender shard
rough drift
tender shard
compact haven
#

if you want to exclude certain packages

tender shard
#

why not just use <minimizeJar>true ?

#

@compact haven

buoyant viper
# quiet ice it can but you don't want to try it

ah the good old

configurations {
  shade

  implementation.extendsFrom shade
}

dependencies {
  shade "someshit.idk:yeah"
}

jar {
  from configurations.shade.collect { it.isDirectory() ? it : zipTree(it) }
}```
buoyant viper
quiet ice
#

Shades dependencies

gray merlin
buoyant viper
#

no relocations, just fatjar essentially

tender shard
tender shard
#

for the record: I really don't hate gradle, but it obviously has some serious issues and it's way more complicated than maven

quiet ice
# rough drift ??

brachyura-bootstrap-0.jar - the wrapper
And the buildscript folder contains all the buildscript data

rough drift
#

so where is the build thing

lavish hemlock
buoyant viper
#

doesnt gradle too? lol

quiet ice
lavish hemlock
#

They both have less-than-decent documentation

buoyant viper
#

i mean SSL certs are free, LetsEncrypt ๐Ÿ’ช

quiet ice
#

You can remove that though

buoyant viper
lavish hemlock