#help-archived

1 messages · Page 147 of 1

hoary idol
#

yes ofc

#

i learnt that the hard way 😄

tight pewter
#

(File sharing server, and 3d printer server in one. not for games/minecraft)

fresh sequoia
#

Can a staff help me out?
Someone botted my plugins downloads so I was wondering if it was possible if you didn't delete the plugin

#

why tf do shit heads keep doing this

#

@zenith palm I'm sorry for the tag but can you lmk what steps are going to be taken?

opal bay
#

🤔 i doubt that would really hold any ground in paypal chargebacks but 🤷

#

^ talking about the plugin

fresh sequoia
#

its a free one..

opal bay
#

no I meant, like the terms in the lore of the gui thing

#

i like the concept though ;)

fresh sequoia
#

Just released yesterday, plan on adding a log file that contains the transaction id, date etc.

#

cosmic use the same mechanic

upbeat kayak
#

does anyone know how to set a players max health, without the use of items? We encountered some issues which lead to players having huge amounts of health. The issue is patched but the high health remains for those players. Seems like a one liner but I don't know what the line is.

opal bay
#

so I assume you have the ability to code a plugin, right? You could just detect if their health is above a certain amount on join and remove it if it's higher than the norm

upbeat kayak
#

I do write plugins Jochyoua, I can detect login, what I don't know... and maybe I'm just being tired and blind right now... but I don't know how to set max health

fleet crane
#

timings will not show a memory leak

#

do you actually have a memory leak

#

is your server crashing due to OutOfMemoryError

opal bay
#

I'll see what I can do Burger ;)

upbeat kayak
#

ya know what

#

i got it... i think i just needed to ask to look dumb

#

and now I found it

#

so... thanks 🙂

opal bay
#

it's fine :)

#

if you need anything let us know

upbeat kayak
#

hi im the new guy.

#

heh

opal bay
#

hello new guy

fleet crane
#

doesn't mean there is a leak

upbeat kayak
#

but on the plus side, I was going to report a bug, and then... get this, I looked over the tickets, saw something similar, downloaded the latest, tested it, bug was patched. And then, the most amazing thing is, I did not report a duplicate of the issue.

fleet crane
#

java will use up to the amount of ram you've allocated even without leaking

#

you only have a memory leak if all your ram is being used and your server is crashing due to outofmemoryerror

#

yes

subtle torrent
#

Ehy, i cannot find a plugin that gives you some info when you hover with the mouse, the player name ( info that i can modify on the config ). Can someone help me?

velvet halo
#

You mean in chat?

subtle torrent
#

but updated

spring nexus
#

Btw it looks like Guardian beams aren't compatible with Bungee. It kicks the player when it's used.
It's not a part of the API it's NMS, but It works as expected when I use it in a single Spigot server.

fleet crane
#

this chat isnt a bug tracker

spring nexus
fleet crane
#

please include more info than 'guardian beams dont work'

spring nexus
#

The thing is I'm not getting any error messages or anything. I'll put everything i have.

frigid ember
#

Something with bungeecord is weird.

#

When i take a ProxyPing event Connection to a string i get this: [/ip:port] <-> InitialHandler

#

But there are many method like getName or getUUID

#

They return null

#

is there a way to say "upon first join, connect user to x world. if not, lobby"?

fleet crane
#

the ping doesnt send the uuid yet

frigid ember
#

bungee btw

#

Ok, but why do i get the name as null too?

fleet crane
#

bungee by default returns users to their last server

#

because it doesnt send name either

frigid ember
#

Why is this a method then?

#

Wait can a Connection be used when the player is connected too?

fleet crane
#

yes, Connection is a generic class

frigid ember
#

Ah thanks.

fleet crane
#

if used in the login events for example itll have the name

#

and any time after that

frigid ember
#

ok

fleet crane
#

?xy

worldly heathBOT
frigid ember
#

so md, if theres no server for them to return to (like upon new join in particular) it's the lobby?

#

how do I change that first join server, then?

fleet crane
#

if youre not running any bungee plugins, its controlled by the priority setting in config.yml

frigid ember
#

ahhh

rose crystal
#

Do I need to use --forceupgrade to upgrade my regular world from 1.15.2 to 1.16.1?

fleet crane
#

you dont need to

rose crystal
#

Thank you

frigid ember
#

@frigid ember What do you intend to do? You can use Multiverse to create worlds.

undone narwhal
#

What do you mean by "custom world"?

somber finch
#

Hi guys does anyone have this errors? What should i do with it?
[03:55:46] [AuthMeMYSQLPool housekeeper/WARN]: [AuthMeMYSQLPool housekeeper]
[03:55:46] [luckperms-hikari housekeeper/WARN]: [luckperms-hikari housekeeper]

undone narwhal
#

Generate a new world? Import an existing world?

frigid ember
#

Then use level type FLAT

undone narwhal
#

Then go to the PistonMaster advice

frigid ember
#

Use VoidGenerator

#

A custom generator

#

Why?

rotund hemlock
#

how to make your server run on more than 1 version

frigid ember
#

@rotund hemlock Viaversion

rotund hemlock
#

?

frigid ember
#

to void world
@frigid ember yes

tiny dagger
#

voidworld is better

frigid ember
#

why?

tiny dagger
#

because it's cleaner

#

i looked thru it

rotund hemlock
#

is this a plugin

frigid ember
#

yes

tiny dagger
#

yup

rotund hemlock
#

ok

#

ty

tiny dagger
#

a generator

frigid ember
#

ah ok. I will take a look at it

#

@frigid ember

#

?xy

worldly heathBOT
frigid ember
#

What is your problem?

#

Then use a void generator

#

Thats the waay

#

for it

#

Then create many void worlds

#

its easy

#

What plugin?

#

hm

#

Whats the name of the generated world?

#

Is it "1"

#

?

#

Thats code not a world

#

yes

#

use multiverse to create the world and import it into mini game maker

#

No you need to import the world generated by multiverse

#

not multiverse

#

Import the world into Mini Game maker and your good to go

#

I would recommend you to learn how these plugins work before you work with them.

#

Knowing how they work can help you in the future

#

Multiverse still works on 1.16?

#

I think theres backwards compability

#

I didnt test it yet

hexed lodge
#

Can someone advice a plugin for xray? I used one a few years ago but cant recall the name. Not looking for anti xray per say, but a mining/xray stats where i can see mined blocks from a player, % and number of iron, gold, coal, diamonds, etc mined? Thanks

brave vector
#

Spigot.yml

frigid ember
#

Hello,
m trying to setup bungeecord, when adding myip:25677 , to my server list, the MOTD is correct for the hub/lobby, and displays that it is online. When connecting however, I get
Could not connect to a default or fallback server,
I understand this means that the bungee cannot connect to the server I have specificed, however I believe I have completed all the required steps to set this up, here is my bungeecord config https://paste.helpch.at/fejulorupe.makefile
And in my server.properties for my hub server I have online-mode set to false, and in spigot.yml I have bungeecord set to true. My bungee server and hub server are on the same IP, just different ports

kind crow
#

hi, does someone know how to remove all chests on mobs?

fleet crane
#

myip:25562

upbeat citrus
#

hello, i've see we can use rgb for color now in minecraft ? how can we use it ?

fleet crane
#

Is that where your server is?

#

If its on the same machine as bungee try localhost

upbeat citrus
#

or if someone got a link speak about it 😄

tiny dagger
#

as hashcode @upbeat citrus

#

something like #4214

fleet crane
#

There’s some examples in the 1.16 announ

tiny dagger
#

^

upbeat citrus
#

Oh thanks didn't saw

tiny dagger
#

not sure if there is an r g b method as i haven't looked yet

#

like toColor(17, 200, 45)

upbeat citrus
#

it's in thread for spigot 1.16.1 right ?

tiny dagger
#

yes

upbeat citrus
#

perfect gonna read it 🙂

frigid ember
#

I replaced it with my actual ip

#

Is it because my bungeecord version is the latest but not my spigot version?

#

but yeah my hub server is tha

undone narwhal
#

Hi guys, I know that we can use hex colors with a JSON kind chat, but is there any Color Code like the &a &b etc to use hex codes ?

#

my bad I found it ^^

fleet crane
#

generatorSetting is not very well documented unfortunately

#

I think I might’ve put a basic example in the javadocs recently

#

Multiverse definitely works for 1.15.2

dusty topaz
#

where can i get the fishing drop pool? or at least find it in internals

fleet crane
#

It’s probably a loot table

dusty topaz
#

where can I find that

frigid ember
#

hm

fleet crane
#

In the jar somewhere

dusty topaz
#

no way to reference it in code?

fleet crane
#

Data folder maybe

frigid ember
#

My bungee version is like the latest but my server is like 1.8.8 (Not my choice lol, I dont like people who use old server versions but its for a friend)

fleet crane
#

Loot tables are json not code

frigid ember
#

would that cause problems?

dusty topaz
#

yea but i'm trying to modify drops in a plugin

fleet crane
#

No, bungee supports 1.8+

frigid ember
#

hmmmm

dusty topaz
#

only changing chances, not the entire table

fleet crane
#

I think you just have a mis configuration somewhere

#

Firewall, wrong port or ip, server not running

frigid ember
#

Would it be a firewall thing? All servers are on the same machine

fleet crane
#

Put the ip as localhost like I suggested then

frigid ember
#

I tried that

#

same thing

#

@frigid ember Maybe is the lobby server on a different port

#

Check the server.properties

#

The ports in config,yml and server.properties must be the same

#

yeah, its the right ports

#

hm

#

Weird

#

Lets check if you can connect to the lobby

#

Connect to: localhost:25562

#

They arent running on my machine, but ill try myip:25562

#

ok

zenith bluff
#

Okay so can you connect to the backends manually just fine?

frigid ember
#

hes trying it now

zenith bluff
#

ah right, missed that

frigid ember
#

If you wish to use IP forwarding enable it in your bungeecord config as well but...... it is

#

ok thats good

#

Hm

zenith bluff
#

that's a good sign

frigid ember
#

alright

zenith bluff
#

so everything is hosted on the same machine?

#

or on different ones?

frigid ember
#

same machine

#

Use this as the host: 0.0.0.0:25565

zenith bluff
#

just about to say

#

also disable query

#

because it looks like query and the proxy instance are binded to the same port

#

in your proxy config

frigid ember
#

odd results now

undone narwhal
#

Guys to use § hex color code in minecraft with for instance #fffff we need to do §x§f§f§f§f§f right?

frigid ember
#

one sec

zenith bluff
#

change the host to 0.0.0.0:25577 and everything should still work fine

frigid ember
#

@undone narwhal You mean plugin chatcolor?

undone narwhal
#

Yes

frigid ember
#

ChatColor.of(#fffff)

#

so host should be 25577?

#

and query_port should just be what

undone narwhal
#

Okay then we can't use it directly in chat (ChatColor.translate... doesn't work?)

frigid ember
#

or does it not matter if the other thing is false

zenith bluff
#

host: 0.0.0.0:25577

frigid ember
#

i didnt check it

undone narwhal
#

It doesn't :/

zenith bluff
#

change query port to some port you're not using

#

like 42069

frigid ember
#

alright

zenith bluff
#

or just turn the query function off

frigid ember
#

whats it do?

undone narwhal
#

Going to make a plugin to use it (&x(#<color>))

frigid ember
#

hm

zenith bluff
#

It's just the GameSpy query protocol

frigid ember
undone narwhal
#

Yep I know the ChatColor.of

zenith bluff
#

Basically it's just a protocol on which extra data is transmitted, like a true playercount and plugins etc.

frigid ember
#

This is extremely odd, when I changed the ports, clicked save, then restarted the proxy, all of the ports just reverted to what they previously were, I know this doesnt happen for the entire config, cos if i change the motd of my hub it actually changes, query_enabled also went back to true, maybe something with my pterodactyl panel is interfering with it?

zenith bluff
#

ahh you're using pterodactyl. iirc there's some bug with using ptero for mc but I can't really remember what

frigid ember
#

oh

#

is there a workaround?

zenith bluff
#

I think. Been awhile since I've messed with panels.

#

gtg for a few hours. DM me and I'll respond asap if u want or something idk

frigid ember
#

hm

inland oxide
#

How would I call an API method for 1.15.2+ in a project that needs to support 1.13.2+?

tiny dagger
#

modules?

inland oxide
#

For example, if the project sets the api-version: '1.13' in the plugin.yml, then those functions are not visible

#

how would a module help if the api-version is set in the plugin.yml?

tiny dagger
#

well

inland oxide
#

can I make a module specific to api-version?

tiny dagger
#

there isn't much you can do about it

inland oxide
#

I can use NMS in a "module" so to speak

#

loading the appropriate "module" in the on_enable based on the version

#

If I make the api-version to 1.16, then those methods are available, can I still run on 1.13?

#

say if I don't call those methods except when the version is actually 1.16?

frigid ember
#

This is so odd

inland oxide
#

Seems like this api-version stuff is forcing development towards version specific releases

#

and frankly the average developer is not just supporting 1.15.2 only at the moment

#

I think there is a problem with this strategy.

#

jars will get bigger if we have to build specifically for api-version to use features.

#

And I'm not talking about NMS, but stuff like additional functionality in ItemMeta.

frigid ember
#

im lost with this config thing lol

torn elk
#

If i delete my nether and end worlds from a 1.15.2 server and do a forceupgrade, will it generate new nether and end worlds for 1.16.1?

odd knoll
#

If you delete the worlds, there's no need to force upgrade to make them regenerate.

torn elk
#

well yes, but i need to force upgrade, because i'm running 1.15.2

frigid ember
#

Does anyone have a link for spigot snapshot changes?

floral isle
#

hi im developing and npc plugin using nms code and in the console there's this error

#

java.lang.ArrayIndexOutOfBoundsException: 2
[12:01:34] [Server thread/WARN]: at me.marc_val_96.guardiannpc.npc.NPCManager.spawnNPC(NPCManager.java:45)
[12:01:34] [Server thread/WARN]: at me.marc_val_96.guardiannpc.task.SpawnNPCTask.run(SpawnNPCTask.java:33)
[12:01:34] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftTask.run(CraftTask.java:84)
[12:01:34] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:452)
[12:01:34] [Server thread/WARN]: at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1295)
[12:01:34] [Server thread/WARN]: at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:431)
[12:01:34] [Server thread/WARN]: at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:1213)
[12:01:34] [Server thread/WARN]: at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:946)
[12:01:34] [Server thread/WARN]: at java.lang.Thread.run(Unknown Source)
[12:01:42] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 11478ms or 229 ticks behin

tiny dagger
#

what can i say

#

you gave us a lot to go on

floral isle
#

im using the reflection ad for spawn an npc im using packetplayoutplayerinfo

tiny dagger
#

show your code lol

#

ArrayIndexOutOfBoundsException: 2

floral isle
#

one sec i post it on paste

tiny dagger
#

you're somewhere going over the limit

lone fog
#

You have an index of 2 hardcoded in

#

So you just assume the array is at least length 3

floral isle
#

yes but i dont know where is the error i rewrite this class 3 times

lone fog
#

java.lang.ArrayIndexOutOfBoundsException: 2
[12:01:34] [Server thread/WARN]: at me.marc_val_96.guardiannpc.npc.NPCManager.spawnNPC(NPCManager.java:45)

floral isle
#

yes I know that's what I don't understand why

lone fog
#

Have you tried checking the length of those arrays

tiny dagger
#

what a weird way to spawn npcs

floral isle
#

is for antikillaura plugin

#

for my server

#

ok maybe i fix that

#

you know a method for equip the npcs?

tiny dagger
#

yes

floral isle
#

you can show me an example?

tiny dagger
#

PacketPlayOutEntityEquipment

#

is what you're looking for

floral isle
#

ok thx

remote socket
#

Does #remove() kill an entity?

tiny dagger
#

yes

#

do it on players

#

my favorite

#

:3

remote socket
#

Lol

crisp sinew
tiny dagger
#

probabily corrupted world

#

or plugin

#

that handles it

#

like i dunno a generator? 🤔

pale shell
#

How do i take commands away from people/groups (Sorry if this is not the type of questions that I'm supposed to ask in here!)

tiny dagger
#

with permissions

pale shell
#

Yeah but like how?

crimson acorn
#

Yeah but like how?
@pale shell What permissions plug-in do you have?

frigid ember
#

this should work, right?

subtle blade
#

Try it

frigid ember
#

it doesnt, thats the problem

subtle blade
#

So it shouldn’t work \o/

#

Let’s see the whole thing

frigid ember
subtle blade
#

Item isn’t yet enchanted by the time it’s passed to the event

frigid ember
#

oh, right, thanks

subtle blade
#

The event should have some method to get them

#

Not at my computer, can’t check quickly for you lol.

frigid ember
#

ty anyway

#

event.getEnchantsToAdd().keySet()

#

i got it

ionic sun
#

I want to send a message to every user whenever the world time becomes 12000, should I make a thread which checks the worldtime every X amount of time or is there a better approach?

fossil shoal
#

when deploying an artifact to a maven repo, should I include maven shade plugin in my pom to shade the required dependcies?

crisp sinew
#

probabily corrupted world
@tiny dagger that is a newly generated world

#

Like launched 13 hours ago.

lapis cloud
#

Does allocating more ram speed up a --forceUpgrade? Updating a world with 4618119 chunks and it's going really slowly, around 40 chunks per second

frigid ember
#

Is there a way to let it look like a player leaves without him leaving?

wet ferry
#

/spigot reload is different than /reload, right?

#

I just wanna make sure spigot reload just reloads the spigot config and not the whole server

subtle blade
#

Correct

wet ferry
#

Thanks

subtle blade
#

when deploying an artifact to a maven repo, should I include maven shade plugin in my pom to shade the required dependcies?
@fossil shoal shade what you need to shade. Any dependencies listed in your pom will also be included in any project that depends on your project. They're transitive dependencies

#

The beauty of Maven 🙂

wet ferry
#

Is there a way to reload the server.properties file other than /reload?

subtle blade
#

Don't think so, no. It's best to stop your server, edit the properties, then start again

wet ferry
#

Alright, thanks

subtle blade
#

A lot of those options modify how the server itself operates

tiny dagger
#

i don't even wanna know what it would happen if you change the view distance on runtime

subtle blade
#

Realistically speaking, you shouldn't be using the /reload command unless you're in a non-production environment

#

It's mostly useful for developers testing plugins

frigid ember
#

I want to let it look like a player left. Is there a way to get the quitmessage from the event without triggering it?

tiny dagger
#

cache it

#

cache the last quit message

frigid ember
#

hm, but that wont work for players who never left

tiny dagger
#

well

#

yeah

#

there is no way

frigid ember
#

I think i will hard code the message

tiny dagger
#

to get something

#

without actually knowing it once

#

or i dunno

#

at least put a default

#

of yours

#

then on quit switch it up

frigid ember
#

And triggering it without the player leaving could trigger plugins.

#

And then bad stuff happens

subtle blade
#

Yeah please don't call any of Bukkit's events yourself. Heh

frigid ember
#

yeah

#

Another thing. Hiding the player from the tablist?

tiny dagger
#

hidePlayer

#

or call packet

frigid ember
#

That does that too?

tiny dagger
#

wait nvm

#

yeah

#

the method hides it

subtle blade
#

Yeah, iterate all online players and call hidePlayer(thePlayerYouWantToHide)

#

(there's a plugin parameter in there too)

frigid ember
#

I already made that stuff

#

Im making a vanish plugin for learning

#

I didnt see that it hides the player on the tablist too. Thanks for the help

subtle blade
#

It should. Last I recall it does

frigid ember
#

I just checked it

#

In 1.16.1

#

Hey,
I'm making a plugin.

My problem:
It says that a value in the config.yml is "0", but it's "3".
Also, this does not occur on my machine...

#

What config manager do you use?

#

Can you give us some code?

#

int maxHomes = getConfig().getInt("maxhomes");

On my machine it says "3" (which it is), but on my friend's machine it says "0"

#

hm

#

Can you check his file?

#

And maybe something edits the value ingame

#

Can you check his file?
His file is exactly the right one

#

hm

subtle blade
#

Or the key is not present / incorrectly spelt because it defaults to 0 if not defined

#

Casing matters

frigid ember
#

And maybe something edits the value ingame
No, only the onEnable will set this value

#

Check his file with a YAML checker

#

Or the key is not present / incorrectly spelt because it defaults to 0 if not defined
Then it wouldn't work for me too

#

Maybe he needs a reload

#

Check his file with a YAML checker
Yeah, it's valid

#

Because the value was different

#

Maybe he needs a reload
Restarted multiple times

#

ok

peak portal
#

Is there a way to test on my end if the port forwarding worked?

frigid ember
#

so when I run buildtools to get craftbukkit 1.16, this time it doesn't add it to my local maven repo. am I missing something?

errant sluice
#

I am working on a resource pack that uses a CustomModelData item. It works fine in Vanilla but not in Spigot or Paper 1.15.2 . Is there a known fix for this or a config that I need to adjust?

frigid ember
#

so when I run buildtools to get craftbukkit 1.16, this time it doesn't add it to my local maven repo. am I missing something?
@frigid ember yes. md_5 said that you need to manually pass --rev 1.16. Because its still experimental

#

or so

#

i did though, I used --rev 1.16.1

#

hm

subtle blade
#

No, read further

#

Furthermore as foreshadowed in both the 1.14 and 1.15 release threads, we will no longer be distributing any 'Bukkit' jars via our Maven repositories. This is SpigotMC.org and the supported software we produce and maintain is Spigot. The relevant dependency for all purposes is org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT. Unless you are a developer actively working on Spigot the identity, naming, and structure of internal components is an irrelevant distinction and this change helps reinforce that message.

#

And in the linked 1.14 and 1.15 threads you'll see that BuildTools has not been compiling CraftBukkit

frigid ember
#

then how do I get it, spigot doesn't contain craftbukkit

subtle blade
#

A Note on CraftBukkit (23 December 2019)
As foreshadowed in the 1.14 thread, BuildTools will no longer build CraftBukkit by default. To compile CraftBukkit you must now use the --compile craftbukkit command line argument.

#

It does

#

Spigot is a fork of CraftBukkit

frigid ember
#

oh ok

subtle blade
#

It literally can't run without CraftBukkit ;P

#

Though nobody should be running CraftBukkit at this point, nor writing code against it

#

It's considered an internal dependency

#

If you need to interface with internal code, you should be depending on the Spigot server as a dependency instead (which does contain CraftBukkit code)

frigid ember
#

spigot by itself doesnt have nms in it, at least for me

#

thats why I wanted the craftbukkit jar

silver basin
#

of course it does

#

well the spigot.jar does

subtle blade
#

What is it you're depending on that doesn't also include B&CB?

#

because Spigot literally cannot function without either

frigid ember
#

that's all it has

#

in the bukkit folder there's no craftbukkit

silver basin
subtle blade
#

Spigot API != Spigot server

silver basin
#

not the api jar

subtle blade
#

For all intents and purposes, Bukkit = Spigot API, CraftBukkit = Spigot

frigid ember
#

oh ok

silver basin
#

hey choco when are those silly player.spigot() extensions getting moved...I mean now we depend on the bungee chat api....it would be nice not to have to do player.spigot().sendMessage(Components)

frigid ember
#

there, now i have it

#

thanks for clearing that up

subtle blade
#

Ehm, that's a question you'd have to ask md though I doubt those would be removed

#

I'm honestly not sure why there are Spigot subclasses

silver basin
#

pitty seems a bit superfluous now

subtle blade
#

There was an event at one point that just had a method shoved into it without a subclass

#

getClickedInventory() or something was Spigot-exclusive at one point I think it was

silver basin
#

Oh yeah inventory events ..shudder..I just spent a week working out those

subtle blade
#

Not sure. Hold that question for md 🙂 He may have a reason to keep 'em

#

Backwards compat probably but those can be deprecated and delegated

silver basin
#

Im sure

#

I am still not convinced I am tracking every single way a player can move an item - but meh I just wait for the prs'

subtle blade
#

InventoryMoveItemEvent?

#

For hoppers and whatnot?

silver basin
#

no player item move

#

Prism

subtle blade
#

Oh alright

silver basin
#

I mean stack splitting and halving makes it bloody complicated when you get into it

subtle blade
#

Just do

if (player.movedItemStack()) {
    player.dont();
}```
silver basin
#

lol I wish

shut quest
#

I have weird problem... My players reporting for last 4 days that they are randomly unable to pickup items. But when they open chest, or wait for a bit, this problem is gone. It is hapenning randomly to random players troughout the day.

#

I unloaded all plugins except for Residence and CMI so its 99% not by plugin. I am running 1.15.2 (+Viaversion with 1.16.x support)

silver basin
#

sound like PickupItemitis..

shut quest
#

? 😄

silver basin
#

errm remove viaversion

#

thats a plugin

#

and its nasty

subtle blade
#

It's honestly possible that it is a bug in VV

#

1.15.2 and 1.16.x protocols are very different

shut quest
#

It is not... I tried older version 😄

subtle blade
#

Older? lol

silver basin
#

so u ran the server with no plugins...including viaversion

#

and it still happened

shut quest
#

Never happend to me... But players reporting whole 2 days for now...

#

Its completely random

#

some players 2x per day, some players every 30 mins

subtle blade
#

Well I've been able to pick up items just fine while testing my plugins locally - so...

shut quest
#

It never happend to me on server or in local env

#

Thats why I am out of ideas

subtle blade
#

If you can replicate it without ViaVersion, file an issue on the JIRA

#

Otherwise, direct concerns to them

shut quest
#

Ok

silver basin
#

its a client issue most likely meaning protocol meaning VV

shut quest
#

Oh and tridents not returning

#

to those players

#

Its like they are vanished 😄

#

or gm 3

lime harness
#

@subtle blade have you ever encountered this error?

subtle blade
#

Will test that quickly as well, but I wouldn't be surprised if that too is VV

silver basin
#

...its protocol for sure

lime harness
#

Patch failed at 0004 Spigot Configuration

subtle blade
#

Gonna need a bit more than that ;P

#

?paste the log:

worldly heathBOT
lime harness
#

i've reset local changes.

#

oh whoops

shut quest
#

I will try old VV if they will be still reporting it.. If its not VV I am out of ideas and it must be something in Spigot 😄

subtle blade
#

That's the whole log?

lime harness
#

was working yesterday, broke today, tried to force pull and wipe local changes didn't work.

#

yep

silver basin
#

...just remove VV

lime harness
#

i'm attempting to apply patches.

subtle blade
#

oic

silver basin
#

dont try old...just remove it

shut quest
#

ok

lime harness
#

hint: Use 'git am --show-current-patch' to see the failed patch, running that command does nothing

#

gives me an operation is not in progress.

subtle blade
#

Tridents return just fine for me, Baterka

#

Are you making any changes to the server using BuildTools ceezuns? Or are you just trying to build Spigot?

lime harness
#

i am making changes, yeah

silver basin
#

oo

lime harness
#

seems like i've broken something lol

silver basin
#

well

subtle blade
#

and this is a Spigot change? Or Bukkit/CB API?

#

New API should be targetted for the latter

lime harness
#

this is a Spigot-Server change, so craftbukkit

subtle blade
#

What is the change though?

subtle blade
#

Oh you have a PR already

lime harness
#

i've submitted a pr, but i needed to edit it and when i got on today

#

wasn't working.

#

so i have no clue what happened, i just updated my repo and applied patches

#

and this is what is happening lol

subtle blade
#

Yeah - I'd start with a clean BuildTools, pull down your patch into CraftBukkit-Patches, then run applyPatches.sh

lime harness
#

alr

subtle blade
#

Then you should be good to edit from there

#

Not sure why BT is bothering you about that lol

lime harness
#

that is so weird, never had that before.

#

yeah

subtle blade
#

I should make a Spigot PR as well. There were changes I wanted to make to /plugins

lime harness
#

lmao i think it is not spigot but something to with folder permissions, i can't even delete the folder in windows....

silver basin
#

...ergg windows

lime harness
#

i tried using wsl to rm -rf it with sudo it won't even delete something using that

silver basin
#

if your in the folder in bash you cant delete it by the way

lime harness
#

nah it's not

#

that is what is weird.

silver basin
#

restart explorer.exe and close all bash (taskmgr to kill the orphans

subtle blade
#

Windows is great PES_Cry

shut quest
#

It is ViaVersion thanks

lime harness
#

pepehands

shut quest
#

Other server using viaversion ( much larger network) have it too

silver basin
#

@Baterka not suprising

shut quest
#

So it must be it 😄

#

Weird that there is no bugreport

silver basin
#

0 day

shut quest
#

its like 3 days now 😄

#

what was the working version before 1.16 update? 😄 2.2.3? 😄

lime harness
#

lol still can't delete it gonna restart pc

#

there you go it deleted.

subtle blade
#

Woo!

shut quest
#

wow...

#

(btw I followed template)

lime harness
#

is viaversion not working for you?

shut quest
#

viaversion causing that players cannot pickup items

lime harness
#

i'm running the latest version of viaversion and viabackwards.

#

i would try to reinstall the plugin

#

or restart your server.

#

idk if you've done that already.

#

it works perfectly fine for me it might be a one off thing if it does not give you errors.

sharp hawk
#

Can you link to the ticket?

lime harness
#

^^

shut quest
rich olive
subtle blade
#

Likely at fault of Multiverse. It was a bug in RC1 but md had fixed it

tiny dagger
#

it's about time viaversion gets bitten 👀

sharp hawk
#

@shut quest by template they probably meant this:

- Type /viaversion dump, and put the link here.

**Additional server info**
Do you use a proxy (eg. BungeeCord)? What software do you use and what plugins?```
rich olive
#

@subtle blade any ideas?

#

because I don't have any idea as to how that could happen

subtle blade
#

You a maintainer?

shut quest
#

ah I forgot dump

rich olive
#

yup

subtle blade
#

1 sec

sharp hawk
#

Also if you run literally any other plugins, list them as well.

subtle blade
#

You're saying you can't replicate this, nicegamer?

rich olive
#

no I can

#

but only on non-main worlds

subtle blade
#

What's your /version?

rich olive
#

one sec

#

if it was on every world I would suspect MV

#

This server is running CraftBukkit version git-Spigot-6f4ff1b-983305b (MC: 1.16.1) (Implementing API version 1.16.1-R0.1-SNAPSHOT)

#

You are running the latest version

subtle blade
rich olive
#

hold on

#

let me check with Hyperverse

#

nvm, no 1.16 support

subtle blade
#

This was definitely a Spigot bug in RC1 though, but I know for a fact md had fixed it. I remember because he spent 2 and a half hours trying to fix it when it was a one-line change lol

rich olive
#

lol rip

subtle blade
#

Entities shouldn't be tracking you either, correct?

#

i.e. if you were to punch an enderman in survival mode in the end, it won't attack?

rich olive
#

I didn't test that, I only tested sand blocks

#

I'll give that a go

subtle blade
#

While you're at it, try destroying one of the end crystals. The explosion should inflict damage but won't show any explosion (sound nor particles)

#

If both of those are the case, it's definitely the same bug md was encountering with non-overworld worlds in RC1

rich olive
#

sort of the same

#

endermen are the same as you described, but the end crystal did make an explosion and made sound

#

and both work as expected on the main end

subtle blade
#

Okay perhaps that was an unrelated bug then. So I'd still chalk it up to that same bug. Lemme see if I can find his message where he fixed it

lament zinc
#

Hi, anyone know how i can prevent horse armor/saddle drop on Horse death ?

subtle blade
#

Not sure what he meant by "time issue"

frigid ember
#

Hello, I am not sure if I am right here. Sorry if I am not :).

So there is a guy that gave my projects (Tigerkatze Ressource VillageDefense) some bad reviews and used multi accounts. I would really appreciate when someone could take care of it. Thanks in advance and have a nice day.

subtle blade
#

I think you might have to wait on @fleet crane to wake up for this one, @rich olive 😦 I don't know how he addressed it

frigid ember
#

How do i set hex colors in my plugin again?

#

do i still use translatealternate?

subtle blade
#

It's possible that it could still be a bug in Spigot, though I honestly don't know

#

As far as "vanilla" Spigot is concerned, they do tick in nether and end worlds

#

Though perhaps worlds created by Spigot are bugged

rich olive
#

no worries, I guess just tag me when he's up

subtle blade
#

I think he reads through his pings. If not, I'll remind him and let ya know

rich olive
#

awesome! thanks

undone narwhal
#

@frigid ember ChatColor.of(hexcode)

frigid ember
#

cheerios, is that with # or not?

undone narwhal
#

I think that's with the # but have to check

frigid ember
#

tytyty

#

Thank you Choco!

shut quest
#

Lol both issues closed as: "It is not our problem"

#

So then it is Spigot/Bungee problem 😄

silver basin
#

its not

shut quest
#

I am also sure

silver basin
#

good luck

shut quest
#

Noone here using ViaVersion lol and have same problem? 😄

silver basin
#

...omg.

#

the thing is if you dont get the issue when NOT using viaversion it is NOT a Spigot ussue

#

and given I have run I think 15 seperate 1.16.1 servers..and never had an issue picking up items...It aint spigot 1.161

shut quest
#

but it can be spigot 1.15.2 😄

#

I have 1.15.2 server

silver basin
#

...right

upper hearth
#

That would've been noticed long ago

shut quest
#

Maybe because of new ViaVersion this problem occured and it is unfixable on Via side

#

Idk

silver basin
#

well then via is broken and should be deleted

shut quest
#

I am just mad that this guy closing issues without any research

#

Is that normal lol

silver basin
#

thats plugin devs for you

#

yes its normal

shut quest
#

Such a huge plugin...

silver basin
#

honestly its a nightmare plugin

#

it breaks so much stuff every time

shut quest
#

Not broken anything for me until 1.16 came

silver basin
#

I mean I dont think they ever fixed the glass pane directional issue after 1.15

hollow jolt
#

hello i have a problem with end gateways in 1.16

#

they seem to crash the server

#

with ticking block entity

silver basin
#

I think there might have been a recent patch to that

#

update to latest

#

@subtle blade mentioned a new api

graceful silo
#

is there a place where i can view spigot builds? yknow instead of running buildtools and comparing filesizes to see if it changed ._.

subtle blade
#

Update your server. Was fixed literally 4 hours after initial release, Walnutzz

silver basin
#

nope

hollow jolt
#

oh ok

silver basin
#

@graceful silo

hollow jolt
#

thanks

silver basin
#

you have to build it yourself

graceful silo
#

yeah i know buildtools, i mean like a changelog

subtle blade
#

?stash

worldly heathBOT
subtle blade
#

Commit history

graceful silo
#

to see which version im--

#

yay 😄

#

ty sir

subtle blade
#

Every commit is a new build

#

Actually I'll do you one better

silver basin
#

although not every build is something new

subtle blade
#

Paste your /version into there it tells you what's new

graceful silo
#

link is broken somehow ._.

silver basin
#

yeah someone didnt pay the dns bill

graceful silo
#

wait is .cub a real thing? :I

#

is that for cuba

subtle blade
#

.club, sorry

#

Heh

graceful silo
#

oh LOL 😄

#

oh wow i didnt know there was a spigot club website

subtle blade
#

So I link to phoenix's instead

graceful silo
#

gotcha

hollow jolt
#

hello i have a problem with end gateways in 1.16
@hollow jolt

#

i updated to latest and it still crashes

subtle blade
#

You're certain? What's your /version?

#

No

#

Do not use that website

#

?bt

worldly heathBOT
graceful silo
#

29 versions behind dam

hollow jolt
#

ok ill try that

#

thanks

icy timber
#

@inland oxide eyo

#

this randomly starting spamming my console for some reason

rotund hemlock
#

how to use EntityDamageEvent

#

?

dreamy glacier
#

how i can applied a squid skin in a guardian ?

frigid ember
subtle blade
#

You can't listen to EntityDamageEvent though

frigid ember
#

Kek

subtle blade
#

EntityDamageByEntityEvent or EntityDamageByBlockEvent

#

Actually it has handler lists. You should be able to listen to it. Nevermind

frigid ember
#

Kekk

lime harness
#

@subtle blade now it won't compile i've tried using my local repo and the public repo

#

send code.

#

well, i'm pretty sure it works.

frigid ember
#

Hello!

lime harness
#

nvm i figured it out, lmao wsl and my windows machine have two different .m2 directories.

frigid ember
#

I'm a new server owner, running Spigot 1.15.2. Some of my players want keepinventory on, while others want it off. I found this plugin called keepinventory which does exactly what I want it to. It officially supports up to 1.13, but reviews have indicated it works up til 1.16.

#

Thing is, I don't know how to use it.

#

I don't know how to activate this "keepitems.keep"

#

Can someone help me out, please?

lime harness
#

that node is a permission @frigid ember

#

do you have a permissions plugin installed e.g permissionsex, or luckperms?

frigid ember
#

No.

#

Should I install one? If so, which one should I go for? I need one which doesn't impact performance heavily

#

Luckperms

#

100%

#

They don't cause performance issues

#

Okay, once i've installed luckperms, what should I do?

#

well luckperms significantly delays startup time, but runtime okay

#

Startup time isn't a big deal

#

it is when players waiting for startup xd

#

I can't lie. I've been running this whole deal on my Chromebook since I can't afford a proper server. I'm trying to max out as much performance as possible.

#

But it's just some seconds .-.

#

for max performance, set view distance to very low, disable timings, disable player data saving, disable spawn chunks

rich olive
#

how do you disable player data saving?

#

and what does that affect?

frigid ember
#

disable timings
@frigid ember Timings?

#

inventories, potion effects, not sure exactlywher now

#

I've already done render distance, but never heard of timings

#

./timings paste command

#

probably heard of it

rich olive
#

ok, no problem. thanks :)

frigid ember
#

Yeah, but what does it do?

#

so it's data logging can be disabled for max performance

#

it shows if your server lagging etc

#

useful to find lag causes

#

Well, alright I can do that later

#

but if you're going for super small setup it can be disabled

#

For now, I've installed luckperms, and booted up the server

#

I run mc server on 400mb ram, so just told what I did on it

rich olive
#

I didn't know you could run Java on a chromebook lol

lime harness
#

the dev team for luckperms has some awesome documentation, you just follow that to set roles and permissions.

rich olive
#

how's it done?

frigid ember
#

I didn't know you could run Java on a chromebook lol
@rich olive I'm running GalliumOS, a fork of Ubuntu

lime harness
#

and you should be good to go.

rich olive
#

ah

#

cool

frigid ember
#

For the KeepInv plugin, I just do /lp group keepitems.keep

#

right?

#

Nope, that ain't it

#

You could add the perm directly to the user
Or make two groups, the default one without it and a new one with the perm node

#

And move the user to the other group so they get to keep their inv

#

I'm going to add it to the group, in case any other players want to join later

#

Right now I'm trying to figure out how to add the permission of keepitems.keep in the first place

#

I believe it is lp creategroup groupname and then you can move the player by doing lp user playername parent set groupname

#

Ok. I did /lp group keepinv permission set keepitems.keep

#

Not sure about the create group

#

Oh yeah and that too xd

#

"Set keepitems.keep to true for keepinv(my group name) in context global"

#

Adding the perm is important xD

#

What does "in context global" mean?

#

Means that it works in all worlds in the server

#

You can specify it to be per-world too

#

Nah, global is fine

#

Perfect!

#

It worked

#

👍

#

And tick rate is still at a solid 13 ms!

ashen stirrup
#

Players are still able to move items from their hotbar using numpad even though InventoryMoveITemEvent, InventoryDragEvent and InventoryClickEvent is cancelled. Any pointers?

torn elk
#

Should i do a force upgrade from 1.15.2 to 1.16.1 if i'm going to delete nether

frigid ember
#

Players are still able to move items from their hotbar using numpad even though InventoryMoveITemEvent, InventoryDragEvent and InventoryClickEvent is cancelled. Any pointers?
@ashen stirrup Can you try to identify if any of these events gets even triggered?

ashen stirrup
#

You can move it to the inventory with numpad

#

But not with dragging

#

But then you can't move it back

frigid ember
#

Yes. Can you check if any of the events above get triggered? log it into the console

ashen stirrup
#

When I use NumPad keys it calls the InventoryClickEvent

#

No event is called when put it in my top inventory the first time though

rich knoll
somber marlin
#

Hey so I have two questions.

On my spigot server just updated to 1.16.1 flying machines lag so much. The server is good I could be running every farm at 20 tps still. But as soon as you turn on a flying machine it lags.

My other question is is my zombie piglin farm isn't as efficient as the one I have on my survival world. They are the same design with the same perimeter the only difference is one is on a server and one is on a private world. It will spawn like 4 at a time then stop spawning. So until you kill those 4 they won't spawn any more.

surreal trail
#

anyone use essentialsx? i just tried to give everyone the rulebook cause it didnt give them the kit on login is there a workaround without placing in everones name

frigid ember
#

Guys, I wanted to ask you something

#

I understand it's not specifically Spigot

#

but what's the difference between Paper and Waterfall?

subtle blade
#

Two completely different softwares, not at all associated with us

#

Ask in the appropriate place

somber marlin
#

Choco

#

I have two questions.

On my spigot server just updated to 1.16.1 flying machines lag so much. The server is good I could be running every farm at 20 tps still. But as soon as you turn on a flying machine it lags.

My other question is is my zombie piglin farm isn't as efficient as the one I have on my survival world. They are the same design with the same perimeter the only difference is one is on a server and one is on a private world. It will spawn like 4 at a time then stop spawning. So until you kill those 4 they won't spawn any more.

ashen dove
#

Any idea how to achieve that i can replace HEX Values (#xxxxxx) with colors?

frigid ember
#

ChatColor.of("#rrggbb")

ashen dove
#

So lets say i have a string in my config: "#00000Hello #ffffffthere"

#

And i want to replace all hex values from there

frigid ember
#

Mm idk if §xrrggbb works in translateColor whatever, but I read somewhere (in here I believe) that §x§r§r§g§g§b§b works lol

#

I mean you'd replace the § with & or the char of preference

pastel igloo
#

can i set Colored signs on whit no plugin?

frigid ember
#

If you mess with the nbt, yes

pastel igloo
#

?

#

nbt

ashen dove
#

If you mess with the nbt, yes
@frigid ember He said no plugin

lone fog
#

You don't need aplugin for that

#

Ie. /setblock ~ ~ ~ minecraft:acacia_sign{Text1:'{"text":"Test","color":"#4D58FF"}'} replace

frigid ember
#

You can do NBT manipulation with just pure vanilla

#

I have a question about the Bukkit scheduler. What are the two longs in the bukkit scheduler?

#

Are there millisecounds?

#

Where are there two longs?

#

Specify

#
                    Bukkit.getScheduler().scheduleSyncRepeatingTask(Main.getPlugin(Main.class), new Runnable() {
                        @Override
                        public void run() {

                        }
                    ----->}, 10, 10);<-----```
azure cargo
#

@frigid ember they're ticks

#

20 ticks in a second

frigid ember
#

thanks

ashen dove
#

Mm idk if §xrrggbb works in translateColor whatever, but I read somewhere (in here I believe) that §x§r§r§g§g§b§b works lol
@frigid ember No, §x doesnt work

boreal tiger
#

is there a way to get a Block instance from an itemstack?

#

the reason behind this is because I wanted to set some properties for a block when it is crafted

ashen dove
#

How should that be possible

#

An Item is an Item, and an Block is an Block

boreal tiger
#

yeah I get that

ashen dove
#

the reason behind this is because I wanted to set some properties for a block when it is crafted
@boreal tiger Just set the properties for the item

boreal tiger
#

I cant set it before it is placed it seems. unfortunately there isnt such thing as BeehiveMeta or something like that

ashen dove
#

Just listen to the BlockPlaceEvent, check the item in hand, etc...

boreal tiger
#

yeah but I have to store that somewhere which I was trying to avoid

#

thanks anyways

frigid ember
#

@frigid ember No, §x doesnt work
@ashen dove well in the bungee chat API, the X prefix (whatever) got added

#

So rip

halcyon snow
#

@boreal tiger if you're using 1.14.4+ you could just store it using the PersistentDataContainer on ItemStacks.

#

if not, it's not that complicated using nms.

boreal tiger
#

right I might do that or make an item to click on the block I want, thanks 👍

brittle topaz
#

Regarding Entity Data. I am able to successfully set an entity memory minecraft:angry_at with setMemory(MemoryKey.ANGRY_AT, player.getUniqueId()); but how would I go about setting the "amount of ticks until memory is removed" component of this memory?

From list of data values on mc-wiki:

memories:
-minecraft:angry_at 
--value: UUID of the entity that the piglin targets, stored as four ints.
--ttl: The amount of ticks before this memory is removed.
wooden carbon
#

dynmap 1.16 out yet?

frigid ember
#

Hey,
I'm making a plugin.

My problem:
It says that a value in the config.yml is "0", but it's "3".
Also, this does not occur on my machine...
I really need a fix for that one... Now there is a second person that has this problem

wooden carbon
#

is there anything between the start of your class and the entity holding the value 3?

rich owl
#

is latest buildtools 1.16 or or do I have to write --rev 1.16.1?

wooden carbon
#

yea

#

something like that

#

but spigot's available

#

@rich owl

#

@frigid ember

frigid ember
#

is there anything between the start of your class and the entity holding the value 3?
What do you mean with that?

rich owl
#

Thank you

peak portal
#

Does anyone know world guard?

shut quest
#

So the problem with item pickups... Its not ViaVersion... I removed it and ppl still reporting that they are unable to pickup items until they open chest

undone narwhal
#

Are you using a spigot fork?

#

Any error?

somber marlin
#

I have two questions.

On my spigot server just updated to 1.16.1 flying machines lag so much. The server is good I could be running every farm at 20 tps still. But as soon as you turn on a flying machine it lags.

My other question is is my zombie piglin farm isn't as efficient as the one I have on my survival world. They are the same design with the same perimeter the only difference is one is on a server and one is on a private world. It will spawn like 4 at a time then stop spawning. So until you kill those 4 they won't spawn any more.

novel jetty
#

Datapacks go in each world folder, do they also have to go into the nether and end dimension folders for them to work in those dimensions? I see each world has a datapack folder, but the dimensions do not.

shut quest
#

Are you using a spigot fork?
@undone narwhal Nope. No error, no fork

undone narwhal
#

What's the version?

frigid ember
#

if i rename any end world like defaultworld_the_end is that gonna be the end world that's configurable in the server config

#

or does spigot have to generate that end world

tiny dagger
#

0

#

is max

#

lol

#

it's more of damage

#

than how much it has

#

yes?

#

oh prob it's mistaken with the other thingy

#

damageable

#

if itemmeta instanceof Damageable

#

yes

#

from 0

#

to whatever the max the item has

#

getType().getMax

halcyon snow
#

store the ItemMeta in a variable, check if that ItemMeta is instanceof org.bukkit.inventory.meta.Damageable

If it is, cast it to org.bukkit.inventory.meta.Damageable then call the setDamage method on it to set the durability.

#

after that, set the ItemMeta back on to the item with setItemMeta

#

I am not sure

#

Doing it that way is not that complicated. Fr33styler even posted an image on how to do it.

grave narwhal
#

Hello

#

I'm looking for some assistance here, I'm trying to develop a listener for when a player clicks their inventory

#

Basically what I want it to do is when a player clicks their inventory, it checks if they are wearing a specific set of armor, if they are wearing that armor, it will give them speed.

grave narwhal
#

@nimble stump check this out

#
    @SuppressWarnings("deprecation")
    public void onClick(InventoryClickEvent e) {
        HumanEntity p = e.getWhoClicked();
        // A full leather speed set
        if (
                p.getInventory().getHelmet().getType() == Material.LEATHER_HELMET 
                && 
                p.getInventory().getChestplate().getType() == Material.LEATHER_CHESTPLATE 
                &&
                p.getInventory().getLeggings().getType() == Material.LEATHER_LEGGINGS
                &&
                p.getInventory().getBoots().getType() == Material.LEATHER_BOOTS
                ) {
            p.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 200, 1), true);
        }
}
nimble stump
#

You need an @EventHandler

grave narwhal
#

My oh my, you

#

you're right*

nimble stump
#

Lol

grave narwhal
#

can't believe i forgot that LMAO

nimble stump
#

🙂

grave narwhal
#

Although, it says p.addPotionEffect is deprecated

#

will that effect anything?

nimble stump
#

Let me check

grave narwhal
#

Also

#
HumanEntity p = e.getWhoClicked();
#

do I have to use HumanEntity? back in 1.8.9 I would usually be using "Player"

nimble stump
#

It’s the “true” at the end

#

You don’t need to force it anymore since they can have multiple effects of the same type

grave narwhal
#

Ohhhhhh, I see

nimble stump
#

So that boolean overload is deprecated

#

Also just a warning, that looks like if their click is removing one of the pieces of leather armor it will still give the effect

grave narwhal
#

Yea, I was actually quite worried about that.

#

I'm not sure how to make it so that the effect is constantly given

#

I was thinking of making it so the effect is given every time a PlayerMoveEvent is activated, but wouldn't that lag the server if players are moving 24/7?

opal bay
#

I mean it could, I suggest only editing the items if they don't contain the effect

crimson sandal
#

Oh man, why is there no DoubleChest InventoryType 😦

nimble stump
#

There’s lots of different things you could do

#

You could do it in a runnable, you could check what they’re clicking

frigid ember
#

???

nimble stump
#

If they’re clicking the armor piece without holding another armor piece then remove the effect

frigid ember
#

damnit

nimble stump
#

@crimson sandal it’s just a chest with a larger number of slots

nimble stump
#

A chest inventory can have a multiple of 9 slots between 1 row and the full double chest

crimson sandal
#

I know, I'm just trying to create a temporary Inventory and I was just creating an inventory using the size of the target inventory, but some inventories like hoppers etc are smaller than 9

nimble stump
#

Why don’t you just check the type then

crimson sandal
#

Ahh yeah, custom inventories of different sizes are always the CHEST type then?

nimble stump
#

Yup

crimson sandal
#

Nice

grave narwhal
#

Also

#

actually nvm

subtle blade
#

p.getInventory().getHelmet().getType()
I smell a null pointer exception from here

tiny dagger
#

me too lol

grave narwhal
#

I smell a null pointer exception from here
@subtle blade your senses are correct

subtle blade
#

The various armour-fetching methods return null if they don't have said armour piece

#

Also, please create a variable for player.getInventory() ;P

grave narwhal
#

true

subtle blade
#

Also, the deprecation notice should be listened to for addPotionEffect()

#

That force boolean is unnecessary in 1.15.2

grave narwhal
#

Yeah

#

still working it out. I usually play on 1.8.9 because that's the version a lot of the pvp servers are hosted on and I like to PVP

#

so I would usually work with spigot 1.8.9

spring nexus
#

Is there something new added in 1.16 that uses \n in items lores for something? If I add a string to the lore list that has \n it just removes it or something.
It happens when I use more than one \n or maybe not Idk. It's really confusing.

tawny gale
#

Je cherche un développeur Java minecraft compétent pour un plugin assez complexe sur un serveur Faction Commande urgente, les trolls veuillez vous abstenir svp, merci d'avance ! (french language)

pastel condor
#

English please

dusty topaz
#

How can you find a biome

#

closest to a player, preferably

subtle blade
#

He wants to hire a plugin developer

#

?services @tawny gale

worldly heathBOT
burnt pivot
#

What type of error/plugin would be causing a error like this "[15:26:01] [Server thread/ERROR]: No key position_predicate in MapLike[{location_predicate:{predicate_type:"minecraft:always_true"},output_state:{Properties:{age:"0"},Name:"minecraft:melon_stem"},input_predicate:{predicate_type:"minecraft:random_block_match",probability:0.1f,block:"minecraft:wheat"}}]; No key position_predicate in MapLike[{location_predicate:{predicate_type:"minecraft:always_true"},output_state:{Properties:{age:"0"},Name:"minecraft:beetroots"},input_predicate:{predicate_type:"minecraft:random_block_match",probability:0.2f,block:"minecraft:wheat"}}]"

#

I slightly suspect dynmap but I'm not sure if that would be the case

rare prairie
#

that happens for me too, try to use --forceUpgrade to your world, if this not helps, try to re-generate your world

royal spade
#

Entities aren't going through Nether Portal, what have I done wrong? They bounce off the portal and villagers just walk through each side and don't get teleported

agile turret
#

Is there a way to have resource updates post in my discord server using webhooks of some sort?

subtle blade
#

Vanilla bug, Wizard

#

Crack3d, afaik, no

sleek ivy
#

is there a way to generate a world with higher ore spawn rates?

alpine flare
#

do you know a grade plugin in 1.16.1?

royal spade
#

grade?

alpine flare
#

rank

#

admin builder

lone fog
#

luckperms

alpine flare
#

it does not work on our server in 1.16.1, normal?

royal spade
#

Luckperms works in 1.16.1

fossil shoal
#

If the page says that it supports 1.16.1, then it is not normal and you should contact the developer

alpine flare
#

OK I try again I keep you posted

fossil shoal
#

Otherwise, you have to wait. Anyway, running a production server on a newly released version is not a good idea

frigid ember
#

why isn't formatting in my motd working?

ashen dove
#

How do you do it?

frigid ember
#

\u00a76Gameplay \u00a7r-\u00a7b 1.16.1+\u00a7r\n\u00a7cYes, we dispense terrible medication

burnt pivot
#

thanks @subtle blade for confirming

steady osprey
#

which long parameter in new BukkitRunnable(){}.runTaskTimer(plugin, long, long) is the cooldown between each run

steady osprey
#

thank you

dreamy dawn
#

Can anyone help me out with a crash report please?

subtle blade
#

If you send one, sure

#

If it’s to do with ender pearls and end gateways I swear to god lol

dreamy dawn
#

It's not 😂

#

There's like 5 other crash reports of the same thing, it happens whenever like 50 ppl try to join at once

spiral siren
#

if I downgrade back to 1.15.2 after players have played, will corrupted chunks form

#

if they've placed blocks

dreamy dawn
#

afaik you won't be able to load the world on 1.15.2 if you already upgraded, did you make a backup of the world?

#

if so you could try that

spiral siren
#

alright

frigid ember
#

Would anyone here happen to know which plugin (if any) is spitting this out?

27.06 21:30:10 [Server] Server thread/ERROR No key position_predicate in MapLike[{location_predicate:{predicate_type:"minecraft:always_true"},output_state:{Name:"minecraft:mossy_cobblestone"},input_predicate:{predicate_type:"minecraft:random_block_match",probability:0.1f,block:"minecraft:cobblestone"}}]

I would like to assume it's the Dynmap plugin, but I'm not certain.

fossil shoal
#

Try temporarily removing Dynmap and see if it stays

frigid ember
#

Thank you for the response, I was intending poke around with that later when enough players log off.
For now, I was sorta hoping someone would know for certain.

#

I am two builds outdated for Spigot as well, so I thought that could be a potential cause. This will be updated at the same time as mentioned above.

subtle blade
#

Vanilla bug

urban stone
#

Hey, I'm new to coding in Java and I get some errors with my custom plugin, could I PM someone to try solve my issue, please?

subtle blade
#

Ask here

steady cedar
#

The help channel exists to help people with that sort of thing.

dreamy dawn
subtle blade
#

No, that was for Lue

urban stone
#

Alright then. What I want to do: When wither is spawned, it sends the message to player(s) which are near the spawned wither
Current code:

public class WitherListener implements Listener {
    @EventHandler
    public void onCreateSpawn(CreatureSpawnEvent event) {
        if (event.getEntity().getType() == EntityType.WITHER) {
            Entity e = event.getEntity();
            Location l = e.getLocation();

            Entity e = e.getNearbyEntities(l, 10, 10, 10);

            if (Entity(e) == EntityType.PLAYER) {
                Player p = event.getEntity();
                Bukkit.getPlayer(p).sendMessage("Wither will be despawned in 10 minutes");
            }
        }
    }
}
subtle blade
#

I don't see any plugin in your crash report there, Acorn, so I'd direct it to the JIRA

#

?jira

worldly heathBOT
frigid ember
subtle blade
#

if (Entity(e)) ?

frigid ember
#

Thank you, Choco.

subtle blade
#

Oh. getNearbyEntities() returns a Collection<Entity>, not just a single Entity

#

You can loop over those entities and send each a message

nimble stump
#

^

subtle blade
#

Might be a ? extends Entity, but you get the idea

dreamy dawn
#

alright, I'll report it to the jira

#

ty

subtle blade
urban stone
#

Mmh, will try to rewrite the last part to make it work, thank you

subtle blade
#

You're also declaring 2 local-scoped variables with the same name. Your IDE should be warning you about both of these things.

#

I often recommend naming your variables more fully. i.e. entity instead of e, or nearbyEntities

nimble stump
#

Better question

#

Are you using an IDE?

subtle blade
#

Heh. I suppose that's a good question too

nimble stump
#

Lol

crimson sandal
#

Anyone know an online resource of all the EntityEffects sounds so I can listen and choose appropriate ones? 🙂

tiny dagger
#

you can create one yourself

urban stone
#

Yea I am using IDE
So, like I have Location l and Entity e I can change the l / e to whatever I want, right?

subtle blade
#

As in, you want to know what sounds are played when an EntityEffect is sent, james?

tiny dagger
#

left click to switch right click to do something else with it like i dunno modifing the pitch

subtle blade
#

Yeah the names can be whatever, Nety, it's just better practice to name them something you could read more easily

broken silo
#

Hey, could you make the announcements channel followable?

subtle blade
#

If you have yourself an a, b, c, e, you're going to eventually forget what they are and make the code a lot more unreadable

#

We can't get partnered or verified, b9n. Discord doesn't verify mod software

crimson sandal
#

Yeah I just wanted to listen to them all individually, I suppose I could easily make one myself 😄

broken silo
#

smh they're losers, ty anyway :)

subtle blade
#

You can look at what each entity effect does on the protocol, james

tiny dagger
#

there are however cases where you can one char name stuff

subtle blade
tiny dagger
#

like i j k for loops

#

👀

#

x, y, z for coord points

frigid ember
#

@subtle blade any known reason console is spamming "Netty Epoll Server IO #2/ERROR java.lang.NullPointerException" every now and then since 1.16?

subtle blade
#

Gonna need a bit more than that

crimson sandal
#

Ohh I just realised it's probably all the "Sound"s I want to listen too