#help-archived

1 messages Β· Page 145 of 1

tribal granite
#

https://paste.md-5.net/reziwujesa.cs

Does anyone mind telling me why this doesn't work. I am new to Java and Spigot and I have been working on this project all day. Currently it works with the mainhand just fine but it refuses to work with the offhand. (I am running 1.15.2)

vagrant widget
#

?paste

worldly heathBOT
subtle blade
#

?bt

worldly heathBOT
subtle blade
#

?1.16

worldly heathBOT
#

Spigot and BungeeCord 1.16.1 are now available. Please see https://www.spigotmc.org/threads/447405/ for more information.
Reminder that BuildTools is the only supported means of obtaining the Spigot server jar.

tender quarry
#

how work bot

subtle blade
#

Those should be the two relevant links you need for 1.16

tender quarry
#

(I am running 1.15.2)

subtle blade
#

So what is it you need then? ;P

tender quarry
#

...me?

subtle blade
#

Yes πŸ˜„

tender quarry
#

Nothing?

subtle blade
#

o

#

you were running ?tutorial commands so I assumed lol

tender quarry
#

ltk_watermelon asking a question, was looking for an available command that sends a link to plugin development tutorials / java tutorials. I guess that kind of works.

subtle blade
#

oic, ic

#

?spd

#

fuck I tried lol

tender quarry
#

spd = spigot development?

subtle blade
#

plugin<

#

but yes

tribal granite
#

yay im the one having the problem with the plugin

subtle blade
#

Well step one! value.equals(null) is a no-go

#

You should check for nullability with == πŸ™‚

tender quarry
#

πŸ‘€

subtle blade
#

Otherwise you're invoking something on a null pointer. The very definition of an NPE

velvet halo
#

except if it is a string

subtle blade
#

Strings can still be null, friend ;P

inland oxide
#

anyone know of a way to install a jar from maven_central from the command line without specifying the jar and pom?

velvet halo
#

That is true

tender quarry
#

equals compares contents, == compares reference unless primitive

lone fog
#

Anything can be null

inland oxide
#

I'd like to just specify the group, artifact and version from the command line and install to the local repo

lone fog
#

Except primitives

tribal granite
#

okay i just changed it @subtle blade and i will see if it worked. thanks

#

update: it still doesnt work with the offhand.

tender quarry
#

link work for me

tribal granite
tender quarry
#

Well...that would've been helpful

#

Line 39

loud jasper
#

not sure if Spigot or essentials related but how can you stop private /msg from logging into the console?

neon epoch
#

poggers am i right

lone fog
#

I feel like || should be &&

tender quarry
#

@loud jasper clone, edit, compile

subtle blade
#

I think this is a better question for the forums, watermelon πŸ™‚ A bit of a longer-winded one that will require a bit more discussion

lone fog
#

You are checking if the item is not null or not air

tribal granite
#

ok. will throw up a post. thanks for the help @subtle blade and @tender quarry

lone fog
#

You probably want to check if it’s not null and not air

loud jasper
#

@tender quarry i have no idea what that means sorry lol

subtle blade
#

?spd

worldly heathBOT
subtle blade
#

πŸ˜„

neon epoch
#

@loud jasper spigot.yml under commands log = true >> log = false

tender quarry
#

Clone essentialsX from github, edit it to make it not log to console, then compile it into a jar file and use it.

subtle blade
#

When bot commands don't exist and make you look stupid, just add them in and pretend nobody saw

loud jasper
#

got ya thanks πŸ™‚

subtle blade
tribal granite
#

@lone fog from what i saw on the forums, someone said that it should be or since it can return as air or null

tender quarry
#

it should be && no?

tribal granite
#

pretty sure depending on the version

tender quarry
#

uh logic is logic. it doesn't change per version.

tribal granite
#

i can try it out and see. second.

lone fog
#

Yeah sometimes it may be either one

#

But you want to make sure it’s neither of them

tender quarry
#

if something is not null and it's not air = something that is something but not air

loud jasper
#

@neon epoch wont that stop ALL commands from logging tho and not just /msg ?

tender quarry
#

That's why I suggested clone, edit, compile ^^

loud jasper
#

lol thanks

tribal granite
#

still doesnt work. the error is on the if statement where it checks if it has lore. (changes depending on which hand you are placing the block with)

tender quarry
#

so check if it has lore using ItemStack#hasLore

tribal granite
#

i did

tender quarry
#

then the itemstack must be null

#

or whatever is being accessed

oak sluice
#

Anyone know what might be causing player health to set to full every second? I cant PvP cause health resets to full constantly

tender quarry
#

WorldGuard @oak sluice ?

shut quest
#

Does anyone knows how to build Residence plugin? I tried to contact Zrips (Maintainer of this plugin + CMI) but seems like he lost interest in Residence.

tender quarry
#

mvn clean install?

oak sluice
#

yeah I've been looking. Invincibility is off for my regions though

tribal granite
#

okay i think i understand.

lone fog
#

Heal delay and heal amount?

oak sluice
#

nope just turned those off in case

#

and same result

dusty reef
#

Hi, after updating from 1.15.2 to the newest release it seems like spigot is ignoring the world-container setting in bukkit.yml and in stead of using my old world just creating new world folders inside the server directory. Maybe something else is happening here and I'm making a dumb assumption... Does anyone know a solution?

fleet crane
#

use --world-container as a CLI flag

#

Im surprised that option was used, it was never in the default bukkit.yml

dusty reef
#

Sigh i tried googling this but google didnt show me a single page containing "1.16"

#

Will try thanks :)

nocturne glen
#

anyone else using LuckPerms and having trouble with rank colors?

viral palm
#

Der, I don't know if I did something wrong, or if this is somethign that I should make a bug report about on the website. But the bukkit.yml doesn;t generate an 'autosave' line for me

fleet crane
#

its in the ticks-per section

viral palm
#

I must have done something wrong. tyty

green folio
#

Hi, I've submitted a Spigot CLA yesterday but have not yet received access to Stash. I've also asked on #spigot-dev with no response. Can anyone here please help? Thanks in advance

subtle blade
#

They're processed manually πŸ™‚ Not sure on the timeline though. I think it's mostly just whenever cindy gets around to it

green folio
#

ah, that makes sense. I read that I should ask on irc after 24h so that's what I did

#

thanks!

raw plover
#

anyone know if world guard is working for 1.16.1?

lone fog
#

Should be

raw plover
#

the same update as 1.15? i dont see a newer version quite yet

pastel condor
#

worldguard is working

#

on 1.16.1

lone fog
#

Worldedit has a dev build as well

pastel condor
#

I've tested it myself

raw plover
#

kk ty

pastel condor
#

yup np

pale willow
#

sorry if this is a dumb question, i'm just curious as to why the build tools can't use system wide installed git binaries?

#

i.e. i have git for windows installed, but it still chose to install git portable or whatever

wanton delta
#

hold up, i swear i just had to use Β§#Β§aΒ§bΒ§cΒ§dΒ§eΒ§f for scoreboard team prefixes but now... it... is normal again?

#

nvm now none of them work

frigid ember
fleet crane
#

pretty sure its a vanilla thing when using flat worlds

#

its harmless afaik

#

I dont think they ever test the server

#

all sorts of warningsg pop up all the time

lone fog
#

But single player is the server duh...

#

Did they fix handleDisconnect being called twice when kicked

wanton delta
#

does team.setPrefix even work with colors now? or is it exclusively team.setColor now?

frigid ember
#

Has anyone encountered players randomly not being able to pick up items? Particularly in the nether? The fix is opening a chest or loading a new dimension. I have not been able to reliably reproduce it

lone fog
#

I think a few people did

#

It has to be some kind of plugin issue

frigid ember
#

It probably is, I just can't test what plugin is causing it unless I figure out how to reproduce it. I've also heard it was happening to some spigot servers in 1.15.2

wanton delta
#

anyone know whats goin on here, this happens when trying to load older worlds (like 1.15)

#

eh

#

Looks like any world older than 1.15 breaks

fleet crane
#

please dont cut off the error

spring nexus
#

Why does Player#getAttribute(Attribute.GENERIC_MAX_HEALTH) return null 1.16?

fleet crane
#

because youre outdated

spring nexus
#

Yeah, but why does it do that? Is there an alternative?

fleet crane
#

sigh

lone fog
#

Yeah, update spigot

spring nexus
#

Oh you mean it's a bug?

#

Oh okay, thanks.

frank pelican
#

So, as you all know, I have the Issue with Scoreboards. So far so good. Joining my lobbyserver is working well. Scoreboard will be displayed properly. I joined another spigot server and it always returned me this: https://prnt.sc/t6nclj -> on my localhost bungeenetwork I wroten basically just a scoreboard plugin and runs on the lobbyserver. the second server doesn't have it. So I don't see a scoreboard on server2. But if I change back to lobby, I get kicked for the same error above.

BungeeCord is telling me this: https://prnt.sc/t6ndn1

Can now help me anyone, because it's for sure not a problem on my side. ( I hope)

Lightshot

Captured with Lightshot

Lightshot

Captured with Lightshot

fleet crane
#

update bungee

#

this is starting to get on my nerves now

lone fog
#

I suggest large, red chat messages

frank pelican
#

I downloaded me the latest bungee from yesterday πŸ˜… or is there a newer build now? πŸ˜… and sorry for annoying you, md_5 notlikethis

crisp widget
#

There was one literally like 4 hours ago lmao

frank pelican
#

I saw it on jenkins

#

now it works

terse schooner
#

Could someone help me with a very simple issue? I'm a bit of a scrub, please don't make fun of me lol

#

How do I update my world to 1.16?

#

with spigot 1.16.1 ofc

fleet crane
#

just change the server jar

inland oxide
#

?update bungee

#

oh, maybe we need some pre-defined responses

terse schooner
zealous lynx
#

what does
[Server thread/WARN]: Unable to resolve BlockEntity for ItemStack: minecraft:beehive
mean? console spammed this a bunch when i shut my test server down

terse schooner
#

I get that over and over again, then it just never starts

tranquil yarrow
#

is the weird max health attribute stuff known/fixed in the past 16 builds? if not can provide more info

fleet crane
#

yes

#

ffs just updatew

inland oxide
#

perhaps we can put all the standard responses on a bingo card and have some fun with this?

fleet crane
#

me next time someone asks about a fixed bug

zealous lynx
#

who me? sorry i thought i did something wrong upgrading

fleet crane
#

No, vku

#

I'm not sure about the beehive issue, I saw it on spigotcraft also but idk how to reproduce

tranquil yarrow
#

buildtools is taxing for my shitbox so asked before building a new D:

zealous lynx
#

ok

lone fog
#

Just refuse to start if the build is too old

#

I’m sure people will love it :p

fleet crane
#

it does

#

it was 3 days

#

now its a day

#

1.17 Im gonna make it 6 hours or something

#

it happens without fail each release

inland oxide
#

have them enter in the commit hash of the latest before chatting in channel

#

nvm, nix that idea

pastel condor
inland oxide
#

are you shutting down with stop?

pastel condor
#

yes

fleet crane
#

dunno never seen that

pastel condor
#

should I give more information, like plugins, server log etc.?

fleet crane
#

needs a way to reproduce

inland oxide
#

is that vanilla behavior the threaded storage?

fleet crane
#

you can try enabling debug in server.properties

pastel condor
#

okay, I'll do that right now

fleet crane
#

@inland oxide assume he's talking about the noe down the bottom

real fjord
inland oxide
#

right

pastel condor
#

old bug @real fjord

#

try updating

real fjord
#

Cool, thanks a ton

pastel condor
#

yup np

inland oxide
#

maybe the pin should mention something like please make sure you have tested on latest build

terse schooner
#

Sorry I think my question from earlier was unclear. I know how to update my SERVER to spigot 1.16, but it has an issue running the world files themselves, they're 1.15.2 world files and I want to know how to update them. I get this error https://pastebin.com/q3wxNfYA

inland oxide
#

Just copy and paste the common troubleshooting process into the channel then pin it.

fleet crane
#

its technically a warning not an error and itss a vanilla bug

#

your server will still run just fine

#

though I cant speak as to whether there is long term damage

pastel condor
#

?past

#

?paste

worldly heathBOT
pastel condor
#

it seems to timeout at the end

#

this time around

fleet crane
#

you should increase your timeout time

pastel condor
#

ah okay

fleet crane
#

but also the watchdof shouldnt kick in if /stop has been called

pastel condor
#

looks like it's caused by a plugin, but this same error happened before I had that plugin installed

terse schooner
#

I can't tell if it's just lag from the errors or what but I gave it like a solid 15 minutes and the server dies every time

fleet crane
#

no you can see that the server is still trying to save when the watchdog kills it

pastel condor
#

ah

fleet crane
#

[19:51:21] [Spigot Watchdog Thread/ERROR]: Current Thread: IO-Worker-14

pastel condor
#

I'll increase the timeout, thanks

candid prawn
#

@fleet crane I found this bug where...naw, just kidding dude. :p

pastel condor
#

but whats odd, is I used /stop

coarse solar
#

@fleet crane uhh... my bungeecord has a problem with 1.16

#

why?

pastel condor
#
[19:50:10] [Server thread/INFO]: Stopping server```
fleet crane
#

so turns out in 1.15 we did make the watchdog continue even on /stop because things were hanging the server on stop

pastel condor
#

ah okay

vagrant widget
#

@coarse solar don’t ping md

fleet crane
#

maybe a compromise is to allow double time on /stop

#

but for now Id judt increase your timeout time so it doesnt kill your server while its still saving

pastel condor
#

yeah, sounds better

#

kk

fleet crane
#

though 60s or whatever is a long time to save

pastel condor
#

yeah, it is really slow

fleet crane
#

make sure you have an ssd and actually have saving enabled

pastel condor
#

I have a hard drive 😦

fleet crane
#

ie didnt run /save-off or change ticks-per.autosave

pastel condor
#

but the read/write isn't that bad iirc

candid prawn
#

No M.2 drive? You need top end specs to play MC!

frigid ember
#

@coarse solar logs?

pastel condor
#

oh maybe /save-off was toggled

#

I'll look into that

fleet crane
#

No M.2 drive? You need top end specs to play MC!
@candid prawn you do, thats the sad thing

#

mojang still doesnt seem to understand their playerbase is 8 year olds that dont have the latest gaming pc

pastel condor
#

just increased timeout time to 120, I'll see if that helps

lofty meadow
#

Hello! Why so ?

*** Please download a new build as per instructions from https://www.spigotmc.org/go/outdated-spigot ***
*** Server will start in 20 seconds ***```
#

When I start.bat

frigid ember
#

Update spigot ?:)

coarse solar
#

@coarse solar logs?
@frigid ember

13:50:08 [εš΄ι‡] Exception in thread "main" 
13:50:08 [εš΄ι‡] java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
13:50:08 [εš΄ι‡]     at net.md_5.bungee.conf.YamlConfig.getServers(YamlConfig.java:217)
13:50:08 [εš΄ι‡]     at net.md_5.bungee.conf.Configuration.load(Configuration.java:106)
13:50:08 [εš΄ι‡]     at net.md_5.bungee.BungeeCord.start(BungeeCord.java:267)
13:50:08 [εš΄ι‡]     at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:62)
13:50:08 [εš΄ι‡]     at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
pastel condor
#

check your config file

lofty meadow
#

I've

Update spigot ?:)
@frigid ember downloaded the latest of it.

pastel condor
#

maybe run buildtools again @lofty meadow

lofty meadow
#

Ok

#

I'll try

pastel condor
#

thats odd I still seem to get the npe

#

upon saving the last world

fleet crane
#

try making a server with only the last world?

pastel condor
#

okay. I will do that right now

frigid ember
#

@coarse solar delete the config and run the .jar and edit the new config

inland oxide
#

pom.xml in BungeeCord should probably set the maven-site-plugin to 3.7.1 in the build section to allow mvn site to build the javadocs

#

since the 3.3 version is referring to a version of doxia-site-renderer:1.4 that fails since it's missing the DocumentContent class

lofty meadow
#

Hello! how to connect to database?
I tried :

try {
  Class.forName("com.mysql.jdbc.Driver");
  Connection connection = DriverManager.getConnection("...");
}...```
It always error.
frigid ember
#

Connect what to a database ?:)

lofty meadow
#

My plugin

frigid ember
#

You need to ask the developer of that plugin how to set it up!:)

lofty meadow
#

Hmm, I want to connect it by my own plugin. I don't want/need other plugin.

coarse solar
#

@coarse solar delete the config and run the .jar and edit the new config
@frigid ember yes, but it works until i add the 1.16 server to the bungee

#

i tried

#

and

#

it only works without 1.16 server

quartz heron
#

what error you getting @lofty meadow

lofty meadow
#

Ok, wait, I will screenshot it

frigid ember
#

@coarse solar did you update bungeecord to the latest build ?

coarse solar
#

yes

#

oh, not the latest one... sorry

#

i download it yesturday, and apperenly there is a update 3 hr ago

frigid ember
#

Try that πŸ™‚ might help

coarse solar
#

ok

#

nope

#

didn't help

#

as soon as i add 1.16 to the config it brokes

lofty meadow
#

what error you getting @lofty meadow
@quartz heron Here ```java
Communications link failure due to underlying exception:

** BEGIN NESTED EXCEPTION **

java.net.ConnectException
MESSAGE: Connection refused: connect

STACKTRACE:

java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)```

quartz heron
#

communications link usually means you cant access the mysql server

coarse solar
#

Try that πŸ™‚ might help
@frigid ember nope

quartz heron
#

whats your connection string look like?

coarse solar
#
11:22:02 [εš΄ι‡] Exception in thread "main" 
11:22:02 [εš΄ι‡] java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
11:22:02 [εš΄ι‡]     at net.md_5.bungee.conf.YamlConfig.getServers(YamlConfig.java:217)
11:22:02 [εš΄ι‡]     at net.md_5.bungee.conf.Configuration.load(Configuration.java:106)
11:22:02 [εš΄ι‡]     at net.md_5.bungee.BungeeCord.start(BungeeCord.java:273)
11:22:02 [εš΄ι‡]     at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:62)
11:22:02 [εš΄ι‡]     at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
#

help!

lofty meadow
#

whats your connection string look like?
@quartz heron It is "jdbc:mysql://ip-address:3306/database", "username", "password"

quartz heron
#

you might need to append ?useSSL=false to the end of the connection string also

frigid ember
#

@coarse solar what you mean add 1.16 to the config?

lofty meadow
#

πŸ€”

coarse solar
#

ok, i have a server in 1.16.1

lofty meadow
#

Ok!

coarse solar
#

and i add it to the config, by entering
116:
address: localhost:28865
motd: '&1Just another BungeeCord - Forced Host'
restricted: false
and before i add this everything is fine, and after i add this, i got :

11:22:02 [εš΄ι‡] Exception in thread "main" 
11:22:02 [εš΄ι‡] java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
11:22:02 [εš΄ι‡]     at net.md_5.bungee.conf.YamlConfig.getServers(YamlConfig.java:217)
11:22:02 [εš΄ι‡]     at net.md_5.bungee.conf.Configuration.load(Configuration.java:106)
11:22:02 [εš΄ι‡]     at net.md_5.bungee.BungeeCord.start(BungeeCord.java:273)
11:22:02 [εš΄ι‡]     at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:62)
11:22:02 [εš΄ι‡]     at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
fleet crane
#

put '116' in quotes

quartz heron
#

and aside from that, make sure the server is up, make sure the port is open for external traffic

frigid ember
#

Indeed

coarse solar
#

oh

fleet crane
#

cant have the server name as all numbers without quotes

coarse solar
#

like this?
'116':
address: localhost:28865
motd: '&1Just another BungeeCord - Forced Host'
restricted: false

fleet crane
#

yes

coarse solar
#

ok, thanks

#

i'll try

wary spoke
#

can you help me md_5?

fleet crane
#

you posted some variables thats not a question

frigid ember
#

The way that color text is being handled is different in 1.16 if I'm not mistaken.

lofty meadow
#

maybe run buildtools again @lofty meadow
@pastel condor Solved, thank you!😊

fleet crane
#

Existing usage of coloured text works fine in 1.16

gaunt wadi
#

Is there a command to pause --forceUpgrade ?

vagrant widget
#

You use it once

#

And remove it

gaunt wadi
#

I know

vagrant widget
#

Idk what u mean by pause then

gaunt wadi
#

I have to shutdown my PC. I don't want to lose the progress on the chunks

#

it's 26% complete for 1.16.1

fleet crane
#

I think you'd be ok to just kill it tbh

#

it'll be a bit slower to start up again but not as slow as redoing it all

inland oxide
#

oh, so site isn't the javadocs

fleet crane
#

mvn -P dist package

#

Will generate docs

inland oxide
#

thx

inland oxide
#

do I need the javadocs for proxy, not sure why it's skipped.

deep lion
#

My server crashed and i'm not sure why, I have the crash log below if anyone would mind helping me out:

#

I'm unable to attach the file

inland oxide
#

?paste

worldly heathBOT
inland oxide
#

paste in there and press the save button, then copy the url to here

deep lion
#

Do you need more from above that in the logs?

fleet crane
#

UPDATE

#

HULK SMASH

deep lion
#

A plugin?

fleet crane
#

RAAAAAWWWR

deep lion
#

Or the jar itself?

fleet crane
#

Spigot

deep lion
#

Ah, thanks

inland oxide
#

I could have handled that

#

Hulk no fun - hulk take monkey banana.

dreamy dawn
#

is anyone else on 1.16.1 getting a server crash when an enderpearl is thrown through a gateway?


java.lang.ClassCastException: class net.minecraft.server.v1_16_R1.EntityEnderPearl cannot be cast to class net.minecraft.server.v1_16_R1.EntityPlayer (net.minecraft.server.v1_16_R1.EntityEnderPearl and net.minecraft.server.v1_16_R1.EntityPlayer are in unnamed module of loader 'app')
    at net.minecraft.server.v1_16_R1.TileEntityEndGateway.a(TileEntityEndGateway.java:160)
    at net.minecraft.server.v1_16_R1.EntityProjectile.tick(EntityProjectile.java:36)
    at net.minecraft.server.v1_16_R1.EntityEnderPearl.tick(EntityEnderPearl.java:93)
    at net.minecraft.server.v1_16_R1.WorldServer.entityJoinedWorld(WorldServer.java:659)
    at net.minecraft.server.v1_16_R1.World.a(World.java:751)
    at net.minecraft.server.v1_16_R1.WorldServer.doTick(WorldServer.java:394)
    at net.minecraft.server.v1_16_R1.MinecraftServer.b(MinecraftServer.java:1104)
    at net.minecraft.server.v1_16_R1.DedicatedServer.b(DedicatedServer.java:354)
    at net.minecraft.server.v1_16_R1.MinecraftServer.a(MinecraftServer.java:1007)
    at net.minecraft.server.v1_16_R1.MinecraftServer.v(MinecraftServer.java:846)
    at net.minecraft.server.v1_16_R1.MinecraftServer.lambda$0(MinecraftServer.java:164)
    at java.base/java.lang.Thread.run(Thread.java:834)```
inland oxide
#

update!

pastel condor
#

lmao enderperal bug

fleet crane
#

For kotlinsake

pastel condor
fleet crane
#

But a server with a new world is fine?

dreamy dawn
#

ty, updating now

fleet crane
#

It still kind of seems like your server is slow, but no server should be even close to that slow

#

I’d open a bug report with the world if you can

#

Might be something wrong with it

deep lion
#

Dumb question, but to update spigot do I have to completely replace the jar or is there a command I can do? I use apexmc as a host

fleet crane
#

Yes

#

And idk if your host has things to do that automatically

#

They might

pastel condor
#

it's because at the time of running that server, I was launching 3 other servers, and compiling a plugin.

fleet crane
#

Just repeat what you did to install it

pastel condor
#

Beng701 or me?

inland oxide
#

well, i got a coffee, so better go do that first...

gentle mountain
#

When will SPIGOT-5810 be fixed?

fleet crane
#

I dont think thats a bug

gentle mountain
#

So how do I judge if the player is on the ground?

frigid ember
#

there api

gentle mountain
#

player.isOnGround() it will become completely inaccurate because the entityplayer#move() method is invoked before PlayerMoveEvent is triggered, which will modify the ground state of the game player and is inaccurate.

frigid ember
#

wow

fleet crane
#

Move isn’t invoked before

#

getLocation in PlayerMoveEvent has always and still does return the OLD location

#

You’re asking for it to return the OLD location but the NEW onground status

#

Which would imo be a bug

#

Because their location could be in the air but onGround = true

gentle mountain
#

but I can use event.getFrom() and event.getTo()

lofty meadow
#

you might need to append ?useSSL=false to the end of the connection string also
@quartz heron Hey! it still doesn't work. What about at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)?

gentle mountain
#

to.ground = player.isOnGround, from.ground = previousGround

terse schooner
pastel condor
#

maybe check if the block below that location isn't air? @gentle mountain

real fjord
#

old bug @real fjord
@pastel condor Sorry Im just getting around to this now, it was the pearl bug. Do I just re-ruin buildtools for the updated one?

pastel condor
#

yeah

fleet crane
#

That message does not prevent your server starting

real fjord
#

Cool thanks!

fleet crane
#

Post the whole log

pastel condor
#

@real fjord java -jar BuildTools.jar --rev 1.16.1

#

it will give you an updated jar

real fjord
#

Nice, appreciate the help. That bug hurt hahaha

terse schooner
#

The weird thing is, the server starts, but it doesn't.. become connectable and console won't take commands

digital badge
#

Do the new hex codes work for setting team color for the Scoreboard Team class? I'm getting told it's not applicable and casting won't work

fleet crane
#

to.ground = player.isOnGround, from.ground = previousGround
@gentle mountain yet to = to, from = player.getLocation. It doesn’t make sense for half the event to be opposite to the other half

#

The onGround in the event seems of dubious value to me given the client can just spoof it to whatever it wants

gentle mountain
fierce briar
#

So what’s good Software for a Beginner at coding (to learn).

formal jacinth
#

well

#

each software is different

fierce briar
#

Just wondering.

fleet crane
#

@gentle mountain look 10 lines lower

formal jacinth
#

but spigot is java

fleet crane
#

It gets rolled back for the event call

formal jacinth
#

if you want to code plugins or modifications, java

gentle mountain
#

I know

formal jacinth
#

wait do you mean IDE @fierce briar ?

gentle mountain
#

but setLocation can't reset ground status

#

move() method can

fierce briar
#

Like Intelli forgot the name etc xD

formal jacinth
#

got it

fierce briar
#

A Plugin dev wanted me to take over, But Would have to learn first.

gentle mountain
#

see

formal jacinth
#

Lots of beginners use Eclipse, idk why. I find it kinda buggy and difficult to use with maven. I use IntelliJ and its very easy to use. NetBrains is also an option. Honestly, for most people, it's just preference

fleet crane
#

But I thought you were telling me the bug was that onGround was not updated before the event

#

Now you’re telling me it is updated

fierce briar
#

I like the IntelliJ style.

gentle mountain
#

yes, it's updated by server, and it's not accurate

#

The move() method will update the ground state according to the motion collision

fleet crane
#

The server is not accurate but unvalidated client input is?

fierce briar
#

A while back i heard it’s good to learn from .txt but I already know the .json a Little from my Point of view, But thanks on the info.

gentle mountain
#

But the client has already calculated the collision, so the server-side player cannot collide with the ground, so the ground state is always false

#

1.8 spigot also did not update the ground state before PlayerMoveEvent, but it also did not call the move() method before MoveEvent

quartz heron
#

@lofty meadow can you actually access the mysql server? is it running?

lofty meadow
#

Yes

quartz heron
#

and still getting a communications link failure

gentle mountain
#

this is 1.8 spigot:

lofty meadow
#

Yes

gentle mountain
quartz heron
#

can you show the code again?

candid prawn
#

Citizens2 plugin has already been updated as well. Gotta love this community! πŸ™‚

fleet crane
#

What about 1.8 is incorrect? Events in Spigot are always BEFORE the modification takes place

#

If the server state is already reflecting what will happen after the event, thats a bug

knotty cove
#

Anyone know when lightapi or bkcommonlib might get a update sorry if wrong thread

lofty meadow
#

can you show the code again?
@quartz heron Here it is :

    Class.forName("com.mysql.jdbc.Driver");
    DriverManager.registerDriver(new com.mysql.jdbc.Driver());
    Connection connection = DriverManager.getConnection("jdbc:mysql://ip-address:3306/database?useSSL=false", "username", "password");```
gentle mountain
#

in 1.8: from.ground = player.isOnGround

fleet crane
#

Location has no fromGround field so I’m not sure what you’re saying

gentle mountain
#

Or you can implement an API in PlayerMoveEvent to judge the ground

lofty meadow
#

And I have done ufw allow 3306/tcp from my vps

dusty topaz
#

how do you get vanilla fishing loot tables?

#

where does spigot pull it from

quartz heron
#

i cant see anything inherently wrong with the code.. if you're getting a communications link failure that indicates that your connection to the server isnt successful

#

does your mysql server allow external connections?

fierce briar
#

Fishing Loot tables can be found inside datapacks

#

Or the .jar xD

dusty topaz
#

i'm trying to reference it from the code

fierce briar
#

Ahh

dusty topaz
#

so any code-based way of doing it would be helpful

fierce briar
#

I’m replacing the Plugins, That Minecraft let you take over because datapacks.

#

Easier Update, Less broken servers.(Long run).

lofty meadow
#

i cant see anything inherently wrong with the code.. if you're getting a communications link failure that indicates that your connection to the server isnt successful
@quartz heron Ok, I'm trying to fix it now.

gentle mountain
#

It's really tiring to quibble with you, so how can I check if the player is on the ground in PlayerMoveEvent?

#

 @EventHandler
    public void onMove(PlayerMoveEvent event){
        Player player = event.getPlayer();
        boolean ground = player.isOnGround();// always "false" on 1.16
    }
dusty topaz
#

check if the block theyre on isn't air

fleet crane
#

That being always false is potentially a very different bug than spigot-5810 or whatever

dusty topaz
#

(or lava, water or whatever you constitute as ground)

#

i thought player#isOnGround was deprecated anyway

#

because it's unreliable or somethin

fleet crane
#

The assertion in spigot-5810 is that onGround should be updated with the new status before the event is called

#

I firmly reject that as wrong and not how any other part of the api is intended to work

gentle mountain
#

😩

fleet crane
#

If isOnGround is ALWAYS returning false then that is a very different bug

lofty meadow
#

@quartz heron How to get the exact IP of my computer, Windows ? Just make sure if I allow wrong IP when I search "my ip" on google.

gentle mountain
#

I said, because EntityPlayer#move() will update the ground status

dusty topaz
#

run ipconfig in cmd @lofty meadow

#

should give you an ipv4

lofty meadow
#

Thanks, I'll try

fleet crane
#

Are you suggesting move is wrong?

quartz heron
#

you using mysql-server or mariadb-server too sivann?

gentle mountain
#

You either don't call player#move before PlayerMoveEvent, or update the ground state before PlayerMoveEvent

#

"But the client has already calculated the collision, so the server-side player cannot collide with the ground, so the ground state is always false"

fleet crane
#

I don’t understand what you’re trying to say

frigid ember
#

lmao

fleet crane
#

But it does seem to me like move should only be called after the event

gentle mountain
#

😫

fleet crane
#

But again that’s also not the assertion being made in the ticket

frigid ember
#

But it does seem to me like move should only be called after the event
So it can be cancelled accordingly if requested?

fleet crane
#

Because removing the move call will still mean onGround returns the previous status

gentle mountain
#

The move() method will calculate the ground state through the collision between the player and the block, but the client has already calculated it, so the player will not collide with the ground, then the ground state will always be false

fleet crane
#

@frigid ember it currently rewinds it to allow cancellation bit it (seems) that may be slightly bugged

#

It shouldn’t matter what the client has calculated

#

Because the client can tell the server its calculating whatever it wants

gentle mountain
#

πŸ˜…

fleet crane
#

That’s a separate issue in anyway

gentle mountain
#

So how do you plan to solve this problem

frigid ember
#

lol

fleet crane
#

Which problem

#

You started by talking about 5810

#

Now you’re talking about a different issue

gentle mountain
#

This is the same problem

fleet crane
#

Its not

#

5810 very clearly says that the event sh already have the new onground status

#

That is fundamentally wrong

#

You’re telling me how the .move call is updating the onground status to a new value, which does indeed appear to be wrong

#

But is not wrong in a way that fixing it would fix the β€˜issue’ described in 5810

quartz heron
#

is there any API to set itemframes as invis, have had a poke at javadocs but cant see anything jumpin at me

fleet crane
#

@quartz heron yes it was added today

#

setVisible I think

quartz heron
#

it is too, thanks πŸ™‚

gentle mountain
#

So there are 3 solutions:

  1. Do not call the move() method before PlayerMoveEvent is triggered
  2. Force the player's ground state to be updated after calling the move() method
  3. Add isFromOnGround() and isToOnGround() methods directly in PlayerMoveEvent
frigid ember
#

Omfg πŸ˜‚

fleet crane
#

Can you explain how 1. Fixes the issue described in 5810 though?

#

I agree that change #1 should be made

#

But I don’t see how it would make the users that reported 5810 happy

gentle mountain
#

then the best way is #3

fleet crane
#

Because onGround would still be showing the old value

dusty topaz
#

change #3 seems the most logical

fleet crane
#

You came here talking about 5810

#

But I fail to see how #1 is conneted to 5810 in any way

gentle mountain
#

I just want to solve the ground status issue

fleet crane
#

Aside from the factit affects the same method

inland oxide
#

@frigid ember thats an ipv6 address

gentle mountain
#

#1, so back to what 1.8 spigot did, it is feasible
#2, as you said, this is wrong
#3, this is the best way

#

You can add a new constructor in PlayerMoveEvent

inland oxide
#

@frigid ember no idea what multicraft uses FTP for

fleet crane
#

Why is onGround even set from a client packet with no validation

gentle mountain
#

because it's accurate for legit players

#

for hackers, some anticheat can detect it

fleet crane
#

But why does the server need it from the client

gentle mountain
#

because it's accurate

fleet crane
#

Accurate for what?

gentle mountain
#

Calculating ground state is a very complicated matter

#

On many special blocks, the collision box is very complicated and it is difficult to calculate the ground state

#

So directly using the client's ground state is the best choice

fleet crane
#

But the client is gonna be calculating it off the same information as the server is it not?

gentle mountain
#

yes, it's same, but as I said, the server does not actually calculate the ground state, because the client has already calculated

fleet crane
#

This is an aside, but surely it would be trivial to move it to the server and therefore prevent malicious clients from using it to screw with the server and plugins (nofall hacks?)

gentle mountain
#

you can read Entity#move(EnumMoveType enummovetype, Vec3D vec3d) method, the ground state is determined by the vertical collision and downward movement trend

#

As I said, most anticheat did that

fierce briar
#

Why not by Distance of X block? Also me ;3 I don’t know code.

#

Y*

gentle mountain
#

πŸ‘€

lofty meadow
#

@quartz heron What about this Client does not support authentication protocol requested by server; consider upgrading MySQL client ?

formal jacinth
#

what jaxk?

quartz heron
#

haven't personally hit that one before @lofty meadow, stackoverflow seems to suggest altering password... ALTER USER 'user' IDENTIFIED WITH mysql_native_password BY 'password' and then flush privileges;

lofty meadow
#

Done

#

By not solved

quartz heron
#

what ver of spigot you using out of curiosity

lofty meadow
#

Latest, I download the BuildTools #118

formal jacinth
#

no thanks

pastel arrow
#

"best anticheat" "over 1000 purchases" Having alot of purchases doesn't make it the best lol.

formal jacinth
#

^^

pastel arrow
#
if(player.isHacking()) {
    Bukkit.ban(player);
}
halcyon snow
#

it's just that simple huh

opal bay
#

yeah

#

but it should be:

if(player.isModded()){
   Bukkit.ban(player);
}```
wet matrix
#

is it normal for forceUpgrade to repeatedly show 0 / N chunks every second for 15min?
does it upgrade the entire region before showing progress or should I be concerned?

novel jetty
#

Is it time stamping?

wet matrix
#

an excerpt

pastel arrow
#

Out of my expertise... but if a plugin is able to check that a client joining the server contains mods why can't it check if the client is vanilla or not?

formal jacinth
#

my favorite was when I got a PM asking for help on an anti cheat plugin. I looked at the plugin and they were checking for fly by doing if(p.isFlying)

halcyon snow
#

Couldn't that client just say it has no mods?

novel jetty
#

Your world is a lot bigger than my 460143 chunks. But mine at least shows some progress even if it stays at 0%.

inland oxide
#

Did something change with plugin initialization?

#

Plugin is not initializing if load: STARTUP, but initializes if load: POSTWORLD

#

runs before orange cube transforms into big bad greenie...

#

oh, wait, was looking in the wrong spot for the messages... lol

steady osprey
#

so i have this in config.yml

Chances: 
  Coal: 40
  Iron: 20
  Gold: 20
  Diamond: 10
  Emerald: 10

and i want to make it so the higher the chances the higher the chance of getting that certain item if that makes sense, how would i do it

inland oxide
#

chance meaning random number

steady osprey
#

yeah

#

i suck at explaining stuff lol

inland oxide
#

so if those are percentages, then a random number 1 to 100 is less than that number means they get

steady osprey
#

wouldnt that select more than 1 if its low enough

inland oxide
#

random() is defined in java.lang.Math

dusk shard
#

Is it normal if you go from a vanilla 1.16.0 world to 1.16.1 spigot world, that the nether resets?

inland oxide
#

random can be 0 to 99 and then < 10 means 0-9 is satisfied so that would be 10%

#

and if < 100 then means any value from 0-99 will satisfy

#

random() will be between 0.0 and less than 1.0 so you will have to multiply by 100

steady osprey
#

im kind of lost

pastel arrow
#

Bad way to do it I know... but I usually put the items in a list when doing calculated items.

List<String> randomizer = new ArrayList<>();
for(String type : types) {
    int chance_of_item = 10;
    for(int chance = 0; chance <= chance_of_item; chance++;) {
        randomizer.add(type);
    }
}

Random random = new Random();
String random_From_List = randomizer.indexoOf(random.nextInt(randomizer.size()));
steady osprey
#

if the random number is low enough couldnt it choose multiple

formal jacinth
#

yes, quick question darth

#

just for my sake of mind

#

when a player breaks a block, are you directly saving into the config at that moment

steady osprey
#

no

inland oxide
#

random() returns a random number (double) anywhere from 0.0 to a number less than 1.0

formal jacinth
#

ok πŸ™‚

inland oxide
#

you multiply that by 100 you get a random number from 0.0 to less than 100.0

frigid ember
#

Bad way to do it I know... but I usually put the items in a list when doing calculated items.

List<String> randomizer = new ArrayList<>();
for(String type : types) {
    int chance_of_item = 10;
    for(int chance = 0; chance <= chance_of_item; chance++;) {
        randomizer.add(type);
    }
}

Random random = new Random();
String random_From_List = randomizer.indexoOf(random.nextInt(randomizer.size()));

@pastel arrow dude I used to do it the same way πŸ˜‚ kinda sucks but you know it's gonna work for sure!!!

pastel arrow
#

yeah lol

frigid ember
#

Then I learned math

#

And did it the proper way xd

steady osprey
#

@formal jacinth i really only save stuff into files on start and stop of plugin

inland oxide
#

and would need to test if that number is less than whatever chance value you load from your config

formal jacinth
#

perfect

steady osprey
#

@pastel arrow String random_From_List = randomizer.indexoOf(random.nextInt(randomizer.size()));
this supposed to be an int?

inland oxide
#

so lets say you assign a static Integer to a chance like if(fc.contains("Chances.Coal") coal_chance = fc.getInt("Chances.Coal");

#

and you have setup Random random = new Random();

#

then when you want to test you would do something like

#

if (random.nextInt(100) < coal_chance) ....

#

understand?

#

not u :p

frigid ember
#

lol

pastel arrow
#

String random_From_List = randomizer.indexoOf(random.nextInt(randomizer.size()));
this supposed to be an int?
May have missed a step was writing from memory xD

steady osprey
#

yeah i understand that but wouldnt that select multiple cause if its less than multiple ones it would select those right

inland oxide
#

sorry, my bad

#

should be like random()*100 < coal_chance

#

lemme look at the method

#

yeh, just random() * 100 < coal_chance

#

sorry, getting my java and lua mixed

#

dude.

#

?

pastel arrow
#

Leave about 8-16gb.

#

The rest should be fine to use for servers

#

Intel Xeon E5-1650v4 - 6c/ 12t - 3.6GHz/ 4GHz how many 1 gig serversdo you think it could be split into safely as a 64 gig dedi?

#

Should be fine yeah.

#

Should be fine I have never had that many servers online at the same time/

inland oxide
#

v1 or something, don't recall

#

1660

#

don't poke the monkey

#

I have no idea

#

As I mentioned, it depends on what spigot version, what server use (hub, survival, creative, mini-game), network bandwidth, plugins, etc.

pastel arrow
#

Might need more disk space though.

inland oxide
#

its best to run your own numbers to see what performance you get

#

anyway, this is not the forum to ask about server recommendations/performance

#

says at the top of the screen "Serious Spigot and BungeeCord Help"

#

anyway I don't have an answer. you will need to profile your performance to see what you can get.

#

I always figure 1 or 2 cores, 4GB min, maybe 6 now for 1.15.2/1.6.1 per server

#

Minigame might be fine for single core

#

meaning thread

#

But again memory will depend on plugins installed, and tick performance will depend on CPU vs how many plugins, etc.

#

too many variables to give a specific answer

frigid ember
#

I am trying to make a plugin where I wanna display some data on the wbe
with a gui
in java
do you know any gui api that can do this for 100% free?
Similar to the way LuckPerms does, but I wanna display text data.

#

With colors

#

I want temporary links geenrated to view this gui.

deep lion
#

I believe there may be a glitch with spigot, which causes custom named items (such as heads or selectable items in a gui) with italics instead of normal text

granite kiln
#

Hi!
Is spigot automatically updating itself upon restarts ?

fleet crane
#

no, but your host may be

#

and isnt custom named text always italics by default unless you add a reset code

frigid ember
#

my question

deep lion
#

Yeah, but the problem is that the reset code doesn't work

#

for item texts

wraith thicket
#

You'll most likely need to keep track beacons in loaded chunks (that are activated) and simply iterate over them.

granite kiln
#

Hey, does spigot update itself for a given version of minecraft ? Like if i install spigot on 1.16.1, will it automatically update to newer version of spigot upon restart or is there something to do ?

quartz trench
#

md answered you already, but to reiterate: spigot does not auto update

#

to update you must build again from build tools and replace the jar

frigid ember
#

Can i change version 1.15?

granite kiln
#

@quartz trench @fleet crane omg i'm so sorry, i forgot i asked... 30min ago πŸ˜‚ Super tired those days, sorry guys

quartz trench
#

Don't worry about it, just dont ping

#

that's worse lol

fallen field
#

Hey guys!

#

Does anyone know a plugin that does so and so

#

That's the GatherAndCraft plugin but the resource in unavailable

dusty topaz
#

When fishing, how is the loot is picked? Specifically interested in seeing where the loot table is loaded and also how it selects a random enchanted book

tacit trellis
#

how can I send a custom sound? not a vanilla sound

fair abyss
#

i was making a plugin like that over years ago

#

but without armorstands

#

i mean, like rust's gathering

fallen field
#

ah okay

#

do you know any similar plugin?

fair abyss
#

nope, where did you find this images?

quartz trench
#

Looks like custom plugins tbh

fair abyss
#

i remembered something

#

wynncraft was has that copper

#

@fallen field

#

but dont know others

#

hmm looks like different

#

but one of rpg server was has that copper

#

im sure

fallen field
#

Yeah that's wynncraft

#

Dang, I'll try to find something

fair abyss
#

when you find it, pls notice me πŸ˜…

#

i want to know too, it can help while playing custom modes with my friends

fallen field
#

yup, I'll let you know!

tribal granite
fair abyss
#

customrecipe was broken as i remember

#

its not your fault

tribal granite
#

like its a spigot issue or are you talking about some other plugin?

fair abyss
#

"Could not pass event PrepareItemCraftEvent to CustomRecipes v1.0.0"

#

the CustomRecipes plugin's issue

fleet crane
#
  • youre not running spigot
#

so dunno why you would ask for help here

fair abyss
#

and 1.0.0 isn't some old?

tribal granite
#

no i made this plugin from scratch and have been working on it all day. md_5 i just realized that i was using paper and i will go to their discord. sorry to bug

fair abyss
#

oh sorry, there was a plugin with same name.

tribal granite
#

np. thanks for the help c:

old solar
#

is HEALTH_BOOST broken or something

#

never expires in 1.16

fleet crane
#

never expires in what sense

#

does it appear on the screen?

#

or just the max health stays

old solar
#

max health stays

#

despite a 200 tick expiry

#

player.addPotionEffect(new PotionEffect(PotionEffectType.HEALTH_BOOST, 200, 0));

#

i might do a quick rollback to 1.15 to see

harsh anvil
#

Infinite life

#

Sounds nice

south shoal
#

I need help with a bungeecord server

fleet crane
#

I can confirm

#

open a bug report

old solar
#

o

#

good dont need to rollback

south shoal
#

well its more about how can't make my self a admin on the proxy

#

added my self with the groups list as admin

mellow wave
#

Do you have any permission plugins on the proxy that might interfere? and did you spell your name correctly?

old solar
#

pretty sure i made that on the wrong board

shell fog
#

How do you get a material's protocol id? idm if it's through nms. Tag me please

old solar
#

nvm

fleet crane
#

thanks

valid star
#

Are there any 1.16.1 catagorised plugins in spgot server? Or in.dev.bukkit site?

#

i mean Are there any 1.16.1 catagorised plugins in spgot site? Or in.dev.bukkit site?

fossil shoal
#

Is it possible to disable authentication requirement on GitHub Packages? I have googled and it doesn't seem so, but though I'd ask here.

shell fog
#

No, it's not

fleet crane
#

whats the auth requirement?

shell fog
#

you have to auth when connecting via maven

fossil shoal
#

You have to authentciate before downloading packages

fleet crane
#

lame

shell fog
#

indeed

fossil shoal
#

Yeah it is

#

What's the point of public packages then..?

shell fog
#

that's exactly why no one uses gh packages

#

there isn't any

#

they're only useful for private orgs

fossil shoal
#

It would be so nice if it were possible, I would use Actions to deploy and Packages as a repo, then the only thing I need to do in order to publish is git push

shell fog
#

you can't delete packages either

fossil shoal
#

First link is invalid @proven vale

halcyon snow
#

What would scoreboards do for that first video?

#

the multi line name?

abstract cradle
#

@fossil shoal - don't have a problem opening the link on mine

frigid ember
#

please help me

halcyon snow
#

if you can't click the first link, remove the ,? at the end of the link to fix it.

frigid ember
#

how to create spigot server?

torn robin
#

google

frigid ember
#

i trying i appcept eula

#

dont generate files

#

in start.bat

#

how to succes?

old solar
#

how long till i can pull that change with buildtools md5?

fleet crane
#

give it another 5 minutes

harsh anvil
#

@fossil shoal no you cant

#

you need auth for gh packages

#

one of the main reasons i dont use it

fleet crane
#

seems like the only reason for that is so msoft can track you tbh

frigid ember
#

i accepted the eula but i don't create the files i don't get charged just off the launch

fleet crane
#

post your log

#

?paste

worldly heathBOT
harsh anvil
#

definitely a part of why. I think it has to do with being able to track who's dep's are used where

frigid ember
#

wait

#

[11:16:30] [Server thread/INFO]: Starting minecraft server version 1.15.1
[11:16:30] [Server thread/INFO]: Loading properties
[11:16:30] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-2ee05fe-d31f05f (MC: 1.15.1) (Implementing API version 1.15.1-R0.1-SNAPSHOT)
[11:16:30] [Server thread/INFO]: Debug logging is disabled
[11:16:30] [Server thread/INFO]: Server Ping Player Sample Count: 12
[11:16:30] [Server thread/INFO]: Using 4 threads for Netty based IO
[11:16:30] [Server thread/INFO]: Default game type: SURVIVAL
[11:16:30] [Server thread/INFO]: Generating keypair
[11:16:31] [Server thread/INFO]: Starting Minecraft server on *:25565
[11:16:31] [Server thread/INFO]: Using default channel type
[11:16:31] [Server thread/WARN]: **** FAILED TO BIND TO PORT!
[11:16:31] [Server thread/WARN]: The exception was: java.net.BindException: Address already in use: bind
[11:16:31] [Server thread/WARN]: Perhaps a server is already running on that port?
[11:16:31] [Server thread/INFO]: Stopping server
[11:16:31] [Server thread/INFO]: Saving players
[11:16:31] [Server thread/INFO]: Saving worlds

#

and end

fleet crane
#

you already have a server running on that port

#

use task manager to kill all java

#

or just reboot your pc πŸ˜„

#

@old solar should be ok to update now

old solar
#

ok

frigid ember
#

thank you for very much

river cradle
#

Hi there, I'm struggling to update my local server to the latest version of Spigot. I'm trying to download the latest .jar file on https://getbukkit.org/download/spigot and replacing my old .jar file with it, but for some reason I'm still 31 versions behind... Is this not the way to go?

coral cipher
#

No.

#

Don't ever use getbukkit.

#

?bt

worldly heathBOT
coral cipher
#

Use this instead.

river cradle
#

Right... But running that creates a whole new server, right?

fleet crane
#

Does that site just update once on release and never again

#

No, it just downloads a jar for you

#

You’d think they’d automatically update frequently tbh

river cradle
#

Does that site just update once on release and never again
@fleet crane I have a feeling it does

fleet crane
#

😦

river cradle
#

So that site is actually unofficial?

fleet crane
#

Yes

rotund hemlock
#

does someone know how to make custom enchants

#

?

#

@everyone

ancient ridge
#

trying to ping everyone

river cradle
old solar
#

fix works good md5 good stuff

rotund hemlock
#

does someone know how to make custom enchants

rotund hemlock
#

does someone know how to make custom enchants

#

@everyone

#

@everyone @everyone

halcyon snow
#

someone already linked a video which should help you.

rotund hemlock
#

yea i watched it

#

i want to make life steal

#

or on hit u will heal

brave vector
#

do some event

rotund hemlock
#

is there onhit event

#

?

wraith thicket
#

EntityDamageEvent

wraith thicket
#

Or EntityDamageByEntityEvent

rotund hemlock
#

is enity like a player

wraith thicket
#

Yes ...

brave vector
#

you must check

rotund hemlock
#

ok

#

i ll try

brave vector
#

Player extends Entity soo

#

if (entity instanceof Player)

rotund hemlock
#

i want it to be a craft that has it on

#

i mean customcraft

rotund hemlock
#

that has this enchant on

brave vector
#

well this is new

#

check lore

rotund hemlock
#

Diamond Helmet (Upon hitting a player with sword or bow, gain Regen for 2.5 seconds, totals to 1 heart per hit. Regen does not chain)

#

this is the item i want to make

tidal mica
#

A question, with the 1.16 update, does spigot removed the player.onGround method/changed the player.onGround method mechanism?

tidal mica
#

oh s**********

#

my anticheat....

brave vector
#

well there is a lot of changes

#

just update your anti cheat from 1.13-1.15

#

make a new version from 1.16

tidal mica
#

naaa

#

i've an idea

brave vector
#

well i think this one more time changes everything

tidal mica
#

i have a packet listener that use reflection

brave vector
#

well great

tidal mica
#

so, if it works with 1.16 i can get flying packets

brave vector
#

or you should invoke method

tidal mica
#

and then get the onGround Value from there!

pastel condor
#

Or just get the players location, subtract one and check if the block at that location is air

torn robin
#

for anticheat purposes thats generally inaccurate

pastel condor
#

Oh yeah

#

Packet stuff in that case

#

I think

torn robin
#

packets can be spoofed by the client

#

its a doozy

pastel condor
#

😩

#

What a mess

torn robin
#

indeed

#

the isOnGround value is calculated serverside after 1.9 i believe

#

it was deprecated for a while

pastel condor
#

Ah I see

torn robin
#

Player#onGround* was deprecated

pastel condor
#

Yeah I think 1.16 removed it

torn robin
#

just changed it to isonground

abstract cradle
#

is there a way to wipe all datapacks?

torn robin
#

yes

#

minecraft has a datapack command last i checked

#

you can disable all of them with it

old solar
#

Anything change with how item lore is stored in 1.16?

I used to be able to do if(itemA.getItemMeta().getLore().equals(Arrays.asList(someArrayOfLore)){

}

#

going to output this side by side, weird it stopped working

torn robin
#

is it colored?

old solar
#

the text is yes

torn robin
#

i'd debug it out

#

it's probably something with the colors

pastel condor
#

Try removing all the colors

brave vector
#

striptColor

pastel condor
#

I think it’s like ChatColor.stripColor()

#

Yeah

brave vector
#

Item System didn't change

#

Only Block, Entity

old solar
#

Pretty weird though, it must be something I've done

brave vector
#

that all i found

old solar
#

oh well guess its time to get hands dirty

pastel condor
#

Well gl

fleet crane
#

Anything change with how item lore is stored in 1.16?

I used to be able to do if(itemA.getItemMeta().getLore().equals(Arrays.asList(someArrayOfLore)){

}
@old solar can we like not do this

old solar
#

its not ideal hey

fleet crane
#

It’s really bad

#

It’s basically impossible to allow hex (json) and have that work reliably

brave vector
#

wot 1.16 have a new Color system?

pastel condor
#

Yeah for full rgb

fleet crane
#

Given we now have the persistent item meta api I feel like more people will want colours than having that work

old solar
#

im guessing thats why it broke, something related to the hex colouring

brave vector
#

i will try new ChatColor system soon

rotund hemlock
#

how to i make a enity damage event ?

brave vector
#

do you know how to use Listener?

old solar
#

is ItemStack#equals overrided, or if i compare 2 different ItemStack objects with the same values will it return false

pastel condor
#

@rotund hemlock

brave vector
#

try ItemStack#isSimilar

old solar
#

ok

brave vector
#

.equals may broken

old solar
#

according to docs, same as equals but doesnt consider the amount

#

so its probably better in my case

rotund hemlock
#

how can i do If player hits someone with a bow or a sword it will heal him by 0,5 hearts and it is an armour

brave vector
#

check the event

rotund hemlock
#

Diamond Helmet (Upon hitting a player with sword or bow, gain Regen for 2.5 seconds, totals to 1 heart per hit. Regen does not chain)

brave vector
#

then give player health

rotund hemlock
#

how

#

getDamager

#

?

pastel condor
#

Spoon feeding be like

brave vector
#

lazy newbie programmer

old solar
#

damn, replaced like 5 lines of legacy code with 1 function

brave vector
#

great

fleet crane
#

Tbh idk if it will work

#

Colours are very finnicky

pastel condor
#

event.getDamager() returns attacker event.getDamage() returns injured player @rotund hemlock

fleet crane
#

Chat rather

old solar
#

So far so good with the isSimilar and comparing items

#

I used to check name, then lore

#

Worked since like 1.8.9 so i never thought twice about it

brave vector
#

I usually use isSimilar

coral sonnet
#

Hi everyone, i try to find a way to generate new UUID Int-Array in Java anyone have a solution for this ?

brave vector
#

#ffff00 should be &f&f&f&f&0&0?

old solar
#

int array of UUID?

coral sonnet
#

This UUID type is used for many UUID in Item like Player Head

brave vector
coral sonnet
#

Exact

#

But i can't fiond a way to turn UUID to Int-Array

brave vector
#

i don't even know it's exists

wraith thicket
brave vector
coral sonnet
#

Yes but how can i go to Most/Least to Int Array

wraith thicket
#

Did you even read what I said?

brave vector
#

^

coral sonnet
wraith thicket
#

Now bitshift 32 bits

steady island
#

would this be the channel to go to if my server started locking up after pre-generating a bit of a new nether and now locks up on startup, without plugins

brave vector
steady island
#

ye, assuming that doesn't just include dev support

brave vector
#

include all things related to spigot/bungeecord

#

but what is ur problem?

steady island
heavy violet
#

Is there a reason why CraftItemStack is missing .getHandle()?
Or has that been fixed and I should recompile?

steady island
#

I generated a bit of the nether, 1.16. after a few hours it locked up. I restarted the server and it instantly locked up

#

if I remove the nether world, it works again

brave vector
#

fresh server?

subtle blade
#

CraftItemStack has no handle

steady island
#

yup, no plugins

heavy violet
subtle blade
#

Not the same as other handles

#

It has static methods to clone/mirror stacks to/from NMS

heavy violet
#

I was able to use getHandle() in the past

brave vector
#

this is world issue

#

try to delete the world

subtle blade
#

What are you trying to do with an NMS item anyways

heavy violet
subtle blade
#

It should all be covered with Bukkit

heavy violet
#

Set the repairCost of an item

subtle blade
#

Do it in the event

heavy violet
#

Which isn't, to my knowledge

subtle blade
#

AnvilPrepareEvent iirc

heavy violet
#

I don't touch anvil

subtle blade
#

Something to that degree. I added that method

steady island
#

aight. I'll attempt to generate the nether again I suppose

heavy violet
#

I don't need to

subtle blade
#

You’re setting repair cost...

steady island
#

I'll be back if it locks up again

subtle blade
#

That’s done in an anvil...

brave vector
#

you should use Bukkit API

pastel condor
#

Is there by any chance an unloaded world object?

subtle blade
#

No

heavy violet
#

I am not touching anvil

subtle blade
#

Why? That’s literally your solution

#

There is a setRepairCost() method

#

I added it

umbral shoal
#

does anyone know/have/know where to get a good spartan anticheat config

heavy violet
#

When you repair an item, a value in the itemstack, repairCost, increments.

brave vector
#

depend on your country hacker/cheater

heavy violet
#

This makes it so it's more expensive in the future.

#

I need to essentially reset the item cost

subtle blade
#

So write a PR to add that to ItemMeta

#

Or create an issue on the JIRA idc

heavy violet
#

I was just curious about why getHandle() wasn't included

subtle blade
#

In the meantime, CraftItemStack.asBukkitMirror

wraith thicket
heavy violet
#

I would need asNMSCopy

subtle blade
#

copy? One of those

#

You get the ideA

heavy violet
#

Thank you, drives

#

I'm curious about why it's a repairable interface when all itemstacks have it; however, this solves my current situation. I still think .getHandle() should be re-added so as not to require creating a new instance of an NMS itemstack to change something, then using CraftItemStack to create another copy that is bukkit.

fleet crane
#

It wasn’t removed in 1.16 thats for sure

#

Maybe it was removed in another version idk

heavy violet
#

Ah. I used it in 1.15, but it might have been a feature from a fork. My bad if it was.

fleet crane
#

NMS usage is never a reason to change the server code

heavy violet
#

Isn't CraftItemStack created from an NMS itemstack?

#

Either way, thank you for helping me

fleet crane
#

Yes but a method would only be added if it was necessary to support the api

#

Not just because it makes bypassing the api easier

wraith thicket
#

I think we need the Bukkit#getCoolBeans method (PS: Sorry - just read the topic - this is only for serious things)

heavy violet
#

It was a feature from a fork. My bad.

#

Sorry for the trouble

coral sonnet
fleet crane
#

That code looks wrong

jagged cargo
#

agree

heavy violet
#

I made a mistake thinking Repairable was ItemMeta in the help above. Not my day.

#

Where can I put in a request for getRepairCost and setRepairCost to be added to CraftItemStack?

fleet crane
#
        long least = uuid.getMostSignificantBits();
        long most = uuid.getLeastSignificantBits();

        return new int[]{(int) (least >> 32), (int) least, (int) (most >> 32), (int) most};
    }```
#

thats the MC code

#

looks much more reasonable

pastel condor
#

Just wondering, does full rgb work on motds?

wraith thicket
#

I made a mistake thinking Repairable was ItemMeta in the help above. Not my day.
@heavy violet It's in the inventory.meta package so I'm fairly certain it'll apply to repairable items. You just need to do an instanceof check and cast

abstract cradle
#

for some reason i can fly in 1.16.1 spigot

#

in survival

heavy violet
#

Repairable isn't instanceof ItemMeta

wraith thicket
#

No

#

But certain ItemMeta can be

heavy violet
#

So there is an ItemMeta that uses Repairable?

wraith thicket
#

CraftItemMeta implements it

heavy violet
#

Oh, so ItemMeta should have the repaircost method?

wraith thicket
#

The CraftItemMeta implementation does, the ItemMeta interface does not

#

You just need to do an instanceof check and cast
Which brings me back to what I said originally

heavy violet
#

Isn't CraftItemMeta invisible?

wraith thicket
#

It's not that difficult... You just need to do an instanceof check and cast

heavy violet
#

Repairable seems to be for Inventories

wraith thicket
#

Then you cast again when setting it

#
ItemMeta meta = item.getItemMeta();
if (meta instanceof org.bukkit.inventory.meta.Repairable) {
    org.bukkit.inventory.meta.Repairable rep = (org.bukkit.inventory.meta.Repairable) meta;
    // change
    item.setItemMeta((ItemMeta) rep);
}
heavy violet
#

It's never an instance

wraith thicket
#

Obviously don't need to include the package - but left it there so you don't export a wrong one

#

It is.

heavy violet
#

item being a diamond_pickaxe

#

Never prints

wraith thicket
#

CraftMetaItem implements Repairable - it will always be an instance of it

#

Unless of course the item is air, in which case the meta will be null.

heavy violet
#

If it were null, it'd NPE or class cast

#

In this case, it's not making it past the instanceof check

wraith thicket
#

No it wouldn't. You can have an ItemStack with type AIR, but the ItemMeta then returns null. It won't produce an NPE, the condition will simply be false.

#

You can just add a debug message right before the if - i.e System.out.println("meta:" + item.getItemMeta());

heavy violet
#

I understand that it SHOULD work like that. I am mentioning that for no reason whatsoever

#

It's not

#

But it's getting past the stack in code