#help-development

1 messages · Page 370 of 1

icy beacon
#

thankfully spigot won't do anything to non-harassment fake reviews

#

I was getting worried that this plugin was about to be rated fairly

chrome beacon
#

Wait why did I write here... I wanted to be in verified

#

;/

icy beacon
#

lol

frank kettle
#

PlayerProfile textures returns a way bigger url link for them.

#

how do people put textures on textures.minecraft?

chrome beacon
chrome beacon
frank kettle
#

how to access them?

chrome beacon
#

access what?

frank kettle
frank kettle
chrome beacon
#

You can use the Minecraft launcher for that

frank kettle
chrome beacon
#

Yeah like that create a skin

frank kettle
#

but where do i get the link for it?

frank kettle
#

oh so u decode the base64 huge value

chrome beacon
#

For the link yeah

frank kettle
#

it also uses sessionserver.mojang

#

on the wiki it says this is unavailable

#

🤔

chrome beacon
frank kettle
#

yeah worked fine

#

thanks a lot

arctic moth
#

what's the most low-level language that has an api for generating schematics?

icy beacon
#

how can i simplify this stuff?

#

i think something like permissions: [ uks.help: {}, uks.reload: {} ] but that seems awkward for yaml

arctic moth
icy beacon
#

do you mean children: []?

arctic moth
icy beacon
#

this is from plugin.yml wiki

permissions:
  test.foo:
    description: Allows foo command
    default: op
  test.*:
    description: Wildcard permission
    default: op
    children:
      test.foo: true
arctic moth
#
uks.*:
  default: op
  children:
    ...
arctic moth
icy beacon
#

yeah ik about wildcard perms, but i'm not sure if not registering the permission in the first place would work

ivory depot
#
        hikari = new HikariDataSource();
        hikari.setDataSourceClassName("com.mysql.jdbc.jdbc2.optional.MysqlDataSource");
        hikari.addDataSourceProperty("serverName", ip);
        hikari.addDataSourceProperty("port", port);
        hikari.addDataSourceProperty("databaseName", database);
        hikari.addDataSourceProperty("user", username);
        hikari.addDataSourceProperty("password", password);```  Im trying to make mysql connection using hikari,  ```    implementation 'mysql:mysql-connector-java:8.0.28'``` i got this  in build.gradle, and when my plugin is staring i got error https://pastebin.com/F8vzthCS
#

i know that i must change daraSourceClassName, but i dont know how

arctic moth
ivory depot
# tardy delta

using this? String jdbcUrl = "jdbc:mysql://mysql.db.server:3306/my_database?useSSL=false&serverTimezone=UTC"

tardy delta
#

ig so

#

dont ask me about the exact format

dry yacht
#

Lol, are you trying to write an operating system? 😂

tardy delta
#

hes doing communication with the aliens

mint flare
#

Hello ! I saw that CommandSender can have many types.
Do someone know what's happening when we use the sendMessage method on the sender (CommandSender type) in the case where the sender is the Console or a Command Block ?

#

Yes but in which way ? I don't really see how you can send a message to a block x)

hazy parrot
#

Why don't you try and see

icy beacon
#

?tas

undone axleBOT
icy beacon
#

if you send a message to console afaik it's just gonna pop up in the console

#

not sure about command blocks

#

but probably the output field

#

yeah i just clarified the console :p

mint flare
thorn crypt
#

Hey i'm trying to check the name of a GUI but I can't figure it out. I was using getTitle() but it is deprecated, what can I use instead ?

I tried title() but I can't figure how to check just the name of it?

I tried this

if (invView.title().contains(Component.text("§cMenu des améliorations")) || invView.title().contains(Component.text("§cCookie Clicker"))) {

But it doesn't work

thorn crypt
#

I know i'm soryy, but when I tried to join paper it says that invite are disabled 🥲

eternal oxide
#

Not our problem

#

If you use Spigot you get help here.

thorn crypt
#

Okk

icy beacon
#

they are rather sensitive i must say

thorn crypt
kind hatch
#

Disabled or expired?

eternal oxide
#

Why are you coding for paper and not Spigot?

#

Spigot is teh root. Everything which works on Spigot works on Paper

thorn crypt
icy beacon
#

or craftbukkit

#

i still confuse the two

thorn crypt
icy beacon
#

well the server owner probably won't notice 😉

#

if you code against spigot

eternal oxide
#

mostly 🙂

kind hatch
#

^

thorn crypt
#

right, last time I were on they discord I saw that lol

icy beacon
#

read a couple messages

#

never coming back lol

thorn crypt
icy beacon
#

it's sad that such a good server core has such a poor community

eternal night
thorn crypt
#

How did you joined it wtf, for me it says that invite are disabled on this server

icy beacon
kind hatch
#

You're probably banned.

icy beacon
#

are you sure you're using .gg/p*permc

kind hatch
#

I doubt you're in 100 servers.

thorn crypt
#

I don't see why I would be banned 🥲
And the message is different from a "ban message" saying "This user is banned from this guild"

thorn crypt
kind hatch
icy beacon
#

you were banned in advance

#

just in case you were using an outdated version

#

they are always a step ahead and have foreseen that

thorn crypt
#

Ok i'm not banned, just my pc won't join it '-'
I just joined with my phone bruh

kind hatch
#

Are you actually in 100 servers then?!?! lol

#

Or do you just have an old link?

thorn crypt
rapid aspen
#

how can i make so blocks dont drop?

thorn crypt
#

Anyway, thanks for helping, I gotta see a toxic community now 🥲

thorn crypt
rapid aspen
#

i just need to do: event.setCancelled(true);

eternal oxide
#

🙂

rapid aspen
#

ok thx

icy beacon
#

wait

#

do you refer to BlockDropItemEvent or BlockPhysicsEvent

#

"blocks don't drop" is a bit ambiguous 😄

kind hatch
#

BlockPhysics doesn't make sense in this case.

#

We assumed the items.

#

As it's likely to be more common than falling blocks.

icy beacon
#

tbh when i've read the message i thought he was talking about sand and stuff

#

but sure

rapid aspen
#

yes its items

icy beacon
#

alrighty

hazy warren
#

Trying to fix bugs in plugin for some guy, but he is unable to give me all the dependencies for compilation what should I do

eternal oxide
#

Stop helping him

hazy warren
#

I am in desperate need of some vouches to help me get started

eternal oxide
#

nah, give up at the first hurdle, much easier

hazy warren
#

Should I just write everything out and pray it works without testing

eternal oxide
#

no

#

If he has the dependencies he needs to provide them

#

You won't even be able to compile without the deps

ivory sleet
#

The guy you’re working for is a potato, sorry to tell you, but that’s the least he should he able to provide u with

hazy warren
#

This is upsetting news

ivory sleet
#

It could be as simple as that he just gives you what you need :>

hushed cargo
#

Hoping someone can help me, I'm editing the plugin config (with getConfig(), and config.set(...)) and whenever I run the saveConfig() I get an error in console:
org.yaml.snakeyaml.error.YAMLException: No JavaBean properties found in net.kyori.adventure.text.TextComponentImpl
This doesn't happen when running it in the onEnable method though. Anyone have any insight why?

ivory sleet
#

may I ask, what are you passing into set(…)

remote swallow
#

are you trying to save a kyori component

hushed cargo
#

Just to try to debug, it's as simple as config.set("player.name", joinedP.name());

remote swallow
#

yeah thats a compoenent

#

component

#

i doubt its config serializable

hushed cargo
#

🤦‍♂️

remote swallow
#

you probably want to use .getName() or .toString() .name

ivory sleet
#

You could probably just use mini message or a normal adventure serializer

hushed cargo
#

Well that took a very long time to figure out thanks for your help!

balmy valve
#

Anyone know I how in a EntityShootBowEvent I can tell if the arrow was a multishot arrow?

#

it is

#

I was asking if there is a way from the event or the arrow entity im given to tell if the arrow itself itself is a multishot arrow

pseudo hazel
#

is there a reason to use the bukkit Consumer over the java one?

chrome beacon
#

No

pseudo hazel
#

why does it exist

#

is it like a legacy thing?

chrome beacon
#

It's older than the Java one I believe

noble juniper
#

how split a string by your text position, example: String type = "abcdefg";
i want a String[] { a, b, c, d, e, f, g }

or abc123, return { a, b, c, 1, 2, 3}.; ?

pseudo hazel
pseudo hazel
noble juniper
#

hm ok

sterile token
#

Any better alternative for working with ConfigurationSerializable, rather using my genrics class?

tawny remnant
lost matrix
sterile token
#

Specific talking about that if i havent self expalined

lost matrix
#

You can just cast your list and Map right there...

sterile token
#

yeah, but isnt unsafe doing unchecked casting?

tardy delta
#

why arent you passing in a fileconfig

#

doesnt really matter hmm

sterile token
#

Also its really annoying to havign your IDE yelling at you about unchecked casting

#

It hurts my eyes a lot tho

lost matrix
#

Same for createList

sterile token
lost matrix
#

Why are you always casting to Map<String, String>?
Did you test your methods? Because this looks like it shouldnt work

sterile token
#

Wait

#

1m let me check

onyx fjord
#

does spigot api have a way to check if item is special? special as in has a pink name (nether star for example)

ivory sleet
#

nope iirc

lost matrix
#

Do you want to check if the item is a specific special item or do you want to check if its a non-vanilla item

ivory sleet
#

u’d have to nms the item rarity

onyx fjord
#

at this point i forgot how to use reflection

ivory sleet
#

Just add nms to ur classpath :>

onyx fjord
#

NMS ❌

ivory sleet
onyx fjord
#

i guess i can just hardcode the list

#

not gonna lie i think its so halfass done

ivory sleet
#

Its ass

#

Internally still uses an enum

#

So we cant add new rarities

onyx fjord
#

how the fuck is dragons breath uncommon but netherite shit common

ivory sleet
#

Yea

#

Mojang pulled a lottery

onyx fjord
#

end crystal muh rare

#

(they forgot about spawner eggs, they arent common)

ivory sleet
#

Maybe the name’s just colored

#

But possibly ye

#

Code review?

#

I would probably use implicit else/guard clauses

lost matrix
#

Dont lie to us. You have been here for years my guy

ivory sleet
#

The name does seem familiar

lost matrix
#
        if (!(cs instanceof Player player)) {
          return true;
        }

        float speed = (float) pl.getConfig().getDouble("flight-speed");
        boolean flight = pl.getConfig().getBoolean("flight-enabled");

        if (!flight) {
          return true;
        }

        boolean isFlying = !(player.isFlying() || player.getAllowFlight());
        player.setAllowFlight(isFlying);
        player.setFlying(isFlying);
        player.setFlySpeed(speed);
        player.sendMessage(isFlying ? "§6You are now flying" : "§6You are no longer flying");
        return true;
opal juniper
#

no guys, he only joined feb 1st!!

ivory sleet
#

Also, I would avoid the variable (name) pl for 2 reasons
1 the variable is a field thus belongs to a big scope therefore the name should be informative to the rest of the instance methods, constructors etc
2 the variable name is not descriptive

Also you might wanna pass a FileConfiguration rather than Plugin since you only seem to be using the config from your plugin.

#

That’s not what I meant

lost matrix
#

I would even go one step further and deserialize the whole FileConfiguration in a proper class
to pass around.

ivory sleet
#

^

#

JavaPlugin offers ::getConfig()
getConfig() offers FileConfiguration
if you only use JavaPlugin::getConfig (in said class), then it might be proven smarter to just pass the value of JavaPlugin::getConfig to your constructor.

#

But what smile meant is that you completely get rid of any pl.getConfig() calls

#

Instead you create a new class that represents your configuration more accurately and pass an instance of that to the class

lost matrix
ivory sleet
#

Yeah, anyway if you’re interested this goes under Inversion of Control principle, Dependency Inversion principle and general decoupling

ivory sleet
#

Thus far not allowed to change it

#

:>

lost matrix
#

I see cPES_Wink

ivory sleet
#

Nice having you back here my gradle #1 fan

lost matrix
#

oof

ivory sleet
#

(:

remote swallow
ivory sleet
#

Ye, with the new update its even more goated

remote swallow
#

what was the new update

ivory sleet
remote swallow
#

gradle 8 is out

#

damn

ivory sleet
sterile token
#

hahaha i still make my stomach hurt laughthing about that meme

tardy delta
#

tf is graven

#

hmm yes spotify broken

hushed spindle
#

is there really no method to cause a block to be broken by a player without using nms? feels very hacky to be calling blockbreak events and blockdropitemevents just to get it to play nice with other plugins

#

breakBlock() doesn't even call a blockdropitemevent

eternal oxide
#

it probablky doesn;t as it doesn't trigger a break event

lost matrix
#

I was talking about Player#breakBlock(Block)

#

And this one should fire BlockBreak and BlockDropItem events

hushed spindle
#

damn i really ought to check documentation some more huh

eternal oxide
#

I have a feeling it doesn't

hushed spindle
#

yeah i was referring to Block#breakNaturally()

eternal oxide
#

oh

hushed spindle
#

my bad

eternal oxide
#

JD says it does

#

yeah breakNaturally was my mistake too 🙂

sterile token
#

Any recomendations about creating a custom menu type which allows you to set items into it, and then save them into the positions they are?

#

Im planing to add the type buil it into my menu api

thorn crypt
#

Someone know how can I put in a inventory a item that is negative or zero ? Like this :

lost matrix
#

I think this doesnt work anymore. Illegal item amounts will result in the item being removed from the inventory.
What version?

thorn crypt
#

1.19.3

onyx fjord
#

are there any solutions to "patching jars"? Basically applying some kind of patch (like git does) but to a compiled jar executable

lost matrix
thorn crypt
#

Okk

onyx fjord
#

i guess one way would be to decompile, apply a patch and recompile

#

thats what spigot does to nms right?

lost matrix
onyx fjord
#

what about my option 2?

#

i know that you can do changes at runtime, but its not good for my case as changes are pretty large

quaint mantle
#

Anyone have any tips for adding more abstract and implementation classes to my plugin?

lost matrix
lost matrix
quaint mantle
#

PvP teams claims ect just not sure if it makes sense for stuff like a TeamsService to be abstract since there would only be one implementation

#

But I guess stuff like Chunk interface only has 1 implementation right

hazy parrot
#

Chunk have 1 impl because its api

lost matrix
#

Because its an API. Everything in spigot just has one implementation. But one implementation per version.

#

You need to consider the trade offs

quaint mantle
#

So would it make sense to make team service an interface?

lost matrix
#

Do you really need to build abstraction for something that will never be reused?

quaint mantle
#

JSONTeamService MongoTeamService

lost matrix
quaint mantle
#

I think would be the implementations

lost matrix
#

Well then it would make sense

#

So abstraction can be helpful if you didnt decide how exactly you want to implement something.
Only the general idea of what it should be able to do.

dawn plover
#

i am trying to build a project but it cant find the right api jar (because it doesnt exist)
i have found the problem (underlined in red) but i am not able to find any type of config where i would be able to change this

so its searching for the api from 2023 jan 21
but the oldest thats available is 2023 feb 10

lost matrix
#

The spigot api does not need a BuildTools run

lost matrix
#

Also add build --refresh-dependencies to your build run

sterile token
#

I need some recomendations about creating a custom class which will track all the sub menus opened by a player and also the current inventory open, how would you do it?

smoky oak
#

recursion

#

like in configurationsection

sterile token
#

Can i get an example?

#

So i far created something like a MenuChain

smoky oak
#

make one class thats called openMenu which has a container or what have you representing the menu, and have that point back to whatever opened it

sterile token
#

Something like this?

smoky oak
#

i dont think you need a treeset

sterile token
#

right

#

Because i need to track the order

smoky oak
#

no?

#

just track whatever opened the menu

sterile token
#

Because my goal is to be able to back from each sub menu

#

Do i explain?

smoky oak
#

i know what you mean

#

1sec

sterile token
#

I wil lmake a diagram

smoky oak
#

let me write man

sterile token
#

ok

#

So i wait your answer and then compare to what i want to do

smoky oak
#
class MenuChain{
  final MenuChain opener;
  
  public MenuChain(Object MenuConfiguration){
    opener = null;
    popularizeMenu();
    openMenu();
  }
  public MenuChain(Object MenuConfiguration, MenuChain openedFrom){
    opener = openedFrom;
    popularizeMenu();
    openMenu();
  }
  
  public void openOther(Object MenuConfiguration){
    closeMenu();
    new MenuChain(MenuConfiguration, this);
  }

  public void closeThis(){
    closeMenu();
    if(!(opener == null))
      opener.openMenu();
  }

  popularizeMenu(){...}
  openMenu(){...}
  closeMenu(){...}
}
#

basically that

dawn plover
# smoky oak try the --rev latest flag

hmm, i dont know how to
also i dont think the problem is at building

its when i press this button to load the gradle stuff in to inteliJ
this wont build it yet

smoky oak
quaint mantle
#

and the other way around

smoky oak
#

ig linkedlist works too

sterile token
smoky oak
#

well linkedlist just points to the element before

#

so thats why a linkedlist would work too

sterile token
#

so i can use it or not? Confirm so i can continues coding

smoky oak
#

personal preference tbh

#

you can i wouldnt but thats just cuz of how i design my stuff

warm mesa
#

I want to download Spigot Build Tools fot 1.8 but I Can't, anyone can help me?

quaint mantle
#

It wasn't a 'use a linked list'

smoky oak
#

run it in git bash

#

with the arg --rev 1.8

quaint mantle
#

I meant as in, it's a Node often used in base-level LinkedList implementations

#

It reminded me of

dawn plover
# smoky oak wait what exactly are you doing

i generated a new plugin with inteliJ and the minecarft plugin thingy within inteliJ
this gave me this butifall plugin base which normally works just fine
but for some reason it wont load the it like it normally does, it is trying to reach an not existing api
so i know this is the parts thats wrong, i just dont know where i am able to change it

and for 1.19.2 it works just fine, bruh

sterile token
smoky oak
#

people just run buildtools and import using maven/gradle

#

from their local .m2 folder

dawn plover
warm mesa
smoky oak
#

its like a normal command shell

sterile token
#

Tracking current player custom menu and the sub menus opened

smoky oak
#

just open it, navigate to where buildtools is and call "your Java 8 path" -jar BuildTools.jar --rev 1.8

warm mesa
sterile token
#

Moterious please if you can join my thread, so we can chat there

warm mesa
smoky oak
#

well you could but i have experienced that command shell doesnt work properly with buildtools

#

hence me recommending git bash

maiden cape
#

Hi all, I want to use a method that is only in paper-api, to what extent am I allowed to talk about this feature existing on the spigot page / in the plugin?

smoky oak
#

you can certainly try but theres no guarantee

eternal oxide
#

bat works fine with BT

warm mesa
#

Ok

smoky oak
maiden cape
#

I'm asking about spigot forum rules, which is related to spigot much more haha

eternal oxide
#

Spigot forum is for Spigot

#

as is this

#

?fork

undone axleBOT
#

SpigotMC maintains the Spigot server. If you are using a fork of Spigot (such as Paper, Airplane, Purpur, or other derivative works), you should seek support in the appropriate Discord servers.

maiden cape
#

yes, I'm asking to what extent plugins can use API functionality that only exists in paper on the spigot forums

#

This is a question about spigot forum rules

eternal oxide
#

you are not allowed to post a resource on the Spigot forums which will not run on Spigot

maiden cape
#

It will run on spigot, just one feature will be disabled

smoky oak
#

tired much elgar?

eternal night
#

iirc should be fine

eternal oxide
#

very

eternal night
#

at least I recall a few plugins that allowed for mini messages "smooth gradients" when on paper and on spigot just did not

smoky oak
#

essentialsx has paper only functionality in its spigot fork

#

and if that plugin can have it

#

everyone can

maiden cape
warm mesa
smoky oak
maiden cape
warm mesa
#

I can't send photos right there, can I send you the image in MD?

eternal oxide
#

?img

undone axleBOT
warm mesa
smoky oak
#

ur java path ends in "\bin\java.exe"

#

assuming youre running windows

eternal oxide
#

\bin\java.exe

#

?paste

undone axleBOT
eternal oxide
#

md5 paste will not accept my bat 😦

#

it needs curl installed

warm mesa
#

You were Right, thx

remote swallow
#

whos palmer games

eternal oxide
#

mine

remote swallow
warm mesa
#

What can I do for fix it

smoky oak
#

whats your start arg

#

like what shows up if you press up once

#

besides this sounds like git broke, not spigot

#

you should have your server jar and the necessary files in .m2

warm mesa
#

I just trying to use NMS

smoky oak
#

ye you should be able to do that now

#

if not someone else has to help you, i have to go

warm mesa
#

I see, so anyways thanks you

wind blaze
#

may anyone tell me what Statistic.SPRINT_ONE_CM returns? is it actually the sprinted blocks in cm (1 block = 1 metre)?

hazy warren
#

@eternal oxide says he doesn't want to give dependencies because it's 1k worth of plugins

eternal oxide
#

I'd turn down the work if he can't provide the dependencies he expects you to use

quiet ice
#

or just change the dependencies behind his back

#

Chances are you don't need any dependency on another plugin unless you are working with a highly tight-nit system

hazy warren
#

Yeah I mean there's unresolved packages being used in the code though

quiet ice
#

oooh, updating other people's code...

hazy warren
#

Not to get emotional here but it's really starting to tear me down 😢

quiet ice
#

If it looks like it being a very small dependency - just try to get rid of it by all means necessary.
Otherwise, decline and look for other ways.

mortal hare
#

wtf man

#

i declared one function

#

iget error that i havent declared another

#

which doesnt even exist anymore

#

i tried cleaning up the project

#

nothing owkrs

hazy warren
#

grep it

quiet ice
#

JNI?

#

What witchcraft are you committing right now?

echo granite
#

How is it possible that I'm running a 1.1.4.4 server on Java 8, but I'm getting this exception? java.lang.NoSuchMethodError: java.util.List.toArray(Ljava/util/function/IntFunction;)[Ljava/lang/Object;

#

The line that produces this is taken from my ItemBuilder class:
.withLore(lore.toArray(String[]::new)) where lore is a List<String>

quiet ice
echo granite
smoky oak
#

i will eat a broom if 1.1.4.4 is a minecraft version bukkit exists for

quiet ice
#

You probably want to use lore.toArray(new String[0]) instead

hazy warren
#

Is it foolish to make everything yourself when there are pre-existing libraries you could take from

smoky oak
#

if its a math lib DEFINITIVELY

#

otherwise its debatable

quiet ice
echo granite
smoky oak
#

answer's usually 'use lib' tho

echo granite
#

thank you

quiet ice
#

It's a nice learning experience nonetheless

hazy warren
#

but then it's not your baby

quiet ice
smoky oak
#

depends

echo granite
#

it will help you a ton

smoky oak
#

if its the wrong license and youre doing commercial shit

#

u need to do it urself sometimes

quiet ice
#

I myself mostly rewrite libraries because the authors of the library wrote it in a way that is counterproductive or not intuitive

smoky oak
#

<- one of those authors

#

only i can understand my source code

#

sometimes

quiet ice
hazy warren
#

i feel scummy if i use other peoples plugins tho

smoky oak
quiet ice
#

Whatever, if I instantly get what you mean (and believe it or not I can understand spaghetti code better that CDI or service hell), documentation is secondary

#

Example is the build system that I use (byrachyura). It isn't documented, but was intuitive to use so it only got the fork (because unfortunately it still has many problems)

echo basalt
#

I make my own libraries for most things because:

  • It's cool to learn new stuff
  • I like having control over the code I'm running
#

The only instances where I don't make stuff on my own are

  • If the project is overly complex (NPCs, for example)
  • If the public API / solution has good code
smoky oak
#
public static List<Location> typeThree(Location anchor, double radius, double startRadians, double endRadians, double offset){
        double radiansStep = Math.toRadians((offset * 180) / (radius * Math.PI));
        endRadians+=startRadians;
        List<Location> list = new ArrayList<>();
        for(double currentRadians = startRadians; currentRadians<endRadians; currentRadians+=radiansStep){
            double x = Math.sin(currentRadians) * radius;
            double z = Math.cos(currentRadians) * radius;
            list.add(anchor.clone().add(x,0,z));
        }
        return list;
    }```
@quiet ice tip, dont do trigonemetry without saying wtf ur doing
smoky oak
#

lol

#
private static void hiss(Location loc){
        loc.getWorld().playSound(loc, Sound.BLOCK_LAVA_EXTINGUISH,1f,1f);
    }
quiet ice
#

Well that on is self-documenting code

warm mesa
#

Can someone help me with this error in BuildTools 1.8?

bold vessel
#

Som1 know how i can use rgb color in scoreboard?

#

I try somethings but it doesnt work

eternal night
#

in the scoreboard ? no sadly not

warm mesa
chrome beacon
smoky oak
#

yo what

chrome beacon
smoky oak
#

cant you just tell it 'color this part with this hex color'

chrome beacon
#

Scoreboards don't use components as far as I'm aware

#

It's still string based

smoky oak
#

ok

echo basalt
#

Teams still use components for prefix and suffix

mortal hare
#

transition to components is cancer

#

it should've been seamless transition

#

for devs

eternal night
mortal hare
#

now we have to rely on three diff component apis

#

nms, adventure and bungee ones

eternal night
#

nms is not API

#

on spigot you have bungee

#

on paper you use adventure

mortal hare
#

true

chrome beacon
#

You can just rely on adventure all time

eternal night
#

or that ^

mortal hare
#

spigot should integrate adventure api

eternal night
#

propose it

#

dew it

#

PR it

bold vessel
eternal night
#

yea that is not going to work

#

the &x syntax is a spigot addition

mortal hare
#

i wouldnt even try because of BaCkWarDs CoMpAT rules of spigot

eternal night
#

have you seen the material enum to registry PR kekw

#

that is some cancerous backwards compat shit

mortal hare
#

adventure is a component api done right

eternal night
#

would incline to agree (tho I might be biased)

mortal hare
eternal night
#

dangerous jokes xD

worldly ingot
#

tho I might be biased
*is contributor*

eternal night
#

sshhhhh

vocal cloud
#

Gotta fix the issue with gamerule spectators load chunks

eternal night
#

like, two PRs maybe ?

mortal hare
#

I hate C++ memory management

#

i've been trying to solve why my pointer gets invalid

#

turns out shared_ptr objects can only share ownership by copying their value

#

creating two seperate shared_ptr objects from the same pointer do not guarantee memory safety

#

you need to copy shared_ptr object in order to use it in both locations

#

4 fucking hours

#

wasted for this

#

im done.

vocal cloud
#

C++ moment

eternal oxide
#

C++ is powerful but annoying

orchid gazelle
#

hi

#

should I use mojang mappings or spigot mappings for NMS?

smoky oak
smoky oak
#

you can accidentally try to put an array on the stack

remote swallow
#

?nms

smoky oak
#

which then just brreaks with an exception pointing to a completely wrong line

sterile token
eternal oxide
#

I've seen a bit of rust. Very close to raw ASM

orchid gazelle
remote swallow
#

spigot maps arent doced either

orchid gazelle
#

support etc. on old forum threads

eternal oxide
#

mojmaps is the future though

orchid gazelle
#

I mean

sterile token
#

Because i need to choose a lang to move and start hard working for doing Backend, im between Java, C#, Rust, JavaScript and/or TypeScript, i still cant decide which lang to decide

hazy parrot
#

laravel >>

sterile token
#

No please php 🤢, i cant support it., it doesnt have good sintax

chrome beacon
orchid gazelle
#

so forge/farbic uses them too?

hazy parrot
#

oh syntax is problem

#

nvm

sterile token
#

yeah i mreally weird to choose syntax

chrome beacon
sterile token
#

I need hightly typed syntax for coding, in my case i dont able to code on c++ for example, C

orchid gazelle
#

hmm aight ty

chrome beacon
sterile token
#

Right, i find typescript really interesting but the tools are not really stable currently

hazy parrot
chrome beacon
hazy parrot
#

aside from pointers ig

sterile token
#

And i dont know if follow them or what do

#

Im opened to suggestions ofc

chrome beacon
#

I find having types and better auto completion good

#

Which is why I use TS for larger projects

#

For small simple stuff js is fine

sterile token
#

Yeah

warm mesa
sterile token
#

Agree withyou

#

So you think i can go forward to js and/or ts, for backend?

chrome beacon
sterile token
warm mesa
chrome beacon
chrome beacon
smoky oak
warm mesa
#

Paste in pastebin all the logs?

vocal cloud
#

TS is a nightmare when it comes to types

chrome beacon
undone axleBOT
chrome beacon
warm mesa
chrome beacon
#

Send the link

warm mesa
chrome beacon
#

Why are you building 1.8 and not 1.8.8

warm mesa
#

Because my plugin is on 1.8 version

vocal cloud
chrome beacon
#

There is no reason to use 1.8

#

It has multiple vulnerabilities

warm mesa
#

Can I use 1.8.8 in a 1.8 version?

vocal cloud
#

No one uses 1.8

sterile token
vocal cloud
#

If they do then they're making a huge mistake

sterile token
#

I always i use 1.8.8 R3 when need old plugins, is it okay?

warm mesa
#

So I have to install BuildTools for 1.8.8 right?

chrome beacon
sterile token
#

shit fkg cellphone, it right whatever

chrome beacon
#

1.8.8 is for 1.8.8 and 1.8.9

warm mesa
#

But I'm using 1.8 in my plugin

chrome beacon
#

Fake players

chrome beacon
remote swallow
#

check how paper does it, but probably fake players

warm mesa
chrome beacon
#

Use 1.8.8

vocal cloud
#

Don't use 1.8. No one uses 1.8

#

Sadly people use 1.8.8 but not 1.8

sterile token
warm mesa
#

If I use 1.8.8, Can I use the plugin in a 1.8 servers?

sterile token
vocal cloud
#

No one runs 1.8 servers so it doesn't matter

sterile token
#

Most people run 1.8.8 server which support p´laying with: 1.8, 1.8.8, 1.8.9

warm mesa
#

I still have the same problem, but I downloaded 1.8.8 version

#

@chrome beacon

vocal cloud
#

I'd run it in a clean folder with the latest buildtools tbh

eternal oxide
#

are you running it at cmd or bash?

warm mesa
eternal oxide
#

try at cmd

warm mesa
#

kk

eternal oxide
#

all your versions look fine

#

I build at cmd

warm mesa
#

Do you have the file?

eternal oxide
#

file?

warm mesa
#

Of the Cmd command

#

like .bat or something

eternal oxide
#

I use a custom script

warm mesa
#

I see

dim sandal
#

is there a performance difference between world.getBlockAt() vs chunk.getBlock()? im calling this quite often

warm mesa
#

Can I get the script?

eternal oxide
#

I did post it earlier

warm mesa
#

Where?

smoky oak
#

there

warm mesa
#

I'll try

eternal oxide
#

you need to install curl to use that

#

as it uses it to download a fresh buildtools

smoky oak
#

well or you could cut the curl line and run it in the dir with ur buildtools

eternal oxide
#

yep

smoky oak
#

the more important part is adjusting the java paths lol

eternal oxide
#

and not building javadocs when building 1.8.8

smoky oak
#

urgh dont remind me

warm mesa
smoky oak
#

its elgars complain to him

eternal oxide
#

😄

warm mesa
#

It said that it can't find the route specified

smoky oak
#

yea

#

adjust java path

#

as i said

eternal oxide
#

two lines set the paths for java versions

warm mesa
#

Yes, I already changed my Java Path

smoky oak
#

whats the error then

warm mesa
smoky oak
#

thats the script not the error

warm mesa
#

It said that couldn't find the route

warm mesa
eternal oxide
#

internet issues?

warm mesa
#

It can't be

smoky oak
#

remove the @rough moon off and try again might show us where its broke

eternal oxide
#

remove the @rough moon off

#

yep

warm mesa
#

Okok

eternal oxide
#

you can see what coimmand it uses then

warm mesa
#

Nope

#

Let me check the path

#

My mistake xD

#

Now Is working

#

Just let me wait for the installation

eternal oxide
#

as you are building 1.8.8. delete --generate-docs from the cmd line

#

javadocs are broken for 1.8.8

warm mesa
#

Okok

#

Let me cancel the installation

#

Like this?

eternal oxide
#

looks good

warm mesa
#

ok

gentle kettle
#

hey guys, somebody knows how can i make async sql requests to get database information? i can't understand spigot's tutorial very well :/

warm mesa
#

Hold on

vocal cloud
gentle kettle
warm mesa
eternal oxide
#

can you move yoru build to a different location?

#

create a folder directly on C:\

vocal cloud
warm mesa
#

hold on

gentle kettle
#

i mean it doesn't work hahaha

vocal cloud
#

Sounds like you need to learn java then

#

?di

undone axleBOT
gentle kettle
#

thank you dude!

halcyon hemlock
#

We do a bit of trolling

#

I should fix this 💀

tawdry cedar
#

Confused what the problem is?

halcyon hemlock
#

rip

smoky oak
warm mesa
vocal cloud
warm mesa
eternal oxide
#

see if you can build 1.19.3

gentle kettle
warm mesa
eternal oxide
#

I've never seen your error before

tawdry cedar
halcyon hemlock
#

Where are you installing it from

warm mesa
#

Hold on because Im stupid and I tried to download 1.19.3 in Java 8

halcyon hemlock
#

Do you have a spigot server setup?

warm mesa
#

asdlhjasjdh

eternal oxide
pseudo hazel
#

the

eternal oxide
#

the

pseudo hazel
#

glad to see im not the only one butchering that all the time

smoky oak
#

elgar should be sleeping since like 4 hours

#

as should i

gentle kettle
warm mesa
#

I don't know if you know but I speak spanish adjlajshd

smoky oak
#

so dont expect correct grammar here

warm mesa
pseudo hazel
#

more like correct typing xD

warm mesa
#

I'll try understand

pseudo hazel
#

muscle memory failed them

smoky oak
#

best i can do is pseudo syntax / grammar

gentle kettle
warm mesa
# gentle kettle que problema estás teniendo?

Cuando instalo el BuildTools, recibo un error que no me deja continuar con la descarga, por ende, no puedo utilizar en mi plugin las librerias de net.minecraft que son necesarias para lo que necesito hacer.

smoky oak
#

move in a thread please

#

youre the only two people online able to speak spanish

warm mesa
#

Ok

smoky oak
#

judge mine

#

google yog-sothoth

warm mesa
#

Sooooo

#

What it can be?

eternal oxide
#

now see if you can build 1.8

vocal cloud
#

1.8.8*

eternal oxide
#

no 1.8

warm mesa
#

I'll try

#

Hold on

eternal oxide
#

his issue is building 1.8.8. He can build 1.19.3 so I want to see if he can build 1.8 to see if it's his java 8 at issue

#

I do now notice you set the path for java 8 to a jre

#

you might want to try a jdk

warm mesa
#

I tried with jdk and I had the same fucking error

#

Im tired :c

eternal night
#

yeet your build tools folder

#

your state is fucked

eternal oxide
#

he has

eternal night
#

oof

eternal oxide
#

he created a completely fresh folder in a new location

eternal night
#

I wonder if he is getting to the windows path limit

#

or something

vocal cloud
#

Yeah that was my first idea. No dice lol

eternal oxide
#

nope, it was at root

#

so two folders under root

#

it also works fine building 1.19.3

#

it has to be his java 8 version

halcyon hemlock
#

xero

warm mesa
#

Tell me

halcyon hemlock
#

could u get in a call and screenshare

#

I got it to work first time

warm mesa
#

For sure

eternal oxide
halcyon hemlock
#

I don't know how it doesn't work for you but I can surely help

warm mesa
eternal oxide
#

sec

warm mesa
half arrow
#

Can someone suggest the best solution for the following? I'm creating a kit builder plugin where players can select items from a GUI to build their own kit. These items rotate every 'X' days. I want to store the kit information in my player database, but I also want to keep the database connection low. Should I create a cache when the player logs in? and should I run batch updates for new kits that aren't in the existing cache or database yet? It may be a simple one, but I think I might be overthinking it

warm mesa
eternal oxide
warm mesa
#

Latest or

eternal oxide
#

make sure you use a jdk

warm mesa
#

Which one?

halcyon hemlock
#

What version build tools is it

eternal oxide
#

pull down shoudl be version 8

#

windows x64

warm mesa
#

Ok now I have

eternal oxide
#

jdk

warm mesa
#

The new Java File

#

Hold on

#

It is Installing

halcyon hemlock
eternal oxide
#

make sure you update your BT script

#

for the new path

warm mesa
#

Yeap

halcyon hemlock
#

@warm mesa Show me your spigot folder

warm mesa
#

Where is the Path?

#

XD

eternal oxide
#

the two java paths in the script

#

current and java8

warm mesa
#

kk

eternal oxide
#

mine is SET JAVA_CURRENT="C:\Program Files\Eclipse Adoptium\jdk-19.0.1.10-hotspot\bin\java.exe" SET JAVA_8="C:\Program Files\AdoptOpenJDK\jdk-8.0.252.09-hotspot\bin\java.exe"

warm mesa
eternal oxide
#

the java current should point to your latest java install

#

I use a script so I can build any version

#

and it always has an up to date BT

#

yep, my script picks the correct java for the version you want to build

warm mesa
#

I have an error with the path

#

Like the Sintax

#

But I downloaded and pasted the path correctly

warm mesa
eternal oxide
#

you have junk in the path

#

probably unicode chars

warm mesa
#

How Can I fix it?

gentle kettle
eternal oxide
#

edit the cmd file

warm mesa
eternal oxide
#

you have hidden chars between "C

#

so delete and type "C

warm mesa
#

Where? Excuse me

#

XD

eternal oxide
#

your paths

warm mesa
#

Ok

#

Without : right?

eternal oxide
#

you have hidden unicode characters between " and C

#

so delete them and retype it

warm mesa
#

Let me see If all works

atomic swift
#

you guys ready for some naming conversion fails

#

these are from the 1.16.5 jar file

#

dont worry they go all the way to z

pseudo hazel
#

lol

#

not like anyone named them by hand though xD

atomic swift
#

whats the point of this

smoky oak
#

theres a reason im using remapped

atomic swift
smoky oak
atomic swift
#

CubicSampler has a bunch of ☃ in them

atomic swift
warm mesa
#

@eternal oxide

#

Can I kill myself?

atomic swift
#

if you need to but call 988 first

smoky oak
#

do you just want the 1.8 server file?

eternal oxide
#

Yep, I give up. No clue why you are having issues

eternal oxide
#

no rhyme nor reason for it

atomic swift
#

why not follow the links it gives you

warm mesa
#

asigna permisos para esa carpeta \SpigotBuildTools\ How Can I assign permissions in Maven for the folder SpigotBuildtools?

smoky oak
#

wait a damn moment

warm mesa
#

Maybe It can be the problem

smoky oak
#

youre running it in cmd

#

try running it in git bash

warm mesa
#

Ok

atomic swift
#

no

#

just

smoky oak
#

it didnt work for me in cmd either

warm mesa
#

Same code

#

Or another command?

atomic swift
#

window key the type cmd then choose run as admin

#

thats might work

warm mesa
#

For sure

eternal oxide
#

he's done it in bash and cmd

smoky oak
#

hm

eternal oxide
#

also used jre, jdk and different version

smoky oak
#

have you tried manually downloading buildtools and calling that

eternal oxide
#

he has

#

he's don;t it just with the buildtools file

smoky oak
#

bruh

atomic swift
#

open cmd and type set path=c then reopen cmd

warm mesa
#

I have the same Java path

smoky oak
#

now its broken for me too

eternal oxide
#

he can build 1.19.3 but not any 1.8.x

warm mesa
atomic swift
smoky oak
#

welp reboot time

atomic swift
#

use task manager

warm mesa
#

And If I try rebooting?

atomic swift
#

reload file explorer

warm mesa
#

Just for make sure that It is not the problem

eternal oxide
#

a reboot can not hurt

atomic swift
#

BRUH

eternal oxide
#

wrong java version

atomic swift
#

you need 7-8 java

warm mesa
smoky oak
atomic swift
smoky oak
#

ill reboot

warm mesa
#

I'll reboot

#

Hold on x2

atomic swift
#

also read this

smoky oak
#

YO WTF

#

i rebooted

#

what process has you locked ffs

atomic swift
eternal oxide
#

you probably only have a lock file

atomic swift
#

'-'

smoky oak
#

deleting the craftbukkit folder did it

#

you might want to try that @warm mesa

warm mesa
eternal oxide
#

his error is different

smoky oak
#

i mean

warm mesa
#

I asked to ChatGPT and my bro said that the error is in Bukkit or Spigot folder because it doesn't found spigot-server

#

Fr I want to kill myself

sterile token
#

So would you recommend javaScript and/or TypeScript for backend?

smoky oak
#

HELL NO

#

java script is bad enough in frontend

warm mesa
#

I'm sad now

#

I gave up

#

Good night for everyone, Im going to cry

smoky oak
#

did you try in an empty directory

warm mesa
smoky oak
#

huh

ivory sleet
#

TS can be nice backend

#

assuming u might use sth like npm with webpack

sterile token
#

right i never used webpack tho

#

Just made simple rest apis

#

Because i never learnt Javascript completly nor TypeScript

#

But i just want to confirm and then learn it, if not i just lost time

halcyon hemlock
halcyon hemlock
#

Built an entire api to hide my webhook link

sterile token
#

I didnt udnerstand

#

Can we talk more in detail that

#

Im really interested to listen you

frank kettle
#

is there a way to remove this?

#

for bundles

halcyon hemlock
#

how should I limit requests

sterile token
vocal cloud
#

use uuid or ip

halcyon hemlock
#

actually not a bad idea but

#

maybe cookies

vocal cloud
halcyon hemlock
#

what

#

is it not asp net

#

asp core

#

what was it 💀

vocal cloud
#

C# is slower than java

halcyon hemlock
#

aspnetcore

halcyon hemlock
vocal cloud
#

In some areas I've heard

#

I prefer Spring Boot hes_UwU_2

halcyon hemlock
#

I'm making a webapi though

#

I'd rather use asp net

#

than java

#

java only for minecraft

vocal cloud
#

You can do that in spring boot no?

glossy atlas
#

How to test EntityPlayer is spawned?
I can't see it and i dont know how to send packet

halcyon hemlock
worldly ingot
# frank kettle is there a way to remove this?

I don't believe so. That's just how the client renders it. You could try ItemFlag.HIDE_POTION_EFFECTS (poor naming, it really represents hiding item-specific details), but I don't think that bundles respect that flag

frank kettle
#

I'm off from computer now. Will try tomorrow if I don't forget.

#

Thank you for the idea

pseudo hazel
#

if that doesnt work try any other flags like hide_attributes xD

tender shard
#

in NMS stuff, the item flags are just integers, so I guess this time it's actually bukkit's fault to have chosen to call it "HIDE_POTION_EFFECTS"

worldly ingot
#

It was accurate at the time

#

Just like Material.WATCH was accurate for clocks at the time pre-1.13

#

The ItemFlag API was added in December of 2014. A little over 8 years ago. It was accurate then

tender shard
#

wdym?

#

what has changed in watches/clocks?

worldly ingot
#

The Material constant for clocks was called WATCH before the 1.13 update

#

You'll still find LEGACY_WATCH but no LEGACY_CLOCK, because CLOCK didn't exist

#

It was called a WATCH way back in the day which was accurate for the time before Minecraft renamed it to a clock

tender shard
#

oooh ok

#

yeah but tbh, watch makes no sense right?

#

aren't watches the things you put on the arms

#

and it's usually the "offhand" which didnt exist pre 1.8 lol

worldly ingot
#

Yes

#

My point being that WATCH was correct at the time but was incorrect after Minecraft changed it. ItemFlag.HIDE_POTION_EFFECTS was accurate in 2014, but since then has evolved to mean more something along the lines of HIDE_ITEM_SPECIFIC

remote swallow
#

spigot should rename that

worldly ingot
#

It's used to hide a whole whack of stuff now that are specific to items. Like the type of mob spawner, that gets hidden by HIDE_POTION_EFFECT

remote swallow
#

or deprecate potion effects and add a new one that just maps to effects

tender shard
#

rather just add some javadocs and call it a day

worldly ingot
#
@Deprecated
HIDE_POTION_EFFECTS,
// etc.
;

public static final ItemFlag HIDE_ITEM_SPECIFIC = HIDE_POTION_EFFECTS;```
#

Probably the only reasonable "fix"

remote swallow
#

yeah

worldly ingot
#

but that's ugly lol

remote swallow
#

no

#

also choco

#

where dogs

worldly ingot
#

Sleeping

tender shard
#

damn choco still only 23 years? he was already 23 when I first talked to him

#

do you not age

remote swallow
#

when do we get to see them again

remote swallow
tender shard
#

oh

worldly ingot
#

11th of december? lol

remote swallow
#

is it not?

worldly ingot
#

idek where you got that one

tender shard
#

we know more about you than you do

remote swallow
#

im probably thinking of @young knoll bday

#

14th december

#

no

#

wait

#

october

bold vessel
vocal cloud
remote swallow
#

we love bungee colour

tender shard
remote swallow
#

alex

#

go to bed

vocal cloud
#

My idea? I don't have ideas

#

Although I'd def write a python script to gen these monstrosities for others to debug