#development

1 messages · Page 107 of 1

night ice
#

okay..let me try

formal locust
#

@night ice Hey

#

Do you know how to add scoreboard that can be configured through config.yml

#

Scoreboard:
Title: 'TITLE'

#

like that

night ice
#

nah, haven't worked with scoreboards yet!

#

but there should be people who have worked with them here

sharp hemlock
#

so you know the plugin.yml has the libraries feature?

#

does it go for the same with bungee.yml?

dense drift
#

Check the code of bungee

lyric gyro
#
import React from "react"
import { BrowserRouter, Route, Switch } from 'react-router-dom'
import HomePage from "./pages/HomePage";
import LightAccessPage from "./pages/LightAccessPage";

function App(){
    return (
        <BrowserRouter>
            <Switch>
                <Route path="/" component={HomePage} exact />
                <Route path="/lap" component={LightAccessPage} exact />
            </Switch>
        </BrowserRouter>
    )
}

export default App``` Why is CSS from HomePage applying to LightAccessPage?
high edge
#

Probably cause the path?

lyric gyro
#

hm?

#

I only import the CSS in HomePage tho

formal crane
#

How can i see if the player closed his inventory and not the code?

broken elbow
#

have a variable that you set to true if you closed the menu then on close event check if that is true or not and also set it back to false if it is true

wintry grove
#

I'm curious, how would you go and do a packet system on java, using sockets I guess?

lyric gyro
#

Pass a buffer through with an op code

#

As the id

#

Similar to mc

wintry grove
#

explain kekwhyper

lyric gyro
#

You bass buffers of data(byte buffers) through one socket to the other

#

You can see how minecraft takes those buffers and creates what it needs.

#

In each packet

#

You need a way to know what you’re receiving with something like an op code pretty much just giving your packet an id

#

As the first byte of the buffer

wintry grove
#

like I send the buffered byte on the socket?

lyric gyro
#

You have two sockets. Client and server. They pass byte buffers between eachother

wintry grove
#

oooh now I get it more

lyric gyro
#

Very useless for a plugin

wintry grove
#

so basically I send a buffered byte with the data on it (like int to byte or so? suprakekw ) and an id so I can identify it?

dusty frost
#

pov: Conclure wants to make his own proxy

lyric gyro
#

You have bytebuffer in java which you can think of as a smart byte array. If you wanted to pass through say a “packet” with an id and an integer. You can set the first byte to the id. Then the next 4 will hold that integer

#

Then you send that from your client socket to your server socket. And if the first byte received on the server is that id then you know how to disperse its bytes

wintry grove
lyric gyro
#

Yea pretty much id(usually a byte) -> data(anything you want your packet to hold) -> send to server

wintry grove
#

ok then

lyric gyro
#

if (first == WHATEVER) {
val i = readint

wintry grove
#

time to learn bytes and some random lambdas to make my life easier

lyric gyro
#

Lmao yea it’s some good shit to know.

#

Just learn to make a simple client to server msger

dusty frost
#

yeah that stuff is actually really cool

lyric gyro
#

That’s a good introduction to networking

#

There’s tons of resources out there for it as well

dusty frost
#

i did a sporadic deep-dive into packets and stuff when I wanted to make a packet interceptor for my proxy lol

#

turns out the plugin was super outdated so I had to upgrade it to the new version of the packet parsing API lol

dusty frost
#

noop

wintry grove
lyric gyro
#

Wtf who’s star 2

dusty frost
#

just looking at the source code that already existed

wintry grove
#

me

dusty frost
#

him ^

lyric gyro
#

Thought I was speaking to the og star

dusty frost
#

no, no!

wintry grove
#

LMAOOOO

dusty frost
#

that is me!

#

this is just my impersonator, Conclure

lyric gyro
#

Lmaooo

dusty frost
#

ever since the semester started he has taken up the mantle

lyric gyro
#

It’s conclure I see

wintry grove
#

kekw

lyric gyro
# wintry grove example?

Idk just search up any java networking tutorial. Or byte buffer examples. Just fw byte buffers in a psvm and learn how it’s used

#

ghello my firends

#

final int[] ints = new Random().ints(0, 27).distinct().limit(6).toArray();

#

this line is red underlined

#

what's the problem?

dense drift
#

probably because toArray returns an Object[]

dusty frost
#

😮

broken elbow
#

toIntArray is a thing I believe

dusty frost
#

oh yeah don't you have to pass a new int[] into it

#

or do that

lyric gyro
#

what? xd

dense drift
#

int[]::new

dusty frost
#

yeah that's the one

lyric gyro
#

Identifier expected

wintry grove
#

so pretty much ik what to do, thx @lyric gyro

lyric gyro
wintry grove
#

what

dusty frost
#

oh wtf it used to be

lyric gyro
#

Conclure would never make his own sockets in a mc plugin

wintry grove
#

oh

dusty frost
#

yeah this is @graceful hedge

#

this is starlostdragon

wintry grove
#

I'm not making then into a mc plugin

lyric gyro
#

Lmaoooo

wintry grove
lyric gyro
#

You’re good then

wintry grove
#

kekw

#

now I have a lil problem

#

half of my mind wants to mention the person that made the example I linked on the question

#

but my common sense say no no

lyric gyro
#

What’s your goal even?

wintry grove
#

:help_me:

wintry grove
lyric gyro
dense drift
#

new int[0]

lyric gyro
#

nope

#

oph

#

wait

#

accept friend, i'll send a screen

wintry grove
#

when I want to barry to work it doesnt

#

and when I dont want to it to work it does

#

help me

#

point is that until Tier 2 you cannot send images

neat pierBOT
wintry grove
#

FINALLY

lyric gyro
#

I miss the og star 😞

#

Star 2 ruining his rep

wintry grove
#

I'm not here for that

queen plank
#

I want to import PAPI to my plugin using maven, but I have honestly no clue what I am doing. This is my current pom.xml https://paste.helpch.at/ugeputojeq.xml, it is located under src. To no ones surprise it does not work, and as I said I have no clue what I am doing. No guide or tutorial that I found, gave me much help. Does any one know how to fix it?

queen plank
#

Not that I can see

#

Though is it automatically loaded with the plugin? Or do I have to enable it under onEnable()?

wintry grove
#

ohhh what

queen plank
wintry grove
queen plank
#

Ohh

wintry grove
#

also update to 1.17 lmao

queen plank
#

I know lmao, I just stole the .jar from my server network lmao

#

Though no

#

It prints no errors when building

wintry grove
#

1.- WHAT
2.- weird x100000

queen plank
#

I just realised that it is not a maven project lmao

#

It is a regular jar

wintry grove
#

aaaaaaaaaaaaaargh

queen plank
#

I don't know what I'm doing with this, no one told me. The guys on youtube was like "Create your pom.xml, then it works"

#

lol

wintry grove
#

so I got a string like this "/lmao", how would I remove the / from it?

dense drift
#

d;jdk string#substring

uneven lanternBOT
#
public String substring(int beginIndex)
throws IndexOutOfBoundsException```
Description:

Returns a string that is a substring of this string. The substring begins with the character at the specified index and extends to the end of this string.

Examples:

Parameters:

beginIndex - the beginning index, inclusive.

Throws:

IndexOutOfBoundsException - if beginIndex is negative or larger than the length of this String object.

Returns:

the specified substring.

dense drift
#

String#substring(1)

wintry grove
#

nice, thanks

queen plank
#

Also, eclipse says there is an error with this pom.xml but there are no formatting errors in the file? Only in the package explorer there appears to be an error...

queen plank
#

Ik lol, but I started with it and haven't bothered to change lol

#

Still help me tho? lol

wintry grove
#

Intellij is really useful for coding

queen plank
#

Yeah, I wish I had gone with it. But I have so many projects and stuff I can't be bothered to

formal crane
dense drift
queen plank
#

Can someone please help me, why does this show me errors? There are no errors in the file, but my IDE keeps telling me there is. I just wanna do Java again 😦 https://paste.helpch.at/nixirocohe.xml

queen plank
wintry grove
queen plank
#

It is just red and tells me compiler error when I build it

wintry grove
#

I see no error

queen plank
#

It has a red bit, and an X

#

Aka error

wintry grove
#

oh

#

and what it is?

queen plank
#

Idk

#

That is the problem

queen plank
wintry grove
#

your plugin.yml is wrong

lyric gyro
#

Make sure what jar contain plugin.yml in resource folder

queen plank
lyric gyro
#

show where is your plugin.yml

#

Send screenshot (dm if you can't send image here)

neat pierBOT
lyric gyro
#

Or that, yes

queen plank
lyric gyro
#

It should be here (I'm on phone, can't upload photo in imgur, ill send image on dm)

neat pierBOT
lyric gyro
#

When they break it to a stone block
b.setType(Material.STONE);
Doesnt work
but gets to the next line

#

Any idea?

#

What?

#

do you want people not to be able to destroy the block of stone?

#
    public void onBlockBreak(BlockBreakEvent e) {
        Player player = (Player) e.getPlayer();
        Block b = (Block) e.getBlock();

        if (b.getType() == Material.IRON_ORE) {
            player.getInventory().addItem(new ItemStack(Material.IRON_INGOT));
            b.setType(Material.STONE);
            player.sendMessage(ChatColor.BLUE + "Fields> " + ChatColor.YELLOW + "You have mined 1 Iron Ore");
            if (!(b.getType() == Material.IRON_ORE)) {
                return;
            }
        }
    }
}```
#

Like that

#

e.setCancelled(true);
b.setType..

#

No

#

I just want it to replace the block

#

I like how it adds the item of itemstack

#

Ohh i got it

#

thank you

quick rampart
#

How can I convert Minecraft world time to rt seconds?
time % 1000 * 3600 / 10000?

#

Do I have to remove player onLeave from BossBar via bossBar.removePlayer(p)?

lyric gyro
#
if (b.getType() == Material.IRON_ORE) {
            player.getInventory().addItem(new ItemStack(Material.IRON_INGOT));
            e.setCancelled(true);
            b.setType(Material.STONE);
            player.sendMessage(ChatColor.BLUE + "Fields> " + ChatColor.YELLOW + "You have mined 1 Iron Ore");
            //runable here after this line for 1 minute
            b.setType(Material.Iron_ORE)
            if (!(b.getType() == Material.IRON_ORE)) {
                return;
            }
        }
    }
}```

How do I do a runnable
broken elbow
graceful hedge
dusky harness
#

in PlaceholderExpansion#getPlaceholders, does that have to be in the %identifier_placeholder% format or placeholder?

lyric gyro
#

first

dusky harness
#

ty

lyric gyro
#

i had a really bad time finding that one out

dusky harness
#

👀

lyric gyro
#

literal hours

dusky harness
#

what is the method even used for?

lyric gyro
#

tab completion

dusky harness
#

o

lyric gyro
#

and maybe something else

#

i think there's a cmd to list the available placeholders

hushed badge
#

i think there is for ecloud expansions, idk about internal

lyric gyro
#

Hm?

#

I mean I didn't know about that, and the method documentation says nothing about the format, I was returning the placeholder "value" that comes after the identifier because it seemed sensible

#

That didn't work lol

elfin geode
#

I have a lifesteal plugin and I'm trying to make it so they cant go over 40 hearts.

#

But I don't have a way to do so.

elfin geode
cerulean birch
#

why do interfaces extend other interfaces instead of implements? just curious how that design decision came to be/why it makes sense

dense drift
#

a normal class implements the interface while an interface extends it if I'm not wrong

#

In its most common form, an interface is a group of related methods with empty bodies

cerulean birch
#

yeah ik
classes implement interfaces and extend abstract classes
but interfaces extend other interfaces instead of implementing them

dense drift
#

Because once implemented, the methods of an interface should be overrided, and since on interfaces you can't have implementations, you are enable to implement an interface by another interface

lyric gyro
surreal lynx
dense drift
#

try a normal array

lyric gyro
#

Hello excuse me. Where can I see Deluxe Chat updates after registering my spigot account?

hushed badge
lyric gyro
#

in the past

lyric gyro
hushed badge
#

u will have to update for the database to update then, which has to be done manually
u can check when its updated the /buyercheck command
once its updated u can do /spigot check to get the role

sly osprey
#

any recommendations to use for making a website for my server?

broken elbow
#

Ghost

sly osprey
#

Thanks ill check it out

queen plank
lyric gyro
#
<resource>
    <targetPath>.</targetPath>
    <filtering>true</filtering>
    <directory>helix/src/main/resources/</directory>
    <includes>
        <include>plugin.yml</include>
    </includes>
</resource>

idk much about maven but try removing the targetPath entirely (never seen that one) and remove helix/ from the directory

queen plank
queen plank
lyric gyro
#

mm how are you building the plugin exactly? what's the process you follow to get yourself a jar file?

queen plank
lyric gyro
#

please don't delete the message just to ping me

#

it's annoying and i'll see the message anyway

#

i'm not going anywhere

queen plank
#

Sorry, some ppls just go away for hours cuz I don't ping & want me to ping. But I respect that, won't ping more

lyric gyro
# queen plank Export -> Selecting "helix" -> Finish

you want to build with maven, which that is not doing, that's specific to eclipse and it "ignores" maven, they are two separate processes, you want to stick to one only (ideally maven)
idk eclipse's maven integration but from a terminal/cmd line, inside the project dir, you can run mvn clean package so it actually uses maven and the pom config file

#

googling "eclipse maven" will likely yield a dozen tutorials on how to use its integration properly

high edge
#

Quick suggestion is to switch to IJ since it's a lot easier to understand

queen plank
#

I mean I would, I tried a while ago. But I'm so used to eclipse, idk even how to export with IJ lol

lyric gyro
#

usually you don't use these export features from IDEs

#

you stick with maven and gradle for that

#

and by usually I mean you should never use them lol

#

it's fine for things when you're starting sure

#

but when you need to add libraries, dependencies and all these fancy things, you ditch them and switch to a proper build tool anyone can use and reproduce regardless of IDE

queen plank
#

Yeah I've always been coding bukkit and spigot stuff. This is my first time working with an API and Maven, so yeah...

#

Also, I ran a clean verify for my project, and it is telling me I'm using a JRE instead of a JDK. So Imma try fix that

dark hedge
#

hello I can't link my discord account with spigot because I had already done it in an account that is now banned, can someone help me?

hard wigeon
dark hedge
#

the account is now a "Deleted user" and now has no id

#

The only thing I know is the id of my spigot

steady ingot
#

If anyone was trying to solve the issue I sent, I finally managed to get it solved. Thanks for your help!

formal locust
#

@night ice Hey can u please help me with this

night ice
formal locust
dense drift
#

are you creating a new instance of your plugin with new PluginClass()?

dense drift
#

dont do that

neat pierBOT
lyric gyro
#
import React from "react"
import { BrowserRouter, Route, Switch } from 'react-router-dom'
import HomePage from "./pages/HomePage";
import LightAccessPage from "./pages/LightAccessPage";

function App(){
    return (
        <BrowserRouter>
            <Switch>
                <Route path="/" component={HomePage} exact />
                <Route path="/lap" component={LightAccessPage} exact />
            </Switch>
        </BrowserRouter>
    )
}

export default App``` Why is CSS from HomePage applying to LightAccessPage?
lyric gyro
#

fixed the coloyurs :))

dense drift
#

colOwOrs

lyric gyro
#

yes

#

how fix code

broken elbow
#

idk. I never used react

#

or whatever that is

#

but cool

dense drift
#

is <Route path="/" component={HomePage} exact /> the same as <Route path="/"> <HomePage /> </Route>?

lyric gyro
#

think so

#

Gives the same Output either way

cinder forum
#

Hi guys, I use JavaPlugin#getConfig in many classes which means lot of DI
I want to ask what is best way to design code to don't repeat this in almost every class?

private final Practice plugin;

public Class(Practice plugin) {
    this.plugin = plugin;
}

private void voidMethod(Player player) {
    **FileConfiguration config = plugin.getConfig();**
    //player.sendMessage(config.getString("PATH"));
}
lapis bronze
#

You could make a interface and have the getconfig in it

cinder forum
lapis bronze
#

Yeah thats What i do But i dont really think it matters when your talking about performance

cold ginkgo
#

how can i get deluxemenus

#

and is it work on 1.18?

broken elbow
#

and yes it does work 1.18

lyric gyro
#

Just like yo mama

cold ginkgo
#

thx

cinder forum
#

Okay, I'm dumb, how to get plugin in interface 🤔

night ice
#

I usually do a message class

lapis bronze
#

In your Main plugin instance you can do a static getInstance and retrieve it from the interface

cinder forum
#

well people say making static instance for accessing plugin is bad

lapis bronze
#

Or you could just have a method within the class

#

public Class(Practice plugin) {
    this.plugin = plugin;
}

private void voidMethod(Player player) {
    //player.sendMessage(getConfig.getString("PATH"));
}

    public FileConfiguration getConfig() {
    
        return plugin.getConfig();
    }
    
    
}
cinder forum
night ice
#

Actually calling a reference is not a duplication

cinder forum
#

But it's annoying

night ice
#

Another problem with the current method you using is... In case we change the key of a message in future... We may need to lookup on every class and change it... So it actually creates a havoc there

lapis bronze
#

I think if you want to use a config without calling static interfaces you have to go with the approch with a different config class you can call static like @night ice said

cinder forum
#

alr, thx

night ice
lapis bronze
#

I worded that wrong i meant having a bridge between the config file and the command ,that accesses the config without a static value ,but you can get the bridge static.

night ice
#

ooo..yeah...the ConfigurationHandler in my case

lapis bronze
#

Yeah would prevent any problems that comes with a static instance but ive used static plugin instances before and it has rarely caused any problems. Its bad practice but its easier

night ice
# lapis bronze Yeah would prevent any problems that comes with a static instance but ive used s...

Don't ask me why its bad...i donno too...but, if i can initialize it with needing a member object or atleast a variable for its own...i usually do non-static....

even my utility files are non-static...i just initialize them on JavaPlugin#onEnable() and get a getter from there...

If anybody here is free, i am ready to hear why static are bad... out on the web its all just arguments..didn't find anything reasonable

lapis bronze
#

I remember someone telling me that it can cause memory leaks when sometimes the variable is not initialized and just crash without saving data correctly or handling the onDisable.

#

But i really think its overblown and it would work 99.9% of the time

night ice
lapis bronze
#

Idk i just heard it from someone but idk tbh

night ice
formal locust
#

Hey guys I need help with scoreboard, i want to manage scoreboard lines from config

config.yml-

scoreboard:
title: '&c&lTITLE'
lines:
- 'line 1'
- 'line 2'
- 'line 3'

high edge
#

And?

night ice
#

Hey, need a quick help on bounding box...

34.0 90.0 34.0 -- -6.0 50.0 -6.0

This is the max and min of the bounding box

and its saying this location is not inside the bounding box
x=13.485806371152478,y=70.0,z=15.6606373887297,pitch=0.0,yaw=0.0}

    public boolean isInside(Location location){

        return this.boundingBox.contains(location.getX(), location.getY(),location.getY());
    }
#

IG i found

#

nvm

chrome citrus
#

Does anyone know if there's an easy way to create an API jar from your original jar file? Same structure, but with empty method bodies (returning null, 0, etc.)

tough maple
#

Hi, i must be being really stupid but im having a bit of an issue using the bukkit libraries, im geting an error with the imports but have the spigot 1.18.1 jar file in my libraries, am i forgetting something?
so im getting errors such as

package org.bukkit.command does not exist```
warm steppe
#

how are you importing it?

tough maple
#

in project structure, under Libraries then i select the jar file

lyric gyro
#
.tile:hover{
    border: 2px solid white;
}``` Can anyone explain what in the fuckery is going on here lol
night ice
pulsar ferry
grim oasis
#

blockformevent maybe

#

can't remember how to use the bot thonk

#

oh?

#

it doesn't look deprecated

lyric gyro
#

I mean it sounds like it should work

grim oasis
#

I'm going to presume it's a problem elsewhere in your code

#

Send us any code you got if you can't find the issue

lyric gyro
#

I'd used it in the past for catching concrete formation and it worked, I presume it works fine for obsidian/stone/cobblestone generation too

grim oasis
#

it's how a lot of people customize cobble gens

#

which I feel could be the case here 😂

lyric gyro
#

lmao

grim oasis
#

😮

lyric gyro
#

yeah the event definitely is dispatched for all those 3 cases (obs/cobble/stone)
and other block formation cases too, not just those

dark hedge
#

Can somebody help me? I can't link my spigot profile because I already have it in a "Deleted user" account that has no id

lyric gyro
#

you're in the wrong channel

grim oasis
#

Can you show us where and how?

#

?paste

neat pierBOT
#
FAQ Answer:

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

grim oasis
#

whatever code you have that relates to this event

#

registering it, the new class

#

what mc version you on?

high edge
#

I'm guessing you're missthinking of what this event fires on

grim oasis
#

Ya, somebody asked how you were testing it but removed it

tiny grotto
tiny grotto
grim oasis
#

Yep, always good to verify

#

do you mind sharing the main class and the events class?

high edge
#

I'm having a feeling it's not being registered

lyric gyro
#

yeah it definitely works, I just tested it and it works lol

#

I'mma go ahead and blame it on 1.8

grim oasis
#

yikes the formatting

tiny grotto
#

Yarin, please type /ver ingame or in the console, and send us what you get back.

grim oasis
#

ohh 1.8

high edge
#

Did someone say 1.8

#

burn the heretic

grim oasis
#

I never saw that

#

lmao

high edge
#

craftbukkit???

grim oasis
#

ye

#

blockformevent was in 1.8, but didn't work for cobble yet

#

might not be possible in your version though

#

I wish you good luck

#

version 1.8 was so far right I never even read it 😂

ocean raptor
#

how can i exclude adventure from triumph-gui?

#

im using maven btw

lyric gyro
#

why would you do that ugh

ocean raptor
#

doesn't paper already have it?

lyric gyro
#

ah phew blobsweats okay

#

thought you wanted to get rid of adventure, sin

pure cosmos
#

hey i can’t dm funnycube

lyric gyro
#

ok, @ him in #off-topic I guess and wait for him to respond

ocean raptor
ocean raptor
#

it worked, thanks

pure cosmos
#

i’m not able to dm funnycube…(sorry i didn’t know where to send this)

high edge
#

And?

pure cosmos
wintry grove
#

So how would I go about doing a multi-project gradle config, like:

###Root Project/
  build.gradle.kts
  settings.gradle.kts
  git repo stuff
  Module 1/
    gradle stuff
  Module 2/
    gradle stuff

I think this is posible, so like I can set general repositories and per project set dependencies and make them depend in each other (or so?)

pure crater
#

project(":[module_name]")
Something like
implementation(project(":library"))

#

will allow you to depend on the module :library

#

(that is for gradle kotlin dsl)

#

it is similar for groovy but just different syntax

wintry grove
#

I'll check that

dusky harness
#

how would i get the player's inventory but also get the main hand separately?

cinder forum
#

huh?

proud pebble
#

gethelditemslot, then loop through the itemstack array and remove the item at that slot, something like that

dusky harness
#

¯_(ツ)_/¯

lyric gyro
#

Wdym get it seperately lmao

#

Is there no getItemInHand

#

Just don’t act on that slot when you do shit with your whole inventory

dusky harness
#

d;spigot PlayerInventory#getItemInMainHand

#

um

#

bot?

graceful hedge
#

getItemInHand != getItemInMainHand

#

Or well it is

dusky harness
graceful hedge
#

But the former is gonna get yeeted probablt

dusky harness
graceful hedge
wise steeple
#

How do i check if a block is a mob spawner?

#

Instanceof creature spawner?

graceful hedge
#

BlockState or BlockData

#

Idr which one

wise steeple
#

nvm

#

i figureds it out

manic spindle
hoary scarab
#

I hate when shit like that happens lol. You do the same thing multiple times and after one of those times it magically works.

cobalt sun
#

Hey people

#

I'm planning to make a POS (point of sale) system as a project (Wanna recreate the store's system from where I work for memz)

#

How should I go about it, and with what programming languages/libraries

#

Like I'm thinking node.js with react, but I don't know much about react, and node.js is familiar, but I don't have experience with the libraries in there

#

I kinda wanna do Python but that's mehhh I guess

lyric gyro
#

Hello wondering if anyone can give me a hand when i ran build tools i ran into [WARNING] The requested profile "remapped" could not be activated because it does not exist.
the command i did was java -jar BuildTools.jar --rev 1.18 --remapped any help would be appreciated

rugged bane
#

Make sure you have the latest jar

night ice
#

Anyone know any good api for holograms for 1.18

broken elbow
#

holographic display maybe?

#

or do you want a library that you can build inside your plugin?

night ice
#

need something like non-dependent on others...something like a lib

night ice
broken elbow
#

yeah nah. Idk any. but if you were to go with an external dependency maybe look at decent holograms. is pretty nice.

night ice
#

hmm..most prolly, i won't go external...my friend has a lib which he is currently writing...would wait for that

dusty frost
formal crane
#

how do i order a hashmap from highest value to lowest?

dusty frost
#

hashmaps are unordered, hence the name

#

you can use a linkedhashmap if you want order

#

then it depends on if you're sorting by highest key or value

dusty frost
#

uh

#

do you know what V8 I am referring to

cobalt sun
#

I think

dusty frost
#

not a car engine

#

Node.JS

cobalt sun
#

Ye

#

I got that far

#

But no win xp machines

dusty frost
#

ah you're not actually running it

broken elbow
#

All I do is win!

cobalt sun
#

Its a fun project

dusty frost
#

i mean i guess it comes down to what backend preference you like

#

could be cool to do a pub/sub thing with Redis or similar

cobalt sun
#

Maybe

#

Might just use polling for updates lol

#

Or a ws connection but thats shit

dusty frost
#

i mean if you want lightweight on the actual terminal, you'd want something pretty chill like Redis or Webhooks

#

mmm that would be a fun Rust project actually

#

wonder if LLVM supports compiling for Windows NT

formal crane
cobalt sun
#

Hmm ye

#

What db should i use

#

Thinking between mysql, postgres and mongo

dusty frost
#

never use mysql, use mariadb

#

and mariadb and postgres are relational, mongo is not

#

so that influences your design pretty heavily

cobalt sun
#

Yeah

#

I'm tempted to do mongo

#

Because its easy to use

formal crane
#

my hashmap returns this: string=double, how would i remove everything after the = in a string?

broken elbow
#

d;

#

d;help

#

@wheat carbon ?

wheat carbon
#

who dare'th tag me

#

uh

#

server seems to be down

broken elbow
#

cool

broken elbow
#

or just split by = and get first part

#

whatever you want

red notch
#
java.lang.NullPointerException: Cannot invoke "com.comphenix.protocol.ProtocolManager.addPacketListener(com.comphenix.protocol.events.PacketListener)" because "this.protocolManager" is null

Why does this happen?

I have ProtocolLib both as a depend and as a maven dependency

private ProtocolManager protocolManager;
    public static CaughtIn4K instance;
    @Override
    public void onEnable() {
        instance = this;
        this.protocolManager = ProtocolLibrary.getProtocolManager();
        PacketAdapter packetAdapter = new PacketAdapter(CaughtIn4K.getInstance(),
                ListenerPriority.NORMAL,
                PacketType.Play.Client.CHAT) {
            @Override
            public void onPacketReceiving(PacketEvent event) {
                PacketContainer packet = event.getPacket();
                String message = packet.getStrings().read(0);
                System.out.println(message);
            }
        };
        protocolManager.addPacketListener(packetAdapter);
dusty frost
broken elbow
dusty frost
red notch
#

yeah but why

dusty frost
#

dunno

#

are you depending on ProtocolLib in your plugin.yml?

red notch
#

yes

dusty frost
#

send your pom.xml

#

in a paste please

#

?paste

neat pierBOT
#
FAQ Answer:

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

red notch
dusty frost
#

ah yes

#

see how you have <scope>provided</scope> on Paper

#

put that on ProtocolLib

red notch
#

i expected that to be the issue, though it didnt say that on the protocollib readme

dusty frost
#

yeah you're shading in your own ProtocolLib as of now, so it obviously can't get a manager as it was never registered

#

a good rule of thumb is that you never want to shade other plugins that will exist at runtime

cobalt sun
#

Because its more dynamic which i like

dusty frost
#

i mean meh

#

if you like it i guess

cobalt sun
#

But on the other hand sql is relational

dusty frost
#

yeah PoS sounds like a really good place to be relational

cobalt sun
#

Ye

broken elbow
#

Popos

cobalt sun
#

But i do like mongo a lot

formal crane
#

I am trying to make a hashmap that is orderd by doubles, i am using linkedhashmap rn but it seems to only order it as it was put in to it, how would i make it automaticly order by the value of the doubles in the hashmap?

        al.put("dash", parseDouble(CryptoAPI.getCrypto("dash")));
        al.put("litecoin", parseDouble(CryptoAPI.getCrypto("litecoin")));
        al.put("bitcoin-cash", parseDouble(CryptoAPI.getCrypto("bitcoin-cash")));
        al.put("maker", parseDouble(CryptoAPI.getCrypto("maker")));
        al.put("ethereum", parseDouble(CryptoAPI.getCrypto("ethereum")));```
broken elbow
#

u should use a tree map instead

#

pretty sure that orders by the default ordering of the keys or you can give it a way to order when you make the map.

#

ah. you need it by values

#

nvm

dusty frost
#

i mean, override the put method, have it sort every time?

#

or try to configure a treemap in such a way yeah

broken elbow
#

also. pretty sure you can find an algorithm to sort maps based on values out there. stack overflow must be full of those

dusty frost
#

oh absolutely

formal crane
#

i tried this:

        al.put("dash", parseDouble(CryptoAPI.getCrypto("dash")));
        al.put("litecoin", parseDouble(CryptoAPI.getCrypto("litecoin")));
        al.put("bitcoin-cash", parseDouble(CryptoAPI.getCrypto("bitcoin-cash")));
        al.put("maker", parseDouble(CryptoAPI.getCrypto("maker")));
        al.put("ethereum", parseDouble(CryptoAPI.getCrypto("ethereum")));

        for (String k : al.keySet()) {
            nl.put(Collections.max(al.entrySet(), Map.Entry.comparingByValue()).getKey(), al.get(k));
            al.remove(k);
        }```

But `for (String k : al.keySet())` gives a null error in the console but i wouldnt know why https://paste.helpch.at/apazozudir.rb

Anyone that knows how to fix it?
dusty frost
#

that is not how you do a sorting algorithm

formal crane
#

wouldnt it work?

dusty frost
#

no, you can't edit something while you're iterating over it

formal crane
#

oh too bad :/

#

could i update the list?

#

orsm

dusty frost
#
Map<K,V> topTen =
    map.entrySet().stream()
       .sorted(Map.Entry.comparingByValue(Comparator.reverseOrder()))
       .limit(10)
       .collect(Collectors.toMap(
          Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e1, LinkedHashMap::new));```
#

this is by far your best bet

formal crane
#

but thats top 10

dusty frost
#

change the variable name and remove the limit(10)

formal crane
#

What do i put at the K, V ?

#

i cant find the rigth way to find the key or value

dusty frost
#

uh

#

you're doing like, String and double right?

formal crane
#

yes

cobalt sun
#

I deadass want to do react with node.js

#

But I don't know much react

#

And haven't used node.js as much as other languages

dusty frost
#
LinkedHashMap<String, Double> cryptoCurrencies =
    map.entrySet().stream()
       .sorted(Map.Entry.comparingByValue(Comparator.reverseOrder()))
       .collect(Collectors.toMap(
          Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e1, LinkedHashMap::new));```
#

legit just that

dusty frost
formal crane
#

ty

cobalt sun
#

LOL

#

What would you recommend then

dusty frost
#

for a server backend or a client frontend?

cobalt sun
#

Both

dusty frost
#

Java, C#, Rust, C++

#

for both

#

lol

#

Python, even

#

Flask is pretty cool

#

JS is just fucked man

#

even PHP is better than it now

brittle thunder
#

What

#

PHP

#

Should

#

Be

#

Burnt alive

#

If that makes any sense

dusty frost
#

PHP 7 and Laravel is actually not the worst

cobalt sun
#

Might go flask then lol

brittle thunder
#

🤮

dusty frost
#

I shared your opinion until very recently Yugi

cobalt sun
dusty frost
#

But a friend of mine showed me his Laravel code, and I also looked at Ptero panel, and it's really not that bad

cobalt sun
#

I've worked with php a bit but ehh

#

I don't really like it

dusty frost
#

PHP 5 is still absolute dogshit for sure

graceful hedge
#

Ngl express js is nice

dusty frost
#

But PHP 7 with a nice package manager, kinda cute

cobalt sun
#

Why use php 5 then

graceful hedge
#

And next js

dusty frost
graceful hedge
#

Altho js but yes ts is possible

dusty frost
#

I just kinda hate JS

graceful hedge
#

I mean js is quite fine imo

dusty frost
#

I mean no, not really actually imo

brittle thunder
cobalt sun
brittle thunder
dusty frost
#

Go and Laravel

#

kinda cute together

brittle thunder
#

Eh

#

Im not very hopeful for php against js

#

Php was a mistake

graceful hedge
#

Star

brittle thunder
#

So was js, but lesser

graceful hedge
#

Why u no like js

dusty frost
#

what's there to like

#

it's a shitty language that people molded into a monstrosity because it was the only one all the browsers supported

graceful hedge
#

The weak typing isn’t that bad

dusty frost
#

it has the worst typing system, it has insane coersion

#

it really is

cobalt sun
#

I might go flask then

dusty frost
#

like, it REALLY is

cobalt sun
#

But for frontend

#

I deadass wanna do react but idk react much

#

So that's shit

graceful hedge
#

I mean I can’t relate to your hatred towards weak typing

brittle thunder
#

Flutter

graceful hedge
#

Fluttee

dusty frost
#

I hate working with Python and JS for that reason alone

brittle thunder
#

React/Kotlin

cobalt sun
#

Vue?

graceful hedge
#

I mean python does kinda have some explicit typing

dusty frost
#

Python isn't usually so bad, but doing numpy shit is a pain

graceful hedge
#

Like you have to convert shit if you want to concatenate altho string interpolation

dusty frost
#

Just really makes you miss the nicety of Java and its methods

graceful hedge
cobalt sun
#

I like Python

dusty frost
#

I dunno, I'm kinda ironic because I am using Django both at my work and for a server I work with out of my own volition

#

But that's just cause I don't like any of the other MVC offerings

#

I do still hate the weak typing

cobalt sun
#

I never understood django

#

I feel its hard to learn on your own

#

Like I"m sure if someone explains shit to me I'd understand

wheat carbon
#

I never understood who thought it'd be a good idea to write a library in python for the tasks django is suited for - why python

broken elbow
#

I never understood how you people learn so many languages.

dusty frost
#

and lots of support and stuff

wheat carbon
#

it is really easy to jump off a cliff and die

dusty frost
#

i dunno, if given time, I'd probably use a different framework

#

but this was kind of a rushed job and I needed something I already knew

wheat carbon
#

should I do that though

#

no

#

should people use python for stuff like this?

#

god no

graceful hedge
#

I mean python is fine imo

dusty frost
#

I mean python isn't that bad for it actually

graceful hedge
#

Yuh

dusty frost
#

it really doesn't do that much

graceful hedge
#

Like sure, weak typing can be a pain in the ass

dusty frost
#

most of the processing is on the actual server, so like uWSGI and Nginx

graceful hedge
#

But python has some nice features fr

dusty frost
#

yeah it is definitely my go to scripting language

#

very quick and easy

#

and although the weak typing is a pain a lot of the time, sometimes you just kinda mash things together in a super weird way that would totally not work in any other language, and it just works

graceful hedge
#

Ya

cobalt sun
#

Honestly its hard to choose a language/library now

#

😂

#

I'm defo not gonna use django

#

Probably flask because its basic as fuck

pulsar ferry
#

I've recently been using Next and it's amazing

graceful hedge
#

Yuh it’s like walking on beautiful clouds

pulsar ferry
#

The new version's compile time is insane thanks to Rust

slim vortex
#

nuxt is nice too but damn next is good

dark hedge
#

Can somebody help me? I can't link my spigot profile because I already have it in a "Deleted user" account that has no id

clever ridge
#
public void hideUs(Player player) {
        String name = "us";
        org.bukkit.scoreboard.Scoreboard scoreboard = Bukkit.getServer().getScoreboardManager().getMainScoreboard();
        team = scoreboard.getTeam(name) == null ? scoreboard.registerNewTeam(name) : scoreboard.getTeam(name);
        team.setOption(Option.NAME_TAG_VISIBILITY, OptionStatus.NEVER);
        team.addEntry(player.getName());
    }
#

Where... DId... I... Mess?!

#

(It doest does what I "code")

clever ridge
lyric gyro
#

you are allowed to swear btw

clever ridge
#

It just makes me angry that there are no errors, and the code doesn't work. I even tried to do by searching on YouTube, and even from HelpChat (yes, we are talking about this channel), and no valid code.

lyric gyro
#

Life of development for you

clever ridge
#

actually sucks

#

.-.

lyric gyro
#

you know what sucks?

#

a vacuum

#

Your mouth

#

...

#

Hahahaaaa gotchu

clever ridge
#

W... What...?

lyric gyro
clever ridge
#

Da.

#

Because I am lazy to do player nametags be colored.

#

And that's how we agreed with the other dev. c.c

#

(yes, we are hiding nametags from every server)

#

(not including team-moded minigames like BedWars or KitPvP (wait thats not a minigame xd))

lyric gyro
broken elbow
#

yo. can someone link me the essentials javadocs? I remember they existed but can't remember where to find them. googling doesn't help

lyric gyro
#

Just delete it blitz

turbid jewel
#

This is not working for some reason. Some classes aren't showing up

I'm missing net.minecraft.world.level.BaseSpawner

broken elbow
clever ridge
clever ridge
#

It is unnecessary

broken elbow
#

ah. very helpful.

clever ridge
#

But srs

#

I do not use Essentials since like...

#

2 years

broken elbow
#

good for you

clever ridge
#

It adds many unnecessary commands for me, so I never use it.

lyric gyro
clever ridge
#

The actual problem: the team is never registered, and I do not know why

#

And I am stuck with this like... 1-2 hours...

#

And ik its not that many, but its almost midnight

#

And ofc I need to go to school tomorrow.

#

team = scoreboard.getTeam(name) == null ? scoreboard.registerNewTeam(name) : scoreboard.getTeam(name); - this is the line that should register the team, but it doesn't works for some reaosn.

#

Very nice. I made a useless crap.

#

To be honest: it doesn't matter how I name the team. It is just never created.

#

c.c

#

Even tho I call the event somewhrere else in the PlayerJoinEvent void

lyric gyro
#

hmm

clever ridge
#

I realised the scoreboard is not even edited.

#

The lobby scoreboard and the nameplate hider is in the same class, and the scoreboard was not edited.

#

I swear I am gonna explode if the restart was required.

lyric gyro
clever ridge
#

So I restarted the server.

lyric gyro
#

reload 🤮

clever ridge
#

If there are changes

#

I will kill myself

#

For sure

clever ridge
# lyric gyro reload 🤮

It is an easier way to do, since the server is hosted on a local machine atm, and there are only two plugins. The core I am messing up with, and an API, that is a Data Center for the whole network.

#

c.c

#

There are no changes even after the restart. WTF is going on...?

lyric gyro
#

I mean a restart takes like 4 seconds being generously slow

#

unless you're using spigot and not paper which uh yeah consider using paper

clever ridge
#

Okay I just realized that my IDE cannot even export JARs due to something being missing, so it is time to reinstall my IDE.

clever ridge
lyric gyro
#

🥴

clever ridge
#

But as you wish.

#

I actually hate this slow speed.

#

Guess I will also need to get a better processor.

lyric gyro
#

no idea, never messed with player nametags

ashen rover
#

👍

clever ridge
#

I realized what the error was...

#

The user...

#

...of Windows...

#

Learn a lesson: reinstalling Windows never makes you the true abality to rename yourself.

#

ALWAYS use the same name you used before..

sharp cove
#

Why wont the border-color work?

#

Is it because it is a flexbox?

clever ridge
#

Anyway, the error is fixed.

broken elbow
#

:kek:

lethal plaza
#

How can i return or use to return /test command [name] ? --> [name] thats what i need to return

clever ridge
#

Fun fact: I lost an entire project due to Ubuntu's stupidness of being a useless terminal

#

The project was never started again. :p

dusty frost
#

Oh well yeah Ubuntu isn't the greatest

#

But what does "being a stupid terminal" mean lol

slim vortex
#

Ubuntu is godlike

dusty frost
#

Absolutely incorrect

broken elbow
dusty frost
#

There is nothing good about snap packages

slim vortex
#

depends exactly which sub distro

broken elbow
#

and him not knowing how to do it

slim vortex
#

ok illgive you that

#

snap sucks

#

but as a daily driver for home desktop its good

dusty frost
#

And besides, why use Ubuntu when you could use Arch?

slim vortex
#

Arch is hard to install

dusty frost
#

Not the derivatives

slim vortex
#

like which

dusty frost
#

EndeavourOS, Manjaro

#

Both extremely easy graphical installers and they come with some nice defaults like a pretty desktop environment and Yay

#

Yay is just really good, I don't think I could go back to apt for a daily driver

broken elbow
#

yay!!!

dusty frost
#

Exactly!

broken elbow
#

idk. I am on popos

dusty frost
#

Yeah popos is pretty cool, they're even looking at moving away from Ubuntu as a base

broken elbow
#

are they? idk. I know that the popshop is recommendig flatpaks over .deb. idk if that's good or not but I've noticed those are usually more updated

lyric gyro
#

popshop lol

dusty frost
#

Yeah they're making their own desktop environment and everything

#

If Pop! Became an Arch derivative I would very much consider using it, just for the nice look and feel

#

Though I am pretty comfy with my XFCE setup so maybe not lol

broken elbow
#

man. I love pop xD

lethal plaza
#

why linux is better for programming? 😄

broken elbow
#

pretty sure you'll find tons of videos on youtube giving you different opinions. I don't just use it for programming. I use it as a daily driver

#

some gaming as well

#

windows is staying for the few games I Can't run on linux at all

lyric gyro
#

I’d just like to interject for a moment.

#

What you’re referring to as Linux, is in fact, GNU/Linux, or as I’ve recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.

Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called Linux, and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.

There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine’s resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called Linux distributions are really distributions of GNU/Linux!

dusty frost
#

And that's changing quickly! BattlEye support is already starting!

broken elbow
#

we don't give a shit emily!

lethal plaza
#

Whats your opinion on linux vs windows why linux is for you?

broken elbow
dusty frost
#

Oh lol

broken elbow
clever ridge
broken elbow
#

without crashing

clever ridge
#

No matter the time I waited, login panel never revealed itself.

#

And the extreme amount of crashing was already ####ing annoying

dusty frost
clever ridge
#

It crashed like every hour or half-hour.

dusty frost
broken elbow
#

yeah idk what you installed lol. xD you probably did some stuff thinking you know what you're doing and just messed shit up

clever ridge
#

Who needs an OS thats crashes that common?!

broken elbow
#

yeah exactly! who needs windows

dusty frost
broken elbow
#

my windows used to crash. like I couldn't even open an app or a game on it

#

kek

dusty frost
#

Like you must be doing some real scuffed shit

lethal plaza
broken elbow
dusty frost
broken elbow
#

star did you see that pop is on rasbery pi now!

dusty frost
#

Lots of command line stuff is vital for programmers

clever ridge
dusty frost
lethal plaza
dusty frost
clever ridge
#

The ones the OS required

broken elbow
dusty frost
#

Like you must've done something pretty bad to fuck your DE that hard

clever ridge
#

....by update

#

And graphic drivers

#

Cause I have a GT 220

dusty frost
#

Ah

clever ridge
#

Ehich is anpiece of shi

#

Lol

dusty frost
#

You were using the shitty Noevaeu drivers

lyric gyro
#

hello star i love you

clever ridge
#

Probably yes

clever ridge
#

Probably the problem is woth my processor.

#

It just... Sucks...

potent bane
#

hey.

lyric gyro
#

HEY

#

Welcome

#

I'm Dr. Samuel Hayden, I'm the head of this facility

potent bane
#

nice.

#

how are you doing?

wise steeple
#

so im still a little new to the idea of an API for my plugin. But if i want to make an API for my plugin while hiding all the actual plugin code, how would that be done?

#

I assume you would just not include the stuff you dont want people seeing, but then wouldnt it just give errors since its trying to use code it doesnt have access to?

lyric gyro
#

Hi everyone I need help please

#

material: head-extended_clip
slot: 12
display_name: '&r'

#

How Can I get a texture

#

of another page example:

wise steeple
#

item.setCustomModelData?

#

idk if thats what your looking for

lyric gyro
#

https: //minesk... .com /2b8f1e7ed5f44fdbba44a3601510c167"}"]}}

#

how Can I get that's skull

wise steeple
#

have you tried google?

lyric gyro
#

So rry for my english

#

that's link

wise steeple
#

Look up "How to set custom model data for minecraft heads with spigot via URL"

lyric gyro
#

@wise steeple

#

Can u help me?

#

is this deluxemenus?

wise steeple
lyric gyro
wise steeple
#

Is there any reason why i shouldnt have this in the top of my main class?
public final NamespacedKey entityTypeKey = new NamespacedKey(this, "bs.entityType");

#

Like, im gonna use that key multiple times

#

So i wanna make it, and store it somewhere

#

Any reason why i shouoldnt store it in the main class

lyric gyro
#

no particular reason ig

wise steeple
#

Cool, thanks

#

I get why you shouldnt do it with other things

dusty frost
#

I mean, public mutable things are always not what you want to see

lyric gyro
#

how is it mutable

dusky harness
#

uhh how come theres no RED_STAINED_CLAY but there is RED_SHULKER_BOX, RED_WOOL, etc

#

or am i missing something?

lyric gyro
#

you're missing 1.13+ API

dusky harness
#

im using 1.17.1 paper

#

😌

#

the server owner upgraded because i showed them viabackwards/rewind

#

lol

lyric gyro
#

oh wait i misread your question

#

there is no such thing as stained clay no more

#

it's terracotta

dusky harness
#

no more
😭

#

oh

#

what

#

really

lyric gyro
#

lmao

robust crow
#

smh

dusky harness
#

um

#

how do i get the java Byte class in kotlin?

#

specifically Class<Byte>

lyric gyro
#

Byte or byte?

dusky harness
#

Byte

#

Byte::class.java just gives Byte.TYPE which i think is the primitive one

lyric gyro
#

it is

#

java.lang.Byte::class.java

dusky harness
#

ty

#

no tab completion but it works 🥲

tight junco
#

its terracotta

#

btw

dusky harness
#

AA

#

since when

#

was clay

#

the same thing

#

as

#

terracotta

#

tho

tight junco
#

for a while

#

maybe 1.13

#

1.14

dusky harness
#

interesting

lyric gyro
#

oh yeah

#

the colorful update

#

"world of color update" lol

hoary scarab
wise steeple
wise steeple
slim vortex
#

Update gradle to the latest, change the gradle sdk to the latest in your project settings

dusky harness
#

make sure intellij is set to use the gradle version in gradle-wrapper.properties

#

(by default it's set to use gradle wrapper version or smth like that - idk what that means but its easier to manage from gradle-wrapper.properties)

wise steeple
dusky harness
#

because gradle good

wise steeple
#

Ok

#

Anyway

#

all the project stuff is 16

#

should i install 17 and try form there?

#

welp

#

it still doesnt work

slim vortex
#

get gradle

wise steeple
#

im using java 17 on everything

#

and its stioll giving me the same erro

slim vortex
#

gradle

wise steeple
#

no

#

😠

#

everything uses maven

#

ive seen like 3 things that use gradle

#

and i tried shading in gradle and it was way too confusing

lyric gyro
#

it's like 2 lines lol

#

like, literally 2 lines

dusky harness
#

|| 3 if you want relocation 🙃 ||

#

but still very very little compared to maven

lyric gyro
dusky harness
#

btw

if i want to sort a list with each of the items in the list having a boolean variable, and the true ones come first before the false?
|| xy: showing owned kits before unowned kits ||

lyric gyro
#

what

#

how is that a question

dusky harness
#

well

#

i want to know if theres a simple solution

wise steeple
dusky harness
#

the only thing i can think of is having another loop to make the new list

#

but im wondering if theres something that can make it easier

wise steeple
wheat carbon
#

lel

wise steeple
#

¯_(ツ)_/¯

dusky harness
lyric gyro
#

sigh there is no such thing as "gradle repo"

wise steeple
#

Like

dusky harness
#

gradle uses maven repositories

#

there are no such things as gradle repos/dependencies

wise steeple
#

I didnt know the specific wordiing to use

#

You know what i mean tho

lyric gyro
wheat carbon
#

silent would you like to learn why gradle is better than maven?

wheat carbon
dusky harness
#

🥲

wheat carbon
#

also would just like to quickly mention that gradle is widely used in the larger java community, it's just not overly popular in the spigot community (although it is gaining popularity with things like paper switching to it)

lyric gyro
#

why is gson on both maven and gradle confused_cat what kind of monster is this

#

This is not an officially supported Google product
think

wise steeple
#

so unrelated to all that

#

i have a problem

#
[19:56:14] [Server thread/ERROR]: Could not load 'plugins\BetterSpawners-1.0-SNAPSHOT-shaded.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:170) ~[server.jar:3096a-Spigot-9fb885e-af1a232]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:144) ~[server.jar:3096a-Spigot-9fb885e-af1a232]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.loadPlugins(CraftServer.java:381) ~[server.jar:3096a-Spigot-9fb885e-af1a232]
        at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:224) ~[server.jar:3096a-Spigot-9fb885e-af1a232]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:928) ~[server.jar:3096a-Spigot-9fb885e-af1a232]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$0(MinecraftServer.java:273) ~[server.jar:3096a-Spigot-9fb885e-af1a232]
        at java.lang.Thread.run(Thread.java:831) [?:?]
Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
        ... 7 more
#

plugin.yml isnt being put in the right spot

lyric gyro
#

show build file

wise steeple
#

so pom?

#

im assuming by build file you meant build.gradle?

#

but im still using maven for the moment

lyric gyro
#

yes

wise steeple
#

ok

#

?paste

neat pierBOT
#
FAQ Answer:

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

wise steeple
lyric gyro
wheat carbon
#

made a little comparison for you silent

#

24 lines vs 70

#

that's an identical config to yours

wise steeple
#

lol

#

wow

wheat carbon
#

anyway you might have to configure a resource dir for maven manually or something

#

try just doing a clean build first

wise steeple
#

ok

wise steeple
wheat carbon
#

u ran the clean task?

wise steeple
#

yea

wise steeple
wheat carbon
#

yes lol

#

oh

#

that didn't answer your question

#

yes transfer to gradle

wise steeple
#

lol

#

could you help me?

wheat carbon
#

yes

wise steeple
#

Last time i tried it didnt work

wheat carbon
#

you need to make me a promise though

#

don't be stupid

wise steeple
#

Elaborate.. I am a very stupid person

wheat carbon
#

if you be stupid my help won't be effective

#

so you can't be stupid

#

let's try and transfer and we'll see

wise steeple
#

lol alright