#help-development

1 messages Β· Page 1034 of 1

pseudo hazel
#

i am just confused when you say pub sub because bkkit events are pub sub too

vagrant stratus
#

I'd probably just want a general QuestListener which listens to every relevant event, then through some sort of event/listener system on top of that that's better suited for the task than bukkit's system

wild mica
#

Hello guys, how to create inventory with component title?

vagrant stratus
#

then each quest can just have something like Map<String, QuestTask> tasks where string is a specific channel or something like that

#

That should work, yea @pseudo hazel ?
generic pub/sub channels, then splitting tasks per channel to limit how many times things get looped over.
Overkill, but it also makes achievements and stuff easy to support too

wild mica
pseudo hazel
#

and you;d still have looping

#

but its necessary

vagrant stratus
pseudo hazel
#

like its all mandatory looping

#

you have to loop through all quests that should receive an event anyways

vagrant stratus
#

aye, but it's also not doing a "should receive check" and such, since it's just stored in a map or something

pseudo hazel
#

but by spefically subcribing to a channel you only get the events you asked for

vagrant stratus
#

Exactly, cutting down on unncessary calls. Same w/ tasks

pseudo hazel
#

like the channel itself calls the actual quest handle methods

#

you subscribe to a channel

#

the channel knows what tasks it has

vagrant stratus
#

Still looping, but less loops over all since it's not forced to loop through everything which is the important part

pseudo hazel
#

so its only looping through the ones that want that event

#

yeah its the minimal loops required

vagrant stratus
#

Exactly, and we're only dealing w/ the bukkit event system the minimal amount of times too (i.e. once)

pseudo hazel
#

yes

pseudo hazel
#

nms supports everything

vagrant stratus
#

Over kill? Probably, but probably the best way to do this in general, especially if wanting to throw extra stuff on top of it too

acoustic pendant
#

Does .damage deal true damage?

pseudo hazel
#

its not overkill

#

especially if you planned for those other custom things too that will use the same system

vagrant stratus
#

ye. cause achievements and stuff just have to sub to a quest_completed and stuff

acoustic pendant
vagrant stratus
#

also supports data-driven quests too, since you can just have a

{
"name": "10 Kills",
"data": {
    "channel", "kills"
    "amount": 10
}
}

or something

#

which is less messier than some of the impl's I've seen <.<

#

Decent component system should also make the actual task stuff less of a bitch to handle too

vagrant stratus
#
    @Override
    public void receive(String channel, QuestProgressUpdateMessage message) {
        boolean areAnyIncomplete = false;
        for (QuestComponent component : tasks.get(channel)) {
            if (!component.check(message.getPlayer(), message)) {
                areAnyIncomplete = true;
                break;
            }
        }
        isComplete = !areAnyIncomplete;
    }

being a rough idea on how it would be handled in the quest itself

wild mica
# pseudo hazel wdym

I'm use serializer but doesn't work. I send it to the chat, it works, but inventory as a resource pack does not work either.

vagrant stratus
#

This is where I'm at currently @pseudo hazel https://paste.md-5.net/cuyacotejo.java.
Just need to think of a good way to handle the QuestComponent class and it's fine lol
The messages will likely just extend a Message class or something

#

currently they're implemented as such:

public class KillQuestComponent implements QuestComponent {
    private final EntityType targetType;
    private int currentKills;
    private final int targetKills;

    public KillQuestComponent(EntityType targetType, int targetKills) {
        this.targetType = targetType;
        this.targetKills = targetKills;
    }

    @Override
    public void update(Object data) {
        if (data instanceof EntityType && data == targetType) {currentKills++;}
    }

    @Override
    public boolean isCompleted() {return currentKills >= targetKills;}
}

Which, isn't necessarily a bad way of doing it

winged crater
#

Hey everyone.
If I try to join I get the "failed to connect to a default or fallback Server" Incorrectly Firewall bla bla...
(Cant send screenshots here)

sullen marlin
#

your server is incorrectly configured or firewalled as per the message

twin venture
#

hi , i have a problem with player join before the data is loaded

sleek estuary
#

how i get the used item for click on inventoryclickevent?

twin venture
#

i have this load method :
not sure if this is the best way to do it :

#

before it send me to lobby i was in sw-0 server , and i had 2 kills , 2 wins ..

#

but i went back to lobby server

#

it say 1 kills , 1 wins ..

#

its saved in database πŸ™‚

vagrant stratus
hazy parrot
sullen marlin
#

"If I try to join I get the "failed to connect to a default or fallback Server" Incorrectly Firewall bla bla..." that message

winged crater
#

yeah and how to fix it?

#

What could be the way

zenith saddle
#

Can I use PrepareItemCraftEvent to change the item displayed as the result?

winged crater
sullen marlin
zenith saddle
sullen marlin
#

getInventory.setResult presumably

zenith saddle
#

Would I just set the slot to the item, and then use the other event to give it?

sullen marlin
#

sure

vagrant stratus
#

kills, blocked mined, currency, stuff like that's easy to implement...
Not so much something like Brewing where multiple things are involved e.g. potion type, amount of potions, etc

young knoll
#

I would probably pass something other than an object

#

Some sort of data holder class that contains whatever you need

vagrant stratus
#

Yea, the issue is cleanly implementing the data holder class though to support every possible event 😐
or doing it in a way to allow extends or implements

young knoll
#

Make an interface and have them all implement it

river oracle
#
Failed to transform vineyard-core-1.0.0-SNAPSHOT.jar to match attributes {artifactType=classpath-entry-snapshot, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
      > Execution failed for ClasspathEntrySnapshotTransform: /run/media/miles/bca4a4ee-9b9b-4a0b-8cf1-4244950351a6/Coding/CabernetMC/Vineyard/vineyard-core/build/libs/vineyard-core-1.0.0-SNAPSHOT.jar.
         > Check failed```
Wtf did I do
vagrant stratus
#

clearly

#

duh

#

get good

vagrant stratus
#

You know the even funner part @young knoll? More concerned about actually getting it to work that I forgot to take into account per-player stuff KEK
Guess <player_name>-<something> for each channel name is an option, or I shove the player name somewhere else lol

#

maybe Player#getPubSubSystem, but that's got its own issues e.g. quests

vagrant stratus
#

Would help if I had source code to look at as a reference for this lmfao

odd jetty
#

sorry about that, wrong chat

vagrant stratus
upbeat zodiac
#

hey! ive just updated my spigot version to 1.21 and now all my enums through bukkit arent working (specifically material, chatcolour and entity type), is there something obvious that i missed that couldve made this happen?

sullen marlin
#

Update your intellij

mental needle
#

Is it possible to combine ItemsAdder and Oraxen?

river oracle
prisma jolt
#

Anyone able to help me out? I am having troubles with data being deleted from an onInventoryClick event

#

or well I am not to sure why it is happening

sullen marlin
#

?nocode

undone axleBOT
#

It’s hard to answer a programming question without code
Oh no! You ran into a problem. But no worries, people are willing to help, but first they need to see your code. This is because otherwise, they would be providing help based on guesses instead of concrete knowledge. Whether it be a compile error, runtime error, or an unexpected output, I'm sure that if you were to provide code, you'd receive a quick solution.

prisma jolt
#

I'll give what classes are probably causing the problem

#

https://paste.md-5.net/magowilosa.java

Alright so I am having the problem where when I collect the coins being saved it deletes data in my players.yml

The only way to prevent it, is if I reload the plugin after redeeming the generator

drowsy helm
#

What coins are you collecting, what data is being deleted?
Give some context on the plugin

analog lantern
#

any why are you doing it all in one class-

drowsy helm
#

Hes not

analog lantern
#

oh it was just merged

#

into 1 file

#

i see it now

#

while im here is it possible to get an unloaded world using bukkit api? I know i can check if a directory exists but i was wondering if it was doable with bukkit

drowsy helm
#

Like get data from it?

analog lantern
#

no just see if it exists

drowsy helm
#

Or just see if it exists

prisma jolt
# drowsy helm You’re gonna have to pinpoint it and break down the issue more programmatically ...

Alright so, the coin generation class is generating coins off of my config.yml which has the tiers data. So it gets put into the collectoritem to save/store it for the player to collect when they want to. So after a player clicks on the collectors item from the GUI it deletes

    generators:
      tierMythic: 1

and replaces it with

    coins: 51000
coins:
tiers: # You can add as many tiers as you'd like!
  Common:
    interval: 1 # seconds
    coins: 1000
    name: "&a&lCOMMON &2&lCOIN &a&lGENERATOR &7(Redeem)"
    slot: 10
    lore:
drowsy helm
#

No dont think so

analog lantern
#

i will stick to if (!new File(folder).exists()) then

#

surely new File in a condition doesnt actually make the file (i forget)

drowsy helm
#

No it doesnt

analog lantern
#

ok cool beans

prisma jolt
analog lantern
#

ok its 2 am ima go to bed now

#

2 am plugin development very fun but still-

prisma jolt
analog lantern
#

yay it works

#

context: im making a 'ready out of the box' bedwars plugin and to do that im creating and deleting worlds for the maps because its more efficient than using subservers, so i just wanna make sure i dont delete maps that dont exist

drowsy helm
#

Where are you setting the coins in config

prisma jolt
#

or what are you talking about

#
    public void setCoins(Player player, long amount) {
        String uuid = player.getUniqueId().toString();
        long maxCoins = 1_000_000_000_000L; // 1 trillion

        // Cap the amount to 1 trillion
        amount = Math.min(amount, maxCoins);
        playerStorageConfig.set("players." + uuid + ".coins", amount);
        savePlayerData();
    }

    public void addCoins(Player player, int amount) {
        int currentCoins = getCoins(player);
        int newCoins = currentCoins + amount;
        int maxCoins = 1_000_000_000; // 1 billion

        // Cap the new amount to 1 billion
        newCoins = Math.min(newCoins, maxCoins);

        setCoins(player, newCoins);
        plugin.getServer().getPluginManager().callEvent(new GivePlayerCoins(player, amount));
    }
drowsy helm
#

So if you just call the method

#

Not invoke it from the gui

#

Does it still do it

prisma jolt
#

it does

umbral ridge
#

there is a wrapper for inventories

cursive kite
#

Is there a workaround for InventoryAction.MOVE_TO_OTHER_INVENTORY event.getCurrentItem() returning Air and not the clicked Item

sullen marlin
#

If theres a bug, why not open a bug report

cursive kite
#

Not sure if it is a bug or me using the wrong method lol

vestal mountain
#

someone can help me? i want to get the helmetmeta attribute and add to the hatmeta? java if (helmetMeta != null && helmetMeta.hasAttributeModifiers()) { helmetMeta.getAttributeModifiers().forEach((attribute, modifier) -> { hatMeta.addAttributeModifier(attribute, new AttributeModifier(modifier.getName(), modifier.getAmount(), modifier.getOperation())); }); } ERROR: Required type:
net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation
Provided:
org.bukkit.attribute.AttributeModifier.Operation

sullen marlin
#

Sounds like you imported something wrong

#

This is why we use the api

vestal mountain
#

so what can i do?

#

i imported this: import net.minecraft.world.entity.ai.attributes.AttributeModifier;

chrome beacon
#

Yeah that's the wrong import

sullen marlin
#

Why did you import that

vestal mountain
#

whats the import?

#

oh i got it

#

thank you!

#

waite

#

why this it not working? ```java
ItemStack customHat = new ItemStack(Material.PAPER);
ItemMeta hatMeta = customHat.getItemMeta();
hatMeta.setDisplayName(displayName);

            if (helmetMeta != null && helmetMeta.hasAttributeModifiers()) {
                helmetMeta.getAttributeModifiers().forEach((attribute, modifier) -> {
                    hatMeta.addAttributeModifier(attribute, new AttributeModifier(modifier.getName(), modifier.getAmount(), modifier.getOperation()));
                });
            }```
#

i want to get the helmetmeta attribute and add to the hatmeta

sullen marlin
#

What is that code meant to do

#

Did chat gpt write it

vestal mountain
#

yes

#

i cant write this

sullen marlin
#

Ok 1) what is helmetmeta; 2) what exactly is not working

vestal mountain
#
if (event.getClick().isLeftClick()) {
            ItemStack currentHelmet = player.getInventory().getHelmet();
            if (currentHelmet != null && isHelmetType(currentHelmet.getType())) {
                Helmet.put(player.getName(), currentHelmet);

                ItemMeta helmetMeta = currentHelmet.getItemMeta();

                ItemStack customHat = new ItemStack(Material.PAPER);
                ItemMeta hatMeta = customHat.getItemMeta();
                hatMeta.setDisplayName(displayName);

                if (helmetMeta != null && helmetMeta.hasAttributeModifiers()) {
                    helmetMeta.getAttributeModifiers().forEach((attribute, modifier) -> {
                        hatMeta.addAttributeModifier(attribute, new AttributeModifier(modifier.getName(), modifier.getAmount(), modifier.getOperation()));
                    });
                }

                customHat.setItemMeta(hatMeta);
                player.getInventory().setHelmet(customHat);
            }```
vestal mountain
#

GENERIC_ATTRIBUTE_ARMOR

sterile breach
#

Hi, is there a mΓ©thode to put player in limbo ?

vestal mountain
dawn flower
#

can you set the result of a command so it sends the usage message? (using CommandPreprocessEvent)

frail pilot
dawn flower
#

ah

vestal mountain
#

@sullen marlin you can help me?

twin venture
blazing ocean
vestal mountain
#

hi! someone can help me? i want to get the helmet attribute and add it to the hatMeta
GENERIC_ATTRIBUTE_ARMOR ```java
if (event.getClick().isLeftClick()) {
ItemStack currentHelmet = player.getInventory().getHelmet();
if (currentHelmet != null && isHelmetType(currentHelmet.getType())) {
Helmet.put(player.getName(), currentHelmet);

            ItemMeta helmetMeta = currentHelmet.getItemMeta();

            ItemStack customHat = new ItemStack(Material.PAPER);
            ItemMeta hatMeta = customHat.getItemMeta();
            hatMeta.setDisplayName(displayName);

            if (helmetMeta != null && helmetMeta.hasAttributeModifiers()) {
                helmetMeta.getAttributeModifiers().forEach((attribute, modifier) -> {
                    hatMeta.addAttributeModifier(attribute, new AttributeModifier(modifier.getName(), modifier.getAmount(), modifier.getOperation()));
                });
            }

            customHat.setItemMeta(hatMeta);
            player.getInventory().setHelmet(customHat);
        }```
twin venture
#

i can use mongodb , but i would love to have another option πŸ™‚

blazing ocean
twin venture
#

where does it save it

blazing ocean
#

in supabase lol

#

uses pg

twin venture
vestal mountain
sullen marlin
#

is that attribute on the helmet?

#

what debug have you tried?\

vestal mountain
#

yes

#

i didnt tried debug

#

what can i do?

sullen marlin
#

put debug

vestal mountain
#

where?

sullen marlin
#

what code is running

#

before addAttributeModifier

vestal mountain
#

okey

sterile breach
#

Hi, is possible to put client un loading screen. (And client can again send packet like break block or it will be blocked?)

vestal mountain
# sullen marlin before addAttributeModifier

so this? if (helmetMeta != null && helmetMeta.hasAttributeModifiers()) { helmetMeta.getAttributeModifiers().forEach((attribute, modifier) -> { player.sendMessage("test"); hatMeta.addAttributeModifier(attribute, new AttributeModifier(modifier.getName(), modifier.getAmount(), modifier.getOperation())); }); }

sullen marlin
#

sure, but maybe you could print something useful like the variables

vestal mountain
#

it dont sending me the message

sullen marlin
#

so it seems like helmetMeta has no attribute modifiers then

#

how did you make the helmet?

vestal mountain
#
        if (event.getClick().isLeftClick()) {
            ItemStack currentHelmet = player.getInventory().getHelmet();
            if (currentHelmet != null && isHelmetType(currentHelmet.getType())) {
                Helmet.put(player.getName(), currentHelmet);
                
                ItemMeta helmetMeta = currentHelmet.getItemMeta();```
#

whats on the players helmet

sullen marlin
#

what attributes did you put on the helmet

vestal mountain
#

i didnt put everyting

sullen marlin
#

well then of course the code won't add anything...

vestal mountain
#

oh how can i do to get the armor on the paper

sullen marlin
#

currentHelmet.getType().getDefaultAttributeModifiers(EquipmentSlot.HEAD)

#

go from there

vestal mountain
#
 if (helmetMeta != null && helmetMeta.hasAttributeModifiers()) {
                    currentHelmet.getType().getDefaultAttributeModifiers(EquipmentSlot.HEAD).forEach((attribute, modifier) -> {
                        player.sendMessage("test");
                        hatMeta.addAttributeModifier(attribute, new AttributeModifier(modifier.getName(), modifier.getAmount(), modifier.getOperation()));
                    });
                }```
#

@sullen marlin its not working

#

why?

glad prawn
#

set meta back ig?

twin venture
#

this is what iam trying to make :
in game server , when a player kill someone for example or win a game .. etc , it will increase the [local stats for the SWUser instane] by 1 , and when a game end before sending the users of the game to the lobby server , the game moudle plugin will save the data to the global stats in mysql server and when a player is loaded in the lobby server moudle plugin , it will load the data with the new kills and other data .

sullen marlin
#

?notworking

undone axleBOT
#

"Does not working" is a useless statement. Please describe what exactly is not working, what you expect it to do, and what actually happens. If you get any console errors, also ?paste the entire stacktrace.

twin venture
#

i did , but it does not work , the load part in lobby it loads the old data and not the new one

#

?paste

undone axleBOT
twin venture
vestal mountain
sullen marlin
vestal mountain
#

yes

#

thanks its working!

hazy parrot
twin venture
#

i was able to fix it i guess ,

#

i created a map with uuid , SkyUser and when a user join a game in the game server it will add him to the map , and when the game end before sending the user i do this :

#

its saving , loading correctly now πŸ™‚

#

but iam not sure if this is the best soulation πŸ™‚

#

also the game server gonna restart after each game ends ..

atomic basalt
#

should BookMeta#getPages() and BookMeta#getPage() return plaintext or text component data?

docs are not very descriptive; docs of setPage() say it expects the data for the page, but the getters do not specify

sullen marlin
#

Strings are text
BaseComponent are components

atomic basalt
#

ok thx then i need to reconsider how to open a "virtual" book for a player

sullen marlin
#

?

atomic basalt
#

trying to have a book open for a player after they ran a command; and the book should contain clickable interactions such as executing internal commands and page changes, kind of like a menu

atomic basalt
#

it seems like this has changed recently, i am targetting spigot 1.18.2 and upwards

#

and i can only see page related setters and getters that accept or return strings

#

ohh i think i understand now

sullen marlin
#

I don't think this changed recently

atomic basalt
#

if you say, it didnt, i wouldnt know; i was just a bit dumb. thank you very much, i got the right direction now

unreal tapir
#

Hello, I am completely new to plugin making and I need to update my plugin to 1.21, how do I do this in my IDE? (using Intellij IDEA)
Do I have to create a new project and import my classes into it or do I somehow update the old one?
(Ping if you respond)

paper viper
#

How are you importing spigot api

tardy delta
twin venture
#

ik i can do them both in 1 table

#

but i wanted to orgnized it πŸ™‚

summer scroll
#

Can you change the custom name location of an armor stand? Because when I set the marker ON the custom name is below the base plate.

unreal tapir
atomic basalt
# sullen marlin https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/inventory/meta/BookMeta.Spig...

actually; i think i might be doing it wrong still; i'm initializing the book like this ```java
var stack = new ItemStack(Material.WRITTEN_BOOK, 1);
var meta = (BookMeta) stack.getItemMeta();
meta.setTitle("Interactive Book");
meta.setAuthor("kaleidox");
meta.spigot().setPages(...)

opening it with `getServer().getPlayer(playerId).openBook(stack)`
but all thats showing up to me is a book that says nothing but \* invalid book tag *;
eternal oxide
#

Do you put the meta back on the book?

atomic basalt
#

no, i thought that was already affiliated with the book. oop much

#

trying that rn

eternal oxide
#

getItemMeta always returns a clone, so you are editing a copy

atomic basalt
#

oh yea the docs also state that for the dummies like me

#

thank you

misty ingot
#

migrated everything to a new computer and now i am getting this error in my pom

paper viper
ivory sleet
#

Revolutionary

acoustic pendant
#

How can i deal true damage (ignoring armor)

blazing ocean
#

set the health

halcyon hemlock
acoustic pendant
#

okay, thanks

pseudo hazel
#

doesnt portion of harming do true damage?

shadow night
#

It does

#

I think it depends on damage type

robust ginkgo
#

Is there a simple method to create ItemMeta for an item that doesn't exist yet?
Using a Map<String, ItemMeta>, I want to to apply the meta to a new itemstack whenever I want to give the player a new itemstack.

#

Or am I overcomplicating things too much and can I just create a new itemstack from another itemstack template?

shadow night
#

What exactly are you trying to achieve

pseudo hazel
#

sounds like you want an item builder

shadow night
#

Consumer<ItemMeta> or something

robust ginkgo
shadow night
pseudo hazel
#

you could try using Bukkit.getItemFactory().getItemMeta(Material mat)

summer scroll
#

I'm trying to make recipe that require 8 diamond block in one slot for example, how can I do that?

robust ginkgo
pseudo hazel
#

I assume so

shadow night
pseudo hazel
#

and then set it to a stack

#

this is from the docs

#

so you just need to know the material

robust ginkgo
#

Alright, thanks!

pseudo hazel
#

but there is proably some range as to which stacks you can apply it

summer scroll
#

I'm trying to create a recipe

pseudo hazel
#

you cant make a recipe where a slot takes multiple items

summer scroll
#

Apparently RecipeChoice.ExactChoice doesn't count the item amount.

pseudo hazel
#

there is no vanilla way this is done either

summer scroll
pseudo hazel
#

I guess so

summer scroll
#

Damn, that is hella complicated.

#

Do you know any library that does that by any chance?

pseudo hazel
#

no idk

#

all I know is that its probably possible

#

but the way that everyone else has solved it is to create intermediate items

#

like compressed diamond block for example

summer scroll
#

Ah okay, thanks.

#

I'l dig deeper into this

shadow night
robust ginkgo
#

Just to be sure, don't all items have CustomModelData?

sullen marlin
#

Not air

robust ginkgo
#

All other items are fine then, right?

sullen marlin
#

Yes

twin venture
#

Hi , anyone know how i can do the locked , unlocked , active for cosmetics?
what do i need?

#

maps ? for CosmeticUser correct? data should be saved somewhere i suppose?

drowsy helm
#

A lib?

misty ingot
#

does anyone know how i can make my maven profile show the console for my server which i am starting in a new cmd window like a normal server would instead of showing it in my terminal

                        <configuration>
                            <workingDirectory>${testserver.path}</workingDirectory>
                            <executable>cmd.exe</executable>
                            <arguments>
                                <argument>/C</argument>
                                <argument>java</argument>
                                <argument>-Xmx4G</argument>
                                <argument>-Xms4G</argument>
                                <argument>-jar</argument>
                                <argument>server.jar</argument>
                                <argument>nogui</argument>
                            </arguments>
                        </configuration>
hazy parrot
#

run maven from another cmd, not inside of intellij

#

there is maybe option for ij to open new terminal

twin venture
unreal tapir
# paper viper Change the spigot api version to 1.21 and fix errors and warnings

I have changed plugin.yml

name: OmVeins
version: '${project.version}'
main: me.mmg.omveins.OmVeins
api-version: 1.21
authors: [ MMG ]
description: Plugin for Om Nom Lands SMP

and pom.xml

<dependencies>
        <dependency>
            <groupId>org.spigotmc</groupId>
            <artifactId>spigot-api</artifactId>
            <version>1.21-R0.1-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>
#

But I dont think the api updated

#

is there some refresh I need to do<

#

?

#

I am not used to working with maven, most of my previous projects were pure java

#

ah

#

got it

#

there was a refresh button

#

I was blind

wet breach
unreal tapir
#

Yeah I managed to update it

#

however now I ran into a different problem

#
if(item.getType() == Material.DIAMOND_PICKAXE)```
#

Material got deprecated right?

worldly ingot
#

Not yet. You shouldn't worry about it being deprecated

unreal tapir
#

I cant import it tho

worldly ingot
#

If you're using IntelliJ you may just have to refresh your cache

unreal tapir
#

how do I do that?

worldly ingot
#

Unsure. I'm not an IJ user :p I'm sure someone else knows

eternal night
unreal tapir
#

oh that might be it

eternal night
#

you are running an old af version taht cannot read java 21 class files

unreal tapir
#

I completely forgot its old

drowsy helm
river oracle
#

choco uses eclipse

#

I want to switch back to VSC but they really need to mature their java plugin more

fair rock
#

Does anyone know a easy way for making a creeper fearing you like as a cat + running away?

knotty nebula
#

could anyone help me with a custom inventory

river oracle
#

explain what you mean by custom inventory

knotty nebula
#

i want to make a blank slot looked like that

#

is that kind of custom model data or what?

blazing ocean
#

that's a resource pack

river oracle
#

oh... yeah so that stuff is actually pretty easy

#

its just a resource pack and you insert it as the inventory title

blazing ocean
river oracle
#

you can use negative space fonts to adjust the texture

blazing ocean
young knoll
#

You could also use an item with a custom texture for the blank slots

river oracle
blazing ocean
#

yea

young knoll
#

There is an item component for that

river oracle
young knoll
#

yep

blazing ocean
#

since when

river oracle
#

wtf what is it

young knoll
#

1.20.5

knotty nebula
#

i see i see

#

thank you everyone

pseudo hazel
#

oh

knotty nebula
#

it only exist in 1.20.5 right

pseudo hazel
#

thanks for the info, time to update my menus xD

blazing ocean
young knoll
#

It's one of the best components

pseudo hazel
#

but how do you hide the highlight from the item when your cursor moves over it

blazing ocean
#

shaders

#

or a custom background

pseudo hazel
#

oh custom background is on top of the effect too

blazing ocean
#

yea

pseudo hazel
#

nice

sterile breach
#

Hi, I have a question a bout bungeecord, when you teleport a player to another server, it sends him a pluginmessage telling him to change servor? so a customer can theoretically choose to change server without the proxy having asked him to?

eternal oxide
#

bungee doesn;t send teh client a message, its a proxy so it just moves teh connection

sterile breach
#

so the client can't change server by himself

vast ledge
#

Ye, the proxy changes where your connection is going, the client doesnt reconnect to a diff ip or so

vast ledge
eternal oxide
#

the client can ask to change but the proxy handles everything

sterile breach
#

and how does it work that when you try to connect to an ip without going through the proxy, the connection is refused. How does the server detect that the client isn't going through bungeecord?

eternal oxide
#

there shoudl be no direct route to a server

sterile breach
#

ah the proxy acts as a mirror between client and server?

#

and redriect all requests

vast ledge
#

It basically manages your conenctions

sterile breach
#

to be honest i'm not sure to understand. Is the client directly connected or is it connected to the proxy, which in turn is connected to the server?

eternal oxide
#

client is connected through the proxy

#

the proxy decides which server your packets go to

sterile breach
#

ah yes that's why ban ip doesn't work with bungeecord

eternal oxide
#

it does if you setup yoru bungee properly

#

at least on that server

sterile breach
#

but why we need plugin messages to interract between proxy/server if the proxy is directly connected on the server, it can't send message directly?

eternal oxide
#

how is it going to "send a message" without plugin messaging?

sterile breach
#

just sending directly his packets to the server, but with plugin message if I remember, the proxy send packet to the client then the client send it to the server

#

sorry I probably misunderstood something

eternal oxide
#

what you said makes no sense

#

teh proxy handles ALL packets between client and servers

#

plugin messaging allows a server to issue commands to the proxy

#

The client has no say in any of it.

sterile breach
#

ah okay

#

I'd heard that plugin messages were sent via the client (schema: proxy -> client -> server)

but it doesn't make sense

eternal oxide
#

teh client never sees any plugin messaging

#

its only between the proxy and servers

#

there IS a client plugin messaging channel

#

but its only used to send info from the client, like what mods its using

slender elbow
#

that is not true

#

plugin message, or rather custom payload packet, goes both ways, C2S and S2C

#

it was added by mojang for mods to communicate between server and client without breaking the protocol

sterile breach
eternal oxide
#

Yes its a simplification but it's accurate for his purposes

slender elbow
#

the proxy just so happens to be a man in the middle and you can use that to communicate with it

sterile breach
#

okay thanks

#

I understand

#

it also reminds me that to send a message plugin you must have a player connected. why can't we without? (please don't simplify)

eternal oxide
#

there are two ways to send a message. via the server or a player

#

one has a backing queue

#

so if no players are online the messages will be kept and sent once a player joins

#

I do not know how long they will be kept though

#

to actually send a message it requires a player connection, ask Mojang why they designed it that way

#

Its probably for simplicity

#

as requiring a player connection means any authentication has already been performed

#

Mojang have no proxies so have no need to send a PMC message to/from a server with no players on

sterile breach
#

we could send messages without the players, but the mojang protocol means that you can't?

eternal oxide
#

If you send a message with no players, where is it going to go? There are no connections to send over

lost matrix
sterile breach
#

ah okay That explains it.

#

thanks

halcyon hemlock
#

I want to quickly help one lucky person out

#

(I haven't done spigot in over a year)

slender elbow
#

I need to confirm that every even number greater than two is the sum of two primes

icy beacon
slender elbow
#

(in Minecraft/

tardy delta
icy beacon
remote swallow
slender elbow
#

:clueless:

eternal oxide
#

Scratch my back

icy beacon
slender elbow
#

now that's a real challenge

icy beacon
#

anyway @halcyon hemlock choose one

tardy delta
halcyon hemlock
#

6000$ you say

halcyon hemlock
eternal oxide
#

Like bears in teh woods πŸ™‚

blazing ocean
#

damn what is happening kekw

halcyon hemlock
#

it be like that homie

blazing ocean
#

oh i woul dlike some too

#

and some faster internet

halcyon hemlock
blazing ocean
#

tbf i'm not home

halcyon hemlock
icy beacon
halcyon hemlock
blazing ocean
#

lmao

halcyon hemlock
#

lmfaoo

#

im chillin

blazing ocean
#

instead of what your adapter can actually do

#

because my wifi card could also do 1gbit on an ancient laptop

blazing ocean
#

ffs

#

in germany we pay like 65€/month for 250 down, 40 up

#

kekw

halcyon hemlock
#

the server is 140 km away

blazing ocean
#

seoul
ok developed country citizen

halcyon hemlock
#

I moved to south korea lol

#

also i dont live there

blazing ocean
#

i moved to south korea
i don't live there
what

halcyon hemlock
#

dont live in seoul

blazing ocean
#

yea

robust ginkgo
#

Is it possible to check if a placed block is custom using PDCs?

halcyon hemlock
#

just get it and check it?

robust ginkgo
pseudo hazel
#

wdym

#

blocks themselves dont have pdcs

#

you can save data in the chunk or use a library that implemented this for you

robust ginkgo
#

Oh chunks can have this too? That's good to know, thanks!

pseudo hazel
#

yes chunks have pdc afaik

icy beacon
#

also from where did you move

remote swallow
#

everything you see here has pdc

robust ginkgo
#

Should I just use the in-chunk coordinates as the key then?

icy beacon
icy beacon
icy beacon
undone axleBOT
remote swallow
icy beacon
halcyon hemlock
#

it's a pretty good place tbh

#

safe and people are nice

icy beacon
icy beacon
remote swallow
#

if its a class you shouldnt extend it

icy beacon
#

While the Bukkit API makes every effort to ensure stability, this is not guaranteed, especially across major versions. In particular the following is a (incomplete) list of things that are not API.

Implementing interfaces. The Bukkit API is designed to only be implemented by server software. Unless a class/interface is obviously designed for extension (eg BukkitRunnable), or explicitly marked as such, it should not be implemented by plugins. Although this can sometimes work, it is not guaranteed to do so and resulting bugs will be disregarded.
Constructing inbuilt events. Although backwards compatibility is attempted where possible, it is sometimes not possible to add new fields to events without breaking existing constructors. To ensure that the API continues to evolve, event constructors are therefore not plugin API.
Implementation classes. Concrete implementation classes packaged with Bukkit (eg those beginning with Simple) are not API. You should access them via their interfaces instead.
halcyon hemlock
#

from pak

icy beacon
#

lmao

icy beacon
halcyon hemlock
#

yea

icy beacon
#

i see

atomic basalt
#

is there a way to force a plugin to load classes from its own source over builtin sources?
i'm facing a situation where i'm trying to run antlr 4.13 but minecraft exports 4.9 which fsr gets precedence over the v4.13 classes i include

eternal oxide
#

antlr? I don;t recognise that as a packaged dependency

atomic basalt
#

hmm then it seems like it might be included in the software i use for testing (because i will personally depend on compatibility to it); arclight

eternal oxide
#

Yeah I looked its nothing to do with Spigot

atomic basalt
#

that kinda didnt answer the question though; its there a way to take precedence for a set of classes in the internal classloaders?

eternal oxide
#

if its provided by a lib you use its unlikely

#

as that lib is written for that version and will be loaded with that lib

atomic basalt
#

i am including the classes in a shadowjar

#

they are still being overridden by "defaults"

eternal oxide
#

if you are shading then you would have to specifically exclude that older version and include the one you want instead

atomic basalt
#

i dont ship the old version

eternal oxide
#

you do or it would not "override" your version

atomic basalt
#

it looks like it is being included by server.jar and thus takes precedence over the classes i ship

eternal oxide
#

spigot does not ship antlr

eternal oxide
#

You can look in your bundler folder (on your server) to see what is shipped with it

atomic basalt
#

sorry, what "bundler folder"?

eternal oxide
#

on your server, spigot creates a bundler folder

atomic basalt
#

well at this point i assume that is something that arclight does not, as i dont see such folder
which takes the problem out of context for this place

atomic basalt
eternal oxide
#

Unlikely to work. It will use whatever version is loaded first on teh class path

atomic basalt
#

now for instance; i was able to solve the problem by downgrading hibernate (and affiliates), which on v6 depends on antlr 4.13, to versions that can work with antlr 4.9; ```groovy
implementation 'org.hibernate:hibernate-core:5.6.0.Final'
implementation 'org.jboss:jandex:2.4.5.Final'
implementation 'com.zaxxer:HikariCP:4.0.3'

brisk harbor
#

how long does "Post resource update" take to show up on the plugin page?

eternal oxide
#

if its an existing plugin, instantly

brisk harbor
#

wha

#

why is mine not working

#

does spigot rename files when downloading?

eternal oxide
#

are you logged in with 2fa?

brisk harbor
#

yeah

fathom silo
#

Hi, I meet all the conditions to post a premium plugin but I can't select premium when adding a resource. I have 200 messages, 20 positive ratings and 3 free resources.

#

and 2fa is activated

#

I joined spigot in 2015

brisk harbor
#

i dont know what i did differently

#

thanks tho

eternal oxide
#

Internet pixies

brisk harbor
#

yea

#

also

#

when i download my own plugin from the page does it count towards downloads?

eternal oxide
#

I should hope not

brisk harbor
#

yeah

#

i asked because i wanted to know if the number of downloads were 14 different people downloading or just me testing my plugin

robust ginkgo
#

If I pass a map to a function as a parameter, it will still reference the same map, right?

eternal oxide
#

yes

restive mango
#

Suppose I want to slow down the growth rate of wheat by 32x, would it be sufficient to simply add a random check each BlockGrowEvent which gives the wheat a 1/(32/getMaximumAge) chance of successfully growing to the next stage?

misty ingot
#

well it would be random

#

so not exactly 32x slower

acoustic pendant
#

is there any way to get if the server is connected to a proxy?

eternal oxide
#

use plugin messaging and ask the proxy for server info.

#

if it responds you are on a proxy

acoustic pendant
#

from a spigot plugin

#

I've read a resource, but still doubting

icy beacon
#

you may be better off posting this on the Spigot Plugin Development forum and waiting for help there, this seems like a decently complex problem that many people would just skip and it'd be lost in this chat again

halcyon hemlock
#

did u try reflections?

#

just use reflections and update the field

blazing ocean
#

makeSureValueIsntTooLowOrTooHigh
mojank moment

late sonnet
blazing ocean
#

i'm not even gonna look at it

sleek estuary
late sonnet
blazing ocean
#

wtf

#

hey atleast there's an @Nullable in there

late sonnet
sleek estuary
misty ingot
#

well, whats plot

#

think about why #getArea#getRegionAbs would return null

sleek estuary
#

how then?

#

because this not is the real coordinates of the plot

turbid flame
#

Any possibility to load plugin which is not extended by JavaPlugin?

#

Overwrite PluginClassLoader so it dont check if Plugin is instanceof JavaPlugin?

#

Depends on what the data if it's simple boolean or String, no

#

If you store objects here that are big and in many PDC, yees

#

No

#

Why don't you use Intellij Profiler to check that on your own?

#

Or simple for loop that does this operation 10000 times XD

#

And check benchmark

#

What a stupid question fr

acoustic pendant
elder dune
#

Hello Im looking for some help on how I would make (As its now classed as) faked custom encahnts

So I want it so when I click say Emerald with the Name "Smelter" on it on too a pickaxe it adds "Smelter I" to the pickaxe
lore and removes the Emerald out the users Invin

acoustic pendant
elder dune
#

Like what would be the best method of going about this ?

eternal oxide
#

however

#

why?

acoustic pendant
#

Uh

eternal oxide
#

are you tryign to check if a player connected via the proxy or direct?

acoustic pendant
eternal oxide
#

get teh player list

acoustic pendant
#

and placeholder can't be used in a proxy so I'm trying to do this in a spigot plugin

acoustic pendant
eternal oxide
#

either player list of the server

acoustic pendant
eternal oxide
#

what?

#

that will tell you ALL online players

acoustic pendant
#

oh nvm

elder dune
#

!pastbin

icy beacon
#

?paste

undone axleBOT
acoustic pendant
eternal oxide
#

depends, did you ask for ALL or a specific server?

acoustic pendant
eternal oxide
#

also yes you are doing it wrong

acoustic pendant
#

I'll read the resources better

prisma jolt
#

?paste

undone axleBOT
robust ginkgo
#

Is there a clean way to convert a pdc to a string for debugging?

prisma jolt
eternal oxide
#

I see nothing in there about muting

void ingot
#

So I'm a new Plugin Developer, and I have started making new plugins made by me. I made this one earlier, but I want to add colours like &6&lQuickRTP ➀ You have been teleported to a random location in the world
However, at the moment it is not showing any colours and is just plain white like this:

#

Wait I can't even upload files nvm

delicate lynx
#

how are you sending the message?

#

share the code

void ingot
#

Alr

acoustic pendant
#

I don't understand it too much mb

#

oh wait, that's not the correct subchannel

eternal oxide
#

you seem to have lost the plot

acoustic pendant
eternal oxide
#

you are writing in a read message

void ingot
wide coyote
#

are chunk's plugin tickets persistent?

eternal oxide
#

no

wide coyote
#

thats sad

#

and do they only apply to one chunk?

#

or does it apply to surrounding chunks as well

robust ginkgo
#

Can you not add pdc values to a crafting recipe output?

wide coyote
#

to the recipe itself or the result item

robust ginkgo
#

result

wide coyote
#

you should be able to set it

#

since its a part of the itemmeta

robust ginkgo
#

How can I check in game if it works?

wide coyote
#

ItemMeta#getPersistentDataContainer().has()

#

printout this

void ingot
robust ginkgo
void ingot
robust ginkgo
#

Does the pdc get lost if you use generated from the ItemFactory?

acoustic pendant
#

Is that?

eternal oxide
#

does it work, is the answer

acoustic pendant
#

I'll try but idk

void ingot
#

@robust ginkgo How do I create a .yml file in Intellij?

robust ginkgo
#

idk I never used it for non-java stuff

void ingot
robust ginkgo
#

Okay? I don't know?

void ingot
tardy delta
#

people still creating bukkitrunnables instead of using the scheduler πŸ₯Ί

dark moth
#

blablalba.yml

icy beacon
void ingot
icy beacon
icy beacon
dark moth
void ingot
#

ohh ok

#

thanks

icy beacon
#

bruh

dark moth
#

it works :)

void ingot
#

anyone know why this is occuring?

icy beacon
#

intellij could be on mushrooms

dark moth
#

how the hell i could understand that bruh

icy beacon
#

check that the package exists

dark moth
#

fr

icy beacon
#

if it does, invalidate caches and restart

void ingot
icy beacon
#

though sometimes you can just erase a character and put it back and it works again

icy beacon
#

check that the folder com.idroom exists

void ingot
#

how do i check if it exists 😭

icy beacon
#

what the fuck dude

#

have you created that package

#

or not

dark moth
#

from here ig ?

icy beacon
#

yes...

void ingot
#

OHH

#

im stupid mb

dark moth
#

lol

icy beacon
icy beacon
dark moth
#

yes

icy beacon
#

jk you'll get there with experience

void ingot
#

haha thanks

#

im new so yeah

#

i defo have it..

rapid vigil
#

It's literally me. not com.

icy beacon
#

are you fucking blind

#

what the fuck

void ingot
#

thanks though @icy beacon @rapid vigil @dark moth

icy beacon
#

why the fuck would it not make a difference???????????

#

it's literally

#

different

dark moth
#

@icy beacon

icy beacon
#

i'd rather you don't do tjhat

dark moth
#

can we do animations with plugins ?

icy beacon
#

idk?

dark moth
#

oh

icy beacon
#

fym by animations

dark moth
#

well then

icy beacon
#

this is a very broad term

rapid vigil
#

If you call removing and item and placing it back using a repeating task an animation then yes

icy beacon
#

nah not with plugins

#

unless you do crazy fuckery with armor stands

rapid vigil
#

you might want to move to forge/fabric

icy beacon
#

and custommodeldata

dark moth
icy beacon
#

it won't be the same though

#

and will be very very hacky

dark moth
#

i tried them once

#

and i was like "oh nah im cooked bruh i cant develop"

dark moth
#

and it was nice

#

but uhh

#

so hard to do

rapid vigil
#

Open that project and ctrl c ctrl v :P

dark moth
#

XD

#

alr ima go crazy with armorstands im ngl

#

ima try to do cutscenes (dont mind if i ask 5000 questions)

alpine urchin
#

@dark moth what is that pfp

#

XD

dark moth
#

my pfp ?

#

oh

alpine urchin
#

the fact that you were surprised

#

is astonishing

dark moth
#

its a good boy sigma skibidinalist man faced pou

#

whats wrong with that

#

tf is wrong with my pfp

alpine urchin
#

goofy

dark moth
#

ik lol

clever acorn
#

anyone having issues importing org.bukkit.Sound and org.bukkit.Material in spigotapi? im using the shaded jar

#

and the classes are in the archive of the shaded jar

remote swallow
#

update intellij

clever acorn
#

but it simply wont come up in my IDE

#

okay, ill try that

umbral ridge
#

hey

#

is there a max chars limit on prefix in 1.20.6

#

team prefix

clever acorn
clever acorn
#

its so weird

#

def the strangest bug ive ever seen

remote swallow
#

?img

undone axleBOT
#

Can't send images? That's because you're not verified! Use !verify to complete verification.
Alternatively, you can upload screenshots to any image hosting site and share the link.

Here's some screenshot utilities that you can use to upload images.
Lightshot: https://prnt.sc
Imgur: https://imgur.com/upload
Flameshot: https://flameshot.org

clever acorn
#

test

#

@remote swallow

#

its specifically enums i think, because SoundCategory works fine

#

same for SoundGroup

eternal night
#

You are on latest IJ?

clever acorn
#

but material/sound don't work

#

yes

eternal night
#

2024.x=

clever acorn
#

yep

eternal night
#

and your project is configured to use java 21?

clever acorn
#

ill change that

eternal night
flat belfry
#

hello guys, this is my code and I have the following problem, when I am trying to apply enchants from config.yml file like this

#
    private ItemStack createDropItem(Map<?, ?> dropConfig) {
        try {
            String itemType = (String) dropConfig.get("item");
            Material material = Material.valueOf(itemType.toUpperCase());
            ItemStack item = new ItemStack(material);

            String itemName = (String) dropConfig.get("name");
            if (itemName != null) {
                ItemMeta meta = item.getItemMeta();
                if (meta != null) {
                    meta.setDisplayName(ChatColor.translateAlternateColorCodes('&', itemName));
                    item.setItemMeta(meta);  // Set meta before adding enchantments
                }
            }

            List<Map<?, ?>> enchantmentsConfig = (List<Map<?, ?>>) dropConfig.get("enchantments");
            if (enchantmentsConfig != null) {
                for (Map<?, ?> enchantmentConfig : enchantmentsConfig) {
                    Enchantment enchantment = Enchantment.getByName(((String) enchantmentConfig.get("type")).toUpperCase());
                    int level = ((Number) enchantmentConfig.get("level")).intValue();
                    if (enchantment != null) {
                        item.addUnsafeEnchantment(enchantment, level);  // Add enchantments after setting meta
                    } else {
                        plugin.getLogger().warning("Invalid enchantment type: " + enchantmentConfig.get("type"));
                    }
                }
            }

            return item;
        } catch (Exception e) {
            plugin.getLogger().severe("Error creating drop item: " + e.getMessage());
            return null;
        }
    }
#

and this is my config.yml:

default:
  spawn-world: world
  entities:
    - type: ZOMBIE
      baby: true
      name: "&aGivi"
      x: 2000
      y: 88
      z: 100
      interval: 10
      damage_multiplier: 10.0
      max_health_multiplier: 2.0
      drop_chance: 0.5
      drop:
        material: "DIAMOND_SWORD"
        name: "&bGivi's Blade"
        enchantments:
          - type: "SHARPNESS"
            level: 5
          - type: "UNBREAKING"
            level: 3
      equipment:
        helmet: "IRON_HELMET"
        chestplate: "IRON_CHESTPLATE"
        leggings: "IRON_LEGGINGS"
        boots: "IRON_BOOTS"
        main_hand: "IRON_SWORD"
        off_hand: "SHIELD"
#

the problem is that when I have more than 1 enchant in my enchanments section, no enchant gets applied to the item, but when I have only 1, it gets applied

#

I don't understand the reason why would it happen, I am using for loop and each enchant is applied individually

#

could you give me a hand to figure out the problem cause?

tardy delta
#

theres getList btw

flat belfry
#

what do you mean

tardy delta
#

config.getList

remote swallow
#

the enchantments there would be a map list

#

so getMapList

blazing ocean
#

bukkit configs are the reason i started using ktx.serial (+kaml)

tardy delta
#

toml πŸ€“

flat belfry
#

so you are saying that problem is in the retrieveing the config?

blazing ocean
#

i like toml

tardy delta
#

glad someone agrees

tranquil ferry
#

can i use supported plugin names in title

#

like XYZ | itemsadder Support

#

ping me with response please

eternal oxide
#

if you are talking about on your Spigot page. Its best to add them to the page contents not teh title

tranquil ferry
full stump
#

Hi

#

I got this error

#

in bungeecord

#

Non [a-z0-9/_-] character in path of location: lcipling

tranquil ferry
#

*many

full stump
eternal oxide
tranquil ferry
#

cool

eternal oxide
full stump
#

i dont know because the error

eternal oxide
#

?paste the full error

undone axleBOT
full stump
#

i only have a wrong simbol in motd is this error?

#

is a photo

#

not a problem

eternal oxide
#

?img

undone axleBOT
#

Can't send images? That's because you're not verified! Use !verify to complete verification.
Alternatively, you can upload screenshots to any image hosting site and share the link.

Here's some screenshot utilities that you can use to upload images.
Lightshot: https://prnt.sc
Imgur: https://imgur.com/upload
Flameshot: https://flameshot.org

full stump
#

with the console

eternal oxide
#

yeah don;t use :

full stump
#

let me change it

#

same error

#

@eternal oxide

eternal oxide
#

legacy:lclping ?

full stump
#

i dont understand

#

It was like this before:

eternal oxide
#

thats what your error says

full stump
#

Rn:

eternal oxide
#

I'm betting you modified your MOTD with color codes and didn't wrap it in ' '

full stump
#

let me see it

#

motd: |-
&b⛀ &lTyxer Network &r&7[ 1.7 - 1.8.9 ] &b⛀&r&r
&a⛀ &a&lSOTW&r&f starts &r&a&lTomorrow&r &fat&r &a&l12:00 &aβ˜†

#

i have this

eternal oxide
#

?paste your full file

undone axleBOT
full stump
#

sure

#

i can delete the ip plse?

eternal oxide
#

of course

kind hatch
#

Feel free to redact sensitive info

full stump
eternal oxide
#

yeah its yoru motd

kind hatch
#

I think motds have to use the Unicode format don’t they?

eternal oxide
#

put ' either side of it

kind hatch
#

At least for most special symbols.

full stump
#

How would it be corrected?

eternal oxide
#

put a ' at the beginning and the end

full stump
#

like this?

#

motd: ' |-
&b⛀ &lTyxer Network &r&7[ 1.7 - 1.8.9 ] &b⛀&r&r
&a⛀ &a&lSOTW&r&f starts &r&a&lTomorrow&r &fat&r &a&l12:00 &aβ˜†'

eternal oxide
#

yes

full stump
#

let me try it

eternal oxide
#

on all of them

#

3 in total

full stump
#

like this?

#

motd: ''' |-
&b⛀ &lTyxer Network &r&7[ 1.7 - 1.8.9 ] &b⛀&r&r
&a⛀ &a&lSOTW&r&f starts &r&a&lTomorrow&r &fat&r &a&l12:00 &aβ˜†'''

eternal oxide
#

not 3

#

you have 3 motd

full stump
#

oh

eternal oxide
#

only one ' at beginning and end

full stump
#

ok

eternal oxide
#

of each

full stump
eternal oxide
#

try it

full stump
#

Because it appears that it does not fill the entire code

#

ok

kind hatch
#

Yaml multiplies strings are weird like that.

full stump
#

same error

#

`enforce_secure_profile: false
server_connect_timeout: 5000
listeners:

  • bind_local_address: true
    force_default_server: true
    forced_hosts:
    pvp.md-5.net: pvp
    host: 0.0.0.0:25565
    max_players: 1500
    motd: ' |- &b⛀ &lTyxer Network &r&7[ 1.7 - 1.8.9 ] &b⛀&r&r &a⛀ &a&lSOTW&r&f starts
    &r&a&lTomorrow&r &fat&r &a&l12:00 &aβ˜†'
    ping_passthrough: false
    priorities:
    • lobby
      proxy_protocol: false
      query_enabled: true
      query_port: 25565
      tab_list: GLOBAL_PING
      tab_size: 60
      remote_ping_cache: -1
      network_compression_threshold: 256
      permissions:
      admin:
    • bungeecord.command.alert
    • bungeecord.command.end
    • bungeecord.command.ip
    • bungeecord.command.reload
    • bungeecord.command.kick
    • staffchat.talk
    • staffchat.read
    • staffchat.toggle
    • staffchat.mute
    • ab.all
      default:
    • bungeecord.command.server
    • bungeecord.command.list
    • bungecore.command.lobby
    • auth.lobby
      log_pings: true
      connection_throttle_limit: 3
      prevent_proxy_connections: false
      timeout: 30000
      player_limit: -1
      ip_forward: true
      groups:
      NotForokad:
    • admin
      remote_ping_timeout: 5000
      connection_throttle: 4000
      log_commands: false
      stats: 10f5676b-78a9-4649-afc9-ee869b3c93e2
      online_mode: false
      forge_support: false
      disabled_commands:
  • disabledcommandhere
    servers:
    hcf:
    address:
    motd: ' |- &b⛀ &lTyxer Network &r&7[ 1.7 - 1.8.9 ] &b⛀&r&r &a⛀ &a&lSOTW&r&f starts
    &r&a&lTomorrow&r &fat&r &a&l12:00 &aβ˜†'
    restricted: true
    lobby:
    address:
    motd: ' |- &b⛀ &lTyxer Network &r&7[ 1.7 - 1.8.9 ] &b⛀&r&r &a⛀ &a&lSOTW&r&f starts
    &r&a&lTomorrow&r &fat&r &a&l12:00 &aβ˜†'
    restricted: true`
kind hatch
#

Then you likely have to use the Unicode string format for the symbol.

eternal oxide
#

then use " instead of '

eternal oxide
#

it will be one or the other

full stump
#

let me try

#

i will try deleting the motd

#

i only putting like "a"

#

same error

#

with the motd in "a"

eternal oxide
#

are you restartign bungee after editing the config?

full stump
#

yea

kind hatch
full stump
kind hatch
#

Give that a read to make sure you have the right syntax.

#

Cause there’s two ways to do multiline strings.

#

Also, try the Unicode syntax.

eternal oxide
#

Is this error when you try to join a server?

eternal oxide
#

is it the lobby?

full stump
full stump
#

of the bungee

#

and the lobby

#

the HCF is disconnected

eternal oxide
#

then the error is likely propogating from the lobby server

full stump
#

I tested the lobby without the bunge

#

and works perfectly

eternal oxide
#

oh one sec, it says resource location

#

do you use a resource pack?

full stump
#

nop

#

and the survival dont have a texture pack

#

lobby*

eternal oxide
#

no clue then

full stump
#

idk

eternal oxide
#

does legacy:lc|ping mean nothing to you?

full stump
#

nop

#

but what is legacy?

#

i dont understand

eternal oxide
#

no clue, thats what is causing the error

#

search yoru files for that string

full stump
#

i deleted config file

kind hatch
#

But did you actually restart?

full stump
#

yea

kind hatch
#

You typed end into the bungeecord console?

full stump
#

i only stopped it}

kind hatch
#

Wdym by stopped?

full stump
#

i on pterodactyl

kind hatch
#

Ah, ok

full stump
#

i deleted the config file

#

and the same error

#

I have this plugins

eternal oxide
#

the error is from your lobby server

full stump
#

AquaCore.jar
bungee-1.0-SNAPSHOT.jar
DynamicBungeeAuth-10.30B.jar
NODConnect.jar
SkinsRestorer.jar

#

But only lobby

#

works

#

without bungeecord

kind hatch
#

Is the lobby server set to be a bungeecord server?

full stump
#

oh i look this in the lobby server

minor cave
#

Hi i have problem with bedwars, when someone dies, it disconnects them from the game and puts them on mainlobby and the game ends (he had bed)

full stump
#

how i can send code?

kind hatch
#

?paste

undone axleBOT
full stump
eternal oxide
#

?codeblock

undone axleBOT
#

You can use the discord code block format to display code or just text in a more pleasing way:
```java
public class MyPlugin extends JavaPlugin {
@Override
public void onEnable() {

}

}```
Becomes:

public class MyPlugin extends JavaPlugin {
    @Override
    public void onEnable() {

    }
}```
full stump
#

i try deleting viaversion?

eternal oxide
#

I'd start with no plugins and build up

minor cave
prisma jolt
#

?paste

undone axleBOT
minor cave
chrome beacon
prisma jolt
minor cave
prisma jolt
#

https://paste.md-5.net/fixaworaca.java

So I am using LiteBans for the proxy plugin but when I do [item] it does nothing and so when I put LiteBans and the item plugin on the same server. It works fine. Is there a way to fix this?

full stump
eternal oxide
#

no plugins?

#

then wipe and setup fresh

full stump
#

yea but i look this rn

#

[20:09:21] [Server thread/INFO]: #------------------- Chest Commands Errors -------------------#
[20:09:21] [Server thread/INFO]: 1) The item "wool" used to open the menu "example.yml" is invalid: invalid material "wool"
[20:09:21] [Server thread/INFO]: #-------------------------------------------------------------#

#

I think thats is the error

#

nope is the error 100% of bungeecord

#

@eternal oxide

full stump
minor cave
#

Or idk πŸ˜„

full stump
#

i delete the plugin

#

but the error is from bungeecord

river oracle
#

that's 100% not a bungeecord error

#

its a Chest Commands error

full stump
#

i delete the plugin

#

i say

#

all plugins

eternal oxide
#

he has another error

#

client disconnect

#

only happens when enterign via bungee

full stump
#

:( i cant fix it

eternal oxide
#

I'd wipe everything and start with a fresh setup

#

I dounbt its a bungee error if you cleared your motd

full stump
#

i have flamecord

#

isnt a error?

eternal oxide
#

its more likely an error passed through from the lobby

#

I've no idea what flamecord is

full stump
#

bungeecord remake like this

eternal oxide
#

throw it away and use bungee

full stump
#

firewall, ipban , idk

eternal oxide
#

if it works with bungee

prisma jolt
#

Why are you typing here when this is a server. issue.. not development...

kind hatch
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.

kind hatch
#

Same applies for bungeecord

full stump
#

Bungeecord

#

same error.

prisma jolt
#

Go to their discord

#

not here

#

Now... can someone assist me please.

https://paste.md-5.net/fixaworaca.java

So I am using LiteBans for the proxy plugin but when I do [item] it does nothing and so when I put LiteBans and the item plugin on the same server. It works fine. Is there a way to fix this?

full stump
prisma jolt
#

That is not my error...

full stump
#

but this is the code

prisma jolt
#

Yeah but not my problem

#

"So I am using LiteBans for the proxy plugin but when I do [item] it does nothing and so when I put LiteBans and the item plugin on the same server. It works fine. Is there a way to fix this?"

full stump
#

so idk

#

a plugin for the [item]

prisma jolt
#

You gave it your best LMAO

prisma jolt
#

Thank You

full stump
#

he have source code