#help-development

1 messages · Page 1889 of 1

shadow night
#

what should I use, Math.random() or ThreadLocalRandom.current.nextInt()?

glossy venture
#

i searched ContainerMeta and Shulker(Box)Meta

young knoll
#

Check the docs

glossy venture
#

alr

young knoll
#

Actually no that only shows blockdata type

glossy venture
#

can i maybe create a virtual block data and then get the item from it?

hollow sand
#

How would I be able to check for an ItemStack lore?

#

I tried searching but cant find anything

young knoll
#

It’s either BlockStateMeta or BlockDataMeta

#

Probably state

young knoll
hollow sand
#

alr

glossy venture
#

how can i get the default block state from a material tho

shadow night
#

what should I use, Math.random() or ThreadLocalRandom.current.nextInt()? I mean, whats more efficient and better?

young knoll
#

Don’t think there really is a default state

#

Empty I guess, since state stores NBT data

glossy venture
#

i think only TileState stores nbt

#

normal stores model data right

young knoll
#

Model data?

lost matrix
#
  @EventHandler
  public void onTamedAttack(EntityDamageByEntityEvent event) {
    Entity attacker = event.getDamager();
    Entity defender = event.getEntity();
    
    if (attacker instanceof Projectile projectile) {
      ProjectileSource source = projectile.getShooter();
      if (source instanceof Player shooter) {
        attacker = shooter;
      } else {
        return;
      }
    }
    
    if (!(attacker instanceof Player)) {
      return;
    }
    
    if (!(defender instanceof Tameable tameable) || !tameable.isTamed()) {
      return;
    }
    
    event.setCancelled(true);
  }

And if this is still too nested you should outsource checks to other methods.

  @EventHandler
  public void onTamedAttack(EntityDamageByEntityEvent event) {
    if (hasAttackingPlayer(event) && hasTamedDefender(event)) {
      event.setCancelled(true);
    }
  }

  private boolean hasTamedDefender(EntityDamageByEntityEvent event) {
    return event.getEntity() instanceof Tameable tameable && tameable.isTamed();
  }

  private boolean hasAttackingPlayer(EntityDamageByEntityEvent event) {
    Entity attacker = event.getDamager();
    if (attacker instanceof Projectile projectile) {
      ProjectileSource source = projectile.getShooter();
      return source instanceof Player;
    }
    return attacker instanceof Player;
  }

This way your code gets more clean as the methods really tell you what they do.

young knoll
#

15 method complexity

quaint mantle
#

?bootstrap

undone axleBOT
#

Bootstrap Jar
The main spigot-1.18.jar is now a bootstrap jar which contains all libraries. You cannot directly depend on this jar. You should depend on Spigot/Spigot-API/target/spigot-api-1.18-R0.1-SNAPSHOT-shaded.jar, or the entire contents of the bundler directory from your server, or use a dependency manager such as Maven or Gradle to handle this automatically.

Please read the release notes for further information: https://www.spigotmc.org/threads/9-years-of-spigotmc-spigot-bungeecord-1-18-1-18-1-release.534760/#post-4305163

young knoll
#

Huh that doesn’t actually mention NMS

#

Anyway you want whatever jar is largest inside spigot-server

#

Or use a build tool

lost matrix
#

No idea then

#

Maybe its fragmented

#

Or the file path is wrong

solid cargo
#

why tf does the config value return 0, IF ITS NOT
way i get it

#

need something more?

spiral light
#

is it possible to create an texture+signature ?

young knoll
solid cargo
#

placed_blocks

#

in config

#

also here its correct

young knoll
#

Show the config

solid cargo
#

it returns 0 in mc

young knoll
#

Did ya remember to save it

#

Via saveDefaultConfig

solid cargo
#

in ondisable?

lost matrix
#

You dont need an NBTInputStream. Try just using the example from their documentation page.

solid cargo
#

still returns 0

young knoll
#

Why would you do that on disable

#

You want to copy the config from inside the jar on enable

solid cargo
#

sure will do on on enable

solid cargo
#

now i have this. still returns 0 (in on enable)

hollow sand
# young knoll Get the meta and check the lore there

would this work?

public void hasLore(Player player) {
            for(ItemStack item : player.getInventory()) {
                if(item.getType() == Material.DIAMOND_CHESTPLATE && item.hasItemMeta()) {
                    ItemMeta meta = item.getItemMeta();
                    if (meta.hasLore() && meta.getLore().equals("Gives you the invisibility effect")) {
                        player.addPotionEffect(new PotionEffect(PotionEffectType.INVISIBILITY, 10000000, 1));
                    } else {
                        player.removePotionEffect(PotionEffectType.INVISIBILITY);
                    }
                }    
        }   
    }
}```
young knoll
#

No

#

Lore is a list and will not equal a string

hollow sand
#

wdym?

#

oh

#

so what should I use as an alternative?

#

== ?

young knoll
#

You can use contains

hollow sand
#

o

young knoll
#

But you should probably use pdc over lore

#

At least for identifying the item

hollow sand
#

I see

#

thanks

hollow bluff
#

What did you even name ur config?

solid cargo
#

config.yml?

young knoll
#

You’ve got some kind of custom config class here

#

That we can’t see

solid cargo
#

ah

#

get ready for static cringe

hollow sand
#

anyone know the dependency for packets?

hollow bluff
#

If its for config.ynl

solid cargo
#

oh so

#

i load it twice?

hollow bluff
#

Probably

shadow night
#

Is it better to use Math.random() or ThreadLocalRandom.current.nextInt()?

hollow beacon
#

i usually use ThreadLocalRandom

#

it uses a random instance on each thread

#

so every thread has a diferent seed

shadow night
#

And what do I do if when I add a potion effect with an threadlocalrandom random amplifier it sometimes makes the effect level 101

#

Even tho max is 11

young knoll
#

Then you’ve done something wrong

hollow beacon
#

^

simple cloud
shadow night
#

It was something like and what could go wrong? It did

p.addPotionEffects(new PotionEffect(PotionEffectType.HEALTH_BOOST, 120, ThreadLocalRandom.current.nextInt(11)));
young knoll
#

Are you sure your client mod showing you the number isn’t just broken

#

Or you are overriding it with a higher effect somewhere else

simple cloud
#

ok i have a small question about the api; if my plugin relies on features that probably work in really old versions, how do i make sure my plugin stays compatible with the latest versions but doesnt break on 1.18 if i update it for 1.19

#

if that makes any sense?

shadow night
hollow beacon
#

things can break in updates, just test it

simple cloud
#

ok so i need to test it, but if i have the api version set to 1.18 and depend on the 1.18 spigotapi

#

will spigot complain if i try to use it on 1.19

#

like warnings errors etc

hollow beacon
#

Depends if the feature you're talking about gets deprecated

#

but in general; no

simple cloud
#

assuming they dont

shadow night
simple cloud
#

so when minecraft updates, i dont need to make any changes until the spigot api doesnt change anything i use?

hollow beacon
#

eactly

simple cloud
#

and users wouldnt see any warnings in the console

#

oh awesome

hollow beacon
#

exactly*

simple cloud
#

thanks for the help

lost matrix
#

Maybe a version mismatch between the schmatics

#

You want to support versions below 1.13?

shadow night
#

How do I check for a players potion effects?

lost matrix
shadow night
hollow beacon
#

i'd use an event really

#

to debug your problem

shadow night
hollow beacon
#

why would you

shadow night
#

why use legacy? People create new and better, legacy is old and worse.

quaint mantle
#

is there a limit on the length of the message you can send to a player using #sendMessage("STRING")

shadow night
#

Probably yes

quaint mantle
#

how big?

shadow night
#

Not sure

quaint mantle
#

do u know a place where it might be specifie

shadow night
#

maybe the docs

summer scroll
#

How many letters that you want to send anyway?

quaint mantle
#

I dont think its bigger than 256

summer scroll
#

You can send more than that I believe.

#

Might as well try it.

quaint mantle
#

ok

#

thanks

hollow beacon
#

it's 256 yeah

zinc torrent
#

Spigot
Unfortunately, your recent report has been rejected: Resource Update in '✪ LuckyStock ✪ [1.16 - 1.18] Unique | GUIs | 50+ Stock | 120+ News' - Description contains substantive text in images without having a text version available.

Is someone know this issue means?

summer scroll
hollow beacon
hollow beacon
zinc torrent
#

Yes I do have it

hollow beacon
#

spigot staff didn't think so

#

contact them

#

they'll explain it

zinc torrent
#

how can I contact them

summer scroll
#

Isn't 256 chars is the chat message?

zinc torrent
#

they rejected me twice and the first reason is no text version

summer scroll
#

Like the limit when player type in the chat

hollow beacon
#

pretty sure its 32767 bytes

solid cargo
#

btw the config still resets every time... this is the way i get the variable

hollow beacon
#

then

hollow beacon
#

any errors?

solid cargo
#

and this is the way i increase it

solid cargo
hollow beacon
#

oh ofourse

#

you need to save the config

#

so you can do

getConfig().setInt("x", value);

#

as you just get a value from the config, you need to give it back

solid cargo
hollow beacon
#

do you do saveConfig()

solid cargo
#

i do savedefaultconfig atm

#

will try normal config

hollow beacon
#

do the normal one yeah

summer scroll
#

You need to save it everytime you set a value.

hollow beacon
#

saveDefaultConfig is usually used for the first loading

eternal oxide
#

always saveDefaultConfig() at the beginning of onEnable(). After any changes you make, saveConfig()

solid cargo
#

ohhhhh

clever sapphire
#

did someone else notes that since 1.18 when a player hits another player the UseEntity packet is sent from the client but it contains no action when it should contains ATTACK, or did only I notes that?

quaint mantle
#

Hello, could someone explain to me why does zombies spawn at end of block?
Zombie z = (Zombie) world.spawnEntity(location, EntityType.ZOMBIE);

hollow beacon
quaint mantle
#

How do i do that?

summer scroll
#

Add 0.5 on both x and z

quaint mantle
#

ok

solid cargo
hollow beacon
#

loc.add(0.5, 0, 0.5);

solid cargo
#

your pfp

quaint mantle
#

yeah

quaint mantle
solid cargo
#

anyways, the variable in config also defaults to 10, EVEN THOUGH I HAVE SET IT TO 0 IN INTELIJ

#

and deleted the config

hollow beacon
#

clean the project

solid cargo
#

wdym

clever sapphire
hollow beacon
#

try file -> invalidate caches and restart

#

then rebuild

solid cargo
#

ok

#

IT STILL DEFAULTS TO 10 WHEN I UPLOAD TO SERVER

#

WTF

eternal oxide
#

then your config has it set to 10 and you are not changing/saving it

hollow beacon
#

okay so

#

get your jar file

#

and open it as a zip

#

check the config file

solid cargo
#

aka decompile?

hollow beacon
#

yeah

#

if it's 10 there, its 10 somewhere else

#

if not, its somewhere in the code

solid cargo
#

its blank

hollow beacon
#

set it to 0

solid cargo
hollow beacon
#

oh

hollow bluff
#

You dobt need thsy

#

Just add it directly to the config

eternal oxide
#

the copydefaults(true) line is not needed at all

hollow bluff
#

You only need saveDefaultConfig

#

Remove the rest

solid cargo
#

lets see

hollow bluff
#

Add it to the config.yml and compile

eternal oxide
#

saveDefaultConfig() shoudl be at teh very Beginning of onEnable, before you attempt to do anything with your config

solid cargo
#

its still 10 what the fuck

#

ok

vestal dome
#

did you forget to save the config?

hollow bluff
#

You must be setting it to 10 somewhere

solid cargo
#

but in mc it starts from 0

hollow bluff
#

delete the config.yml from ur server files and restsrt the server

solid cargo
#

ok

eternal oxide
#

you are setting a Default value. That is only used when an actual value is not present.

solid cargo
#

spigot is weird...

#

or my project is weird...

#

still 10 after restart

hollow beacon
#

u sure u got the latest version installed?

#

happens to the best of us

hollow bluff
solid cargo
hollow bluff
#

To where ur setting blocks placed

solid cargo
#

its acc block break event. but i will organise later

hollow beacon
#

you never update the config

#

again; you need to SET the value again in the config

eternal oxide
#

You update teh value you got from teh config, you never put it back

solid cargo
#

oh

#

so i need to do something like config.set blah blah blah?

hollow beacon
#

yes

simple cloud
#

Which versions of the api does bstats work for?

vestal dome
#

every

#

single one

simple cloud
#

I'm getting

Error occurred while enabling HeckStopGrowling v1.0.0 (Is it up to date?)
java.lang.NoClassDefFoundError: org/bstats/bukkit/Metrics
summer scroll
#

You need to shade it.

simple cloud
#

shade?

summer scroll
#

Are you copy pasting the class or using the maven dependency?

simple cloud
#

uh ive depended on it in gradle

#
dependencies {
    compileOnly 'org.spigotmc:spigot-api:1.18.1-R0.1-SNAPSHOT'
    implementation 'org.bstats:bstats-bukkit:2.2.1'
}
#

unsure if i need compile or implementation yet but either way i still have problems

summer scroll
#

Compile it with shadow jar

simple cloud
#

what does shadowing do?

summer scroll
#

Basically adding the classes that you want to be added into your project.

#

I don't know how to explain it properly.

#

So when you haven't shade it (bStats in this case), the class is not exist on the compiled jar, so that's why it's giving you NoClassDefFoundError exception.

simple cloud
#

but why dont i need to shadow spigotmc?

summer scroll
#

Because the spigot is exist on the runtime

hollow beacon
#

because its litterally your server

#

lol

simple cloud
#

sorry idk how this works

summer scroll
#

You're using it on your server

simple cloud
#

right

summer scroll
#

That make sense right?

#

Meanwhile the plugin doesn't know where bStats is so you need to shade it so it exist on the compiled jar

unique eagle
#

Hello, i have error with gradle for spigot

> Could not resolve all files for configuration ':compileClasspath'.
   > Could not resolve org.spigotmc:spigot:1.17.1-R0.1-SNAPSHOT.
     Required by:
         project :
      > Could not resolve org.spigotmc:spigot:1.17.1-R0.1-SNAPSHOT.
         > Could not parse POM https://repo.dmulloy2.net/repository/public/org/spigotmc/spigot/1.17.1-R0.1-SNAPSHOT/spigot-1.17.1-R0.1-20210708.170253-1.pom
            > Could not resolve org.spigotmc:spigot-parent:dev-SNAPSHOT.
               > Skipped due to earlier error

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

#

i use Shadow for compiling

solid cargo
#

the version is latest, it now sets the number from the ide. now i need to edit it

simple cloud
#

is there a good example of shading java in gradle with spigot plugins

#

i cant find somewhere simple to learn it

vestal dome
#

uhh.... so can I now question my problem or..

#

nevermind.

solid cargo
#

this is the code currently. it only changes something once the plugin gets reloaded

summer scroll
summer scroll
solid cargo
#

tried that. doesnt work

simple cloud
#

i think ive got it now?

tasks {
    build {
        dependsOn(shadowJar)
    }
    shadowJar {
        minimize()
        relocate("org.bstats", "dev.lhvy.heckstopgrowling.lib.org.bstats")
    }
}
summer scroll
quaint mantle
#

How can I send the player a message in which theres a link he can use to open a GUI

tardy delta
#

take a look at TextComponent

#

ComponentBuilder is the easiest in my opinion

solid cargo
#

ok the issue is solved

#

gg

#

does EntityDamageEvent include all damages?

#

also if damaged by entity?

#

does the event still trigger then?

tardy delta
#

is there a way to fix this?

buoyant viper
#

u could name the methods accordingly

eternal oxide
#

Needs an actual type

buoyant viper
#

like uncacheKey and uncacheValue

tardy delta
#

ah uhm that fixes it

eternal oxide
#

when compiled teh Generics will be erased so both methods look identical.

tardy delta
#

but can i fix it without specifying the generic type?

buoyant viper
#

no java kinda sucks in that regard

simple cloud
#

like in the java file

opal juniper
#

normally i just copy the bstats class?

#

works fine for me

#

then no import is needed

simple cloud
#

im depedning on it in gradle

#

and then tryng to import it in java

#

but then i get an error and i was told i need to shade it

#

so now im struggling through that

quaint mantle
#

How can I open a GUI when a player clicks on a message (I have the TextComponent but dont see a option in it for opening a GUI)

shell bluff
#

Alright so there isn't any way or like a stupid way to check if player has stopped left clicking?

quaint mantle
#

I think there is

#

It sends a player attack or interact event as far as i remember

shell bluff
#

Yup but it only gets sent once :/ So I can't check if they stopped holding left click

quaint mantle
#

Yea then I think there aint a way

shell bluff
#

ugh- I'd use right click but since im using a charged crossbow there is always like an ugly animation since im trying to cancel it

#

dont know if there is a way to completly remove it so crossbow doesnt charge and just stays still

solid cargo
#

it works!!!!!!!

summer scroll
#

Just try both maybe

simple cloud
#

the relocated one doesnt really let it compile

#

ok so apparently after relocating, i just need to make sure i use the .jar that has -all on the end

#

and thats the one with the shaded libs

#

and it works fine

#

ugh i will need to do some more reading of docs soon to understand this better

#

well anyway thanks for all the help

quaint mantle
#

if a player doesnt have access to a command you execute it through a TextComponent.Click does it execute?

simple cloud
#

so sorry for the mess of questions with shading and basic spigot api stuff...

summer scroll
red sedge
#

the important part is the createFile func

elfin atlas
#

Quick question how can I acess to org.bukkit.craftbukkit ?

#

On version 1.17.1

ivory sleet
#

I mean simplest way would be to rename one of them to sth like uncacheByValue

sterile token
quaint mantle
#

not when he is just holding it

sterile token
#

I think I had an anticheat for checking your current cps

sterile token
solid cargo
#

how is a crop called?

#

ageable?

tardy delta
shell bluff
#

Is there a way to prevent charged crossbow shooting? I tried to just cancel the event but then there is like an ugly animation because he's constantly trying to shoot it .-.

quaint mantle
shell bluff
#

so console could send it for you

quaint mantle
#

But that is not possible

#

you cant execute a command form the console using a TextComponent.clck

hollow beacon
#

you can?

quaint mantle
#

how

ivory sleet
#

tho really, a refactor would do as well

hollow beacon
#

message.setClickEvent( new ClickEvent( ClickEvent.Action.RUN_COMMAND, "/kit FNALFHLAJFLhjdkla " + s ) );

quaint mantle
#

wont that run it as the player?

hollow beacon
#

it will, but consider the following

#

create some kind of hashmap thing

#

on text send, create a specific UUID for the player

ebon arrow
#

@trim creek ask your question here, you'll get a better answer

hollow beacon
#

and make that the command, like /command UUID

#

then on execute, check if it's correct. if it is; execute the command from console

#

no one will ever guess the UUID

quaint mantle
#

is there a datastrcuture like a map but with multiple keys

hollow beacon
#

HashMap?

#

if that doesn't fit your needs, create a class

chrome beacon
#

Are you talking about Multimaps

shell bluff
#

Anyway to disable item animation on right click?

chrome beacon
#

Animations are client side. If canceling the event doesn't work you can't

shell bluff
#

So could I detect when player stops holding a left click using only a client mod?

dusk flicker
#

@trim creek so what you should be doing

#

is building spigot via buildtools, take that compiled output and depend on that

#

OR use something like maven and just use the api

#

(which is what id recommend)

trim creek
#

I am dumb for maven. 🤣

dusk flicker
trim creek
#

And another fact: I use Eclipse, but thank you...

hollow beacon
#

should still work

#

maven is hard at first, but should become doable pretty quick

trim creek
#

Wait. Setting a displayname will overwrite the nametag?

red sedge
red sedge
#

so yes if you set a display name it will overwrite that

trim creek
#

Hm

#

This is weird, because now I removed all the setDisplayname codes, and it is still dead.

#

It still does not do anything.

#

Just creates the team, and applies its effects

wintry badger
#

hi guys. my command arguments are not suggested when i type the command. what should i do in the plugin.yml for it?

#

when i just type "mor" it suggest "morexp reload" but when i type "morexp ", then it doesnt suggest reload argument

#

probably its because i defined them as separate commands in the plugin.yml

ebon arrow
wintry badger
#

no it doesnt 😦

#

commands: morexp: description: Main command usage: <command> morexp reload: description: Reloads the plugin usage: <command> permissions: morexp.reload: description: Reloads the plugin default: op

#

its probably wrong

trim creek
#

Umm

#

Using spaces is not possible

wintry badger
#

how should i define the arguments then?

dusk flicker
#

you code it in

#

args arent defined in the plugin description file

wintry badger
#

oh okay thanks. i will try

onyx fjord
#

for oracle cloud waiters, frankfurt compute is open

#

make sure to claim yours until its too late

torn shuttle
#

god bless intellij for making switch java versions this easy, I would lose my mind having to constantly relaunch servers with different java versions

ancient plank
trim creek
ancient plank
shell bluff
#

so I'm trying to spawn fully grown wheat block but

e.getBlock().setType(Material.WHEAT);

only spawns wheat of age 0

#

how would I set it to be fully grown?

ancient plank
#

adelemThonk smth smth instanceof Ageable

#

my memory sucks

torn shuttle
#

oh damn it I baited myself with a feature that didn't exist for java 8

#

I knew this sounded super new to me

#

declaring variables while running an instanceof is so cool, too good to be true I guess

ancient plank
shell bluff
#

oh yeah, thanks!

ancient plank
#

:D

ancient plank
torn shuttle
#

which was the update that started updating java, was it 1.16.5?

trim creek
#

1.17.1 I guess

ancient plank
#

1.16.5 recent versions support java 16

torn shuttle
#

dang

trim creek
#

At least that is a version that requires Java 16, but not sure with 1.16.5

ancient plank
#

adelemThonk 1.18 uses java 17

torn shuttle
#

I'm still technically supporting 1.14 and up

ancient plank
#

1.16.5 supports java 16 but you can use anything from java 8-java16

trim creek
#

(me who only supports only 1.18.1 c.c)

torn shuttle
#

though

ancient plank
#

iirc

torn shuttle
#

a shocking 47% of my users are actually on 1.18.1

shadow night
trim creek
ancient plank
#

I think you can compile plugins on 1.8 and they still work on 1.18 tho

trim creek
#

Right?

ancient plank
#

I don't know what 1.17 forces, never played it

torn shuttle
#

possibly because I distribute maps and those have harsher requirements, and it's targetting survival servers which tend to update

trim creek
shadow night
torn shuttle
#

hm 95% of my userbase is running 1.16.5 or later

red sedge
#

you shouldnt make arguments their own commands

trim creek
ancient plank
#

I usually just compile against lowest if possible, so most of my plugins compile with 1.8 and they still worked on 1.18

shadow night
torn shuttle
#

actually higher than 95%

trim creek
#

Holy moly

shadow night
torn shuttle
#

actually pretty damn near to 95% nvm

#

uh

#

I'm talking servers

#

and it's 799 servers currently reporting

trim creek
#

wat

#

799 servers open?

ancient plank
#

his plugin is popular

torn shuttle
#

not very popular

true perch
shadow night
torn shuttle
#

plenty of much much larger plugins out there

#

hell I could probably make a plugin with more installs in under a week, just make something with very broad appeal

trim creek
true perch
trim creek
#

I have been setting the player's displayname, and now, it never displays it, when my plugin is enabled.

true perch
#

weird.

trim creek
#

But note that it will change the player's playerlist name too

#

(which is something I also set)

true perch
#

I honestly have never even known exactly how the minecraft teams thing works.

torn shuttle
#

teams suck

true perch
#

Got a vague idea, but i never mess with it

shadow night
true perch
torn shuttle
#

they really weren't made for the thing we use it for

trim creek
ancient plank
#

teams are one of those things that were added in ancient times and haven't been touched since because there's been no reason for them to be touched

trim creek
#

I mean, like the one Hunter has been asking for

torn shuttle
#

a lot of plugins do it

#

libsdisguises recommends it over normal nametags actually

true perch
trim creek
#

I can't get it. .-.

ancient plank
#

iirc a ton of people use packets for it

torn shuttle
#

nevermind if it ain't broke, if it ain't used why touch it

#

I don't even know of anything that mojang has actually created using teams

trim creek
true perch
#

how can I modify packets to change a player's above head name?

torn shuttle
trim creek
#

Well... Then I will need to figure out mostly everything...

torn shuttle
#

personally I sync my damage indicators with the entity location and it works wonders

trim creek
#

Probably will try disabling the join event class

torn shuttle
#

but then again that style of display doesn't need great accuracy

trim creek
#

Will be back

true perch
#

Is there a discord for help with coding Minecraft Mods? Also, is it more difficult to develop mods than plugins?

trim creek
#

lol

#

The nametag itself it not known

#

But my name is colored

#

:wtf:

blazing scarab
torn shuttle
#

is it actually harder?

blazing scarab
#

yes

true perch
torn shuttle
#

I feel like I spend half my life trying to stretch existing minecraft assets into more minecraft assets

chrome beacon
true perch
#

I personally have a lot of room for improvement, but I feel I have a solid base understanding of java.

shadow night
blazing scarab
#

It requires understanding of how game works

chrome beacon
#

Modding requires a good understanding of java. There isn't much documentation and a big part is understanding how things work and reading the code

shadow night
ancient plank
#

modding hurts me

torn shuttle
#

I am a flawless master of java who truly has transcended this mortal realm with my 5000 iq understanding of java

blazing scarab
#

simple mods arent hard to do, but if you do something more advanced.. Welcome to reverse engineering

torn shuttle
#

I don't see code anymore, I see NPE, CME, stack overflow....

shadow night
blazing scarab
#

all in one solutions always suck

ancient plank
#

a lot of forge "guides" are as follows:

"Read the X Minecraft class to see how they do it"

true perch
#

I'm personally getting pretty tired of vanilla limitations. I want to be able to add more armors, I want to add more NPCs, I want larger GUIs.

torn shuttle
ancient plank
shadow night
blazing scarab
ancient plank
#

people get angy when they're told there's no documentation

torn shuttle
#

I mean not always but it helps

ancient plank
#

spigot documentation spoils you 😔

shadow night
#

You may need to ask someone to get started but it's just the start

blazing scarab
#

tbh a lot of mods are horribly coded

#

Especially cheat clients

true perch
shadow night
torn shuttle
blazing scarab
#

It is useful though

torn shuttle
#

you can see where it gets sketchy when the names aren't standardized and some of the fields are named the inverse of what they became

ancient plank
#

the only thing bukkit conversation api has is something the original guy wrote afaik

torn shuttle
#

some parts of the world gen stuff was like that last I saw it

shadow night
#

Before I've even learnt java looking at code seemed like "what the sh.t is this I'm never gonna be able to write that" and now I do

ancient plank
#

bukkit is ancient 😔 its like how when they added the #addPassenger() method and deprecated #setPassenger(), #addPassenger() didn't have the check for if you do entity.addPassenger(entity); so it'd crash the server kekw

#

took a long time for that to be noticed

torn shuttle
#

quick what's an mc world type and what's an mc world environment and what's the correct value for setting it to amplified, you have 30 seconds

#

💣

ancient plank
#

is this a trick question like how weather has a misleading name in code

torn shuttle
#

I mean if you find it intuitive and can guess correctly I guess it's not a trick question to you

#

I genuinely don't know and I've been had by this issue quite a few times

summer scroll
#

Is records slow?

torn shuttle
#

I think env is the nether, normal and the end (and custom, for the server versions that aren't bugged) and the other one is the setting you'd need for amplified and superflat but I could have it backwards

#

iirc both have NORMAL in them so it can get real hilarious real quick

ivory sleet
fresh drum
#

Hello !
Does someone have a json file with all 1.18.1 items and textures data ?

chrome beacon
#

There's more than one json file

fresh drum
#

It exists one file for previous versions, so maybe a file for new version exists

chrome beacon
#

Try google or make your own

#

There is no official one

tardy delta
#

is a bimap less efficient than a hashmap or is it about the same?

fresh drum
#

I will made my own 😄

#

Thanks !

chrome beacon
#

You could benchmark it though

tardy delta
#

i'l look that up

summer scroll
#

Is Bukkit#getOfflinePlayer really a heavy task?

tardy delta
#

ah it has two reversed maps internal, i thought they were only reversed when an application asks for it

tardy delta
chrome beacon
#

^ and depends on internet speed

summer scroll
#

Oh okay

blazing scarab
#

does a method that takes UUID makes a web request aswell?

summer scroll
#

Right now I'm testing a reputation plugin, and I think that's the cause because I'm trying to search offline player that hasn't been on the server.

tardy delta
#

i thought it did a web request aswell

#

i cant really find it in the implementation

blazing scarab
#

lemme look into paper

summer scroll
#

If the offline player has joined the server before, it will all be fine, correct?

blazing scarab
#

yep

summer scroll
#

Alright, thank you guys

blazing scarab
chrome beacon
tardy delta
#

it creates a gameprofile i guess

#
@Deprecated
    public OfflinePlayer getOfflinePlayer(String name) {
        Validate.notNull(name, "Name cannot be null");
        Validate.notEmpty(name, "Name cannot be empty");
        OfflinePlayer result = this.getPlayerExact(name);
        if (result == null) {
            GameProfile profile = null;
            if (this.getOnlineMode() || SpigotConfig.bungee) {
                profile = this.console.getUserCache().getProfile(name);
            }

            if (profile == null) {
                result = this.getOfflinePlayer(new GameProfile(UUID.nameUUIDFromBytes(("OfflinePlayer:" + name).getBytes(Charsets.UTF_8)), name));
            } else {
                result = this.getOfflinePlayer(profile);
            }
        } else {
            this.offlinePlayers.remove(((OfflinePlayer)result).getUniqueId());
        }

        return (OfflinePlayer)result;
    }```
trim creek
#
public void addToAdmin(Player player) {
        Scoreboard scoreboard = Bukkit.getServer().getScoreboardManager().getMainScoreboard();
        if (scoreboard.getTeam("admin") == null) {
            scoreboard.registerNewTeam("admin");
            adm.setPrefix("§cA §8| §f");
            adm.setColor(ChatColor.WHITE);
            adm.addEntry(player.getName());
        }
    }

This code should work, right? Or I messed up something?

chrome beacon
trim creek
#

😹

#

KIÉGÉS.exe

#

It actually doesn't.

#

:DD

chrome beacon
#

Yeah I'd expect that

#

You're only adding players to the team if the team doesn't exist

mellow edge
#

are minecraft servers running on one or multiple cores?

tardy delta
#

make sure you get an existing team or create it

mellow edge
#

and if they are on one, is that bad or good?

tardy delta
#

it only has 20 tps so i dont think its bad

trim creek
tardy delta
#

idk what adm is

trim creek
#

It is the Team adm; string a bit upper

tardy delta
#

do something like Team team = scoreboard.getTEam("admin")

trim creek
#

I actually copied it, but Windows said a no

#

Xd

tardy delta
#

if team == null team = scoreboard.registernewTeam

shadow night
#

Can I somehow increase the max tps from 20 to 30 or 40 or like that?

tardy delta
#

and then apply the things to it

upper niche
shadow night
tardy delta
#

i think you need a fire insurance

chrome beacon
#

Yeah

ancient plank
#

there are mods that do it in singleplayer

#

iirc

chrome beacon
trim creek
ancient plank
#

what's the big one everyone uses called again adelemThonk

#

lemme go find it

shadow night
#

Can I load plugins into my mc client? Because when you load a world it create an internal server

ancient plank
#

no lol

trim creek
#

Use datapacks

tardy delta
#

no

upper niche
twilit wharf
#

my ProxiedPlayer.connect(ServerInfo target) isnt working. The player is already on the network when i call this

shadow night
tardy delta
#

there is no bukkit interface to depend on

upper niche
shadow night
#

Things like magma and mohist work. Why not try moving them into the client?

ancient plank
#

monkaS

trim creek
#

Actually. To my problem: Her's the code:

public Team adm;
    Scoreboard scoreboard;

    public void onJoin(PlayerJoinEvent e) {
        Player player = e.getPlayer();
        if (player.isOp()) {
            addToAdmin(player);
        }
    }

    public void addToAdmin(Player player) {
        Scoreboard scoreboard = Bukkit.getServer().getScoreboardManager().getMainScoreboard();
        if (scoreboard.getTeam("admin") == null) {
            scoreboard.registerNewTeam("admin");
            adm.setPrefix("§cA §8| §f");
            adm.setColor(ChatColor.WHITE);
            adm.addEntry(player.getName());
        }
    }
ancient plank
#

mohist

shadow night
ancient plank
royal vale
#

How would I check if a player took knockback from a hit when wearing netherite armor with knockback resistance

ancient plank
#

olivo mentioned that earlier

tardy delta
#

:)

upper niche
#

well
maybe 1 tick after

royal vale
# upper niche well maybe 1 tick after
if (event.getDamager() instanceof Player player) {
            if (event.getEntity() instanceof Player target) {
                if (target.getVelocity().getX() == 0 && target.getVelocity().getY() == 0 && target.getVelocity().getZ() == 0) {
                    target.setVelocity(player.getLocation().getDirection().multiply(0.5));
                }
            }
}

Didn't work, so ig 1 tick after?

upper niche
#

try 1 tick after

quaint mantle
#

quick question, in PlayerGameModeChangeEvent
e.getNewGameMode is the game mode that player changed in to
and e.getplayer.getgamemode is the old gamemode right ?

upper niche
#

correct

tardy delta
# trim creek Actually. To my problem: Her's the code: ```java public Team adm; Scoreboard...

i would do ```java
@EventHandler
public void onJoin(PlayerJoinEvent event) {
if (event.getPlayer().isOp()) {
addToAdminGroup(event.getPlayer());
}
}

private void addToAdminGroup(Player player) {
Scoreboard mainScoreboard = Bukkit.getScoreboardManager().getMainScoreboard();
Team team = getTeam(scoreboard);
// apply other stuff
}

private Team getTeam(Scoreboard scoreboard, String name) {
Team team = scoreboard.getTeam(name);
if (team == null) {
team = scoreboard.createNewTeam(name);
}
return team;
}```

#

¯_(ツ)_/¯

ancient plank
#

you op your admins adelemThonk

tardy delta
#

you admin your ops

#

kinda weird, essentials does it by default but yea

shrewd solstice
#

is there a way to give knockback to all entity is in front of me

frozen thorn
#

Hello, I did that to spawn an entity but I don't see the entity on client side, do you know why pls?

world = ((CraftWorld) location.getWorld()).getHandle();
        if (world == null)
            return null;
        result = new EntityEscortedEntity(world);
        result.setLocation(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
        world.addEntity(result, spawnReason);

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

#

(I need to use nms because it's a custom entity)

chrome beacon
#

Show code for custom entity

vocal cloud
#

Holy cow people please use pastebin for code

#

?paste

undone axleBOT
tardy delta
#

thats not pastebin ._.

quaint mantle
#

Hello guys im trying to code a swear filter plugin And the bad words are not quite triggering. Whats wrong with this code - https://pastebin.com/ZktBU7nS

tardy delta
#

no listeners registered?

#

ah wait im bad

quaint mantle
tardy delta
#

what the hell is that code even doing?

#

why a loop? why a command?

quaint mantle
tardy delta
#

ArrayList#contains is something

frozen thorn
#

he want to see if the message contains a badword

#

not if the message is only a badword

tardy delta
#

instead of ```java
for (int i = 0; i < bannedWords.size(); i++){

        if (msg.contains(bannedWords.get(i))){
            event.setCancelled(true);
            Bukkit.dispatchCommand(console, command);
        }

    }```

use java if (bannedWords.contains(event.getmessage())) { // other stuff }

#

ah

frozen thorn
#

if my message is "Hello man ***", you don't want to compare the full sentence

#

or else it will bypass every message

tardy delta
#

ah wait

frozen thorn
#

you need to see if the sentence contains each badword in the config

spiral light
frozen thorn
#

so you need a loop

quaint mantle
tardy delta
#

ah my bad why am i still coding

#

:(

#

but whats not working?

#

it just doesnt trigger?

quaint mantle
#

it just shows the msg

#

while it should not

tardy delta
#

also i think you should break out of the loop

frozen thorn
#

first you can loop all the String list

#

it's better than getting them by id

#

and I don't understand why you dispach a command?

tardy delta
#

i dont either

frozen thorn
tardy delta
quaint mantle
frozen thorn
#

don't do this

tardy delta
#

that doesnt make sense

#

make a command that reloads the whole plugin instead

frozen thorn
#

that means when a user type a badworld your plugin will stop working

tardy delta
#

probably

quaint mantle
tardy delta
#

dont assume the user added a new word on every chat message

#

it wastes cpu

quaint mantle
ancient plank
#

fu3ck

tardy delta
#

but it reloads (a part of) your plugin in the chat event?

quaint mantle
#

no wait

#

we have a misunderstanding

ancient plank
#

idk what drugs fourteen is on

frozen thorn
#

Custom Entity invisible client side

quaint mantle
#

the command inside the chat event is a mute command which will run as console when a bad word is triggered

tardy delta
quaint mantle
#

sry my bad

tardy delta
quaint mantle
#

guys any clues how to fix event not triggering?

tardy delta
#

debug a bit

ancient plank
#

did you register it

tardy delta
#

BRUH

#

not implementing CommandExecutor

#

it woul still work i guess but still

quaint mantle
#

command is working but bad word not triggering

quaint mantle
#

ahh im so bad at explaining things. guess i will find a fix myself

vocal cloud
quaint mantle
#

maybe learn java. havent see what you done but this mostly the correct way

#

?learnjava

undone axleBOT
vocal cloud
vocal cloud
#

is the event firing?

quaint mantle
#

wait what

#

its working now

#

wth

vocal cloud
quaint mantle
#

i didnt even change anything

#

breh

vocal cloud
#

I can fix things by just existing

barren granite
#

So I'm trying to get the villager profession after it changed profession, how do I do that? Currently I have a event listener, and it activates when the villager changes profession (VillagerCareerChangeEvent), but it activates as it changes, so if I ask for the profession, it returns as NONE, as the villager changed from a plain villager to a farmer.

tardy delta
#

magic

vocal cloud
spiral light
#

is there any smart way to find out why i lose 10mb/s of my memory in the server ? xD

barren granite
#

but that returns the villagers profession before it changes

elfin atlas
#

Does someone know why I'm getting this compile error? In the code I can use the package but when I'll compile I'm getting this error..

chrome beacon
barren granite
#

wait.. nvm

#

lmao, that was dumb of me

#

thnx!

quaint mantle
#

Lamo

chrome beacon
elfin atlas
#

Inside the code it is working

chrome beacon
#

You need you need to import with maven

#

Don't import the jar directly

elfin atlas
#

And how do I'll import it with maven?

chrome beacon
elfin atlas
#

Okay

vocal cloud
#

Oh for spigot lol

elfin atlas
#

But now this gets red

elfin atlas
tulip owl
#

This sounds like a "just learn Java" question but anyway...

Why can't I list the files like this?

File pluginFolder = Bukkit.getServer().getPluginManager().getPlugin("EzBooks").getDataFolder();
pluginFolder.listFiles();
chrome beacon
elfin atlas
chrome beacon
#

Run BuildTools

elfin atlas
#

Okay

rough drift
#

can you set the combine cost in an anvil?

chrome beacon
#

?bt

undone axleBOT
tulip owl
#

so i can't list the files

elfin atlas
chrome beacon
chrome beacon
#

Since you already have the craftbukkit jar means you got it from an illegal upload of it

elfin atlas
#

Currently running

vocal cloud
rough drift
#

thats the wrong method

elfin atlas
rough drift
#

they are using listFiles which returns File[]

#

that returns String[]

#

listFiles is to be called on folders to get their children

vocal cloud
#

Then use file.listFiles();

chrome beacon
rough drift
# tulip owl

you need to put this in a method you know that right?

#

also the ". thingys" are called methods

tulip owl
#

yep

#

i just forgot the name 😂

vocal cloud
#

Use dependency injection don't do that huge Bukkit.... Just pass getDataFolder() from the plugin into it

tulip owl
#

ah, ty

elfin atlas
shadow night
#

how do I get the entity who reveived the effect?

chrome beacon
elfin atlas
#

How then?

chrome beacon
#

Don't add anything that way

#

You already did

elfin atlas
#

I mean I can remove them?

vocal cloud
elfin atlas
shadow night
chrome beacon
elfin atlas
#

And how do I'll import the 2 Jars?

chrome beacon
elfin atlas
#

Okay?

chrome beacon
#

So just reload your project

shadow night
#

EntityPotionEffectEvent how do I get the entity

vocal cloud
#

By getting the entity whats wrong?

shadow night
#

hmm doesn't seems to exist for me

#

lemme reload my ide

vocal cloud
#

You got the right event in there?

shadow night
#

yes

elfin atlas
shadow night
elfin atlas
vocal cloud
#

there you go have fun

chrome beacon
#

Remove it

elfin atlas
#

Removed

chrome beacon
#

Did you build 1.17.1 with BuildTools

elfin atlas
#

Yeah

chrome beacon
#

Follow this

elfin atlas
#

Just execute in a cmd?

sterile token
#

In which maven LifeCycle its the jar created?

crimson verge
#

maven is so nice, havent touched build tools in ages lmfao

chrome beacon
sterile token
#

Because i couldnt find a solution for changing the jar directory

quaint bough
#

Whenever I pass the inventory click event variables in my own event I lose the e.getHotbarButton variable. In the listener for the inventory click event e.getHotbarButton returns 2 (or any other number that has ben clicked) but whenever I listen to my own event e.getHotbarButton returns -1

stiff zinc
#

Are there any good NPC API's for 1.17 development

quaint bough
#

nothing wrong with that right ?

vocal cloud
#

Send the code idk why you're redacting it send the whole listener in pastebin

tulip owl
#

Okay, i am really confused on this (mainly because IntelliSense isn't working on file objects for some reason) but how would i load multiple config files that i could have an unlimited amount? E.G:

/books/rules.yml
/books/anotherFancyBook.yml
/books/anotherFolderForBooks/anotherBook.yml

How would I load all those in a list of FileConfigurations that I can iterate over?

ancient plank
#

reading screenshots is zzz please use either a paste for longer code snippets or discord code blocks

vocal cloud
quaint bough
tulip owl
tender shard
#

anyone any idea why my mvn site isn't working?

...
[ERROR] Generating C:\Users\mfnal\IdeaProjects\JeffLib\target\site\apidocs\index.html...
[ERROR] Building index for all classes...
[ERROR] Generating C:\Users\mfnal\IdeaProjects\JeffLib\target\site\apidocs\allclasses-index.html...
[ERROR] Generating C:\Users\mfnal\IdeaProjects\JeffLib\target\site\apidocs\allpackages-index.html...
[ERROR] Generating C:\Users\mfnal\IdeaProjects\JeffLib\target\site\apidocs\index-all.html...
[ERROR] Generating C:\Users\mfnal\IdeaProjects\JeffLib\target\site\apidocs\overview-summary.html...
[ERROR] Generating C:\Users\mfnal\IdeaProjects\JeffLib\target\site\apidocs\help-doc.html...
[ERROR] 5 errors
[ERROR] 100 warnings
[ERROR] 
[ERROR] Command line was: cmd.exe /X /C ""C:\Program Files\Java\jdk-17.0.1\bin\javadoc.exe" @options @packages @argfile"
[ERROR] 
[ERROR] Refer to the generated Javadoc files in 'C:\Users\mfnal\IdeaProjects\JeffLib\target\site\apidocs' dir.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Process finished with exit code 1
vocal cloud
trim creek
#

I finally managed teams to work, but enabling the scoreboard disallows me to see my prefixes (my nameplate will be white). Code:

    public void createBoard(Player player) {
        ScoreboardManager manager = Bukkit.getScoreboardManager();
        Scoreboard board = manager.getNewScoreboard();
        Objective obj = board.registerNewObjective("Lobbi", "dummy", "§6Lobbi");
        obj.setDisplayName("§6Lobbi §7(" + Bukkit.getOnlinePlayers().size() + ")");
        obj.setDisplaySlot(DisplaySlot.SIDEBAR);
        Score line15 = obj.getScore("§0");
        line15.setScore(15);
        Score line14 = obj.getScore("§7Neved §8» §6§n" + player.getName());
        line14.setScore(14);
        if (player.isOp()) {
            Score line13 = obj.getScore("§7Rangod §8» §4§lOperátor");
            line13.setScore(13);
        } else {
            Score line13 = obj.getScore("§7Rangod §8» §6§nN/A");
            line13.setScore(13);
        }
        Score line12 = obj.getScore("§7Érméid §8» §6§n0");
        line12.setScore(12);
        Score line11 = obj.getScore("§1");
        line11.setScore(11);
        Score line10 = obj.getScore("§7Jelenlegi szerver §8»");
        line10.setScore(10);
        Score line9 = obj.getScore("§6§nLobbi§7 (#1)");
        line9.setScore(9);
        Score line8 = obj.getScore("§2");
        line8.setScore(8);
        Score line7 = obj.getScore("§enein");
        line7.setScore(7);
        player.setScoreboard(board);
    }

Question: what did I do wrong? :c

vocal cloud
#

UwU I've been chosen

vocal cloud
tender shard
sterile token
#

Hey people finally i have find how to export Maven Project artifact directly to another directory, but its not moving the shaded jar

#

What i can do???

tender shard
#

I dont even get a proper error message, it just says Error and exits lol

vocal cloud
# tender shard no, I just want javadocs for my library
[ERROR] C:\Users\mfnal\IdeaProjects\JeffLib\core\src\main\java\de\jeff_media\jefflib\ItemSerializer.java:95: error: self-closing element not allowed
[ERROR]      * <p/>
[ERROR]        ^
[ERROR] C:\Users\mfnal\IdeaProjects\JeffLib\core\src\main\java\de\jeff_media\jefflib\ItemSerializer.java:127: error: self-closing element not allowed
[ERROR]      * <p/>
[ERROR]        ^
[ERROR] C:\Users\mfnal\IdeaProjects\JeffLib\core\src\main\java\de\jeff_media\jefflib\ItemSerializer.java:162: error: self-closing element not allowed
[ERROR]      * <p/>
[ERROR]        ^

Looks like you did something funky

#

Fix that and you should be g2g

#

Fix those </p>

tender shard
#

fixed, same thing

vocal cloud
#

Send the log again. We'll get through this lol

#

In paste

tender shard
#

I fixed another javadoc error where I used "List<Block>" in the description instead of List<Block>

#

now it succeeded :3

vocal cloud
#

There you go

tender shard
#

thx

vocal cloud
tender shard
#

I always thought the javadoc plugin would continue on those errors

ancient plank
#

I too love using § over chatcolor

vocal cloud
#

Naw it needs to be solid

vocal cloud
tulip owl
vocal cloud
elfin atlas
#

Okay so just jar?

vocal cloud
#

If it's a jar then yes

elfin atlas
#

okay

trim creek
vocal cloud
#

Sheeesh

#
  1. Please use ChatColor
trim creek
#

👀

#

#where

tender shard
tardy delta
trim creek
#

🤔

#

'k then I am making a simple scoreboard that never updates itself. 😐

vocal cloud
tender shard
wide coyote
#

am i allowed to send plugin message asnyc

trim creek
tardy delta
tardy delta
vocal cloud
# tender shard yeah but what can I do about it? I can't just exclude MMOCore. I don't even get ...

I mean I've never encountered this issue but the error it here

[ERROR] 'dependencies.dependency.systemPath' for org.spigotmc:spigot-api:jar must specify an absolute path but is ${basedir}/lib/spigot.jar @ line 115, column 19
[ERROR] 'dependencies.dependency.systemPath' for com.bekvon.bukkit:Residence:jar must specify an absolute path but is ${basedir}/lib/Residence.jar @ line 122, column 19
[ERROR] 'dependencies.dependency.systemPath' for com.Zrips:CMI:jar must specify an absolute path but is ${basedir}/lib/CMI.jar @ line 129, column 19
[ERROR] 'dependencies.dependency.systemPath' for com.sainttx.holograms:holograms:jar must specify an absolute path but is ${basedir}/lib/Holograms.jar @ line 136, column 19
[ERROR] 'dependencies.dependency.systemPath' for com.gmail.filoghost:HolographicDisplays:jar must specify an absolute path but is ${basedir}/lib/HolographicDisplays.jar @ line 143, column 19
[ERROR] 'dependencies.dependency.systemPath' for io.lumine.xikage:MythicMobs:jar must specify an absolute path but is ${basedir}/lib/MythicMobs.jar @ line 150, column 19
[ERROR] 'dependencies.dependency.systemPath' for net.citizensnpcs:citizens:jar must specify an absolute path but is ${basedir}/lib/Citizens.jar @ line 157, column 19
[ERROR] 'dependencies.dependency.systemPath' for me.clip:placeholderapi:jar must specify an absolute path but is ${basedir}/lib/PlaceholderAPI.jar @ line 164, column 19
[ERROR] 'dependencies.dependency.systemPath' for me.vagdedes:spartan:jar must specify an absolute path but is ${basedir}/lib/SpartanAPI.jar @ line 171, column 19
tender shard
#

but it can't be tur ethat I can't build the site just because MMO's pom is stupid, right?

vocal cloud
# trim creek Would this fix the problem? 😐

You don't make a new scoreboard every time. Imagine if in a soccer game every time they wanted to add a point to the scoreboard they installed a new one. That's what you're doing for starters

trim creek
#

This is kinda already ####### annoying

vocal cloud
tender shard
#

and that's the only thing I want to do

#

lol

vocal cloud
#

or whatever the option is

spiral light
#

wtf why is this possible

trim creek
#

what kind of version do you use?!

young knoll
#

Cursed

spiral light
#

1.18.1

tender shard
trim creek
#

wtf

tardy delta
vocal cloud
trim creek
#

:ultrarage:

tardy delta
#

i saw Jordan Osterberg making a wrapper a long time ago
which supports dynamic objectives allocation or something

vocal cloud
trim creek
#

Only an API and a Core. XD

#

Both made by me

#

c.c

#

I made teams be registered in another class, and the same to the scoreboard.

#

The teams are registered, but the tablist and the nametag doesn't shows it on me.

#

All the effects are set

#

The team admin, instead of admin, shows Rendszergazda in color red.

#

Its settings are correctly set (never show nameplate, and see players who are invisible, and in the same team)

acoustic pendant
#

why is this not working?

#

i reloaded maven

tardy delta
trim creek
#

Is this an API?

tender shard
trim creek
#

I don't work with APIs

brittle loom
#

Hello, I'm trying to restore a map by unloading all of its chunks and loading them back again, the problem is when I unload the chunks they get saved so when I try loading them back again the chunks aren't getting restored. Does anyone know how I can prevent chunks from getting saved? The restoring feature works on version 1.8 but it won't work on any versions above that. Here's a pastebin of the world restore method: https://pastebin.com/nkAixcLG if you could help it would be much appreciated.

tender shard
vocal cloud
#

Wasn't that started in 1.17

acoustic pendant
dusk flicker
trim creek
dusk flicker
#

why

#

you are just hurting yourself

trim creek
#

Mostly because they use Maven, which I don't understnad.

acoustic pendant
tender shard
dusk flicker
#

you should learn maven then

vocal cloud
#

Bruh ignorance is the #1 reason to learn

dusk flicker
#

yeah

trim creek
lost matrix
acoustic pendant
dusk flicker
#

no

#

?bt

undone axleBOT
tender shard
#

?bt

undone axleBOT
lost matrix
#

no

#

?bt

undone axleBOT
tender shard
#

no

vocal cloud
#

no

tender shard
#

?bt

undone axleBOT
trim creek
#

🤣

vocal cloud
#

?bt

undone axleBOT
dusk flicker
#

no its

#

?bt

undone axleBOT
shadow night
#

I see buildtools

trim creek
#

XDD

dusk flicker
#

?buildtools

trim creek
#

This is hilarious. XDD

dusk flicker
#

ah damn

vocal cloud
tender shard
trim creek
#

Hmmm

vocal cloud
#

?bt

undone axleBOT
dusk flicker
#

no this

trim creek
#

I guess I got an idea... But not seriously sure...

dusk flicker
#

?bt

undone axleBOT
tender shard
#

lol

trim creek
#

Time to use my API which I do understand cause it uses a secret type. 🤔

acoustic pendant
#

but i have to run buildtools in my pc?

young knoll
#

Yes

vocal cloud
#

Secret type?

visual tide
#

Yes

vocal cloud
#

lul

young knoll
#

With --remapped

tender shard
visual tide
lost matrix
dusk flicker
#

LMAO

young knoll
dusk flicker
#

that was fast

young knoll
#

Lul

trim creek
#

I need 'em.

#

FOR SURE

#

D:

dusk flicker
#

i use soo many libraries

#

lmao

vocal cloud
#

Don't reinvent the wheel

gleaming zenith
#

Hello, how can i set a backend server as default server? (Bungeecord)
I mean that the players are always connecting to this server if they join, not to any other even if they played on another server the last time

lost matrix
tardy delta
dusk flicker
#

Same thing for me tbh

young knoll
#

But that’s still an external plugin :p

dusk flicker
#

I dont use any external plugins