#help-development

1 messages · Page 2127 of 1

quaint mantle
#

Yes

crisp steeple
#

you have to set the item in that slot to null then

crimson terrace
#

in that case the amount would become 0 and the item would vanish I believe

quaint mantle
#

Damn

crisp steeple
#

it doesn’t like trying to set an item to 0

crimson terrace
#

it does for me

crisp steeple
#

it’s sort of weird how it works

#

sometime it will but sometimes it won’t

crimson terrace
#

it works for non stackable items for sure

crisp steeple
#

but usually i just set it to null if it’s 0 and it works

quaint mantle
coarse finch
#

will strikeLightningEffect create fire or sound?

quaint mantle
#

do i just

#

set the items material

#

to air

#

or

crisp steeple
#

no

#

that doesn’t really work some of the time either

crimson terrace
#

I had a problem with setting the item to air causing the server to crash

quaint mantle
#

do i set the ItemStack object itself to null?

crimson terrace
#

but that was the interactevent, not sure if that applies here

crisp steeple
#

yes

quaint mantle
#

thats EXTREMELY bad

#

but ok

crisp steeple
#

what

quaint mantle
crisp steeple
#

?

tardy delta
#

what

crisp steeple
#

don’t set the reference to null

crimson terrace
#

this works like a charm for me. maybe try this if the setting to null doesn't work

crisp steeple
#

set the item in the slot to null

quaint mantle
#

event.getItemInHand()

#

Do I set this to null

#

Like

crisp steeple
#

you get the slot it’s in

#

then you set that spot in the players inventory to null

crimson terrace
#

its not null, i checked before

crisp steeple
#

oh

#

assumed that’s what the warning was about

#

try both if you want

crimson terrace
#

getEquipment and getHand() could be null, but they arent

crisp steeple
#

admittedly using the inventory method doesn’t feel very efficient, but it worked for me when nothing else would

crimson terrace
#

what version of minecraft are you developing for?

#

I just noticed it says getItemInHand() not main hand

coarse finch
#

how do i get the player from a CommandSender

#

sender.getPlayer()errors

crimson terrace
#

cast it

#

(Player) sender after making sure it is a player

coarse finch
#

ok

tardy delta
#
if (sender instanceof Player) {
  Player player = (Player) sender;
}```
coarse finch
#
        at me.kidneybean.generalutils.GeneralUtils.onEnable(GeneralUtils.java:54) ~[generalutils-1.0.2-SNAPSHOT-all.jar:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[purpur-api-1.18.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[purpur-api-1.18.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:501) ~[purpur-api-1.18.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_18_R2.CraftServer.enablePlugin(CraftServer.java:559) ~[purpur-1.18.2.jar:git-Purpur-1610]
        at org.bukkit.craftbukkit.v1_18_R2.CraftServer.enablePlugins(CraftServer.java:473) ~[purpur-1.18.2.jar:git-Purpur-1610]
        at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:669) ~[purpur-1.18.2.jar:git-Purpur-1610]
        at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:436) ~[purpur-1.18.2.jar:git-Purpur-1610]
        at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:352) ~[purpur-1.18.2.jar:git-Purpur-1610]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1179) ~[purpur-1.18.2.jar:git-Purpur-1610]
        at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:320) ~[purpur-1.18.2.jar:git-Purpur-1610]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]```
#

why do i get this

#

i have a value in the thing

quaint mantle
#

owo

tardy delta
#

register your command in your plugin.yml

#

owo

coarse finch
tardy delta
glossy venture
#

yeah

harsh totem
#

if I try to get an entity by name with a name that doesn't exist will I get null or some error?

#

and if so then what error will I get

crisp steeple
#

wdym entity by name

tardy delta
#

its custom name i guess

#

dunno if theres a method for that

harsh totem
crisp steeple
#

oh

crisp steeple
#

i mean it depends what context you’re using it in

tepid ore
#

If it is enum.valueOf

#

Error

crisp steeple
#

i presume EntityType.valueOd()

harsh totem
vagrant stratus
#

uh

#

halp

tardy delta
#

whats that stacktrace lol

tepid ore
#

I have no clue what that is

vagrant stratus
#

idk bruh

tepid ore
#

Is it a schematic file?

vagrant stratus
crisp steeple
#

using lombok val by any chance?

#

idk

vagrant stratus
#

ew no, fuck lombok

harsh totem
coarse finch
#

will everyone on the server hear the lightning strike if i do strikeLightningEffect

vagrant stratus
#

hmmm

crisp steeple
#

don’t know anyone who has actually used the val and var in lombok before

tepid ore
harsh totem
tepid ore
#

Then error

crimson terrace
harsh totem
#

so if I use try catch Exeption will it catch it?

crimson terrace
#

yes

tepid ore
#

Yes

harsh totem
#

ok thanks

tardy delta
#

catch the illegalargument exception

crimson terrace
#

if youre not sure whether the thing youre passing in is an empty string or null just catch the null aswell

tardy delta
#

check that in the command

vagrant stratus
#
[15:09:41 INFO]: [WorldSchematics3] [STDOUT] is directoryListing null: true
[15:09:41 ERROR]: Error occurred while enabling WorldSchematics3 v3.1 (Is it up to date?)
java.lang.NullPointerException: Cannot read the array length because "<local6>" is null

Something with the directoryListing ig @tardy delta

#

oh, okay so I figured it out lol

#

or at least I think I did

#
[15:12:07 INFO]: [WorldSchematics3] [STDOUT] WORLD PATH DOESN'T EXIST
[15:12:07 INFO]: [WorldSchematics3] [STDOUT] is worldPath null: false
[15:12:07 INFO]: [WorldSchematics3] [STDOUT] is directoryListing null: true
#

so, I'll try creating the thing lol

vagrant stratus
#

huh, that seems to have fixed it.

#

Learned something new today

brittle lily
#

How Can I Open Inv?

waxen plinth
#

You have to pass the inventory to openInventory

#

You also can't just do new Inventory()

#

That's not how it works, Inventory is an interface

shy wolf
#

does any one know why im getting this error??
Caused by: java.lang.NullPointerException: Cannot invoke "org.bukkit.inventory.ItemStack.getItemMeta()" because the return value of "org.bukkit.event.player.PlayerInteractEvent.getItem()" is null

code error: java ItemStack item = event.getItem();

waxen plinth
#

It literally tells you

#

Word for word

shy wolf
#

but the item is not null

#

im holing an item

brittle lily
waxen plinth
#

It's likely the PlayerInteractEvent being fired for the off hand

#

Two events are fired every time you right click

#

One for the main hand, one for the off hand

shy wolf
#

so this will fix it?

if(event.getItem() == null){
    return;
}```
#

kinda

waxen plinth
#

Do you want it to work if the player has an item in each hand?

cyan compass
#

What would be the best way to find blocks in a certain area based on relative coords? Like when i use my item it does an interact event to the block coords and then i want it to scan a certain size for X block

waxen plinth
#

Do you want it to run twice in that case?

shy wolf
waxen plinth
#

Then return if the hand is not the main hand

quaint mantle
#

Can you connect a datapack to a plugin?

crisp steeple
#

connect meaning?

quaint mantle
#

EX: Custom blocks

crisp steeple
#

i mean you could use scoreboards in the plugin

#

isn’t that what datapacks use

quaint mantle
#

no lol

#

not to my knowledge anyway

cyan compass
#

Yes

#

They can

quaint mantle
#

Actually, might be easier to use a mod

cyan compass
#

Mostly now we use tags when making them

quaint mantle
#

Can you connect a mod to a plugin?

waxen plinth
#

No

#

Mods run on fabric/forge which is incompatible with spigot

tardy delta
cyan compass
#

Technically yes but i would not recommend it

#

Something like magma

quaint mantle
#

So a bad idea basically

crisp steeple
# tardy delta how?

i don’t know much about datapacks but don’t they use scoreboards to store variables and stuff

cyan compass
#

They do

crisp steeple
#

couldn’t you access those scoreboards on the server

cyan compass
#

Most things are tags now but scoreboards can be used

shy wolf
tardy delta
#

sounds like an awful way to store data

waxen plinth
#

Please don't ping me

crisp steeple
#

yeah it’s definitely not great

cyan compass
#

But honestly if you are using a plugin then don't bother with datapacks

crisp steeple
#

yeah

#

it’ll cause way more problems than it’s worth

shy wolf
#

i think so

waxen plinth
#

Yes

crisp steeple
tardy delta
#

isnt it either

lazerpos1:
  - something
  - somethingelse

or with the key/ value things but without the -

waxen plinth
#

Honestly just use a config serialization library

crisp steeple
#

location is configuration serializable already

waxen plinth
#

Yeah

#

But if you're doing anything other than saving primitives/things that are already ConfigurationSerializable just use a library

shy wolf
#

can you send me a link or something i cant find it

#

nvm

mortal hare
#

i have simple question

#

do you guys prefer syntactic sugar overloads

#

for example whenever you have method which can handle null values

#

do you overload that method with a method declaration which doesnt have that null type

coarse finch
#

what is the vanilla ban permission?

mortal hare
#

and forward the method to the nullable type method

unreal quartz
mortal hare
#

I've used it but I don't know if this overloading preferred

crisp steeple
coarse finch
ivory sleet
#

dovidas preferably I avoid passing null as much as possible as I can see it as a magical value in most cases, that being said there are of course exceptions

steel swan
#

?paste

undone axleBOT
steel swan
#

hey guys

coarse finch
#

how can i get all args except 0 in a string? (/ban player i want this to be string)

crisp steeple
#

string array?

#

Arrays.copyOfRange(arr, 1, arr.length)

#

params might not be in right order

tall dragon
#

eh i just have my own methods for that

kindred valley
mortal hare
kindred valley
tall dragon
#

thats quite a lot of indents 😄

kindred valley
tall dragon
#

what do you wanna know

kindred valley
tardy delta
tall dragon
kindred valley
quaint mantle
#

How would I prevent a player from replicating a spesific mushroom stem state?

#

AKA: An impossible one

brittle lily
#

guys How many seconds of 1 PotionEffect duration

tall dragon
kindred valley
brittle lily
#

I mean duration. How many times do I write there will equal 1 second?

crisp steeple
#
  • 20
tall dragon
brittle lily
tall dragon
#

if the server is running on 20 tps, 1 second = 20 ticks

brittle lily
tall dragon
#

yea, for example my commands look a little like this.

public class CobbleBenchmarkCommand extends CobbleCubeSubCommand {


    protected CobbleBenchmarkCommand() {
        super("benchmark", "used to benchmark generation speed for performance");

        setUsage("<CubeID> <Size> <DistributionSize> <Period> <Seconds>");
        setMinArguments(4);
    }

    // cc benchmark [cubeid] [amount] [distributions] [period]

    @Override
    protected void onCommand() {
        int amount = findNumber(1, "Could not parse amount.");
        int dist = findNumber(2, "Could not parse distributions.");
        int period = findNumber(3, "Could not parse period.");
        int seconds = findNumber(4, "Could not parse seconds.");


        CobbleCubeSettings settings = findSettings(args[0]);

        new BenchMark(getPlayer(), settings, amount, dist, period, seconds);
    }
}

i think its much more clean than having 25 indents and making your code unreadable.

tardy delta
tall dragon
#

pretty sure that will not apply when you build with maven.

coarse finch
#

how would i wait 1 tick?

tall dragon
#

with a scheduler

visual tide
#

you could use the sceduler

tardy delta
#

?scheduling

undone axleBOT
sacred mountain
#

how do i set objects as keys in yam

visual tide
#

?scheduler

brittle lily
#

!

tall dragon
tall dragon
kindred valley
crimson terrace
#

?paste

undone axleBOT
tall dragon
#

yea because your dependencies do not work.

#

you probably forgot to add a repository somewhere.

tall dragon
#

you are using code from a library that has not been added to your pom.xml

#

you probably added a library via intellij, and are now trying to build with maven

kindred valley
tall dragon
#

well. idk what libraries you use.

kindred valley
tall dragon
#

the spigot in ur pom.xml is 1.18.2

#

what is TNE

crimson terrace
#

https://paste.md-5.net/atejawoqik.md I really don't know what else to try here so I'll see if any of you know whats happening here. recipe.setIngredient() is throwing an IllegalArgumentException even when both key and ingredient are not null

kindred valley
mortal hare
#

man i wish java had forced inline methods

#

imagine util classes with inline methods

sacred mountain
#

can someone donate me their internal organs

crimson terrace
fading lake
sacred mountain
tall dragon
sacred mountain
#

close

crimson terrace
#

I have the api version 1.16.5

#

I am testing in 1.18

fading lake
#

I assume the error is coming from recipe.setIngredient(matKey.key, matKey.material); because it's not printing

crimson terrace
#

it is

#

and it is throwing an IllegalArgumentException. i tested that earlier

ornate heart
#

So i'm trying to mimic the MULTIPLY_SCALAR_1 operation within attribute modifiers, but I don't entirely know what this means

I assume it means you add 1 to whatever multiplicative you have, take that number, and multiply it by the either base value or regular value.

The only thing I'm confused about is do I multiply it by the base value or the regular value

crimson terrace
#

it adds to the value, then multiplies the resulting value with whatever

ornate heart
#

Yea, but what is the "whatever" part

crimson terrace
#

I assume it is x MULTIPLY_SCALAR_1 y -> (x+1)*y

fading lake
crimson terrace
#

yeah sure, thanks for helping 🙂

ornate heart
#

I might be misunderstanding it.

So, if I have an attribute modifier with a value of 2, and I add it to a player with no attributes modifiers and it's editing the attribute ATTACK_DAMAGE, what occurs?

coarse finch
#

im using the scheduler to repeat a task every tick for 3 times but i dont see how to specify for 3 times

#
scheduler.runTaskTimer(plugin, () -> {
    loopPlayer.playSound(loopPlayer.getLocation(), "entity.experience_orb.pickup", 1.0f, 1.0f);
}, 1L, 20L * 3L);```
tepid ore
#

I don't think you can run it only three times

#

You'll have to have an internal counter and exit after three iterations

coarse finch
#

ok

#

how would i do that? just add 1 to a var?

tepid ore
#

yeah

coarse finch
#

ok

harsh totem
#

does it matter if I get this error Method invocation 'setExecutor' may produce 'NullPointerException' for this code getCommand("heal").setExecutor(new heal());?
Because it still works just fine but it gives me this error

#

yes I userstand but does it even matter if I make it un nullable?

#

because it cant be null. the computer just thinks that it can

coarse finch
harsh totem
#

ok

coarse finch
#

ok

tepid ore
#

Yeah that

#

What zacken said

coarse finch
#

how would i set it tho

#

i cant set it to 1

#

ohh yeah

#

to exit

tepid ore
#

do var++; And cancel it if(var == 3)

#

you don't need else if

coarse finch
#

whats the task id

naive loom
coarse finch
#

will it still add it if it is a check?

#

ok

#

so then how do i add to it

tepid ore
#

I register when a hopper picks an item up using an InventoryPickupItemEvent. However, it is called three times every time it picks an item up, any idea why?

coarse finch
tepid ore
#

you can't do integer = integer.getAndAdd()

coarse finch
#

theres a 1 there

tepid ore
#

?

coarse finch
#

its integer.getAndAdd(1)

tepid ore
#

Oh, yeah

#

I see

spring minnow
#

How do i get the obsidian/cobblestone block generated when lava and water get in contact?

tepid ore
#

But you can't change the integer

#

you can't do int = int

coarse finch
#

would addAndGet work?

tepid ore
#

iirc

coarse finch
#

ok

tepid ore
#

Haven't worked that much with atomics

#

I just use enclosed ints

coarse finch
#

wel theres no errors so if it works it never gets touched again

tepid ore
#

lol

coarse finch
#

it is printing the value each time

#

oh wait i know

quaint mantle
# coarse finch

You could also use the implementation of the BukkitRunnable class

tepid ore
#

^

harsh totem
#

how do I make an item look enchanted when it has no enchants?

tepid ore
#

You need a custom enchantment

#

With no effects

quaint mantle
#

aka

new BukkitRunnable() {

    private int num = 0;

    @Override
    public void run() {
        //code here
    }
}```
harsh totem
tepid ore
#

Make a class that extends Enchantment

#

And just return when a method is called

harsh totem
#

ok

harsh totem
#

and also when I enchant something it asks for a Boolean input after the enchant level. what does this Boolean value mean?

tepid ore
#

Whether or not you may override the default level restrictions

#

Aka whether or not to allow for like efficiency 100+ etc items

#

"Impossible items"

harsh totem
#

ok

coarse finch
trail oriole
#

Any idea on how to get the block where the player is looking at since getTargetBlock won't work?

quaint mantle
#

what do you mean it wont work?

#

cast compile error?

trail oriole
#

It says "the method getTargetBlock is ambiguous for the type Player"

quaint mantle
#

getTargetBlock((Set<Material>) null, distance); right?

trail oriole
#

Yes

quaint mantle
#

can you send a quick screenshot of the code where the error is formed?

trail oriole
#
if (event.getAction().equals(Action.RIGHT_CLICK_AIR) || event.getAction().equals(Action.RIGHT_CLICK_BLOCK)) {
                Block block = player.getTargetBlock(null, 50);
                Location bl = block.getLocation();
                player.getWorld().strikeLightning(player.getTargetBlock(null, 15).getLocation());
            }```
quaint mantle
#

Make sure you cast the null

#

to either one of the parameters type's

trail oriole
#

i know

quaint mantle
#

Or else it doesn't know what method to use?

trail oriole
quaint mantle
#

cast it

#

(Set<Byte>) null

trail oriole
#

oh sorry

quaint mantle
#

yea

tepid ore
#

(Set<Material>)null

quaint mantle
#

it's fine

trail oriole
#
Block block = player.getTargetBlock((HashSet<Byte>) null, 50);```
quaint mantle
#

yep

trail oriole
#

it tells me to cast it like this

quaint mantle
#

yeah do that then

#

it should work now

vestal dome
#

uh

quaint mantle
#

?

vestal dome
#

I need help.

#

how do I disable the stupid > character in bungeecord

trail oriole
quaint mantle
#

how do i calculate blocked & critical hits

quaint mantle
tepid ore
trail oriole
#
public void onInteract(PlayerInteractEvent event) {
        Player player = event.getPlayer();
        
        if (event.getAction().equals(Action.RIGHT_CLICK_AIR) || event.getAction().equals(Action.RIGHT_CLICK_BLOCK)) {
            if (player.getItemInHand().getItemMeta().getDisplayName().equalsIgnoreCase("§6Fireball wand")) {
                Fireball f = player.launchProjectile(Fireball.class);
                f.setIsIncendiary(false);
            } else if (event.getAction().equals(Action.RIGHT_CLICK_AIR) || event.getAction().equals(Action.RIGHT_CLICK_BLOCK)) {
                @SuppressWarnings("deprecation")
                Block block = player.getTargetBlock((HashSet<Byte>) null, 50);
                Location bl = block.getLocation();
                player.getWorld().strikeLightning(bl);
            }
        }
    }
}
```both wands don't shoot
tepid ore
#

Do you get errors?

trail oriole
#

no

tepid ore
#

Or does it not work

#

Ok

eternal night
#

@EventHandler present ?

tepid ore
#

Are you registering the event class?

vestal dome
#

I'm sorry for what I'm about to.-

#

listener*

tepid ore
#

Why is Eclipse so stupid some times

trail oriole
#

agreed

tepid ore
#

It just randomly stopped using reflections for my plugin

#

I did nothing to the pom

#

I changed like 2 lines of code

#

Then

#

pow

#

Gone

vestal dome
#

unlucky!

tepid ore
#

How do I fix it :>

#

Don't say use Intellij

tardy delta
#

use ij

tepid ore
#

💢

coarse finch
quaint mantle
tardy delta
#

hello

tepid ore
coarse finch
#

Why not

#

Use vscode then

tepid ore
#

Why can't eclipse just be good

river oracle
#

whats your issue

tepid ore
#

My reflections just stopped working

quaint mantle
tepid ore
#

No reason

river oracle
#

Like java.lang.reflection

river oracle
#

your reflections just don't even import?

#

or they don't work when run?

tepid ore
#

org.reflections.Reflections;

#

These

river oracle
#

idk don't use reflections

#

probably a maven issue though

tepid ore
#

Huh...

#

Well

#

I just get java.lang.NoClassDefFoundError when I start my server now lol

eternal night
#

reflections explode on runtime tho

#

what class is not being found

tepid ore
#

I've re-downloaded the entire .m2 lib

#

Reflections

#

org/reflections/Reflections

eternal night
#

Are you properly shading ?

tepid ore
#

Indeed

#

It has worked for a few months

eternal night
#

can you share your pom ?

river oracle
#

is the class your looking for existing?

tepid ore
#

Until like

eternal night
#

?paste

undone axleBOT
tepid ore
#

5 seconds ago

#

It is wonky, but yeah

eternal night
#

pretty sure that that is not a proper includes set

#

you usually do something like groupID:artifactID

tepid ore
#

But...it has worked for a while?

#

Like

#

2-3 months

eternal night
#

¯_(ツ)_/¯

tepid ore
#

Cool

#

What do I change?

eternal night
#

e.g. see here

#

if yo uwant to match any artifact following, you use a :*

#

I would also suggest to reformat the pom.xml 🙂

#

just for good riddance

tepid ore
#
  1. Reformat? 2. You mean like org.reflections:*?
eternal night
#

reformat, the act of properly formatting the file

#

and yea org.reflection:*

tepid ore
eternal night
#

Go to Source | Format Document or press Ctrl+Shift+F.

#

is what google says

#

idk I don't use eclipse

river oracle
#

yea its ctrl shift f

eternal night
#

also obviously make sure you compile properly through eclipse

river oracle
#

I use eclipse hotkeys on vscode lol

eternal night
#

e.g. you do use maven and not eclipse's inbuild compiler

tepid ore
#

As in?

eternal night
#

idk

#

you are the eclipse user

#

¯_(ツ)_/¯

#

I'd try Ctrl + Shift + F

tepid ore
#

sigh

eternal night
#

should be easier

#

than eclipses ugly interface

tepid ore
#

I just get Generic Windows NO sound when I do Ctrl+Shift+F lol

#

Oh

#

My

#

Fkin

#

God

#

I'm gonna kill someone

ivory sleet
#

yes end my suffering pls

tepid ore
#

Hmm...well

eternal night
#

you okay conclure 😢

tepid ore
#

I was exporting my project using a non-shading build

#

Aka

eternal night
#

well then

tepid ore
#

No reflections

eternal night
#

that would do it

tepid ore
#

Yup

#

All works now

#

Nice

ivory sleet
tepid ore
#

:3

eternal night
#

😅 phew, thank god

ivory sleet
#

:3

#

n u still be investigating those UBs x)

eternal night
#

yea my unsafe go code these days does ugly things

ivory sleet
#

🙌

vestal dome
#

uh

#

I need help, anyone know how to disable JLine and the ">" character in bungeecord?

#

I've used -Djline.terminal=jline.UnsupportedTerminal when starting bungeecord as an argument, but it didn't work

#

and I ran out of ideas.

ivory sleet
#

is it even possible to disable that character at all

#

thought it was hardcoded

vestal dome
#

it has to be possible, there's no way?

#

spigot has an option to disable it

ivory sleet
#

mye Ig

vestal dome
#

by adding -nojline

ivory sleet
#

but that disabled jline entirely right?

vestal dome
#

well

#

what is disabling "JLine" entirely.

ivory sleet
#

disabling the lib from being called

#

like used

#

at all

vestal dome
#

dunno

ivory sleet
#

😮

eternal night
#

that looks like quite the hardcode

vestal dome
#

you're ..... kidding me..

quaint mantle
#

Can you check if redstone is leading into a block?

vestal dome
#

(yeah quite pissed)

eternal night
#

just fork it

#

lol

#

you can check if a block is powered

vestal dome
quaint mantle
eternal night
#

you cannot fork bungeecord ?

vestal dome
#

already using a premium fork

ivory sleet
#

woopsie

vestal dome
#

of bungeecord.

quaint mantle
#

i wish to check if cobblestone is powered :troll:

#

MY NITRO IS GONE

#

NO

#

nvm

#

outside emojis are just disabled

vestal dome
#

#

take this cup of coffee.

#

very good coffee.

vestal dome
#

I'm pretty pissed about it, but oh well

eternal night
#

I mean, if you are using a premium fork, ask then to implement it in a issue or something

vestal dome
#

it doesn't make sense tho..

eternal night
#

open an issue on bungeecord 🤔

#

idk, downside of not using open source projects

vestal dome
#

⁉️

#

huh

#

this is really sad, and made me really upset.

#

it couldn't actually ruin day faster, to be really honest..

slow thunder
#

how do i run a command as console?

vestal dome
#

Bukkit.dispatchCommand(CommandSender, String);

slow thunder
#

ty

wind tulip
#

I'm trying to make an external library, but I must be doing something wrong because it won't recognize any of the methods I created, can someone please take a look and lmk if you figure it out?

I exported the library and added it as a module, and I can import it just fine, however I can't use any of its functions?

Library: https://imgur.com/sNvlanh
Plugin that it is being used in: https://imgur.com/xE0FmKU

#

Figured I'd mention that the fact that I'm not inputting parameters should not be the cause -- The error is "Cannot resolve Symbol 'Test'"

queen patio
#

im using the WorldEdit API in an event call and some of the functions are asking for a "world" object as a parameter. I know how to get the current Bukkit world through event.getPlayer().getWorld() but it says that it needs the WorldEdit world object, not the bukkit one and I was wondering how I can get that?

zenith saddle
#

How do you add multiverse as a dependency and as a repository with maven? my code
`<repositories>
<repository>
<id>spigotmc-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<repository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/groups/public/</url>
</repository>
<repository>
<id>OnARandomBox</id>
<url>https://repo.onarandombox.com/content/groups/public/</url>
</repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>org.spigotmc</groupId>
        <artifactId>spigot-api</artifactId>
        <version>1.18.1-R0.1-SNAPSHOT</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>com.onarandombox.multiversecore</groupId> <!-- Don't forget to replace this -->
        <artifactId>Multiverse-Core</artifactId> <!-- Replace this as well -->
        <version>4.3.1</version> <!-- This too -->
        <scope>provided</scope>
    </dependency>
</dependencies>`
spare marsh
zenith saddle
#

But it just shows up red

spare marsh
#

Let me see, does it provide a reason?

zenith saddle
#

nope

#

wait here: Dependency 'com.onarandombox.multiversecore:Multiverse-Core:4.3.1' not found

spare marsh
#

Why don’t you try using the jar as a dependency but the jar located somewhere in your files

delicate lynx
spare marsh
#

Just add the SystemPath mark and specify the path that the jar is located in

#

Example

delicate lynx
#

try to invalid cache and restart

spare marsh
#
<scope>system</scope>
    <systemPath>C:/Desktop/Multiverse-Core.jar</systemPath>
#

That can also work

#

SystemPath can me anywhere you have it located it

zenith saddle
#

and I ad that inside of dependencies?

zenith saddle
delicate lynx
#

yeah intellij just sometimes doesn't work like that

#

and you have to invalid cache

zenith saddle
#

But I still want to know how to phisicaly put the file on my computer, how?

Nevermind

river oracle
#

generally you want to put the dependency to your M2 file than depend off it that way

spare marsh
river oracle
#

I just slap everything in my m2 maven provides tools to add a jar to the m2

#

that way you don't need to worry about a link ever breaking

spare marsh
#

Okay the guy needed help I just offered an option.

river oracle
#

also this yet again makes your code more portable

wind tulip
#

Does anyone else know how to import an external library you've made yourself?
I exported mine as a jar file, and added it to the modules tab just like you would with spigot, however I cannot use any of the methods in the library

Error: Cannot resolve symbol "MethodName"

queen patio
wet breach
#

that should work too

#

glad you have it resolved now 🙂

zenith saddle
#

How to suppress deprecated warnings?

eternal night
#

you annotate the method

quaint mantle
#

@SuppressWarnings("deprecated")

eternal night
#

your IDE should already suggest that

hexed hatch
#

Very novice Java issue but I'm really struggling to find anything on stack overflow for it

#

How can I copy a file from resources to a folder

#

In this case, it's a yml file that I'm trying to drop in the data folder if it isn't already present

eternal night
hexed hatch
#

I've done this in the past but I no longer have the project

#

Thanks

quaint mantle
#

?stash

undone axleBOT
quaint mantle
#

they do it

#

somewhere in JavaPlugin#saveResource

zenith saddle
#

Any better way?

#

btw I forgot to add x--

quaint mantle
zenith saddle
#

umm

quaint mantle
#

🤦🏿‍♂️

zenith saddle
zenith saddle
delicate lynx
#

bro what the fuck is that

quaint mantle
zenith saddle
#

You can not clear a team like that what?

delicate lynx
#

please for the love of god set the type of list

eternal night
#

also you just cast a set

#

lol

quaint mantle
eternal night
#

a ?learnJava moment

quaint mantle
#

?learnjava

undone axleBOT
delicate lynx
#

oh does that return a set

#

and not a list

eternal night
#

ye

delicate lynx
#

oh I guess it does since teams

#

bruh

zenith saddle
#

So besides for loop

#

How?

quaint mantle
#

why

#

just why

eternal night
#

getEntriesreturns you an immutable set

#

literally just iterate over it and call the removeEntry method for each

delicate lynx
#

why not just use clear()?

eternal night
#

the set is not backed by the team

quaint mantle
eternal night
#

and is immutable anyway

delicate lynx
#

oh I see

zenith saddle
eternal night
quaint mantle
#

bro..

zenith saddle
#

it is so dumb

delicate lynx
#

that's not what is dumb...

eternal night
#

[01:52] LynxPlay: literally just iterate over it and call the removeEntry method for each

delicate lynx
#

out of all looping things

#

you choose a while loop

zenith saddle
#

there

quaint mantle
#

dude why

delicate lynx
#

that won't clear the list

worldly ingot
#

team.getEntries().forEach(team::removeEntry);

#

lol

#

That's all you need

eternal night
quaint mantle
worldly ingot
#

It's not a stream

quaint mantle
#

dude it looks like a damn stream i know its not

eternal night
#

forEach is just a normal for-each loop

#

smh

worldly ingot
#

Yep. Implementation is just a for loop ;p

eternal night
#

a normal look would save you from the method handles 🤔

#

this does look like critical and very hot code kappa

worldly ingot
#

For future reference:

  • Team#getEntries() returns a Set, which is not a List and cannot be cast to one
  • Checking for != x in a loop is bound for issues. You should probably use >= or <= in a majority of situations when looping like that to avoid infinite loops
  • Collections can (and should - again in the majority of cases) be typed. This has been the case since like Java 6 (EDIT: 2004 lol. Way earlier)
hexed hatch
echo basalt
#

Is there a way to spawn an end crystal that heals the dragon just like in the fight?

hexed hatch
#

any end crystal will heal the dragon

echo basalt
#

Hmm okay

#

My idea was to make the dragon shoot tnt at the towers, respawning the crystals on certain health marks

#

So yeah that seems fairly straightforward in that case

quaint mantle
hexed hatch
#
left_arm: [-17, -61, 0]

Quick question for my yaml nerds: could I yoink these individual valeus out with getStringList

quaint mantle
#

why

hexed hatch
#

what do you mean why

#

I need it

ivory sleet
#

yes you can

hexed hatch
#

I almost never work with yaml but I have to make a config that's actually modifiable

#

sick

ivory sleet
#

assuming spigot is faithful

hexed hatch
#

we're about to find out

quaint mantle
#

but i meant if it doesnt matter to you then it doesnt matter

hexed hatch
#

I was going to make sure it was valid first

#

but does FileConfiguration even have a method for that

#

I barely touch this shit

#

oh shit getDoubleList is a thing

#

neat

zenith saddle
#

using the multiverse api how do you load a world from a file?

fleet pier
#

I start a spigot server in a processbuilder

#

how do i write a command now tho

#

into the spigot server thats running in a process

river oracle
#

well depends if your using Linux or windows if your using linux I actually reccomend using Screen to spawn a process completely detached from your screen

#

than you can send commands using screen vs processbuilder

river oracle
#

per this thread on stackoverflow

#

if you want to make a server-panel I reccomend using a language other than java though

pliant loom
#

is it possible to make a player right click an item like a fishing rod in a spigot plugin?

#

i basically wanna make the player reel in the fishing rod

#

ive tried both PlayerInteractEvent and PlayerFishEvent, doesn't seem to be working.

compact haven
#

honestly yeah, java might not be the best language for a daemon

quaint mantle
#

How can i update a scoreboard? ( im using teams and this is in a different class aside from my main class. )

#

nvm i think i got it

rugged cargo
#

is there a way you can use an itemstack as a HashMap key?

#

and if not instead. could i manually loop over it, and do entry.getKey().isSimilar(stack);?

#

so i think using itemstacks as keys is simply problematic. im gonna find another way

crisp steeple
#

indeed

quaint mantle
#

How can i set the blockdata for a wheat block to ripe? as crop is deprecatted and i cant see how to use cropstate

sharp flare
#

Ageable?

#

cast it to that

#

with the block data u have, you need to clone the block data iirc

quaint mantle
#

so like

Ageable newdata = ((Ageable) wheatblock.getBlockData());
                                newdata.setAge(5);
                                wheatblock.setBlockData((BlockData) newdata);
#

ignore weird spacing idk why it pasted like that

earnest forum
#

you dont need to cast at the end

#

i dont think

quaint mantle
#

it gave an error

earnest forum
#

ageable extends blockdata no?

#

?jd-s

undone axleBOT
quaint mantle
#

it gives the error required type BlockData
given Ageable

earnest forum
#

have you imported the right ageable

#

theres an entity and blockdata one

quaint mantle
#

Ohhh lemme see

#

i think i accidentally did entity

earnest forum
#

org.bukkit.block.data.Ageable

quaint mantle
#

ye there fixed ty

waxen plinth
#

Why would that be a problem

kindred valley
#

Redempt

waxen plinth
#

Hi

kindred valley
#

Do u know how to use maven

waxen plinth
#

Not really

#

I use gradle

golden turret
#

maven bad

#

gradle good

#

but say what do you need

kindred valley
#

I have never used it

#

I have never used such worktypes

#

I dont know what should i do because all the time it gives error

golden kelp
#

Send pom

#

.xml

kindred valley
golden kelp
#

No, i mean send full

#

Copy & paste it here

#

?paste <------ or on this thing

undone axleBOT
golden kelp
#

and show project structure

chrome beacon
golden kelp
#

Yea, seeing a non lts looks soo weird to me

dry forum
#

what thee actual hell im getting this error Caused by: java.lang.NullPointerException: Cannot invoke "org.bukkit.configuration.ConfigurationSection.set(String, Object)" because the return value of "org.bukkit.configuration.file.FileConfiguration.getConfigurationSection(String)" is null the configuration section is "warns" and yes... it exists... i have it in my config file in my project and yes the config file loads with the plugin ive tried making a config section with .createSection("warns"); and still nothing

VWarns.getInstance().getConfig().getConfigurationSection("warns")

golden kelp
#

Show config

#

are u saving after createSection

dry forum
#

config is nothing now since i tried .createSection("warns"); just check if its null on plugin start but it was just
warns:

#

yes if (this.getConfig().getConfigurationSection("warns") == null) { this.getConfig().createSection("warns"); this.saveConfig(); }

golden kelp
#

Yea so you also gotta add data in it

dry forum
#

i add data after i create it

#

tried adding something when creating the section still doesnt work same errors

golden kelp
#

Where did you calll the #set() method

dry forum
#

this is where the errors are happening

                    VWarns.getInstance().getConfig().getConfigurationSection("warns." + of.getUniqueId()).set("warnings", 0);
                }```
of is ```Player of = Bukkit.getPlayer(args[1]);```
and
```        if (this.getConfig().getConfigurationSection("warns") == null) {
            this.getConfig().createSection("warns");
            this.getConfig().getConfigurationSection("warns").set("demo", 1);
            this.saveConfig();
        }``` is the initial config section creating
harsh totem
#

Why am I not getting any enchantments when I summon this Item?

        ItemStack item = new ItemStack(Material.STICK, 1);
        ItemMeta meta = item.getItemMeta();
        meta.setDisplayName(ChatColor.DARK_RED + "Fire Wand");
        meta.addEnchant(Enchantment.FIRE_ASPECT, 3, false);
        List<String> lore = new ArrayList<>();
        lore.add(ChatColor.RED + "This tool is bound to burn the entire world to ashes.");
        lore.add(ChatColor.RED + "Right click to shoot fire balls.");
        meta.setLore(lore);
        item.setItemMeta(meta);
        fireWand = item;
    }```
golden kelp
#

r u getting the item first?

#

what is fireWand

harsh totem
#

yes

harsh totem
#

I get the item but it has no enchants

golden kelp
#

weird

hybrid spoke
harsh totem
#

it does

hybrid spoke
#

anything in the console?

harsh totem
#

nothing but me executing the command

golden kelp
#

meta.addEnchant(Enchantment.FIRE_ASPECT, 3, false);
try unsafe

earnest forum
#

addUnsafeEnchantment

harsh totem
#

what is it

earnest forum
#

method

#

instead of addEnchantment

hybrid spoke
#

if you wanna add enchantments exceeding the limit of its own

somber sequoia
#

It’s above the normal max so you have to add a "unsafe" enchantment

hybrid spoke
#

like sharpness 6

somber sequoia
#

or fire aspect 3 like here

hybrid spoke
#

whats the max of fire aspect anyways

somber sequoia
#

2

harsh totem
#

i was told that if I put false in the boolean value than it's ok

somber sequoia
#

idk I can’t see anything about a Boolean on jd

#

unless I’m blind

harsh totem
#

meta.addEnchant(Enchantment.FIRE_ASPECT, 3, false);

#

here

#

in the end

hybrid spoke
harsh totem
#

this indicates the enchantment should be applied, ignoring the level limit

hybrid spoke
#

you could return the value of addEnchant to see if the meta changed by that call

harsh totem
#

ok

#

I changed it to level 2 and it works

hybrid spoke
#

change the boolean to true

#

so you ignore the level restriction

harsh totem
#

ohhhhhh

somber sequoia
#

Yeah it lasts longer

harsh totem
#

i thought it was the opposite

#

like false ignores it

hybrid spoke
#

same for a sec

harsh totem
#

thank you

harsh totem
#

why isn't it shooting when I right click?

    public static void OnPlayerInteract(PlayerInteractEvent event){
        Player player = event.getPlayer();
        if (player.getItemInHand()== ItemManager.fireWand && (event.getAction() == Action.RIGHT_CLICK_AIR || event.getAction() == Action.RIGHT_CLICK_BLOCK)){
            Fireball ball = player.launchProjectile(Fireball.class);
            ball.setIsIncendiary(true);
            ball.setDirection(player.getLocation().getDirection());
            ball.setShooter(player);
        }
    }```
#

nothing happens when I right click and hold this item

golden kelp
#

are u sure the item in ur hand is equal to fireWand

#

do a check for it by sending the player a msg

harsh totem
golden kelp
#
  • pls use getters
golden kelp
#

what if smth is weirdly wrong?

#

[SOLVED] Getting advancment name
Used nms for this
got it by getting the NMS object of the advancement -> from AdvancementDisplay -> from AdvancementFrameType. See return types of method to find a method to get display and then type

harsh totem
golden kelp
#

i prefer player#sendMessage()

#

btw

quaint mantle
#

you need to use equals to compare itemstack

golden kelp
#

oh yea i forgot dat

harsh totem
#

ohhhh

#

ok

golden kelp
#

do this

player.sendMessage(player.getItemInHand().equals(ItemManager.fireWand))
#

if it sends false, smth is wrong, if it sends true, smth is wrong

hybrid spoke
#

for itemstacks use the #isSimilar method

harsh totem
golden kelp
#

wha

harsh totem
#

@EventHandler
public static void OnPlayerInteract(PlayerInteractEvent event){
Player player = event.getPlayer();
player.sendMessage(String.valueOf(player.getItemInHand()));
player.sendMessage(String.valueOf(player.getItemInHand().equals(ItemManager.fireWand)));
if (player.getItemInHand().equals(ItemManager.fireWand) && (event.getAction() == Action.RIGHT_CLICK_AIR || event.getAction() == Action.RIGHT_CLICK_BLOCK)){
Fireball ball = player.launchProjectile(Fireball.class);
ball.setIsIncendiary(true);
ball.setDirection(player.getLocation().getDirection());
ball.setShooter(player);
}
}

golden kelp
#

are u registering that eveent

harsh totem
#

yes

golden kelp
#

check console?

harsh totem
#

oh shit

#

lol

#

I didnt

#

bruh

golden kelp
#

...

#

👏

#

xd

harsh totem
#

it works

#

xd

#

sorry for wasting your time

#

should have checked it

golden kelp
#

xd

#

its fine

quiet ice
#

Code blocks exist - I aint Killing my eyes

golden kelp
#

NMS?

quiet ice
#

Are you sure that that makes Sense to do?

#

Then you just want to delay the sending of packets. You might be able to do it via some netty pipe

#

but idk ¯\_(ツ)_/¯

#

10s is still under the timeout

pastel relic
#

Does anyone know what I'm doing wrong here? I'm trying to make a config file with this message player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.getConfig().getString("No-Permission")));

#

anyone?

quaint mantle
#

check what is null

#

it may be player, plugin, or Config#getString

#

test it by doing debug

pastel relic
#

okay

kindred valley
#

What text do i need to find and paste

wise jasper
#

Hey i'm about to saw my nuts of with a rusty handsaw if I can't figure out NMS and Maven.

chrome beacon
#

What's the problem

wise jasper
#

Well I can start with a stack trace from buildtools

#

To clarify, when I tried running maven it was giving me a parameter exception saying <srgIn> was invalid or missing

#

I'm trying to use mojang mapped API but special source is fucking me

chrome beacon
#

Step 1 is BuildTools

wise jasper
#

Sure

chrome beacon
#

So let's get that working

wise jasper
#

I'm going to delete the folder and rebuild from a clean build

chrome beacon
#

Make sure to use the --remapped flag

wise jasper
#

direct from git:

#

java -jar BuildTools.jar --rev 1.18.2 --remapped

tardy delta
#

What's remapped?

wise jasper
#

mojang remapped nms

tardy delta
#

Still don't know what remapped means

wise jasper
#

uhh like remapping the net minecraft server api to be more developer friendly I think?

#

they just change the names of variables and method for clarity

chrome beacon
#

Basically undoing some of the obfuscation

tardy delta
#

Deobfuscated?

#

Ah

wise jasper
#

Ok BuildTools was succesful

#

Now I'm trying to figure out pom.xml

chrome beacon
#

Could you send it

#

?paste

undone axleBOT
wise jasper
#

so issue starts when maven build

#

heres the error:

#

Failed to execute goal net.md-5:specialsource-maven-plugin:1.2.3:remap (default-cli) on project CTC: The parameters 'srgIn' for goal net.md-5:specialsource-maven-plugin:1.2.3:remap are missing or invalid -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal net.md-5:specialsource-maven-plugin:1.2.3:remap (default-cli) on project CTC: The parameters 'srgIn' for goal net.md-5:specialsource-maven-plugin:1.2.3:remap are missing or invalid

#

I can paste the full stack trace if you want it

#

Also I checked .m2 for the txt remapping and csrg or whatever they're both there, maven just not detecting it?

#

btw thanks for helping this has been making me rip my hair out for the past two days

grim ice
#

someone told me

#

that

#

public class X {

public static X it;

onEnable() { it = this; }

}

#

is not static abuse

#

Still

#

what makes it static abuse

#

?

chrome beacon
grim ice
#

zacken

#

do you think the example i sent

#

s static abuse?

wise jasper
grim ice
#

why is it a bad way?

grim ice
#

whats the data

#

how is it not fully singleton?

wise jasper
chrome beacon
#

You need some settings for eclipse to support java 17

#

Not sure I use Intellij

wise jasper
#

aaaaa, if I do java 17 you think it'll fix problem?

chrome beacon
wise jasper
#

not familiar with maven, do u have a reference on how to build from cli?

slow thunder
#
if((e.getAction() == Action.RIGHT_CLICK_AIR || e.getAction() == Action.RIGHT_CLICK_BLOCK) && e.getHand() == EquipmentSlot.HAND)
        {

            if(itemInMainHand == null) {return;}
            if(itemInMainHand.getItemMeta() == null) {return;}
            if(itemInMainHand.getItemMeta().getDisplayName() == null) {return;}
            String ItemName = itemInMainHand.getItemMeta().getDisplayName();
                //if there are enchants
                if(ItemName == "Slimy Detector")
                {

                    p.performCommand("slimechunkcheck");
                }else{
                    return;
                }
            }```
#

this doesnt do anything when i rightclick slimeball

hybrid spoke
grim ice
chrome beacon
hybrid spoke
#

because static means global context, apart from the underlying object. in this case you let it bend down to the object and back up to the class

hybrid spoke
#

its an awful design

grim ice
#

Well i know that

#

but i actually

slow thunder
grim ice
#

lost in an argument with a static abuser

slow thunder
#

that should work?

golden kelp
hybrid spoke
#

in this case its bukkits fault

chrome beacon
#

Yes, but you probably want to avoid detecting items by name

grim ice
#

he knows what hes doing and he still static abuses

slow thunder
#

why

golden kelp
#

cause anyone can use the anvil and rename it

grim ice
#

he says its not static abuse in this case since its a singleton anyways

hybrid spoke
#

i also do that but its still a bad pratice you should never do outside of bukkit

slow thunder
#

true

slow thunder
golden kelp
hybrid spoke
#

well, idk about forge. could be needed there too

golden kelp
#

PersisdantDataContainer

slow thunder
#

ok ill look into that

chrome beacon
#

?pdc

hybrid spoke
chrome beacon
#

^ Here you go

hybrid spoke
#

and singleton design bad

wise jasper
#

Should I try again and delete my local maven repository? maybe run build tools again?

#

I also ran with jre 1.6

#

I think its time to switch to IntelliJ and see if that fixes the problem. Eclipse is giving me a massive headache.

hybrid spoke
#

did you try to force install?

quiet ice
#

JRE 1.6??????

#

But generally, this is probably an maven pom issue, I never recall eclipse having issues with it running on the wrong Java version with maven

#

You might try explicitly setting the jvm that eclipse uses, but I expect minimal changes

#

I advise to try whether you can compile your project manually via the CLI outside of the IDE

#

My workflow has always been to compile maven projects through CLI anyways

#

Lot more reliable

wise jasper
#

lmao I just gave up on eclipse. I think I had multiple versions that messed with local maven repository. JavaSE 17 was bugged, couldn't update properly without errors, moved to intelliJ, everything works fine now.

#

Exact same pom.xml, build path etc etc

crimson terrace
#

IntelliJ supremacy

quiet ice
#

Multiple Versions of what?

quiet ice
onyx wadi
#

hey, does anyone know how to prevent players from modifying the inventory/dropping items? i have worldguard

hybrid spoke
quiet ice
#

Also, you may need to actually Install a JVM17 to use Java 17. The implicitly declared Versions are questionable

golden kelp
wise jasper
#

unironically intellij supremacy, fuck eclipse single threaded marketplace literally crashes everytime i open it

golden kelp
#

xd yes

smoky turtle
#

im lookin for script with cobble generator from 5 hours but there is still nothing

#

someone have thing like dat

crude estuary
#

Script or Skript?

smoky turtle
#

i want it working

#

just[

crude estuary
crude estuary
smoky turtle
#

...

crude estuary
#

i mean, it does so Bad with Gradle

#

Eclipse

quaint mantle
#

the other way around

#

Eclipse is difficult to navigate, Intellij is in my opinion a lot easier to use

crude estuary
#

i think Intellij is Eadier

quaint mantle
#

what does that matter

crude estuary
#

Eclipse is Difficult to get the Code Working Fine

quaint mantle
#

same?

#

I switched to Intellij because Eclipse was annoying and hard to work with

crude estuary
#

i mean Dependencoes

#

and Every time you Restart Eclipse

#

it Bugs your Projects

quaint mantle
#

that's not true its just hard to work with

crude estuary
#

you Have to ReCompile it

quaint mantle
#

there's settings for that

#

but this is a help channel so I'll ask an actual question

crude estuary
#

Happens to me Every time

#

i Reinstalled 20 Times

#

Deleting all Data

#

How to Gravel

quaint mantle
#

I switched to Maven and changed some code now im getting a "Initializing Legacy support" error and the plugin fails to load.
I don't have any deprecated stuff in use anywhere. Paper 1.17.1 latest

tardy delta
#

?paste error

undone axleBOT
quaint mantle
#

yup hold on

crude estuary
#

Maybe Maven is Using old Dependencies?

#

With Legacy Things?

chrome beacon
quaint mantle
#

why did this not happen before

crude estuary
#

Maven

chrome beacon
#

I probably did but you didn't notice

#

The legacy warning will be there

quaint mantle
#

for real

chrome beacon
#

Then you were running a minecraft version lower than 1.13