#help-archived

1 messages · Page 127 of 1

frigid ember
#

how would I do pathfinding for npc's?

#

or i guess more specifically how would i do pathfinding for an EntityPlayer spawned with packets, since the class doesn't have any pathfinder goal methods

tiny dagger
#

you're adding them yourself

#

you can add that layer on top of the player yourself

#

if you want vanilla like pathfinding

frigid ember
#

oh ok

tiny dagger
#

you should look into some plugins tho

#

they might have better ways to do it

#

but this would be my first thought

frigid ember
#

alright

wicked atlas
#

Does anyone know how to broadcast a BaseComponent? I'd figure it's Server#broadcast and that shows up in my IDE, but the actual server seems to disagree https://hasteb.in/efuniduz

subtle blade
#

server.spigot().broadcast()

wicked atlas
#

oh, that's it?

subtle blade
#

Yep

wicked atlas
#

is JavaPlugin#getServer().spigot() the best way to get that?

subtle blade
#

Sure. Bukkit.getServer() is available too

wicked atlas
#

Thank you so much!

fossil python
#

Hey, I feel like I'm so close to figuring this out but I'm stuck. I'm not exactly tech-savvy, so it would be helpful if someone were to dumb it down, but basically, I've finished the BuildTools installation and I have to actually install Spigot, but I feel like I'm lost. It says to have a new directory where my spigot.jar is copies, which I THINK I've done (I'll attach a picture). The next step is to create a start.bat file in that directory and run it, but it's saying that it can't run the jarfile.

#

All I'm tryna do is do Fundy's Impossible Diff challenge but I have to go through all this lol

odd knoll
#

What did you put in the .bat file? You can right click and then click edit to see.

fossil python
#

@echo off
java -Xms1G -Xmx1G -XX:+UseConcMarkSweepGC -jar spigot.jar nogui
pause

odd knoll
#

The file names aren't the same.

fossil python
#

I bet you a million dollars all I have to do is change "spigot.jar" to the one in the folder

#

God damn it lol

odd knoll
#

You're trying to run spigot.jar but your file name is spigot-1.15.2.jar.

sturdy oar
#

also is 1G enough

odd knoll
#

On 1.15 that's kinda scraping, yh.

fossil python
#

I had a feeling, but I didn't wanna, like, summon Satan in my hardware

#

I don't really know what anything else means tho

red bolt
#

if you want performance, paper for 1.15.2 is good

#

but they are trying to make it stable

sturdy oar
#

It is usually stable

frigid ember
#

Hello all, I've been having some trouble uploading my single player world to spigot server 1.15.2

odd knoll
#

Question from me. I've been looking into how patch files and stuff work so I can do things properly. So, do you make all the changes to the code in your IDE (IntelliJ for me) then use a program to generate the patch file(s)? I don't rly understand from what I've been reading.

fossil python
#

So wait, what does "1G" mean, and should I change it in the start.bat file?

sturdy oar
#

1G means that the JVM will allocate 1Gigabyte of Heap for the virtual machine

opaque swan
#

There are a server jar for 1.16?

sturdy oar
#

no

#

you can increase the heap assignment by changing the number

opaque swan
#

Okay

frigid ember
#

Hello Fendi, any change you could help me out please?

fossil python
#

@sturdy oar Should I change it though, and if so, where and what to?

sturdy oar
#

what is the issue?

frigid ember
#

I've been having some trouble uploading my single player world to spigot server 1.15.2

sturdy oar
#

@fossil python is your server going to be small?

#

or you plan to have many players joining

fossil python
#

@sturdy oar I'm only using it so I can install a plugin for a challenge, it's only me.

sturdy oar
#

then 2G should be just enough just to be sure it doesn't crashes

#

-Xmx2G -Xms2G

#

I've been having some trouble uploading my single player world to spigot server 1.15.2
@frigid ember Can you provide some sort of stacktrace

frigid ember
#

I can't :/

#

each time I run the jar file

#

it crashes

sturdy oar
#

well it must give some error

frigid ember
#

so gives me no time to copy the log

#

I don't have a chance to read it

sturdy oar
#

you know that the logs are saved into the /logs folder right

frigid ember
#

ohhh

sturdy oar
#

😐 yeah

frigid ember
#

lmao, how should I send it over? pm?

sturdy oar
#

?paste

worldly heathBOT
frigid ember
#

there ya go

#

all I'm trying to do is upload my own single player world to the server

#

nothing else

sturdy oar
#

so that world has been created in singleplayer right?

frigid ember
#

I've followed some guides when they say just rename the "level-name="

#

it's an old world converted to 1.15.2 then onto the server

#

converted to 1.15.2 through single player

sturdy oar
#

ok so the world was stable on singleplayer 1.15.2?

#

just to be sure

frigid ember
#

yes of course

#

all good

sturdy oar
#

I might take one moment

#

i haven't done this in a long time

frigid ember
#

no problem, take your time

#

if this doesn't work then it's ok

#

I'm not that fussed with it

#

but it's just weird

sturdy oar
#

Have you already went and renamed dimensions?

frigid ember
#

let me try uploading a fresh world onto the server

#

I don't understand what you said

sturdy oar
#

and you will need to create a "world" folder

#

the server world format is kinda different so you gotta do a few changes to your current minecraft world

#

I suggest you make a copy of it when changing stuff

frigid ember
#

yeah I thought I'd need to do that

#

the format is different from single player

sturdy oar
#

I can link you to a guide that should still work as today

frigid ember
#

that would be perfect ty

#

I could just follow that

sturdy oar
frigid ember
#

all the guides I've found said just rename your server properties to the level name

sturdy oar
#

this old post was made during 1.8 CraftBukkit era, but the thing should be pretty much the same still

frigid ember
#

awesome man tysm

#

i'll try it later on

frozen kiln
#

Hey guys, I'm trying to make the player stop mining dragon eggs if they don't have a diamond pickaxe using protocollib

#

I have this currently

#

The problem is that setCancelled(true) does not work, but there's this weird thing that once it's broken it visually looks broken but it isn't actually broken on the server side

#

Very strange stuff lmao

#

How do I get the player to abort the mining process with this?

paper epoch
#

Hey guys! I was wondering if someone could assist me with my server. According to the server, I have plenty of ram and CPU, however the server is still heavily lagging with 25 players. The TPS is dropping significantly, along with the ping! I believe it has something to do with one of our plugins. If anyone could assist, thank you! Please dm me!

subtle blade
#

afaik, known bug, Bourne

#

By the time the player clicks the egg, it's teleported already

frozen kiln
#

Sorry, I forgot to mention that I have this code

#

It stops that already, so it can be mined

silk bane
#

@frozen kiln you might need to send an acknowledge player digging back to make the client stop

frozen kiln
#

How do I do that?

silk bane
#

i think protocollib calls it the server side BLOCK_BREAK

#

PacketType.Play.Server.BLOCK_BREAK

#

send it with the success boolean set to false

#

i have no idea if this will work by the way

frozen kiln
#

I mainly want the BLOCK_DIG event to be cancelled

#

Like for the player to stop the digging of the block at all, so it doesn't even reach the part where it's broken

#

Problem is, that it doesn't cancel it, and it continues the animation until it breaks client-side but not server-side.

#

The goal is to stop it without adding mining fatigue or teleporting an entity in front, stuff like that.

fossil python
#

How do I, like, join the server I made? Is there an IP that I can find somewhere? I am the confuse

odd knoll
#

If it's local on default settings, you can just use the IP as localhost

#

I've been looking into how patch files and stuff work so I can do things properly. So, do you make all the changes to the code in your IDE (IntelliJ for me) then use a program to generate the patch file(s)? I don't rly understand from what I've been reading.

cobalt wigeon
#

Hey

odd knoll
#

Hey.

cobalt wigeon
#

How long can it take to verify a donation?

odd knoll
#

"a minimum of two days"

subtle blade
#

If you donated with an email not associated with your Spigot account, create a thread in the donation enquiries forum

#

It's whenever md gets around to it. They're all processed manually

#

Typically he gets them done within 24 hours

paper compass
#

Whats the best antivpn plugin?

frigid ember
#

gatekeeper

#

well

sturdy oar
#

AntiVPN

paper compass
#

I cant get any to work without it false flagging people

#

Like 90% of all players

opal bay
#

why block vpn

paper compass
#

how do I block Socks5 Proxies with iptables?

gleaming helm
#

You can’t really. Well you can but the way you’d do it is highly not advisable.

paper compass
#

Someone keeps botting our server with socks5 proxies

#

So Idk how to fix that

#

or block it

gleaming helm
#

Use any antivpn

paper compass
#

That doesnt fix our issue

#

We've tried like 20 of them

#

All of them give false flags on our staff and long-term players.

fervent cipher
#

Hi, is it possible on spigot to let other authors than just one (resource author) reply as author in reviews, update plugin and add buyers?

subtle blade
#

No. The resource system only supports one author

fervent cipher
#

and sharing accounts is also disallowed by ToS, isn't it?

subtle blade
#

Eh, sort of. You can create a shared account after requesting approval

fervent cipher
#

And could users see somewhere what accounts are approved?

subtle blade
fervent cipher
#

wait

#

I now mean that you have account and it maintains more people, probably because they know password from account

#

are we talking about same thing?

subtle blade
#

Yeah - the only way you're going to be able to have "multiple authors" is by creating an account that you all have access to

#

and having the resource authored by that shared account

fervent cipher
#

yes, and is it possible to see which accounts are approved?

#

or ask somewhere, if I think that one accounts share more people?

subtle blade
#

Well you would just send an email requesting that an account can be created under a certain name

#

You'd get a response saying whether or not you're permitted to create one

fervent cipher
#

But I don't wanna create

#

I just wanna ask if one account is approved to it

subtle blade
#

I'm afraid I don't know what you're asking

pastel condor
#

I think you mean how like bukkit lets you put multiple authors on a project (plugin)

fervent cipher
#

could I tell you in PM?

subtle blade
#

Yeah which our resource system doesn't support

fervent cipher
#

You have PM

subtle blade
#

The XenForo resource plugin only lets us assign one author to a resource

woeful mural
#

I seem to get a NPE on PendingConnection#getUniqueId() on the PreLoginEvent in BungeeCord. Is it possible to get the connection's UUID on this event or does it have to be done at a later time?

#

I'd like to disconnect certain users depending on their UUID before they have connected to the server, that's why I'm asking

frigid ember
#

yo just wondering what does the nogui in aikar's optimized flags do?

dusty topaz
#

spigot has a gui that opens

#

it makes it not open

frigid ember
#

oh alright

#

wait u can run that flag on a localhost server right?

dusty topaz
#

any server yes

frigid ember
#

okay

frigid ember
#

yo do u guys know what the restart command in localhost cmd menu do? i tried it, and it just closes my cmd

#

or a startup script.

woeful gorge
#

My server is still broken, even with no plugins

#

Can someone help me?

frigid ember
#

okay

#

also some of my unicodes/colors are messed up when i switched my server files from a host to localhost

#

i already added -Dfile.encoding=UTF-8 to the startup parameters

#

but it's still fucked

#

You have to resave the files in UTF 8

#

does adding that not work?

#

it fixed some

#

but not all of them

#

like in your configs save with encoding or do the UTF-8

#

alright i use notepad++ so i'll just save

#

Anyone know how to fix things

#

whenever you specifically use ClickType.NUMBER (I tried pressing 9 in this instance to bring the item into my hotbar via the Key 9) and it didn't work.

#

Essentially how do I block people from modifying the 9th slot period in the InventoryClick? just listen to the slot rather than anything else?

pastel condor
#

cancel the event if the raw slot is that slot

gleaming helm
#

Block click, hand swap, and dropping.

#

That'll cover your bases

#

Then of course if the player dies and respawns you need to handle that properly

frigid ember
#

Yep.

#

Thanks 👍🏻

woeful mural
#

Is it somehow possible to print the § character in the Minecraft chat?

frigid ember
#

does typing that in the chat client just give you an empty space?

woeful mural
#

Yeah, is that possible to escape?

frigid ember
#

Probably with place holders like

#

:color_symbol: and just types §

#

it's still not being fired for some reason.

#
            if (event.getClick() == ClickType.NUMBER_KEY) {
                event.setCancelled(true);
                Bukkit.broadcastMessage("eed");
            }
#

I'm checking InventoryAction.HOTBAR x

gleaming helm
#

Is there a reason you can't just block all inventoryClickEvents involving that item?

frigid ember
#

on 1.8 it's still not being fired

#

i've tried that.

#
        if (inventory.getType() == InventoryType.PLAYER & item.getType() == Material.SLIME_BALL) {
            event.setCancelled(true);
            Bukkit.broadcastMessage("ed");
        }
gleaming helm
#

If that doesn't block the number key thing I really have no idea then

#

Because that should block the number key swap. At least on 1.15 it does.

frigid ember
#

I'll get her working 1 way or another 😛

woeful gorge
#

I need some help. I'm having the same issue as yesterday "Internal Exception: io.netty.handler.codec.EncoderException: java.lang.IllegalArgumentException: unable to fit 2548239 into 3". I deleted all plugins and configs, I deleted the scoreboard file and its still broken. Anyone has any idea what could be done?

frigid ember
#

try deleting usercache and world if plausible.

woeful gorge
#

like the world?

frigid ember
#

yea if you feel and it's not going to cause a dretrement.

gleaming helm
#

usercache?

#

That's literally just a mapping between UUIDs and usernames

frigid ember
#

idk anything related data

gleaming helm
#

That's the most useless thing to delete

frigid ember
#

i guess it fits into .hasPlayedBefore no?

#

wouldn't know if that any inflictions on other plugins with Joins etc

gleaming helm
#

No, hasPlayedBefore is based on the playerdata folder stored in the world data afaik

frigid ember
#

how's the world determined? through .properties?

gleaming helm
#

There's a world name property somewhere, the default is just world

frigid ember
#

fairs

woeful gorge
#

So what should i do or delete?

#

not even mcedit can open the world

frigid ember
#

do you have a backup?

#

or would it matter if the world was deleted

woeful gorge
#

I have 3 backups. but we are trying to keep the world

gleaming helm
#

There's a world fixer

#

I'll link it

woeful gorge
#

i tried this but i dont know how to make it work

#

it used to be an .exe

#

but now is all .py

gleaming helm
#

There's a tutorial

#

You have to install python

woeful gorge
#

Im not sure why is not working ahhhhhh

frigid ember
#

my only guess is try to use the backup

rotund orbit
#

I'm getting a NoClassDefFoundError

#

And I couldn't be more confused

plush river
#

can we see the error

rotund orbit
plush river
#

what does your code look like

rotund orbit
#

it crashes about here

plush river
#

Oh I get it, how are you compiling your plugin, like what are you doing to compile it

rotund orbit
#

I'm using the Minecraft Development plugin

#

for intelliJ

#

And clicking on the green play button to build

plush river
#

I'd bet you're missing some config stuff to include certain classes?

#

I'm not sure

rotund orbit
#

I just moved two methods to a static utilitymethods class that used ClaimedChunk

#

could that have anything to do with it

plush river
#

idk, doubtful?

rotund orbit
#

do config files get created on build? any way I could delete them?

plush river
#

I don’t have experience with the plugin you’re referring to so idk

rotund orbit
#

Gotchya, thank you for the response

frigid ember
#

wait is it possible to remove the default world

#

i already removed the default nether & end worlds

#

but the default world keeps regenerating

keen compass
#

Yes, but depends on your needs really

#

an easy way would be to use a world that has a single chunk and border set to that single chunk so that server doesn't spend time generating a world and you could just simply unload it after the server starts

#

But again depends on what you are needing this for lol

frigid ember
#

wait what lol

#

I have other worlds, I would just like the default world removed.

keen compass
#

Well, then set one of your other worlds as the default @frigid ember

#

My method would work for your purposes but isn't really necessary if you can just set a different world as being default lol.

wanton jolt
#

Heyy i'm doing a plugin and i use mysql.
And i've an error :
Default system encoding may have misread config.yml from plugin jar
[09:35:28 WARN]: java.sql.SQLException: Unknown initial character set index '255' received from server. Initial client character set can be forced via the 'characterEncoding' property.

tiny dagger
#

you should type that in the google search tho

wanton jolt
#

Yeah i did it but i try to do what they say and that's not working

tiny dagger
#

is 'characterEncoding' a property right like autoReconnect right?

wanton jolt
#

Yes

#

🤔

knotty surge
#

should bungee chatcolors be prefered over bukkit chatcolors in APIs?

hoary parcel
#

No

round rover
#

Hey,
how can I make a Nickplugin with a " " ?

#

is there a good API ??

frigid ember
#

pm or tag pls

sick carbon
#

k so basically my console is giving out this error

> [11:56:21 WARN]: Exception in thread "Timer-6"
> [11:56:21 WARN]: java.lang.NullPointerException
> [11:56:21 WARN]: at tacticallands.emerald_tip.survivetheplatforms.Events.Events$1.run(Events.java:52)
> [11:56:21 WARN]: at java.util.TimerThread.mainLoop(Unknown Source)
> [11:56:21 WARN]: at java.util.TimerThread.run(Unknown Source)

and this is the code

public boolean onCommand(CommandSender arg0, Command arg1, String arg2, String[] arg3) {
        event = 1;
        if (event == 1)
        {
            
            Timer timer = new Timer();
            timer.schedule(new TimerTask() {
                @Override
                //shoot a fireball
                public void run()
                {
                    spawnx = ThreadLocalRandom.current().nextDouble(-14,13 + 1);
                    spawny = ThreadLocalRandom.current().nextDouble(-22,5 + 1);
                    spawnloc.setX(spawnx);
                    spawnloc.setY(spawny);
                    spawnloc.setZ(spawnz);
                    Entity fierbal = Bukkit.getServer().getWorld("World").spawnEntity(spawnloc,EntityType.FIREBALL);
                    fierbal.setVelocity(down);
                }
            }, 0, 20);
        
        }
        return true;
    }

can anyone help me? I want to bomb a certain area with fireballs and Idk how to

sturdy oar
#
  1. Use bukkit schedulers
#

there's no reason for you to be using Java's Timer

vestal jewel
#

Is it possible to make the mobs stay totally still ?, if you have what it is?

#

just know who the event is CreatureSpawnEvent or playeMoventEvent

sturdy oar
#

LivingEntity#setAI(false)

vestal jewel
#

I didn't understand '=', I'm still a novice, do you have an example, the villager type? and then I do the rest

sturdy oar
#

you just get the Entity

#

do an instance check

#

cast to LivingEntity if successfull, and call the method

#
Entity entity = ... //your entity
if(!(entity instanceof LivingEntity)) return;
LivingEntity livingEntity = (LivingEntity) entity;
livingEntity.setAI(false);

This should be correct

fleet crane
#

Your code is broken because the default world is world not World

#

But it will just break with a different error anyway because you can’t call spawnEntity in an async timer

#

You need to use the bukkit scheduler with a sync task

sturdy oar
#

^

#

it's like saying if (true)

vestal jewel
ember gorge
#

Spawners on my server does not work, when I place a spawner the mob inside disappears and nothing spawns... can this has anything to do with Spigot? (Monster eggs work)

rigid nacelle
#

@vestal jewel You haven't annotated the method with EventHandler (just an fyi).

vestal jewel
rigid nacelle
#

That's not the problem, I just wanted to remind you. :p

naive goblet
#

@frigid ember you should store the data somewhere, also don’t have that map static please

rigid nacelle
#

@vestal jewel What are you trying to accomplish? Aside from spawning an entity and modifying it's AI.

vestal jewel
#

@rigid nacelle that the mob is completely stopped, so this

vestal jewel
#

yes

fleet crane
#

I don’t think its in 1.8

#

Because hey spoiler alert spigot has added features in the last 5 years

#

Shocking I know

rigid nacelle
#

Yuck.. It does not.

naive goblet
#

Nms happy_panda

vestal jewel
#

omg

rigid nacelle
#

Anyways, is there a specific reason as to why you're spawning an entity in the CreatureSpawnEvent event?

vestal jewel
#

Isn't this event going to be?

sturdy oar
#

dude lol

#

you have messed up my snippet

naive goblet
#

I mean you generally trying to either cancel the spawn or manipulate it?

sturdy oar
#

you are casting when the entity IS NOT an instanceof LivingEntity

#

and yeah, 1.8 is missing that method

rigid nacelle
#

Not cancelling / removing the creature will leave you with two, huh?

#

Unless that's what you're looking to achieve.

vestal jewel
#

mermon only thing I want and the mob is still like that, I'm noob at it '='

sturdy oar
#

this seems more like a XY problem

naive goblet
#

@vestal jewel if you want to remove it’s AI use nms shouldn’t be too hard

sturdy oar
#

I wouldn't encourage the use of NMS over newer and properly made APIs

naive goblet
#

Well he seem to be using 1.8 for one or another reason of his own

sturdy oar
#

well then he's kinda on his own 🤷‍♂️

naive goblet
#

Yeah I’m just providing a method to do what he wants to do

frigid ember
#

md_5

vestal jewel
#

public static void RemoverAIEntity(Entity entity) {
net.minecraft.server.v1_8_R3.Entity nmsEntity = ((CraftEntity) entity).getHandle();
NBTTagCompound tag = nmsEntity.getNBTTag();
if (tag == null) tag = new NBTTagCompound();
nmsEntity.c(tag);
tag.setInt("NoAI", 1);
nmsEntity.f(tag);
}

frigid ember
#

can u help me

#

i planned to take it, I am fearing its someone who made a second account just to piss me off

sturdy oar
#

Your name "is not yours"

frigid ember
#

Look at my current verified username

#

lol

sturdy oar
#

Well you changed it then

#

and someone took it

frigid ember
#

someone probably made a 2nd account

#

they even add bruh momento as description

hollow thorn
#

how do you remove a single item from the inventory

frigid ember
#

loop through all items

#

find the item you want

#

and remove that one

vestal jewel
#

@naive goblet
it is still not enough how to run the nms

naive goblet
#

Inventory#removeItem takes an ItemStack iirc

#

You just pass the entity through the method

frigid ember
#

Didn't he want to just remove one?

#

Doesn't that method remove each similar item

sturdy oar
#

yeah removeItem removes a single ItemStack

frigid ember
#

ok

naive goblet
#

And if not that just set the ItemStack amount to 1?

frigid ember
#

well both works

#

ok

#

yes

#

by default if not specified its 1

sturdy oar
#

oh wait , it removes all

frigid ember
#

i think

sturdy oar
#

depends on the argument

frigid ember
#

thats what i thought

#

yea

sturdy oar
#

remove(ItemStack item) removes all

#

removeItem(ItemStack... items) removes all the matching ones

naive goblet
#

That’s a headache

#

Looks like Retrooper won

frigid ember
#

¯_(ツ)_/¯

subtle blade
#

You verified that same account

#

You have to have the credentials to said account in order to verify it. You did it on the same day that account was created

frigid ember
#

?

#

what

#

my forum name is currently purplex

#

im tryna change to retrooperdev

#

but I'd preffer retrooper

#

@subtle blade I changed my name while in this server so it was not updated

#

then someone took it on the forum

vestal jewel
#

how do i put spoiler on discord?

subtle blade
#

||spoiler||

frigid ember
#

choco what u mean

#

im not trolling???

#

someone else idk took retrooper

#

they marked it as female bruh

#

someonen else is trolling not me

subtle blade
#

So why'd you change your name to begin with? You had "Retrooper" initially

frigid ember
#

yes

#

i changed my name because i changed my mind

#

ik sorry i wont change again anways

rigid nacelle
#

You're looking for the code-block, using backticks.

frigid ember
#

i just want back once and forever

subtle blade
#

and in that time, someone decided they wanted that name so unfortunately you're SOL

tiny dagger
#

good thing irl you can't do that

frigid ember
#

whats sol

subtle blade
#

Shit outta luck

frigid ember
#

what if someone made a second account

paper compass
#

Hi mr chocolate

frigid ember
#

?

#

||message you want hidden||

#

|| yo||

#

I am ||not|| lying

subtle blade
#

There are no known IP addresses nor alternate accounts attached to that account

frigid ember
#

``

subtle blade
#

So unless they created it on a VPN, it's unlikely

#

Even then, the forums generally catch it based on cookies

frigid ember
#

ok

#

:c

#

what if you have siblings and you use the same pc

#

lol, then you are f'cked

#

i know kids that do this, not for spigot, for other stuff

subtle blade
#

Generally we use a bit of common sense with activity before blind banning alts

vestal jewel
#

public static void RemoverAIEntity(Entity entity) {
net.minecraft.server.v1_8_R3.Entity nmsEntity = ((CraftEntity) entity).getHandle();
NBTTagCompound tag = nmsEntity.getNBTTag();
if (tag == null) tag = new NBTTagCompound();
nmsEntity.c(tag);
tag.setInt("NoAI", 2);
nmsEntity.f(tag);
}
able to do the mob, stay still, only the boolean is not working

public void Villagers(CreatureSpawnEvent e) {
    if(!(e.getEntity() instanceof Villager)) {
        if (UltimeteMob.getInstance().getConfig().getBoolean("MovingVillager"))
        return;
    }
    removerAI.RemoverAIEntity(e.getEntity());
}
sturdy oar
#

oh no

subtle blade
#

Deivid, (1) No reason to spoiler your code, you can use code blocks instead. (2) Why are you not using the API?

#

Oh, just realized. 1.8 lol

sturdy oar
#

🤦

vestal jewel
#

yes '=' 1.8

frigid ember
#

Deivid run

#

Choco will my name atleast be accepted to be retrooperdev then?

subtle blade
#

Well for one, NoAI is a byte that has a value of either 0 or 1, and second, you're setting the value on the NBT AFTER you apply it

sturdy oar
#

why a byte lol

subtle blade
#

booleans are represented as bytes

#

There may be a setBoolean() method for NBT

#

Oh wait is c() save and f() load? idfk. This is 1.8. I'm working on 5 year old knowledge. You really should update

frigid ember
#

Lol

#

yes

subtle blade
#

Either way, it's not working because to my knowledge, 2 isn't an accepted value for NoAI. I don't know how the write method interprets it

frigid ember
#

lol who said 👎

sturdy oar
#

someone stuck on 1.7

steady cedar
#

i use 1.15 but you guys are way too aggressive at people who use 1.8 lol

vestal jewel
#

Do you know a good bukkit java course that teaches everything?

sturdy oar
#

i use 1.15 but you guys are way too aggressive at people who use 1.8 lol
@steady cedar yeah me and others are because they just keep coming everywhere supposing people will support 6 years old code

subtle blade
#
    public boolean getBoolean(String s) {
        return this.getByte(s) != 0;
    }```
Nevermind. Then again, that's 1.15, so who knows
steady cedar
#

@sturdy oar You don't have to support it? just don't answer lol.

#

Let somebody else answer and don't annoy somebody because they want to use 1.8.

subtle blade
#

Idriz, how would you feel if you were in this position having to deal with these questions every single day

steady cedar
#

You don't have to deal with these questions though

subtle blade
#

If you think WE'RE harsh, you should check out the Forge server

sturdy oar
#

or Paper

#

they just ban you there

subtle blade
#

They'll outright ban you and lock any threads for versions that aren't 1.14

#

or 1.15

#

Wish we did that

steady cedar
#

Again, I don't understand why that is

#

You don't have to support these versions

subtle blade
#

because it's old

#

use modern software and you don't have these problems

steady cedar
#

Unless they're asking for a bug fix in the actual server code

subtle blade
#

Want to set no ai? entity.setAI(false)

steady cedar
#

Then yes, you're fully in the right to tell them you don't support that version

frigid ember
#

Yea

steady cedar
#

But otherwise, if it's just a "how can I do this in 1.8", it's unnecessarily rude to respond with "oH weLl SHoULDa UpDAteD to 1.15"

frigid ember
#

If you think WE'RE harsh, you should check out the Forge server
yes i agree

#

choco lol

#

you guys are quite nice here, and I like 1.15 more anyway

sturdy oar
#

Why would you write code with NMS and use reflections when you can simply use a method from bukkit? Not to mention many out there just end up straight copying from someone's else tutorial or post

frigid ember
#

forge si only a bit more harsher but its alr

steady cedar
#

Yeah this server is a lot more moderate about this stuff than the paper discord and forge

frigid ember
#

yes

subtle blade
#

But otherwise, if it's just a "how can I do this in 1.8", it's unnecessarily rude to respond with "oH weLl SHoULDa UpDAteD to 1.15"
We support only the latest version so we're going to push it where necessary

frigid ember
#

forge kicks tho

#

but theyre so harsh

#

i only asked yk the gradle credentials or whatever for forge 1.8.8

#

they kicked me

subtle blade
#

Bugs and features are addressed in the latest version

frigid ember
#

i didnt even want support

steady cedar
#

@subtle blade And that's completely fine, maybe offer it as an alternative, but also offer an actual response.

frigid ember
#

its been a while since i used gradle thats why

subtle blade
#

I do

#

What do you think I've been doing?

steady cedar
#

I'm not targeting you specifically, if you've been doing that good on you

hoary parcel
#

1.8 bad

steady cedar
#

but i'm talking about people who think "oh just update to 1.15" will be the solution to somebody's problem

frigid ember
#

i can try help with 1.8

#

I know some nms

steady cedar
#

I agree, 1.8 is bad, but there's people who insist on using the older combat system.

frigid ember
#

What is the q again?

#

yes

#

^^

hoary parcel
#

Updating to 1.15 does actually solve problems tho

steady cedar
#

And you can't change their minds. There's an entire community dedicated to it

sturdy oar
#

I could gladly provide Java code that uses reflection and replicates 1.15.2 features; but why would I spoonfeed someone that would just end up copying it?

steady cedar
#

Depends

vestal jewel
#

so is it good to do plugin in version 1.15.2?

steady cedar
#

If you want a newer API that isn't in 1.8, and your community does not rely on 1.8, then yes, 1.15 is a life-saver

sturdy oar
#

1.15.2 has the best API since it's the latest version

steady cedar
#

@sturdy oar Then don't?

frigid ember
#

yes

steady cedar
#

You don't really have any obligation to respond

frigid ember
#

spigot 1.15 has best api

steady cedar
#

If you don't want to bother helping someone in an older version don't?

frigid ember
#

but client side experience is ehh

hoary parcel
#

Paper 1.15 best API

sturdy oar
#

they just keep spamming if no one answers, trust me , i've seen that

hoary parcel
#
  • runs *
vestal jewel
#

so update my plugins from 1.8 to .15 '='

steady cedar
#

@hoary parcel nah, you'd only have to run if you said that about 1.8

#

I'd probably be chasing you

sturdy oar
#

TacoSpigot

frigid ember
#

lol

hoary parcel
#

Taco is dead

frigid ember
#

FoxSpigot

#

tuinity

sturdy oar
#

Tuinity is decent

frigid ember
#

p r o

steady cedar
#

Tuinity

frigid ember
#

yes

hoary parcel
#

Tunity is experimental

frigid ember
#

its so cool

#

i like its legacy support

#

legacy material

hoary parcel
#

Wat

sturdy oar
#

wut

steady cedar
#

??

frigid ember
#

legacy material for older plugins

#

using 1.8 for example

hoary parcel
#

Why do I even still bother trying to understand what he saying

sturdy oar
#

... they are in Spigot as well?

#

LEGACY_XXX__XXX

steady cedar
#

Aren't they in Spigot too?

#

yeah

frigid ember
#

ok

#

lol

#

tuinity mentions it on enable

sturdy oar
#

🤦 wtf

frigid ember
#

in console

steady cedar
#

so does paper?

hoary parcel
#

So does spigot?

frigid ember
#

spigot doesnt lol

sturdy oar
#

lmao are you high

frigid ember
#

yes

hoary parcel
#

Not high

#

Just dum

steady cedar
#

small 🧠

frigid ember
#

percies

hoary parcel
#

No downstream project is insane enough to add any kind of legacy bullshit

steady cedar
#

😉

sturdy oar
#

Actually, when will LEGACY_* stuff be removed from Material

frigid ember
#

never

#

lol

sturdy oar
#

should be 1.16 rigght?

frigid ember
#

why should it

#

why

sturdy oar
#

they're doing it soon

tiny dagger
#

i hope it's 1.16

vestal jewel
#

lol

frigid ember
#

whai

tiny dagger
#

I'm gonna drop 1.8.8 support myself :p

sturdy oar
#

Did you even try to open Material.java? you'll find out yourself

steady cedar
#

@hoary parcel I've never understood the patch system, you seem to be more inclined with the community so you could explain? I remember the DMCA stuff going down with bukkit around 2014 and stuff but never understood how patches would go around the DMCA

frigid ember
#

can someone explain why spigot isn’t allowed to be distributed as a jar openly like through mediafire or some download link but mojang distributes it through website

sturdy oar
#

Mojang's code

steady cedar
#

Mojang's code

sturdy oar
#

im faster

steady cedar
#

no

#

sniper

#

😠

frigid ember
#

ok

sturdy oar
#

sites like getBukkit are illegal

frigid ember
#

i dont get how building it yourself makes a siff

#

diff

subtle blade
#

because you're not distributing anything

sturdy oar
#

because you're applying patches

frigid ember
#

it makes no sense thi

#

why

subtle blade
#

all of Mojang's code is downloaded from their servers

#

They are distributing it

frigid ember
#

ok

#

mojang can make an official site with all downlods

sturdy oar
#

they have?

subtle blade
#

They do

steady cedar
#

@subtle blade Is the Bukkit API inherently what's DMCAd?

frigid ember
#

why doesnt mojang allow us inmean

subtle blade
#

For their own software

frigid ember
#

mb i didnt think in last msg

subtle blade
#

CraftBukkit & Spigot patches as well as Bukkit are distributable under GPLv3. Mojang's software is not

#

Our stuff can be downloaded just fine

#

BuildTools gives us the ability to compile everything on one computer

steady cedar
#

Oh

frigid ember
#

why don’t they want us to tho

#

why not let us distribute their software

sturdy oar
#

because... it's not open source?

steady cedar
#

I've always thought of projects like Glowstone to be really cool but I have a feeling they started a bit late and have to implement a LOT of things

subtle blade
#

They don't give a shit about Bukkit. They care about their proprietary code

frigid ember
#

😔

sturdy oar
#

you can always make your own server software you know

#

and redistribute it as your own

steady cedar
#

Yeah except it takes a really long time to do so

subtle blade
#

As mentioned, Glowstone did

#

They're very behind

sturdy oar
#

Cuberite*

frigid ember
#

ok

subtle blade
#

Them as well

steady cedar
#

You have to implement a TON of stuff

sturdy oar
#

I'm still looking for C protocol library 😅

tiny dagger
#

wait so glowstone remade the nms code themself?

frigid ember
#

ima fork glowston once they catc up

tiny dagger
#

😮

steady cedar
#

Yeah

tiny dagger
#

that's epic

subtle blade
#

You effectively have to rewrite a lot of what the client does (without all the rendering ;p)

steady cedar
#

They don't depend on the mojang server at all

subtle blade
#

World generation and protocol handling

steady cedar
#

which is really cool in concept but

#

it's really hard to achieve

#

like

#

extremely hard

hoary parcel
#

@hoary parcel I've never understood the patch system, you seem to be more inclined with the community so you could explain? I remember the DMCA stuff going down with bukkit around 2014 and stuff but never understood how patches would go around the DMCA
@steady cedar doesn't have anything to do with the dcma. That's a entirely different issue.
The reason we use patches in craftbukkit is that you can't distribute mojang code.
The reason we use patches in paper is easy upstream updates.

steady cedar
#

Oh

frigid ember
#

can you explain this patching

tiny dagger
#

i mean they could use the code as reference as well but still they have to respond after mojang had did it which is slow..

subtle blade
#

The DMCA was back in 1.7.10? 1.8? The time between? lol

steady cedar
#

1.7.10-1.8

#

then

hoary parcel
#

Paper patches are git commits, craftbukkit patches are just gnu diff

subtle blade
#

A patch is a way to tell git how to apply changes to a file

frigid ember
#

i dont understand what one must patch like whag anout the paclets?

steady cedar
#

If glowstone had started earlier as a project I'd reckon it would be in pretty good shape by now

subtle blade
#

It's a set of additions and removals

steady cedar
#

If it had started when the DMCA happened

frigid ember
#

like lets say mojang has all these packets

#

do you have to rewrite idk what do u have ti do

sturdy oar
#

?

subtle blade
#

No. Patches include changes we want to make

frigid ember
#

so u dont distribute their software

subtle blade
#

Unless you mean a custom server, yes

#

you have to handle the protocol

hoary parcel
#

Which isn't too bad

sturdy oar
#

Yeah protocol isn't that bad

steady cedar
#

There was this custom server software

frigid ember
#

so u just add uh a extra function

subtle blade
#

It really isn't. You just have to be able to deserialize what's being sent over the network

hoary parcel
#

You can quickly implement the protocol

steady cedar
#

called feather-rs

frigid ember
#

technically patching

#

lol

subtle blade
#

Netty does a lot of that for you

hoary parcel
#

The hard stuff is the gameplay

sturdy oar
#

and the terrain generation

vestal jewel
#

updated to 1.15, a lot of errors appeared, lol

fossil shoal
steady cedar
#

@sturdy oar That's still not too terribly difficult

#

just like the small stuff minecraft has

sturdy oar
#

yeah but like having it 100% the same is not easy

#

It takes already an insane time to write all the protocol , and replicate all packets

steady cedar
#

that's why I said if a custom server project had started earlier

sturdy oar
#

Also Glowstone Javadoc link is dead on their website )=

hoary parcel
#

Na, you can even generate the protocol

steady cedar
#

It'd have been amazing for the community

#

@hoary parcel Oh?

hoary parcel
#

The protocol is literally the easier thing about writing a custom server

steady cedar
#

You could probably write a python script to scrape the protocol page 😛

hoary parcel
#

No need to scrape anything, there are enough projects with all the data

sturdy oar
#

I did a porting to Kotlin of the protocol

#

some stuff is private tho

steady cedar
#

The thing is Glowstone is apparently slightly slower than paper too

hoary parcel
#

I wrote a from scratch client in java before, I from scratch server in java, a client in c#, etc

#

It's not really hard

steady cedar
#

Idk if I can post links to other server software here, there was that feather-rs project

#

Which was a rust based minecraft server not sure how far they are with it

hoary parcel
#

It's all pointless

#

Ppl will never switch and there is no real reason to switch either

#

So those are all toy projects

sturdy oar
#

I actually bugged out GitHub syntax highlighting on my project and this triggers me

steady cedar
#

I don't know, if someone wrote a custom server that performs really well

#

And had a majority of the features I'd probably switch

frigid ember
#

minidigger did you use netty

#

or just sockets

#

socketserver

hoary parcel
#

For java I used netty, yes

frigid ember
#

i like using netty

#

yeah,

hoary parcel
#

For c# I did raw tcp sockets

frigid ember
#

for client i used netty also

hoary parcel
#

Cause I don't know shit about c# and that was good enough

frigid ember
#

i used java for client

#

lol

#

do u like how string is also a primitive in c#

#

andu can compare strings like
string a = “hi”;
if(a == “hi”)

hoary parcel
#

I don't give a shit quite honestly

steady cedar
#

yeah fax

frigid ember
#

i like that feature imo but i can see why people wouldn’t like it or say its illogical i guess

#

faster to type lol

steady cedar
#

ok

hoary parcel
#

Not really

frigid ember
#

instead of javas sTRinG

#

String

#

and java for comparing you need methods

hoary parcel
#

Any sane ide has auto completion

frigid ember
#

equals()

#

still lol it is breakin brain cels

hoary parcel
#

Am sorry to hear that

frigid ember
#

np

#

would you wish mc would have been written in c sharp only snd java edition never existed?

#

lol minecraft c# edition

#

when c# sponsors minecraft

hoary parcel
#

No I don't

frigid ember
#

minecraft dungeons is using unreal engine 4, my fav game engine bro, and minecraft dungeons looks lit did u see it

hoary parcel
#

If minecraft would have been c#, we never would have been here

frigid ember
#

i wouldve

#

i started as a console player

steady cedar
#

I think a lot would be

#

I personally got inspired to learn Java for minecraft mods lol

frigid ember
#

maybe u wouldve had c# as ur primary language

hoary parcel
#

No you wouldn't, as this community wouldn't exist

frigid ember
#

who knows

#

I personally got inspired to learn Java for minecraft mods lol
@steady cedar same lol

#

u said u cant code lol

#

eXposebrous

steady cedar
#

I can't code

frigid ember
#

ok ur getting hilarious

hoary parcel
#

I got my job because of Minecraft

frigid ember
#

I got my job because of Minecraft
@hoary parcel u wouldve just done u job@in c sharp

#

no big difference

hoary parcel
#

Actually there is

frigid ember
#

or had another job

#

possibly better

#

¯_(ツ)_/¯

hoary parcel
#

I would have never learned to write code

frigid ember
#

not true

sturdy oar
#

C gang here

char *ptr[] = {"hey", "hey"};
if(strcmp(ptr[0], ptr[1])== 0) {
  printf("Yo this is true!!1!");
}
frigid ember
#

maybe u would

#

why wouldnt u

#

c sharp can support more platforms than java

hoary parcel
#

There would be no modding community on c#

frigid ember
#

ofc there would

subtle blade
#

Native languages are significantly more intimidating and modding it is more complex

hoary parcel
#

C# isn't native

frigid ember
#

tru

#

what if mc would be open src

hoary parcel
#

C# works just like java

#

C# is designed after java

frigid ember
#

if mc was open src modding would be easy

subtle blade
#

Is it compiled and run by some VM as well?

#

I was under the impression that it was done similarly to C++

hoary parcel
#

Yes, you need the dot net runtime

frigid ember
#

oh lol

#

what

hoary parcel
#

The thing that every game installs in a different version for you

#

Go check your PC and count the different versions of mircosoft visual idk redistributables

frigid ember
#

mafs

steady cedar
#

@frigid ember since Microsoft is open sourcing stuff might as well open source minecraft 👀

#

👀

frigid ember
#

lol

steady cedar
#

Brigadier was the beginning. Next up Minecraft

frigid ember
#

donu guys like mc dungeons

#

its fire

#

lol

#

mc clone but 3rd person only thi

#

i want it more uniue

#

all i saw is they copied the mobs

#

:/

#

same zombie same texture

subtle blade
#

It's literally a completely different game concept lol

#

it's a dungeon crawler in the same universe

frigid ember
#

ok

subtle blade
#

That's like saying Apex Legends is a Titanfall clone. Different games, same universe that shares characters and weaponry

frigid ember
#

i can tell the mc dungeons free editions coming, people cloning mc and blocking f5 LOL

#

idk titanfall

hoary parcel
#

You too young, lol

frigid ember
#

ok

subtle blade
#

I mean it's not that old. 2014

hoary parcel
#

Choco, that's 6 years

#

You are old

#

😂

frigid ember
#

iloll

#

and u complain when we use mc 1.8

subtle blade
#

2016 for TF2 :((

frigid ember
#

LOL

#

joke

#

its a joke

subtle blade
#

I didn't play Titanfall though

hoary parcel
#

Portal two came out in 2011

frigid ember
#

ok

hoary parcel
#

Time flies man

subtle blade
#

okay y'know what? now you're making me feel old

frigid ember
#

you are

#

zoomer

subtle blade
#

very

hoary parcel
#

Dw am older than you ^^

frigid ember
#

yet

#

wtf

#

ur old

#

😂

#

choco ur good

#

ur old man

hoary parcel
#

At least am not born in the 21st

frigid ember
#

atleast not born in 20st

#

lol yall had no peace

hoary parcel
#

Oh, another one choco

frigid ember
#

fightin and sht

hoary parcel
#

Rocket league

#

2015

frigid ember
#

rocet league

hoary parcel
#

5 years

frigid ember
#

thats pro

#

i lov rocket league

#

thats a game i actually update

#

lol

#

jk i also update mc

#

it depends what server

#

i am on

#

we should all ||update|| our software

#

did you ||update|| your software?

subtle blade
#

okay y'know i've only played rocket league for 4 years :((

#

shush

frigid ember
#

?

#

if u play rocet league ur cool

#

ur no zoomer

#

hi gen alpha

hollow thorn
#

rocket league costs money

hoary parcel
#

So?

hollow thorn
#

so i dont buy

sturdy oar
#

Wut

#

Rocket league is super cheap

median dock
#

So i have a problem i cant come up with a solution:
I have a Bungeecord and on the Bungeecord as well as on the Spigot Server is a "xy" command.
How can i controll on which end this command gets executed?

keen island
#

same as elmakers

frigid ember
#

hey

#

anyone help me with bstats

#

my plugins is not sending data to bstats

brazen parrot
#

Hi! No one knows how to fix the problem : "java.util.zip.ZipError: zip END header not found "... OC: Ubuntu Server 20.04. But on Windows everything works....
Log: https://hasteb.in/woqaxole.md. It is absolutely compatible with all plugins and cores spigot, craftbukkit, paper, tuinity

sturdy oar
#

contact LuckPerms discord

#

this seems an issue with their plugin?

brazen parrot
#

Hmm, LuckPerms is working after reinstall. Other plugins not working.

sturdy oar
#

Seems like there's something wrong with your OS then

#

Also you have to consider this is Spigot discord and not Tuinity's

brazen parrot
#

Everything is fine on Windows. There is a problem on two servers with OC Linux.

strong zinc
#
[15:30:19] [Server thread/DEBUG]: [io.netty.util.internal.NativeLibraryLoader] Unable to load the library 'netty_transport_native_epoll_x86_64', trying other loading mechanism.

[io.netty.util.internal.NativeLibraryLoader] netty_transport_native_epoll_x86_64 cannot be loaded from java.libary.path, now trying export to -Dio.netty.native.workdir: /tmp
``` wtf help 😩
sturdy oar
#

is that the whole stacktrace?

strong zinc
#

nope

frigid ember
#

can i wear a banner as a cape?

#

any plugin for that?

#

a

bronze marten
#

Optifine

frigid ember
#

he means like rotate an actual banner to be behind the player

paper epoch
#

Hey guys, my server has reached about 25 players and I think ive outgrown my host. I was wondering if anyone has some suggestions for a dedicated host

sturdy oar
#

SURE

#
  1. OVH
  2. Hetzner
  3. Linode?
frigid ember
#

so you start is good too

sturdy oar
#

they... just resell OVH stuff

frigid ember
#

well ovh owns sys

#

digitalocean

sturdy oar
#

dedicated host

#

not VPS -.-

frigid ember
#

¯_(ツ)_/¯

sturdy oar
#

(╯°□°)╯︵ ┻━┻

frigid ember
#

sorry ┬─┬ ノ( ゜-゜ノ)

sturdy oar
#

(┛◉Д◉)┛彡┻━┻

frigid ember
#

theres also reliablesite

#

as an option for a host

#

I want to learn how to make a vehicle plugin, with protocollib steervehicle
But i can`t find any tutorials about how to make it (Place vehicle, go in vehicle, ride vehicle etc.)

Does someone have a tutorial or something on how i can make that?

#

literally the first google result of "protocollib steervehicle"

#

hey

#

im unable to cancel any event

#

Ive also tried to cancel movement

#

i use multiple classes

#

Yes i know, but i cant find on how to do it with place vehicle, go into vehicle

sturdy oar
#

show code maybe?

#

@frigid ember

frigid ember
#

gonan dm oyu

sturdy oar
#

just paste it

#

i don't have DMs enabled

#

?paste

worldly heathBOT
frigid ember
#

ah

sturdy oar
#

not registering the listeners

frigid ember
#

ive commented it out

#

btw cause it gives errors

#

or did i do it wrong

sturdy oar
#

Bukkit.getPluginManager().registerEvents(this, this);

frigid ember
#

thanks

#

k now it works

#

lmao

sturdy oar
#

😎 im Pro

frigid ember
#

what about external classes

sturdy oar
#

you register them the same way

#

just change 'this'

#

argument

#

to the listener class

frigid ember
#
new class(), this```
sturdy oar
#

yeah if I remember correctly the first argument is the listener

frigid ember
#

right?

sturdy oar
#

no

#

registerEvents(new YourListener(), this);

frigid ember
#

yeah thats what i mean

sturdy oar
#

supposing you have no arguments

#

@frigid ember is that Apache NetBeans IDE you're using

frigid ember
#

No

#

Eclipse ftw

sturdy oar
#

🤦 rip

#

I might say IntelliJ ftw

frigid ember
#

true

#

but eclipse is for oldies

sturdy oar
#

Choco 🤣

subtle blade
frigid ember
#

^

subtle blade
#

I have been summoned

hardy cedar
#

._.

subtle blade
#

You're only just now getting this? I've had this for well over a month or two

hardy cedar
#

idk i dont use the emojis thing i do type : then search what i want lol

frigid ember
#

just made a greenchat addon to the AsyncChat, E.G > 4chan style, or you can call it 2b2t style

hardy cedar
#

im new at eclipse and wanted to ask such a stupid question .. .ahh
i have src code of a plugin that i want to edit but i don't know how to add it to eclipse lol is it easy?

#

any body? :[

subtle blade
#

What all do you have?

#

Just .java files? Or do you also have Eclipse project files?

hardy cedar
#

i dont have any

#

i just reseted my pc

#

i have downloaded the src from github

hollow thorn
#

how do i cancel an event inside an event

subtle blade
#

Yeah but on GitHub do you have just source files or also project files?

hardy cedar
#

just the src

subtle blade
#

Realistically, IDE-specific project files should be gitignored, but some people include them

#

Okay, so clone down the source (or download it whatever), place it where you want the project to be located (in your workspace under a project directory more than likely)

#

File -> New... -> Java Project

hollow thorn
#

how do i cancel an event inside an event
@hollow thorn

hardy cedar
#

must i extract it?

subtle blade
hollow thorn
#

i guess you could create a new project

#

and copy and paste the src into the projecy

#

project

hardy cedar
#

must i extract it?
its a .zip file lol

subtle blade
#

extract the source lol

#

Then follow the steps I mentioned above

hollow thorn
#

how do i cancel an event inside an event

subtle blade
#

You don't have an event inside of an event

hollow thorn
#

bukkitrunnable

#

so i have a repeating task

subtle blade
#

You're still only ever in one event

hollow thorn
#

and i want it to cancel if a certain requirement is made

hardy cedar
zinc ingot
#

cancel();

subtle blade
#

Wherever the source files are, point to that, Ahmed

hollow thorn
#

cancel();
@zinc ingot it says i need to initialse the variable

subtle blade
#

If you've done that, you can hit "Finish"

hardy cedar
#

i choosed the Src folder which is Profiles

subtle blade
#

Will have to import any libaries you'd had before because I'm assuming this isn't a maven project

zinc ingot
#

show your code or something

hollow thorn
#

wait no fixed it

frigid ember
#

😆

frigid ember
#

how do i get the spigot 1.8.8 api? tried using build tools but it didnt gave me it

subtle blade
#

Run BuildTools with the --rev 1.8.8 argument

#

Though we recommend compiling against the latest version

patent monolith
#

is World#getEntitiesByClass mutable?

subtle blade
#
    @Override
    @SuppressWarnings("unchecked")
    public <T extends Entity> Collection<T> getEntitiesByClass(Class<T> clazz) {
        Collection<T> list = new ArrayList<T>();

        for (Object entity: world.entitiesById.values()) {
            if (entity instanceof net.minecraft.server.Entity) {
                Entity bukkitEntity = ((net.minecraft.server.Entity) entity).getBukkitEntity();

                if (bukkitEntity == null) {
                    continue;
                }

                Class<?> bukkitClass = bukkitEntity.getClass();

                if (clazz.isAssignableFrom(bukkitClass) && bukkitEntity.isValid()) {
                    list.add((T) bukkitEntity);
                }
            }
        }

        return list;
    }```
#

Yes

#

auth, what does your buildtools.log say? That command looks fine to me

left walrus
#

can someone give me an plugin for spawners? ex: iron golem, zombie, cow

naive goblet
#

EpicSpawners, UltimateSpawners or SilkSpawners?

sturdy oar
#

Silcc

subtle blade
#

Preferably not the former two

naive goblet
patent monolith
#

ty

naive goblet
#

Have you seen the quality of EpicSpawners Choco it’s just splendid

subtle blade
#

I've written some of the code in that project in specific. I'm well aware of how "splendid" it is

naive goblet
#

Lol

subtle blade
#

The only reason that project has some sort of object oriented code is because of me

naive goblet
#

Hmm, I mean from the front side the plugin looks all good but the inside is kinda the opposite. I don’t know if SilkSpawners or UltimateSpawners have better code

subtle blade
#

SilkSpawners I'm almost certain

#

That being said, SilkSpawners is also old as shit

#

ES and US were just poorly designed from the ground up

naive goblet
#

Hmm perhaps it’s worth writing one then for the sake of quality

subtle blade
#

If you really want to, sure. They're not terribly difficult to write

naive goblet
#

Well I happened to like wasting time on stuff so why not. Also how do I get access to write on the wiki pages? Or write new ones

tiny dagger
#

I think i'm pretty good at remaking plugins 👀

#

imagine me having time to copy a premium plugin and post it for free

naive goblet
subtle blade
#

You can edit and write new wiki pages just fine

#

Lax used to do that, Fr33styler

naive goblet
#

Hmm no verification at all?

subtle blade
#

not to my knowledge, no

naive goblet
#

Wth

tiny dagger
#

that must be fun

subtle blade
#

It's a public wiki. If in a good state, they can be locked

tiny dagger
#

and then syncing the updates as well would be 👌

#

😂

naive goblet
#

Okay that’s cool instead of me spamming the plugin development forum with resources

subtle blade
#

Would rather the forums be flooded with resources tbh

#

Easier to filter. Though there is a snippets category on the wiki that might help

naive goblet
#

Yeah fr. But I mean only reason I probably would post on the forums is because I need ratings

tiny dagger
#

oh wow

#

how comes a bossbar message plugin has over 1k downloads

naive goblet
#

Could be bots or just magic

tiny dagger
#

oh it has gui

naive goblet
#

Lmao

subtle blade
#

Sounds like a selling point to me