#help-development

1 messages Β· Page 182 of 1

sterile token
#

because i used to use this code:

#

That code was made like 2y ago my be

river oracle
lunar schooner
#

Hi there, I'm running into some weirdness when spawning a Magma cube with NMS (yes, I do have to use NMS):

[21:16:59] [Server thread/WARN]: java.lang.reflect.InvocationTargetException
...
[21:16:59] [Server thread/WARN]: Caused by: java.lang.NullPointerException: Cannot invoke "net.minecraft.world.entity.ai.attributes.AttributeProvider.a(java.util.function.Consumer, net.minecraft.world.entity.ai.attributes.AttributeBase)" because "this.d" is null
[21:16:59] [Server thread/WARN]:        at net.minecraft.world.entity.ai.attributes.AttributeMapBase.e(SourceFile:48)
...

Using the following to spawn it:

ReflectionUtil.invokeConstructor(
  getInnerClass(), // net.minecraft.world.entity.monster.EntityMagmaCube
  new Class<?>[] { EntityTypes.getInnerClass(), World.getInnerClass() }, // net.minecraft.world.entity.EntityTypes; net.minecraft.world.level.World
  new Object[] { EntityTypes.getMagmaCubeType(), craftWorld.inner() }); // MAGMA_CUBE constant in EntityTypes; instance of the craftworld (obtained via World#getHandle

I'm not sure why or what causes this error, could anyone shed some light on this?

sterile token
river oracle
#

though since your just casting you can just do an unchecked cast to your getMap

#

it'd be more of an issue if there are multiple diff objects

sterile token
#

what?

#

Im other words

#

I didnt catch it

#

Sorry

river oracle
#
// @SupressWarnings("unchecked") so its not annoying
Map<String, Crate> crates = (Map<String, Crate>) config.getMap("whatever");
#

that should work

sterile token
#

I mean its put in yellow and its really annoying to see that warning while coding

#

πŸ˜‚

river oracle
#

whats the exception

river oracle
#

it'll get rid of the unchecked warning

sterile token
#

oh more lines of coding

#

it should be an IDE setting way

hazy parrot
quaint mantle
#
    @EventHandler
    public void openBlock(PlayerInteractEvent e) {
        Player p = e.getPlayer();

       if (e.getAction() == Action.RIGHT_CLICK_BLOCK) {
           Block block = e.getClickedBlock();
           if (block.getType() == Material.BLAST_FURNACE || block.getType() == Material.STONECUTTER) {
              if (!p.hasPermission("group.miner")) 
                  e.setCancelled(true);
          }
       }``` So i dont know why but the !p.haspermission doesnt work? Because the player doesnt have that permission but it doesnt cancel the event but when i remove that third if statement it does cancel the event if someone could explain it to me?
hazy parrot
#

remove ; after if

quaint mantle
#

sorry my bad it wasnt there

#

in the actual code

#

because i just wrote that if statement on disc

eternal oxide
#

there is nothing wrong with the code as it is now.

quaint mantle
#

but why doesn it work?

eternal oxide
#

you can;t be assigning the perms properly

quaint mantle
#

the player has one permission node tho and its group.default

#

not group.miner

eternal oxide
#

is that an actual permission node or the group they are in?

quaint mantle
#

so that player only has default perms

eternal oxide
#

then it won;t pass as a permission check

quaint mantle
#

but I put the permission group.role in the group

eternal oxide
#

add some debug to see wht it actually is returning

boreal python
#

Any better way to send delayed chat messages without using 20 .scheduleSyncDelayedTask??

EG.
"Warning" after 1 second
"Warning" again, but one second after the previous message
"Knockback 5 stick at middle" but 1 second after the previous warning message

eternal oxide
#

repeating task that counts up/down until its finshed, then cancel()

quaint mantle
#

thats what it looks like but what itrs returning when it checks permission?

eternal oxide
#

add some debug to see what it actually is returning

lunar schooner
river oracle
#

can someone expound on what period does I am dumb with english

#

nvm

#

i figured it out

tender shard
#

e.g. 20, 80, 140, 200, 260, ...

river oracle
#

you scared me

#

its mfnalex

tender shard
#

lol yeah I changed my pic lol

river oracle
#

I'm not used to you changing your pfp lol its weird how I care when other people do it but I change mine like every week

hollow pelican
#

How do I log the content of a ClientboundSystemChatPacket properly?

#

All of my attempts so far don't work with the ones sent by the sendMessage method.

#

It keeps logging null

#

I'm logging the content value but it seems to be a little different for ones sent by sendMessage

fading spindle
#

Hey guys im using maven to make a 1.19 spigot project, and in my pom.xml file my dependency code looks like this
21 <dependencies> 22 <dependency> 23 <groupId>org.spigotmc</groupId> 24 <artifactId>spigot-api</artifactId> 25 <version>1.19.2-R0.1-SNAPSHOT</version> 26 <scope>provided</scope> 27 </dependency> 28 </dependencies>

it gives me an error on line 22 that says

Missing artifact org.spigotmc:spigot-api1.19 pom.xml
even th ought i have imported spigot 1.19 in refernedced libraries in my workspace

#

anyone got an idea to help?

hollow pelican
fading spindle
#

Yes

#

<repositories> <!-- This adds the Spigot Maven repository to the build --> <repository> <id>spigot-repo</id> <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url> </repository> </repositories>

#

respitory code

#

This is my entire pom btw

`<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>me.scribble2</groupId>
<artifactId>scribble2</artifactId>
<version>1</version>
<name>scribble2</name>
<description>A very scribbly project</description>

<repositories>
<!-- This adds the Spigot Maven repository to the build -->
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
</repositories>

<dependencies>
<!--This adds the Spigot API artifact to the build -->

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

</project>`

#

i also have spigot 1.19 in my workspace

#

or should i remove thaT?

#

Ok

#

Ill try

#

thx

#

im doin it right now

hollow pelican
#

Just a tip: I recommend using this for sending stuff like that.
```
pom file text here
```

fading spindle
#
Test test ```
#

og

#

that works way better

#

thanks!

hollow pelican
#

Yeah.

tender shard
#

psvm(String...) > psvm(String[])

#

in 99% of cases, noone uses the args[] string anyway lol

#

psvm doesnt accept a list though

#

oh no lol

#

sure

#

but tbh, who uses the args[] array directly? probably nobody

vocal cloud
#

A lot of people use it for passing in arguments like database details to applications

hollow pelican
#

Does anyone know how to get packet fields without ProtocolLib?

young knoll
#

Causing memory leaks with a GC language isn’t the easiest

#

What are you checking with

#

Not sure

#

Haven’t really tried any

echo basalt
#

YourKit

#

It's paid and a pain in the ass

#

But it works great

west forge
#

has 1.8.8 been removed from maven releases?

vocal cloud
#

One can only dream

young knoll
#

Are you on localhost

floral drum
echo basalt
#

πŸ‘ good job

floral drum
#

hi illusion

echo basalt
#

hi purple

#

I'm mad at jake

#

wanna yell at him for me

floral drum
#

why

#

the meeting?

echo basalt
#

mans scheduled a work meeting for thursday

floral drum
#

oh

echo basalt
#

and insisted on it for the entire fuckin week

floral drum
#

loll

echo basalt
#

then didn't say anything for 2 hours, claimed he was waiting for me

floral drum
#

L... I mean F

#

my ip got leaked on skidsearch lmao... @echo basalt
The worst thing - my ip is static
The best thing - my ip recently changed

#

wtf

echo basalt
#

tf is skidsearch

floral drum
#

website where mc server database leaks go

#

aka player info

#

Someone once had my ip and took my internet off every single time my server was about to release :/

#

didn't know who it was

#

RIPP

#

say goodbye to home hosting!

#

haha

drowsy helm
#

ez static ip

floral drum
#

LMAO

vocal cloud
#

Live's in California

Has bad internet
It all makes sense

echo basalt
#

Yeah my IGN links to an old account that had my nick

#

this is not my ip

floral drum
#

old ip go brttt

echo basalt
#

I wonder how many times someone tried to DDOS me for this

#

lmao I wonder if the website is just doing backend sql queries

young knoll
#

Oof

floral drum
#

makes sense then xylight

young knoll
#

I feel like you would want to encrypt an IP

#

Not that encryption is super hard to reverse but yk

floral drum
#

sha256!

echo basalt
#

you give me mzunguhosting vibes

floral drum
#

dude it's like their website loads pixel by pixel

#

LOL

young knoll
#

Actually yeah if you never need to get the ip back out

floral drum
#

this looks so bad

young knoll
#

Then just hash it

floral drum
#

😭

echo basalt
#

meanwhile here in portugal

#

ISPs fighting for the cheapest prices

young knoll
#

Same

echo basalt
#

30$/mo give you like 250/100

young knoll
#

Except I get 10mbps

echo basalt
#

40$/mo give you 1000/400

floral drum
echo basalt
#

15$/mo gives you like 100/100 on some isps

young knoll
#

$15 a month here gets you a floppy disk and a carrier pigeon

floral drum
#

why are we talking in help-development

#

lol

echo basalt
#

to not get alex's masterpiece lost in conversation

floral drum
#

oh true

west forge
#

does anyone know why maven can't find the following when few weeks ago with the same pom everything was working fine?
https://imgur.com/a/e9sWy43

floral drum
#

no we will not help you

echo basalt
#

or bungeechat 1.8 got removed because it would make logical sense

floral drum
#

fairs

delicate lynx
#

sir this is spigot

west forge
#

@floral drum also replying to u

delicate lynx
#

well that release doesn't exist on that repo

west forge
#

i just cloned Paper 1.8.8 from the github repo and built it successfully

#

it the same as that. makes no sense .-.

fluid river
#

πŸ™‚

#

gold

sterile token
arctic moth
#

idk how im gonna test this

#

i die if i use it

fluid river
#

for (Stirng s : config.getKeys(false)) {
map.put(s, config.get(s));
}

sterile token
arctic moth
#

because i can

fluid river
#

map of <String, Object>

arctic moth
#

boredom

#

tbh it probably will just crash the sound engine

sterile token
#

Basically

this.config = new Config(this.plugin, "crates");
     Object object = this.config.get("crates");
     if (object instanceof MemorySection) {
       MemorySection section = (MemorySection)object;
       for (String id :  section.getKeys(false)) {
         this.crates.put(id, (Crate)this.config.get(section.getCurrentPath() + '.' + id));
       }
}```
#

Taken it from an old plugin i have done

echo basalt
#

uhh no

arctic moth
#

or the sound wont be supported by the speakers

echo basalt
#

That's way too much work lmao

sterile token
#

Because getMap() i need to supress with an antt which takes 1 line more of code

#

😬

echo basalt
#
FileConfiguration config = ...;
Map<String, Object> map = new HashMap<>();

for(String key : config.getKeys(true)) {
  map.put(key, config.get(key));
}
arctic moth
sterile token
#

And for saving the same right?

echo basalt
#

uh sure you can just loop through the map and set it

sterile token
#

Lmao i used to code really weird

#

πŸ€”

echo basalt
#

holup wtf

#

map -> entry set -> map

sterile token
#

yes hahaha

#

ilussion

#

Also how does the annot work?

#

the registerserializable

echo basalt
#

the serializable stuff for yml?

arctic moth
#

huh max float value just makes a step sound

#

weird

sterile token
floral drum
#

hi illusion

echo basalt
#

setting the object converts it to a map and sets the map with the maplist format

#

it's odd

#

it's like calling set(path, ItemStack)

#

output will be similar

#

hi purple

sterile token
#

i know how it works

#

but i wasnt saying that

#

I was asking how does the annot work

echo basalt
#

Internally?

sterile token
#

i mean there 2 ways for registering them

#

via ConfigurationSerialization or with an annotation

#

πŸ€”

#

Isnt like that?

#

Ilussion?

#

Alex?

#

Are you loading me?

#

I mean im being serious

#

I dont know why people take me as joking

hasty prawn
#

Whats the annotation

#

I didn't even know there was one tbh

ivory sleet
#

there isnt one

ocean ginkgo
#

how might i summon a falling sand, or really any entity infront of the player? currently trying to use player.getEyeLocation().getDirection();
and then will add the direction onto the position of spawn, however I dont even know how to spawn something

stuck flax
#

Is there a method to remove a certain amount of an ItemStack from a player?

arctic moth
#

how do i launch things with a ton of speed?

#

10 seems to be the max but its a tiny launch

#

and repeatedly adding the vector just isn't fast

#

like i've seen things with velocities much higher, but i never seem to be able to give them the velocity

ocean ginkgo
arctic moth
#

ItemStack#setAmount()

stuck flax
#

no..?

stuck flax
#

i might try iterating through the inventory

boreal python
#

anyone know why it won't recognize any of the bukkit imports for any of the .java files (not my code, its a plugin I am attempting to modify)
https://imgur.com/a/lXkFXCj

stuck flax
#

That removes all of the itemstack

fluid river
fluid river
ocean ginkgo
#

thanks :)

stuck flax
fluid river
wet breach
#

if you give it an amount as an argument it will try to remove only that amount

fluid river
#

you can do matchingItem.setAmount(10)
and inventory.removeItem(matchingItem);

#

if you have more then 10 stacks

stuck flax
#

Is the amount the amount of the itemstack or do I have to pass it in in another way

fluid river
#

it will remove 10

#

and will leave others

#

You can even place your items in different slots

#

like 1 item per slot

#

so you have like 36

#

if you set the amount of stack which you want to remove to 35

wet breach
#

in other words

fluid river
#

code will remove 35

#

and one slot would be still filled

wet breach
#

if you want to play tetris in the inventory you can

fluid river
#

yeah

#

πŸ™‚

stuck flax
#

Ok, so I'm assuming the amount it removes is the amount of the itemstack I provided

fluid river
fluid river
#

and use the clone as parameter to removeItem()

stuck flax
#

time to test it out

fluid river
#

it worked for me countless times tho

#

i was removing coins from player's inventory

#

no matter how player splitted them

#

containsAtLeast(item, amount) is at your help too in this case

ocean ginkgo
#

for some reason this isnt working...

public void playerInteractEvent(PlayerInteractEvent event) {
        Player player = event.getPlayer();
        player.getWorld().spawnEntity(player.getLocation(), ZOMBIE);
    }
#

im testing around with how things actually work in spigot before trying to make something of use, and this is supposed to spawn a zombie whenever I interact

#

however does nothing

undone axleBOT
#

The PlayerInteractEvent may be called once per hand. If you only want code to be executed once, you can check the result of https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/player/PlayerInteractEvent.html#getHand(), then decide functionality.

For example, only executing code if the main hand was used:

@EventHandler
public void onPlayerInteract(PlayerInteractEvent event) {
    if (event.getHand() != EquipmentSlot.HAND) { // * if the hand used is NOT the main hand:
        return; // do not progress past this point  |
    }
    // provide functionality
}
ocean ginkgo
#

ah

#

forgot the @eventhandler

#

did that in my main

#

this was just a snipit

#

works now :D

fluid river
#

well now you can spawn entities

#

what's next

ocean ginkgo
#

hmm

#

for me its controlling them xd

fluid river
#

Zombie z = (Zombie) player.getWorld.spawnEntity(blah);

#

z.setDad(me)

ocean ginkgo
#

might be a bit ambitous but im trying to make an avatar bending plugin (i feel project korra can stand to have some improvements), and trying to start with water bending

fluid river
#

so you want falling block

#

with type water

ocean ginkgo
#

ye however that seems to not be working

#

although maybe im doing it wrong

fluid river
#

FallingBlock b = (FallingBlock) bruh;

ocean ginkgo
#

currently it just sets the block to water

#

player.getWorld().spawnFallingBlock(player.getEyeLocation().add(player.getEyeLocation().getDirection()), Material.WATER.createBlockData());

#

(i tried just Material.WATER but it gave me an error, and me being lazy saw it give me a working fix)

fluid river
#

i never worked with falling blocks so can't suggest anything

ocean ginkgo
#

i was debating setting an invis armorstands head to the block instead

#

i feel that would feel more fluid, not sure

fluid river
#

you'd better work with packet entities tho

ocean ginkgo
#

explain...?

fluid river
#

cuz "real armorstands lag the server" and so on

#

i guess you can send a falling block packet to the player

#

if it exists

ocean ginkgo
#

what is "packet"

#

that means like running client side?

fluid river
fluid river
#

spawn or change blocks for one player or several

#

spawn entity to player

#

and so on

#

but requires some knowledge

ocean ginkgo
#

ok

#

how hard is it to like convert the code after into packets if it lags that much

#

cause id rather learn how to do the "fun part" rather than the efficient part

#

procrastination yk

fluid river
#

well i once used this api

#

basically it simplifies packet sending

#

you can google some packet or protocollib guides

#

and there are some guys on the server who can help you

#

not me

ocean ginkgo
#

im gonna assume im gonna have to do armorstands instead of falling blocks because fallingblocks spawn like per block

#

as in on the grid, which i dont want

#

hmm

#

how do i continuesly control an entity as in frames after the intial event was called

fluid river
#

?scheduling

undone axleBOT
fluid river
#

good luck

ocean ginkgo
#

fun

#

:)

frail swift
#

How would one do initial file setup, such as if I wasnted the below to be set in the plugisn data folder on first start:

config.yml
messages.yml
shops(file)
  default.yml```
#

and what would be the best way to add all the defaults, could I have a file in my resources folder and it just use that, or would I need to type each option indivudually in the code?

#

currently, I have it just create the config and messagse file if they dont exisit, but nothing in them to start, and for the shops folder the user can add and remove files to add and remove their shops, so it adds the empty default.yml if the folder is empty

raw prairie
#

hey, can someone walk me through how BlockPopulator works? I would like this in dms. Thank you.

fluid river
#

like config.yml

#

you can use JavaPlugin#saveResource()

raw prairie
fluid river
raw prairie
#

Damn

#

Im having trouble with it

fading spindle
#

is this pom file correct? Im not getting any errors but in my main class when i try to add extends JavaPlugin it gives me an error there, anyways this is my pom.xml

  <modelVersion>4.0.0</modelVersion>
  <groupId>test</groupId>
  <artifactId>test</artifactId>
  <version>1</version>
  <name>test</name>
  <description>test</description>

<repositories>
    <!-- This adds the Spigot Maven repository to the build -->
    <repository>
        <id>spigot-repo</id>
        <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
    </repository>
</repositories>

<dependencies>
    <!--This adds the Spigot API artifact to the build -->
    <dependency>
           <groupId>org.spigotmc</groupId>
           <artifactId>spigot-api</artifactId>
           <version>1.19</version>
           <scope>provided</scope>
    </dependency>
</dependencies>
</project>```
fluid river
frail swift
fluid river
#

next time you go coding

#

open javadocs on second monitor

#

or at least on half screen

#

and second half would be your ide

frail swift
#

yeah I got one monitor for IntelliJ, one for testing with the server and files open, and one for half youtube and half docs/googling

fluid river
#

or use my FREE JAVA LESSONS

#

always available

frail swift
#

yeah I found it on there now, guess I need to refine my searching skills

#

Thanks for the hlep tho

wary topaz
#

This is in help development as it is a issue I'm having in intellij
I also downloaded buildtools perfectly correctly. But I keep getting these specific errors. I even tried resetting my pc but nope, waste of my time and now I give up.

real marsh
#

I need help, I want a good login plugin for version 1.18.2 that allows me to use /premium

wary topaz
#

?spoon

undone axleBOT
#

Spoonfeed a newbie for a day and they'll come back with more questions. Teach them to find their own answers and you'll both be better off: you won't get stuck answering the easy questions and they'll be much more productive than before.

vocal cloud
#

Gross /premium means cracked and cracked is gross

river oracle
mighty pier
zealous osprey
#

XD

echo saddle
#

!spacex

undone axleBOT
#

A Spacex Falcon 9 is scheduled to launch Galaxy 33 (15R) & 34 (12R) from CCSFS SLC 40 in -5 days -6 hours -35 minutes.

halcyon hemlock
#

someone please help me with spiral particles

#

i want to summon spiral particles towards the direction the player is looking

eternal oxide
hybrid spoke
#

either exclude them or ignore it

rough drift
#

I like how at the end Tuinity just bodyslams into Paper

#

Β« Baby I'm Yours (feat. Irfane) Β» taken from EP "Baby I'm Yours"
available on all platforms: https://BecauseMusic.lnk.to/BreakbotBabyImYoursEP
Subscribe to Breakbot Essentials: https://lnk.to/breakbotessentials
Subscribe to Ed Banger Essentials: https://lnk.to/edbgessentials

Follow Breakbot :

Subscribe to Breakbot's channel: https://EdBan...

β–Ά Play video
#

slowcord

rough drift
torn shuttle
#

the fact that c# uses var still throws me off

drowsy helm
#

and the fact that java added it

torn shuttle
#

man if it wasn't for the IDE highlighting it I would not use var

#

I just don't see the point

drowsy helm
#

maybe they want to open the market to people who dont like strongly typed langs

#

idk lol

torn shuttle
#

but it's not even weakly typed though is it

#

iirc it decides to type on declaration or smth

drowsy helm
#

oh really?

torn shuttle
#

so you can't even commit the crimes against humanity that js allows you to do

#

yeah

#

I just don't see the point of it, if anything it just feels like a dumb idea since you can find yourself digging because you can't remember what type a var was

#

I got pranked by that a couple of times already

drowsy helm
#

yeah and it allows new devs to abuse it

#

already seen people in this channel using it unnecessarily

torn shuttle
#

is the java var still strongly typed?

rough drift
#

yes

#

It just makes it easier to type long vars

torn shuttle
#

...

rough drift
#

you can't use it in methods iirc

#

like not as a param

#

only like

torn shuttle
#

someone needs to sell me on why this isn't the stupidest feature in java and c#

rough drift
#

SomeVeryChonkyClassName myThing = new SomeVeryChonkyClassName();

instead you can use

var myThing = new SomeVeryChonkyClassName();

#

A bit better

#

Also I just got commands hiding after unregistering :pog:

eternal oxide
#

or you could use myThing = new SomeVeryChonkyClassName(); and let the IDE create the local variable for you.

rough drift
#

I don't know why, as they are not valid keywords and will error

rough drift
#

but then reading it

#

Imagine you have

drowsy helm
#

wait const is reserved?

rough drift
#

a really long generic class name

rough drift
drowsy helm
#

interesting

rough drift
#

For some reason

drowsy helm
#

tbh i like const more than final

#

it makes more sense name wise

torn shuttle
#

are yall punching punchcards by hand to get these class names, because I have not written a full class name perhaps ever

eternal oxide
drowsy helm
#

^

#

var will save you like max 10 characters in a line

torn shuttle
#

and make it harder to read back later, what a great innovation

drowsy helm
#

so literally just readability

torn shuttle
#

its less readable

eternal oxide
#

very less

rough drift
drowsy helm
#

readable on the surface yeah

rough drift
#

it crashes if you try to use it

rough drift
drowsy helm
#

nah im saying the name const

#

over the name final

eternal oxide
#

they added it because others did

torn shuttle
#

as a matter of fact I am going to have to schedule another LASIK surgery because every time I read it I feel my eyes die a little

rough drift
#

if you're creating a long class name in line then var is fine

#

if you're getting from a return then no

#

as then its less readable

torn shuttle
#

what a sad day to have 20/20 eyesight

rough drift
#

var myThing = new AReallyLongClassNameThatMayHaveGenerics(); yes

var myThing = getStuff(); no

eternal oxide
#

I'll never use it, not unless it offered some kind of type casting

drowsy helm
#

how about when it's nested behind 10 different classes

torn shuttle
#

if it had type casting we'd be talking about something entirely different

#

basically javascript

rough drift
#

well no

#

wait

#

var sender = myCommandSender;

sender = player; that would be fine, it's a subclass

#

or

#
var myInt = 56;
myInt = 'A'; // converts to 65
torn shuttle
#

type casting is for losers anyway, you only use generics and make a util class that quickly gets them in the format you want at any given time like a true gigachad

rough drift
#

if I ran a task later using the scheduler, with a delay of 1 / 50, would it run after a tick?

eternal oxide
#

0-1 = attempt 1 tick later

rough drift
#

oh okay

#
Spigotils
    .scheduler(this)
    .executeEvery(() -> {
        Bukkit.getOnlinePlayers().forEach(player -> {
            player.getLocation().add(0, -1, 0).getBlock().setType(Material.WHITE_CONCRETE);
        });
    }, 5, TimeUnit.SECONDS);
```I made time unit based scheduler poggies
floral pier
# rough drift For some reason

const is reserved for the same reason as goto. They might add it in the future and they don't want some idiot naming their variables that thus breaking existing codebases.

rough drift
#

fair

torn shuttle
#

I really wish people would stop making unity videos and made more written documentation instead

rough drift
#

yes lmfao

echo basalt
echo basalt
#

does the job

#

you can omit half of it

torn shuttle
rough drift
#

mine is cleaner, it does the essentials and it does it clearly

echo basalt
#
new ScheduleBuilder(this)
  .every(1).ticks()
  .run(() -> {
    ...
  })
  .sync()
  .start();
#

cleaner is a subjective form

rough drift
#

if the name of a method is "executeEvery" and it's arguments are a Runnable, a long named time, and a timeunit, I'd expect it to be pretty fucking clean

torn shuttle
#

illusion wouldn't know what clean is if the great flood washed away the sewer he lives in

rough drift
#

LMFAO

#

SpigotilsScheduler#executeEvery(Runnable, long, TimeUnit)

echo basalt
#

magma you're internationally recognized as the guy that dissed choco, you won't relive your legacy

rough drift
#

if he successfully dissed choco without getting banned they got some damn mad skills

torn shuttle
echo basalt
#

how is choco gonna ban him from soundcloud

torn shuttle
#

man how the hell do c# events work

#

you have to feed them a method on the constructor?

floral pier
torn shuttle
#

brah what is this even

#

why do it be like that

tardy delta
#

C# naming conventions go brr

torn shuttle
#

I don't even know half the shit I wrote there (though it works)

grim ice
#

easy

#

there are so many ways to avoid having long generics

grim ice
#

i pretty much prefer yours

#

especially the during part

#

a nice thing to have

grim ice
#

a scheduler service

#

pretty sure u can just use that

fickle mist
#

hi all! I have a question, how to indicate in if() that, like, if the player has been standing on the slime block for the last 15 seconds, then (what is executed in if())

tardy delta
#

this is twice the same right?

vocal cloud
grim ice
#

because it is unity

#

lol

vocal cloud
#

I hate Unity gag

charred blaze
#

Is there any method to remove chat colors from the event.getMessage(); in asyncchat event?

remote swallow
#

ChatColor.stripColor

hollow pelican
#

Does anyone know how to access the adventure content field of a System Chat Packet?

#

(without ProtocolLib)

echo basalt
#

reflection

#

ProtocolLib just does reflection

#

you get the packet object from the netty pipeline and inject into it

small current
#

protocollib overrides the listener

echo basalt
#

it does have wrappers but it mostly just does reflection

#

and injects into the netty pipeline

#

because it's the proper way to intercept packets

#

...

hollow pelican
#

I'm not sure how to access the content field added by the Adventure API

small current
#

maybe there is a reason that @hollow pelican is not using protocollib

echo basalt
#

Look at the NMS packet

small current
#

so help if you can

#

and dont suggest plib

echo basalt
#

I'm not suggesting plib

#

I'm just saying what it does internally so you can replicate it

hollow pelican
#

^

echo basalt
#

So, back to the topic

#

Have you injected into the pipeline yet?

hollow pelican
#

I do have a packet listener class.

small current
#

do you have the packet object?

hollow pelican
#

Yes.

echo basalt
#

Alright, now look at the NMS packet class you're intercepting

small current
#

do you know the field name?

hollow pelican
#

I've tried that.

#

It looks like the field is injected by the Kyori Adventure API

echo basalt
#

But it is there, right?

hollow pelican
#

It's not in the packet class file by the looks of things.

echo basalt
#

uhh depends

#

It is on paper

hollow pelican
#

Yeah, I'm using Paper at the moment.

echo basalt
#

You could use the NMS component and convert it to a kyori component

#

or use the adventure$message field

#

Start with the adventure field

#

It is public so you can access it directly from the packet

#
if(packet instanceof ClientboundChatPacket packet) {
  Component component = packet.adventure$message;
  ...
}
#

type deal

hollow pelican
#

I don't have a ClientboundChatPacket file, only a ClientboundSystemChatPacket and ClientboundPlayerChatPacket.

echo basalt
#

uhhh

#

yeah that's 1.19 stuff

#

grr

#

gotta import 1.19 paper for that

#

just follow a similar process for either/or

hollow pelican
#

Ah right.

#

I'm not sure how to read the file since I've never built the Paper file or looked into the sources.

#

I'll look into it though, Thanks. πŸ™‚

ocean ginkgo
#

how might i make player variables? as in I want players to have variables dependent on only them

#

such as states of the player

small current
#

what is BlockExplodeEvent and EntityExplodeEvent

tardy delta
shadow zinc
#

why does this code not print the arg flags but the command args?

#
    public Map<String, List<String>> parseFlags(CommandSender sender, String[] args) {
        Stack<String> commandStack = new Stack<>();
        commandStack.addAll(Arrays.asList(args));
        List<String> flagArgs = new ArrayList<>();
        Map<String, List<String>> accumulatedFlagArgs = new HashMap<>();
        while (!commandStack.isEmpty()) {
            String element = commandStack.pop();
            if (PROCESSORS.containsKey(element)) {
                PROCESSORS.get(element)
                        .andThen((acc, list) -> list.clear())
                        .andThen((acc, list) -> {
                            NeoUtils.getInstance().getFancyLogger().info(element+": "+ flagArgs);
                            accumulatedFlagArgs.put(element, flagArgs);
                        })
                        .accept(sender, flagArgs);
            } else {
                flagArgs.add(element);
            }
        }
        return accumulatedFlagArgs;
    }```
small current
#

what is BlockExplodeEvent and EntityExplodeEvent

#

?

#

what is the difference

shadow zinc
#

the output is [22:29:58 INFO]: YourMom69 issued server command: /np schedule create -test s -cool s -dude s -test s [22:29:58 INFO]: [s] [22:29:58 INFO]: [NeoPerformance] -test: [] [22:29:58 INFO]: [NeoPerformance] hi [22:29:58 INFO]: [NeoPerformance] -dude: [] [22:29:58 INFO]: [NeoPerformance] -cool: [] [22:29:58 INFO]: [s] [22:29:58 INFO]: [NeoPerformance] -test: [] [22:29:58 INFO]: {-dude=[create, schedule], -cool=[create, schedule], -test=[create, schedule]}

shadow zinc
small current
#

thats not clear at all

#

tnt explodes is a block or an entity

shadow zinc
#

block v creeper

tardy delta
#

tnt vs creeper

small current
#

cause tnt is primedtnt entity

shadow zinc
#

not to spigot

small current
#

so how can i get the explosion source

#

is fireball an entity

#

thats not clear aaa

shadow zinc
small current
#

like if tnt calls block explode, how can i get the source with getBlock

#

no thats not clear

shadow zinc
small current
#

what is this

remote swallow
#

read it

shadow zinc
#

flag -test returns java addFlag("-test", (sender, args) -> Bukkit.broadcastMessage(args.toString()))

#

and that works

#

hence the [s] in output

#

however adding it to a hashmap doesn't work

ocean ginkgo
#

say i want an armorstand to only live for 1 second, and then to be killed

#

how might i do this?

undone axleBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

wary dome
undone axleBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

wary dome
#

oh thats a thing

sterile token
#

What do you need help?

sterile token
#

I mean most of the time a simple google research its better before asking

wary dome
#

yeah no, the BukkitRunnable was for him

sterile token
#

Oh I thought u were needing help

#

πŸ˜‚

bright cedar
#

Hi, does anyone know how I can, every time I create a world, have a roofted forest biome in the middle?

sterile token
#

Dont look for someone

#

Just ask your dought

#

😬

tardy delta
#

very nice when mouse dies while coding

bright cedar
#

how can I, every time I create a world, have a roofted forest biome in the middle? That’s my question 😬

hasty obsidian
hybrid spoke
vocal cloud
#

If you use your mouse for coding you're just missing the knowledge on the keyboard shortcut to replace your clicks

dawn hazel
#

Me when I forget a shortcut

shadow zinc
#

me when my code doesn't work

dawn hazel
#

When the keyboard dies

#

Then it’s an issue

#

I don’t use wireless for that reason

#

Cause u can pretty much use an ide without ever needing to touch the mouse since the tab key and shortcuts exist

tardy delta
#

its not just the battery

quaint mantle
#

Hey Guys Can I set the screen (like below) for loading bar(spigot) ? version in 1.19.2

tardy delta
#

whole thing seems to have died

shadow zinc
hasty obsidian
hybrid spoke
dawn hazel
#

Or get a wired keyboard

hybrid spoke
#

both lame

shadow zinc
#

i code with my voice

hybrid spoke
#

osu players are advanced on the onscreen keyboard

shadow zinc
#

my mother look my keyboard once so I had to use the onscreen keyboard

#

that was fun

tardy delta
#

copilot thinking about how to create a db table by reflections based on a class

hybrid spoke
#

would be funny if it would say "copilot is thinking..." like cleverbot did back in the days

tardy delta
#

its quite good in reflcetions

ivory sleet
#

Dam

shadow zinc
#

sup conclure, still grateful for the unban lol

tardy delta
shadow zinc
#

hits different

tardy delta
#

ill probably pre generate insert statements

quaint mantle
#

Oh Ok

torn shuttle
#

oh that's hilarious

#

I actually did a new choco song but as I was about to share it soundcloud deleted it, I think I might be banned from their platform lol

#

yeah I can't upload it lol

tardy delta
#

wondering how i would map columns to their datatype

#

im currently implementing a map<class, string> with the datattype in string format based on the field type

floral drum
tardy delta
#

?

#

ive seen hibernate doing this so i might use it aswell

#

its being closed in that event lol

#

just use that event and open a new inv

#

might delay it by one tick

hazy parrot
#

First time I actually saw someone get that error lol

tardy delta
#

AcceptRules.java:29

#

your code doing weird things

brazen hollow
#

Send the whole class

hazy parrot
#

You are opening inventory on join, and then when any inventory is closed

#

That means player will see your inv 100% of time?

tardy delta
#

which calls another inv close event

brazen hollow
#

But what does designGUI actually do?

tardy delta
#

and gets handled

brazen hollow
#

Thats kinda weird

tardy delta
#

naming conventions

brazen hollow
#

But you are disnging it again for every player

tardy delta
#

no need for new itemstack actually, just reassign

#
Itrmstack item = ...
inv.setItem(i, item);
item = ...
inv.setItem(i, item);```
brazen hollow
#

Just design it once and not for every player

#

lol

tardy delta
#

assign it to a field and not recreate it on every event

#

i'm just having a LazyValue<T>(Supplier<T>) thing

brazen hollow
#

Just call the designGUI func on resource start

#

Or check if the gui is null and then create it

tardy delta
#
private final Inventory gui = createGui();```
hasty obsidian
#

Recipe not working

rocky quarry
#

I use this code for check item put in a dispenser

simple acorn
#

anyone know why this happens when I format a message in asyncplayerchatevent? - https://imgur.com/a/FzkWS35
and anyone know how to get rid of this?

raw prairie
#

Hey, im tryng to create a world generator

#

but my code seems to puase the servers generating spawn.

#

This is for the custom chunk gen class

#

this is my main

primal notch
#

hello!

untold jewel
#

?hi

#

?hello

primal notch
#

how can i check if a minecraft day has already passed?

#

like when a day passes i want to give the players an item for example

fluid river
#

?scheduling

brazen hollow
#

There has to be some kind of time getter

undone axleBOT
fluid river
#

second is 20 ticks

#

day is 20 minutes

primal notch
#

but what if a player has slept

#

it won't be 20 minutes anymore

lyric oar
#

Hello, is it possible to change the hardness of a block? (The time it takes to break to be more precise)

fluid river
#

well than schedule a task timer

#

and check for world.getTime()

#

or smth

untold jewel
brazen hollow
primal notch
untold jewel
raw prairie
#

Is it possible to make a world generator based on schematics?

fluid river
#

free java lessons

brazen hollow
fluid river
brazen hollow
#

And then World#getTime

fluid river
#

but you can use ChunkGenerator and WorldPopulator

raw prairie
fluid river
#

other way every ChunkLoadEvent paste schematic instead of chunk

fluid river
#

ask somebody else here

lyric oar
raw prairie
#

Anyone know how to use block populator?

primal notch
brazen hollow
#

I dont know, probablly not

#

Have not worked with spigot since 2 years xd

raw prairie
#

Do you knmow how to use block populator

#

halp me

#

Trying to generate the backrooms with the changes already made within those chunks

#

this is what I have for my gen class rn

#

Please?

#

idk, I used the tutoral

#

hm

halcyon hemlock
#

hello guys

raw prairie
#

hi

#

oh ok

#

I have trouble with block populator

halcyon hemlock
#

I made a cone effect particle. and I would like it to make it so it would spawn in the direction the player is looking at. how could i do that?

#

right now it only spawns based only on the player's location

raw prairie
#

wait so , i use populate instead of generateChunkData

halcyon hemlock
#

what about that??

#
                    {
                        Location l  = p.getEyeLocation().add(p.getEyeLocation().getDirection().multiply(1.5));
                        double radius = 0.3;
                        double z = 0;
                        double deltaRadius = 1.8;
                        double deltaZ = 7;
                        for(int a = 0; a < 360; a++)
                        {
                            radius += deltaRadius/360;
                            z += deltaZ/360;

                            double x = radius * Math.cos(a);
                            double y = radius * Math.sin(a);

                            p.spawnParticle(Particle.CLOUD , l.getX() + x, l.getY() + y, l.getZ() + z , 0 );
                        }
                    }
#

i tried that, but it doesnt work since ur suppose to use x, z axis

raw prairie
#
    public ChunkGenerator.ChunkData populate(World world, Random random, int chunkX, int chunkZ, ChunkGenerator.BiomeGrid biome){
        ChunkGenerator.ChunkData chunk = populate(world);
        com.sk89q.worldedit.world.World adaptedWorld = BukkitAdapter.adapt(world);
        world.setSpawnLocation(0, 70, 0);
        for(int x = 0; x < 16; x++) {
            for(int z = 0; z< 16; z++) {
                chunk.setBlock(x, 0, z, Material.AIR);
            }
        }```
#

what about this?

#

there are a quite a few errors

halcyon hemlock
#

mind helping me?

#

:/

raw prairie
raw prairie
#

Do you know anything about blockpopulators before?

halcyon hemlock
#

what is blockpopulators

#

lmao

raw prairie
halcyon hemlock
#

its not that skyblock

#

its hypixel skyblock related

#

not literally skyblock

raw prairie
#

oh πŸ’€

halcyon hemlock
#

yea

#

stuff like this

brave goblet
#

Does anyone know how to use mcmmo api?

#

I tried adding it as a dependency like this

<repository>
    <id>mcmmo-repo</id>
    <url>http://repo.mcmmo.org/</url>
</repository>
<dependency>
    <groupId>com.gmail.nossr50.mcMMO</groupId>
    <artifactId>mcMMO</artifactId>
    <version>2.1.202</version>
</dependency>
halcyon hemlock
raw prairie
halcyon hemlock
halcyon hemlock
halcyon hemlock
brave goblet
charred blaze
#

how can i make this diamond animation?

bright cedar
#

How can I remove all the trees within a certain radius?

echo basalt
echo basalt
#

second step is iterating through the radius

#

third step is breaking all blocks

bright cedar
#

Yes but I don't know how to detect trees πŸ˜•

brazen hollow
#

Kinda hard if there isnt anything prebuild xd

raw prairie
charred blaze
#

how do i make it?

#

with armor stands?

#

or what

halcyon hemlock
#

πŸ’€

#

how do you think?

bright cedar
charred blaze
brazen hollow
hybrid spoke
raw prairie
#

help?

brazen hollow
hybrid spoke
undone axleBOT
#

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

bright cedar
raw prairie
brave goblet
halcyon hemlock
#

saving that

brazen hollow
brave goblet
# brave goblet I tried adding it as a dependency like this ```xml <repository> <id>mcmmo-re...

I get this error when trying to add the dependency
Could not find artifact com.gmail.nossr50.mcMMO:mcMMO:pom:2.1.202 in jitpack.io (https://jitpack.io)

com.gmail.nossr50.mcMMO:mcMMO:pom:2.1.202 failed to transfer from http://0.0.0.0/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of maven-default-http-blocker has elapsed or updates are forced. Original error: Could not transfer artifact com.gmail.nossr50.mcMMO:mcMMO:pom:2.1.202 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [mcmmo-repo (http://repo.mcmmo.org/, default, releases+snapshots)]

Since Maven 3.8.1 http repositories are blocked.

Possible solutions:
- Check that Maven pom files do not contain http repository http://repo.mcmmo.org/
- Add a mirror(s) for http://repo.mcmmo.org/ that allows http url in the Maven settings.xml
- Downgrade Maven to version 3.8.1 or earlier in settings
halcyon hemlock
hybrid spoke
brave goblet
hybrid spoke
brave goblet
brave goblet
brave goblet
hybrid spoke
#

then check if the repo still exists, force clean install, invalidate caches, delete m2 folder or do whatever

halcyon hemlock
brave goblet
#

yup i got that too

halcyon hemlock
#

then?

brave goblet
hybrid spoke
raw prairie
#

Getting an error

#

when trying to implement the method

#

for the calss

halcyon hemlock
#

isnt it a constructor?

#

@raw prairie πŸ’€

brave goblet
#

;-;

halcyon hemlock
#

?learnjava

undone axleBOT
raw prairie
brave goblet
#

and forgetting about the parameters

raw prairie
halcyon hemlock
brave goblet
raw prairie
#

I fixed that error

halcyon hemlock
#

and then it will return

raw prairie
halcyon hemlock
#

bro

raw prairie
#

The class extends the block populator

halcyon hemlock
#

wtf

raw prairie
halcyon hemlock
#

that's not how constructors work

#

its giving errors on top because it never reaches below

raw prairie
#

hopefully

halcyon hemlock
#

its a constructor bro

raw prairie
raw prairie
halcyon hemlock
#

fill in the fields or learn java

raw prairie
halcyon hemlock
#

the fields it requires

raw prairie
#

nvm

tardy delta
#

lookin kinda hot

eternal oxide
#

Don't jump into NMS unless there is no alternative

#

then go BuildTools as you will need to extend ServerPlayer

echo basalt
#

You poor soul

eternal oxide
#

N o

echo basalt
#

Remember how once you got paper remappings working, EntityPlayer was gone?

#

Basically EntityPlayer is a bukkit remapping name

#

It's called

#

Mojang mappings

eternal oxide
#

EntityPlayer also used to be a Spigot mapping. No longer used

echo basalt
#

It didn't mess everything up, you just didn't have the spigot mappings anymore

#

EntityPlayer -> ServerPlayer
nms.World -> ServerLevel
etc

#

mappings shouldn't break hex colors

#

it probably just prompted you to use adventure

remote swallow
#

seems like a

#

?whereami

halcyon hemlock
remote swallow
#

can i ask why you specifically asked me and i probably cannot

echo basalt
#

you didn't have to

vocal pine
#

Anyone know why a plugin would just not load with completely zero console output? I'm trying to fix up the old Envoys plugin; so I removed the DependencyManager (as that did run although the plgugin didn't to make it more direct) and now it seems to do nothing at all
The plugin.yml is valid on yamllint.com as well so I can't see why that would cause it

plugin.yml: https://paste.md-5.net/uzaniziros.css
build.gradle.kts: https://paste.md-5.net/eyogubuhik.makefile
settings.gradle.kts: https://paste.md-5.net/pavisotori.apache
main java class: https://paste.md-5.net/iwopabasem.java

eternal oxide
#

Not if you are using Spigot

halcyon hemlock
#

bro

eternal oxide
#

By who and what for?

halcyon hemlock
#

wrong server

echo basalt
#

well

#

mans using gradle

#

only remappings are paperweight

#

You can use the paperweight remappings and just not use any of the paper API's features

eternal oxide
#

if he's sticking with gradle, yep

halcyon hemlock
#

isnt maven better?

eternal oxide
#

Better is subjective

#

Maven is "simpler"

echo basalt
#

it isn't

eternal oxide
#

Thats the argument they always make

#

it just caches more

#

compile speed totally depends on yoru PC

#

run buildtools to create Spigot. and see how long it takes

#

I use maven on a i7-3770k

#

everything builds just fine

halcyon hemlock
#

I use maven on an intel pentium

#

jkjk

tardy delta
#

oliver be like

#

well no he got a celeron πŸ’€

eternal oxide
#

3-4 minutes is good

minor garnet
#

how i rotate a location in 360 without align the center, like this:

river oracle
#

Good boy

#

Mr c# I am proud

#

Hold up I got a blog post for nms

#

Since that's the only time you need build topls

#

For spigot

charred blaze
#
        ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor();
        Random random = new Random();
        executor.scheduleAtFixedRate(() -> {
            Location location = p.getLocation();
            Location Loc = calculateRandomCircularLoc(location, random);
            ArmorStand as = (ArmorStand) Loc.getWorld().spawnEntity(Loc, EntityType.ARMOR_STAND);

            as.setGravity(false);
            as.setCanPickupItems(false);
            as.setCustomName("");
            as.setCustomNameVisible(true);
            as.setVisible(true);
            as.setItemInHand(new ItemStack(Material.DIAMOND));

            executor.schedule(() -> {
                as.remove();
            }, 1, TimeUnit.SECONDS);

        }, 0, 100, TimeUnit.MILLISECONDS);
    }
    public Location calculateRandomCircularLoc(Location location, Random random) {
        int d = random.nextInt(90);
        Location Loc = new Location(location.getWorld(), location.getX(), location.getY(), location.getZ());
        Loc.setX(location.getX() + Math.cos(d) * 1);
        Loc.setZ(location.getZ() + Math.sin(d) * 1);
        return Loc;
    }```
Why isn't this working? I mean, it does not spawn armorstands.
#

nested schedulers?

#

wdym

zealous osprey
#
executor.scheduleAtFixedRate(() -> {
  ...
  executor.schedule(() -> {
    ...
  }
}```he means this
halcyon hemlock
river oracle
#

What the

#

Why

charred blaze
#

why not

halcyon hemlock
charred blaze
halcyon hemlock
#

outside the schedule make a variable ArmorStand and set it to that inside the code and remove ArmorStand after that

#

no

#

idk

halcyon hemlock
#

do whatever u want

charred blaze
#

anyways

#

why isnt this spawning armorstand?

#

ArmorStand as = (ArmorStand) Loc.getWorld().spawnEntity(Loc, EntityType.ARMOR_STAND);

river oracle
#

You don't change it

#

It should just download

#

Not sure why dumbj is giving you an error

#

Wait

#

The plugin goes under your build tags

#

It's not a dependency

#

I'll give you an example gimme a minute

river oracle
river oracle
#

No

#

Don't use that

#

Package with the maven tab

zealous osprey
#

"Can we build it? Yes we can!" -Bob the builder

river oracle
#

Building artifical ignores your pom

#

Use mvn package intellij shud have a button

charred blaze
#

as.setHelmet(new ItemStack(Material.DIAMOND));```
#

why ISNT THIS WORKINGG

river oracle
#

No no ni

eternal oxide
river oracle
#

Use life cycle

#

Package

#

Not plugins

#

Package will output 2 or 3 jars take the one without the dash that's just ur project name

charred blaze
eternal oxide
#

diamond block or a helmet, not a diamond

#

wrong tag

river oracle
#

Hell yeah it will

charred blaze
eternal oxide
#

then your loc is bad or your code is not running

charred blaze
#

how is my loc bad

eternal oxide
#

shortest name one

#

copy it in your server startup script

charred blaze
#

can anyone help me

eternal oxide
charred blaze
eternal oxide
#

it was? ok

charred blaze
charred blaze
#

whats wrong with my code

eternal oxide
#

don;t create an executor service each tim eyou call the method. create a pool

charred blaze
#

per command

eternal oxide
#

create a pool outside the method

charred blaze
#

did it

#

now?

eternal oxide
#

ScheduledThreadPoolExecutor

raw prairie
#

?paste

undone axleBOT
charred blaze
eternal oxide
#

new

charred blaze
#

fixed

#

ok

#

will it spawn armorstand now?

eternal oxide
#

it should

#

I see nothign else wrong

charred blaze
#

im doing it

frail swift
#

bro these guys know all the weird links

charred blaze
#

nope. not working

eternal oxide
#

your code can;t be called then

charred blaze
#

why

hasty prawn
#

Why are you using ThreadPoolExecutors instead of BukkitSchedulers

eternal oxide
#

theres no error command in that screenshot, but you return false from your onCommand

charred blaze
#

shit

eternal oxide
#

so your onCommand is never callled

charred blaze
#

thx

eternal oxide
hasty prawn
#

But he's using 100ms which is just 2 ticks, no?

eternal oxide
#

yes

#

I'm guessing this is just sample code testing

hasty prawn
charred blaze
#

not working still. no errors

#

Bruh.

eternal oxide
#

is the command added to your plugin.yml?

charred blaze
#

yes

eternal oxide
#

100% certain?

charred blaze
charred blaze
eternal oxide
#

then register yoru command executor in onEnable

hasty prawn
#

Wheres your command description

charred blaze
eternal oxide
#

You shoudl not need to in main though

charred blaze
#

im doing it in main class

eternal oxide
#

then your plugin.yml is bad

hasty prawn
#

It looks like the description for the command is missing

charred blaze
#

why cant i in main