#help-archived

1 messages · Page 143 of 1

frigid ember
#

Just before nogui

proper wolf
#

Thanks

#

Never used it before either 🙂

obtuse glen
#

eh..

brave vector
#

--forceUpgrade only need for upgrade from old ver to new ver

frigid ember
#

Normally I would use the vanilla client to upgrade it, and then upload the world to the server. But, my rubbish upload speed would make that rather difficult with a 40GB world folder.

proper wolf
#

40GB!!?!?!!?

brave vector
#

set a bigger heap size may increease the speed

frigid ember
#

It's an old world.

#

Yeah, I have 10GB set.

brave vector
#

minecraft's word is infnity

proper wolf
#

That's almost the size of GTA

brave vector
#

so it can be 100GB or larger

proper wolf
#

it can be larger

brave vector
#

at the old version the size is 3M x 3M

proper wolf
#

2B2T's world is TB's

brave vector
#

now it's infinity

torn elk
#

I updated to 1.16.1, but when i start my server, when it loads all the plugins, the server just shut down's. Is there a fix for that?

proper wolf
#

Any errors

#

?paste

brave vector
#

?paste

worldly heathBOT
brave vector
#

use -forceUpgrade

proper wolf
#

paste them here

brave vector
#

i think it's chunk issue

proper wolf
#

@brave vector you owe me a soda

#

😉

torn elk
#

i did forceupgrade

proper wolf
#

Any errors?

brave vector
#

well just send us your server log

#

all the log

torn elk
#

how do i send it? i can't just upload notepad file here

brave vector
#

?paste

worldly heathBOT
proper wolf
#

If you wanna upload files you can ?verify

obtuse glen
#

Thanks again for all the help and continued support, development etc of spigot. md_5

proper wolf
#

However I would advise against that

brave vector
#

copy all your log, paste into the website, save it, and send us your link

torn elk
brave vector
#

i think AuthMe hook into EssentialsX failed

proper wolf
#
53:34] [Server thread/INFO]: [AntiVPN] Enabling AntiVPN v5.11.37
[12:53:35] [Server thread/INFO]: [AntiVPN] {c.z.h.HikariDataSource} AntiVPN-SQLite - Starting...
[12:53:35] [Server thread/INFO]: [AntiVPN] {c.z.h.HikariDataSource} AntiVPN-SQLite - Start completed.
[12:53:36] [Server thread/INFO]: [Anti-VPN] Plan was not found. Support for it has been disabled.
[12:53:36] [Server thread/INFO]: [Anti-VPN] PlaceholderAPI was not found. Support for it has been disabled.
[12:53:36] [Server thread/INFO]: [Anti-VPN] Enabled
[12:53:36] [Server thread/INFO]: [Anti-VPN] [Version 5.11.37] [2 Commands] [3 Events] [0 Tasks]
[12:53:36] [Server thread/INFO]: [AntiCurse] Enabling AntiCurse v3.2.1
tired gale
#

Hi, I use G-portal for my own server, I tried to update it to 1.16 but Spigot has no 1.16 version on G-portal available. Could someone help me because I also want Datapacks installed and the normal Minecraft has no datapack folder. ??

brave vector
#

use spigot

#

wait sorry it's spigot

torn elk
#

i am using spigot

proper wolf
#
Your server version is not compatible with this plugins version! Plugin will be disabled: v1_16 and server will shutdown
mental sleet
#

Hello, I don't know anything about coding, so i need my server to restart after stopping and the plugin that restarts the server uses command /restart, but it doesn't work https://pastebin.com/kvuLGub1

brave vector
#
53:34] [Server thread/INFO]: [AntiVPN] Enabling AntiVPN v5.11.37
[12:53:35] [Server thread/INFO]: [AntiVPN] {c.z.h.HikariDataSource} AntiVPN-SQLite - Starting...
[12:53:35] [Server thread/INFO]: [AntiVPN] {c.z.h.HikariDataSource} AntiVPN-SQLite - Start completed.
[12:53:36] [Server thread/INFO]: [Anti-VPN] Plan was not found. Support for it has been disabled.
[12:53:36] [Server thread/INFO]: [Anti-VPN] PlaceholderAPI was not found. Support for it has been disabled.
[12:53:36] [Server thread/INFO]: [Anti-VPN] Enabled
[12:53:36] [Server thread/INFO]: [Anti-VPN] [Version 5.11.37] [2 Commands] [3 Events] [0 Tasks]
[12:53:36] [Server thread/INFO]: [AntiCurse] Enabling AntiCurse v3.2.1

@proper wolf It doesn't an error

#

Hello, I don't know anything about coding, so i need my server to restart after stopping and the plugin that restarts the server uses command /restart, but it doesn't work https://pastebin.com/kvuLGub1
@mental sleet Spigot has restart command

proper wolf
#

EssentialsX also isn't enabled

[12:53:37] [Server thread/ERROR]: Error occurred while enabling Essentials v2.17.2.12 (Is it up to date?)
java.lang.NullPointerException: null
    at net.ess3.providers.ProviderFactory.getProvider(ProviderFactory.java:25) ~[?:?]
    at com.earth2me.essentials.Essentials.onEnable(Essentials.java:249) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[paper.jar:git-Spigot-758abbe-2b00831]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:351) ~[paper.jar:git-Spigot-758abbe-2b00831]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:480) ~[paper.jar:git-Spigot-758abbe-2b00831]
    at org.bukkit.craftbukkit.v1_16_R1.CraftServer.enablePlugin(CraftServer.java:488) ~[paper.jar:git-Spigot-758abbe-2b00831]
    at org.bukkit.craftbukkit.v1_16_R1.CraftServer.enablePlugins(CraftServer.java:402) ~[paper.jar:git-Spigot-758abbe-2b00831]
    at net.minecraft.server.v1_16_R1.MinecraftServer.loadWorld(MinecraftServer.java:436) ~[paper.jar:git-Spigot-758abbe-2b00831]
    at net.minecraft.server.v1_16_R1.DedicatedServer.init(DedicatedServer.java:219) ~[paper.jar:git-Spigot-758abbe-2b00831]
    at net.minecraft.server.v1_16_R1.MinecraftServer.v(MinecraftServer.java:808) ~[paper.jar:git-Spigot-758abbe-2b00831]
    at net.minecraft.server.v1_16_R1.MinecraftServer.lambda$0(MinecraftServer.java:164) ~[paper.jar:git-Spigot-758abbe-2b00831]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_251]
fleet crane
#

tbh the restart command sucks

brave vector
torn elk
#

@proper wolf i see it, thanks

mental sleet
#

What does it mean? xD

fleet crane
#

while true; do java -jar spigot.jar; sleep 1; done; + /stop is much better

harsh anvil
#

if i wanted to use the hex colors, do i need to shade the bungee api?

proper wolf
#
[paper.jar:git-Spigot-758abbe-2b00831]

use spigot

fleet crane
#

no, spigot includes the bungee api

proper wolf
#

at the end of the day

harsh anvil
#

alright great

proper wolf
#

not paper

brave vector
#

does paper have 1.16.1

proper wolf
#

I don't think so

harsh anvil
#

not yet

proper wolf
#

it doesn't

#

I don't know why it was saying paper

#

but it caught my eye

harsh anvil
#

either way, this isnt the place to ask about paper 😉

mental sleet
#

I don't understand anything what you just said xD, i don't understand coding

brave vector
#

i don't see any paper lol

tired gale
#

Hi, I use G-portal for my own server, I tried to update it to 1.16 but Spigot has no 1.16 version on G-portal available. Could someone help me because I also want Datapacks installed and the normal Minecraft has no datapack folder. ??

brave vector
#

/restart command succ

#

use restart starup script

mental sleet
#

How

brave vector
#

while true; do java -jar spigot.jar; sleep 1; done; + /stop is much better

proper wolf
#
[paper.jar:git-Spigot-758abbe-2b00831]

@brave vector

mental sleet
#

And where? xD

torn elk
#

But there's not a 1.16 version of essentials?

brave vector
#

starup .bat or .sh

tired gale
#

@frigid ember Is not available

proper wolf
#

Yes there is @torn elk

brave vector
#

essx doesn't have 1.16 ver yet

#

if you want

proper wolf
brave vector
#

wait

#

lol

torn elk
#

Thanks again @proper wolf

brave vector
tired gale
#

@frigid ember Thx

unique marten
#

With the new Spigot version 1.16.1 there are a few problems. The plugin runs on the 1.15. Are there reasons for the bugged chat.

https://prnt.sc/t66y4g

#

Is this normal

harsh anvil
#

what would be the best way to filter out hex from a string? eg: "this is a hex string #fffffff" regex ig?

brave vector
#

hex color has more color than ChatColor has

harsh anvil
#

u dont say

mental sleet
#

So I need to paste this: -jar spigot.jar; sleep 1; done; + /stop to the run.bat file?

brave vector
#

if you use linux

mental sleet
#

I use windows

brave vector
mental sleet
#

But after some time we will use Ubunto

brave vector
#

*Ubuntu

#

sleep command is working on .bat script i suppose so

mental sleet
#

Yeah, I spelled it wrong xD

brave vector
#

so
java -Xmx5G -Xms5G -jar spigot.jar; sleep 1; done;

mental sleet
#

And where are the RAM gbs?

fleet crane
#

@frigid ember yeah it should never take that long

#

what is your hardware

#

please dont say raspberry pi

mental sleet
#

Ok, thx

fleet crane
#

Id just try again

#

openjdk 11 is ffine

harsh anvil
#

if all else fails just try again till it works kappa

unique marten
#

Is the chat bugged when I use a 1.15 plugin in the 1.16??

fleet crane
#

it shouldnt be

unique marten
#

Like this

rapid folio
#

Try using a vanilla client

unique marten
#

Ok

#

Maybe BAC is bugged

mental sleet
#

java -Xmx5G -Xms5G -jar spigot.jar; sleep 1; done;
didn't work, it didn't do anything actually It didn't even open the CMD

brave vector
#
:start
java -Xmx5G -Xms5G -jar spigot.jar nogui;
timeout 10
goto start```
mental sleet
#

ok, i'll try

brave vector
#

delete everything

#

the lastest maped jar may broken

rapid folio
#

Is it allowed to publicly upload Spigot jars?

proper wolf
#

No

#

Hence why build tools is a thing

#

?bt

worldly heathBOT
brave vector
#

getbukkit

#

lol

proper wolf
#

wouldn't trust getbukkit

frigid ember
#

They are well known for malware.

brave vector
#

well i fork Spigot

proper wolf
#

don't mention paper

#

MD5 will be big mad

brave vector
#

well md_5 is the best guy

#

he handle CraftBukkit and Spigot

mental sleet
#

It worked!!! I Can't thank u enough dude, thx a Lot!

rapid folio
#

Is there a real problem between md_5 and Paper? Or are you joking?

scenic osprey
brave vector
#

well i think we shouldn't talk about this inhere

naive goblet
#

What error?

#

You need to run buildtools I believe

scenic osprey
#

just says dependency not found

brave vector
#

spigot repo doesn't have spigot jar (only spigot-api) you muse use buildtools

proper wolf
#

Paper is for Paper <

scenic osprey
#

so can't use nms with maven?

proper wolf
#

Spigot is Spigot <

brave vector
#

yes you can

#

but you must build

#

spigot using buildtools

#

it will add spigot into your local maven repo

#

mvn install

lusty egret
#

--forceUpgrade where do I add this arguement? Into my run.bat file which is what I use to launch the server?

obtuse glen
#

little bit of racism on the play spigot server i see.

#

before nogui rubus8

#

.jar --forceUpgrade nogui

proper wolf
#

So I still don't understand how exactly Chat hex Colours are used.

#

I use ChatColor.()

#

I figuredit out!

frigid ember
#

is the new release safe to use in prod?

brave vector
#

should backup first

frigid ember
#

I meant stable for a large server

brave vector
#

for me, i will wait 1.16.2

#

and all the plugin support 1.16

tiny dagger
#

is nms supported yet?

#

i doubt

proper wolf
#

dont think NMS is needed

brave vector
#

nms supported

#

vanilla is nms

tiny dagger
#

yes but

#

the changes tho

proper wolf
#

not updated yet

brave vector
inland ivy
#

Hi, I'm trying to import the repository but it keeps giving me a 403 error? Anyone else had issues with this

hardy cedar
#

?paste

worldly heathBOT
fleet crane
#

Import what?

hardy cedar
#

😦

inland ivy
#

I was using ivy which iirc should work?

fleet crane
#

You’re using java something on your pc but java 8 on mcph

frigid ember
#

Would anyone know a rank on kills plugin i have looked for 2 days ??

fleet crane
#

You need to set your pc to compile to java 8

hardy cedar
#

i have java 8 update 241

brave vector
#

set path variable to java 8

torn elk
#

Is residence plugin available for 1.16.1?

inland ivy
#

Wait I fixed it I was being really stupid and did ".../SNAPSHOT/..." instead of "...-SNAPSHOT/..."

frigid ember
#

Would anyone know a rank on kills plugin i have looked for 2 days ??

hardy cedar
#

set path variable to java 8
how?

crimson sandal
#

I’ve been MIA for a month or so what’s the deal with the 1.16 API, is it out yet to update my plugins? 🙂

frigid ember
#

Would anyone know a rank on kills plugin i have looked for 2 days ??

granite mesa
#

is there any event i can rely on to be called for when the server is abruptly stopped

tiny dagger
#

lol no

#

it just gets killed from the very root

#

you can detect it tho

#

by writing a file

granite mesa
#

yeah i don't know what i'm saying

tiny dagger
#

and deleting it when propely stoped

granite mesa
#

yeah

tiny dagger
#

so if the server starts and the file data exists you can at least know

granite mesa
#

that's not really the issue though

#

i might just do periodic backups

tiny dagger
#

oh

hollow crystal
#

Someone pls help, I just updated my server to 1.16.1 when I start It with my worlds and plugins from 1.15.2 it says "stopping server"

#

You want pic

#

Ok wait

young latch
#

Just built 1.16.1 fine and 1.15.2 so no issue here

hollow crystal
#

do you want it on md_5;s

#

do i need do delete them

#

yes

grand current
#

How does one use the forceupdate server argument?

#

Simply add it in the start.bat?

hollow crystal
#

no i doesnt

frigid ember
#

Will spigot 1.16.1 automatically update my server

hollow crystal
#

i only downloaded the lastest version of spigot server
software and run it on my folder

frigid ember
#

I have a spigot server, and I've seen that spigot 1.16.1 is out, but the server is still on 1.15.2 , will it update to 1.16.1 later, or do you have to do it manually

young latch
#

You still need to download the 1.16.1 to update it

hollow crystal
#

yes

frank pelican
#

https://prnt.sc/t68wh9 Does anyone know, how to fix this? Because the Objective lobby is just in the lobby but it happens if I want to connect to Survival, and this Objective name is different

lethal gorge
#

namespace conventions for plugins. is there a specific namespace i should use or do i just use a random one or what?

hollow crystal
#

i want all player data and buildings @frigid ember

#

ok

#

does anyone know how to have a server 1.13 to 1.16.1

fossil shoal
subtle blade
#

6 hours iirc

fossil shoal
#

oh :(
I guess I will need to wait for 6 hours to test..
Thanks Choco

crisp widget
#

@hollow crystal Look up ViaVersion

hollow crystal
#

link?

crisp widget
hard crane
#

yo does anyone know how to use unicode emojiis in 1.16? i tried to paste \😄 but it just gives me a box

hoary parcel
hollow crystal
#

@crisp widget youre my saver

#

i was near to close my server

fossil shoal
#

@fossil shoal its cached for 6 hours
thanks

hollow crystal
#

and pull out my server

#

i thought it was done

#

i needed to close

frank pelican
#

https://prnt.sc/t68wh9 Does anyone know, how to fix this? Because the Objective lobby is just in the lobby but it happens if I want to connect to Survival, and this Objective name is different

hollow crystal
#

i know but no one can play

rigid sluice
#

Hey,
I want to get the advancement title and description in my spigot plugin but I don't have see anything like that in advancement class. So how I can get it data ?

plucky egret
#

when i start my .bat file both the java client and the cmd client show up

crisp widget
#

For your server?

#

Did you add nogui?

frigid ember
#

how to check if something in an hashmap is broken before?

#

so a block

#

enumset*

#

by an hashmap

odd knoll
#

The only way I'd know is storing what has been broken then checking when you need.

plucky egret
#

nope do i just add it at the end or a certain point in the code

jade ibex
#

someone help me how upgdate minecraft to 1.16.1 ? cause mine is on 1.16 yet how i will play on 1.16.1 server ?

hard crane
#

click on installations and on the plus and then select newest

plucky egret
#

if i update a world from a normal server to spigot will that reset my nether/end

neat orbit
#

Anybody knows SilkSpawners? I think it has been disabled in one of my servers worlds. How can I get it functioning again?

#

Tag me if you can!

jade ibex
#

click on installations and on the plus and then select newest
@hard crane

ty for feedback it not works, i will re-install launcher from mojang website ty ¬¬

#

reinstalled and works now. its on 1.16.1

proper wolf
#

Is Citizens out for 1.16

high heart
#

Everytime someone trows an enderpreal trough the end gateway the server crashes

neat orbit
#

Anybody knows SilkSpawners? I think it has been disabled in one of my servers worlds. How can I get it functioning again?

frigid ember
#

How would I cancel an event if the blocks in an enumset get broken for a second time

       if (player.hasPermission("OreGilde.use")) {
           oresMined.put(player.getUniqueId(),oresMined.containsKey(player.getUniqueId()) ? oresMined.get(player.getUniqueId())+1  : 1);
       
           ThreadLocalRandom random = ThreadLocalRandom.current();
           final int chance = random.nextInt(101);
           
        if (oresMined.get(player.getUniqueId()) >= 1000) {
            if (chance >= 0 && chance <=80) {
                //do nothing
            } else if (chance >= 81 && chance <=96) {
                event.getPlayer().getWorld().dropItemNaturally(event.getBlock().getLocation(), new ItemStack(event.getBlock().getType(), 1, event.getBlock().getData()));
            } else if (chance >= 97 && chance <=100) {
                event.getPlayer().getWorld().dropItemNaturally(event.getBlock().getLocation(), new ItemStack(event.getBlock().getType(), 2, event.getBlock().getData()));
            }
    }```
This code should run for the first time breaking the ore
just each ore
but he shouldnt be able to place it again after he might get 1 extra and than break it again so 1 will be added to the hash
#
   private final EnumSet<Material> typesores = EnumSet.of(Material.DIAMOND_ORE, Material.EMERALD_ORE, Material.GOLD_ORE, Material.IRON_ORE, Material.COAL_ORE, Material.REDSTONE_ORE, Material.GLOWING_REDSTONE_ORE, Material.LAPIS_ORE);```
#

enumset for ores

#

Ill use e.setCancelled(true);
but what should be in the if statement and should I make a new hashmap to save all broken ores cause that would be a large map

tardy plume
#

Hello, i am new working with a MC server ... i got a 1.16 server and i could really do with some help on usermanagement. I got no plugins installed yet because i don't know wich one to use or how to use them. The only thing i know is that my friends that join the server can't break blocks .... yes i am noob 👍 .... would realy appreciate it if someome would help me out ... just DM me

frigid ember
#

spawnprotection

mellow wave
#

It's in server.properties

frigid ember
#

spawn-protection=16

#

regular protection

#

set to 0 or -1

tardy plume
#

first i had 1.15 serve and i tried that but that didn't work the only thing working was Op the players

frigid ember
#

Yes cuz that would override it

#

0 plugins installed?

tardy plume
#

yes

frigid ember
#

server.properties

#

in file manager

#

can't really be anything else since you have 0 plugins installed

mellow wave
#

Set it to 0 or -1 as Lazinq says then restart the server

frigid ember
#

^

tardy plume
#

so protected spawn size 0 or -1?

mellow wave
#

Yes

frigid ember
#

correct

#

-1 means disabled

#

0 would mean 0 blocks I would use -1

tardy plume
#

or does it have anything to do with whitelisting players?

frigid ember
#

Nope

tardy plume
#

ok

frigid ember
#

thats giving people access to join the server if whitelist is enabled

tardy plume
#

ok

frigid ember
#

got it working

#

?

tardy plume
#

restarting now ... can you please check for me? can i give you the serveradress in DM

frigid ember
#

no

#

sorry

tardy plume
#

ok

frigid ember
#

deop yourself

#

and op yourself after checking

tardy plume
#

ok i will do that, thx for the help

mellow wave
#

Yeah make a new map storing broken ores

#

@frigid ember

frigid ember
#

would be a large map xd

mellow wave
#

But you already seem to have a map tho why not use that?

mental girder
#

how can you flip a stair upside down? (without using org.bukkit.material.Stairs since it´s deprecated)

frigid ember
#

lol smart asf

#

stores each broken block xd

#

broken ore

subtle blade
#

BlockData for stairs, clanboy

#

Block.getBlockData(), cast accordingly

frigid ember
#

but @mellow wave how would I remove the ore out of the hashmap when its broken for the 2nd time?

#

well I mean

#

not let it store it for the 2nd time

mental girder
#

but how do I flip it?

frigid ember
#

if (block = brokenAgain) {
event.setCancelled(true);
}

#

kinda like this

hardy cedar
#

Can someone help me to set path variable to java 8?

frigid ember
#

not for you clanboy

#

the code

mental girder
#

@subtle blade ?

mellow wave
#

@hardy cedar what ide are you using?

frigid ember
#

@mellow wave but I would have to check if like if it is in the hashmap event.setCancelled right?

mellow wave
#

yes

frigid ember
#

ok ty

hardy cedar
#

@hardy cedar what ide are you using?
@mellow wave eclipse

frigid ember
#

Build path

#

on ur project

#

are there docs for making plugins?

#

Add libraries

#

and than uhmmm

mellow wave
frigid ember
#

JRE System Library @hardy cedar

crimson sandal
#

What's the best way to diff between the javadocs of each api version?

frigid ember
#

thanks @mellow wave

lean fiber
#

Hey I have a problem. I have a lobby that is in the air, y= 69. But, when I setworldspawn in there and someone joins or goes to the hub, they spawn at the same coordenates, but in the floor, so in y=11. Does anyone know how to solve this? Thanks

violet heron
#

does someone knows where/how to get the 1.16 api?

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.

subtle blade
#

Same as it has been since 1.8

violet heron
#

Thanks

lean fiber
#

Ah and the floor is made by barriers, because there isn't anything below it+

Hey I have a problem. I have a lobby that is in the air, y= 69. But, when I setworldspawn in there and someone joins or goes to the hub, they spawn at the same coordenates, but in the floor, so in y=11. Does anyone know how to solve this? Thanks
@lean fiber

frigid ember
#

Bearchef which plugin?

#

are you using for it?

#

multiverse-core?

lean fiber
#

multiverse-core?
@frigid ember yeah

frigid ember
#

mv setspawn per world

lean fiber
#

oh ok

frigid ember
#

so in ur lobby do mv setspawn

hardy cedar
river cradle
#

Hi there, whenever I'm trying to import a void world or create a void world with Multiverse, my server crashes... Does anyone know what this is about?

frigid ember
#

ahmed

#

follow the steps

#

Build path
on ur project
Add libraries
JRE System Library

#

than choose what you want

lean fiber
#

so in ur lobby do mv setspawn
@frigid ember Thank you so much, it works

frigid ember
#

no problem

lean fiber
#

Well, I have a small problem too XD

frigid ember
#

tell me

#

Hey, someone knows how to use the rgb support in plugins?
Can't find any infos

lean fiber
#

When I am in the lobby, the kit selector from my kitpvp world (the chest) is in the hotbar too. Any ideas on how to remove it from there?

frigid ember
#

you shouldnt use mv for kinda bungeecord

#

unless its a really small server

#

but you can do it ofc

#

Which plugin do you use for the selector

#

it has to support per-world

lean fiber
#

Well, for the kit selector?

Which plugin do you use for the selector
@frigid ember

#

I use the kitpvp plugin

lean fiber
#

yes, that one

#

srry

frigid ember
#

Don't think it supports per-world menu

#

but lemme checl

lean fiber
#

ok

frigid ember
#

Ask in their discord

#

a lot easier

lean fiber
#

ok

#

thanks

frigid ember
#

no problem

lean fiber
#

and I shouldn't use mv for this?

frigid ember
#

Well

#

you could ofc

#

but having multiple worlds as servers

#

won't handle too many players

lean fiber
#

Oh ok

frigid ember
#

99% of servers won't get too many players

#

^

#

Unless its a hub and kitpvp

#

doesnt really matter

#

and some gb

#

but if you have multiple worlds like 4-5 as gamemodes

#

on 1 server

#

it will be very laggy/crash

#

I have 10 on 1 server

#

and how many players on?

#

on a day

lean fiber
#

with mv?

I have 10 on 1 server
@frigid ember

frigid ember
#

yes probably

#

partially mv, but I've made my own world manager for reset purposes

my record is 18 online, I get up to 8 online a day usually

#

but I've tested it to work well with 30 online bots

#

at the same time 18 players online at different worlds

#

wont do very good

#

xd

#

how many RAM

#

only teleportation lag there is xd

#

2.5gb ram

#

or how much

lean fiber
#

so I should find another world manager? or another plugin?

frigid ember
#

thats not that much xd

#

for 10 'servers'

#

don't have a need for more

lean fiber
#

I am pretty new at this

frigid ember
#

no

#

Bearchef multiverse is for multiple worlds

#

it's a network, any laggier gamemode I put on a different server, these 10 are pretty lightweight

#

if you want to make a big network you should use BungeeCord which allows you to

#

add servers to each other

#

like

#

if you're making minigames only, they can fit in one same server pretty well as long as there aren't too many players / the gamemodes aren't too cpu intensive

but when it comes to creative/survival, better to separate them

#

You have a bungeecord as server, hub as server, gamemode 1 as server, 2 and so on and you link the servers together

river cradle
#

Hi there, whenever I try to load some sort of void world to my server (through Multiverse or just in general) my server crashes and I'm getting bucketloads of Failed to schedule load callback for chunk errors... Does anyone know how to fix this?

lean fiber
#

You have a bungeecord as server, hub as server, gamemode 1 as server, 2 and so on and you link the servers together
@frigid ember I see

frigid ember
#

but if you want to do it with friends and a small server with a couple of worlds as gamemodes you dont need bungeecord

#

cuz it isnt too cheap

unreal jackal
#

Hello! Is there a plugin that can/or is similar to my idea, of being able to reward players after they invited a friend to the server and that person acctually joins? @ me thank you very much in advance!

frigid ember
#

how would the server know the person invited the other player @unreal jackal :p

#

just saying those systems aren't very effective in minecraft community ^

lean fiber
#

but if you want to do it with friends and a small server with a couple of worlds as gamemodes you dont need bungeecord
@frigid ember and if I want to change it, is it very annoying? I mean, if I test my server without bungeecord to see how it goes and if it works, could I add bungeecord after that, or it doesn't work like that?

frigid ember
#

yes

#

it is very annoying, took me half year to solve basic problems, then year to solve things properly

#

a switch from single server to bungee ^

#

if you get all the plugins to the right server

lean fiber
#

oh god

frigid ember
#

and stop them from using per-world

#

so you would have to set the plugins up again

thick hollow
#

you can add bungeecord at any point. It's just something that connects your servers together

frigid ember
#

if you make everything with bungee in mind, then sure

#

other way you'll need to rethink your data structure and all

#

how will players send private messages to each other, how data will be shared between servers, etc.

lean fiber
#

Well, I didn't think about making everything with bungee in mind, so I have a problem

#

But, if it is possible, I will try

frigid ember
#

store as much data as you can in mysql

#

Its not too difficult

#

unless it's only useful for that single server

lean fiber
#

Ok

frigid ember
#

Download your server using filezilla

#

mysql is easy for bungeecord support

#

than upload the plugins to the right servers which were first per world

lean fiber
#

and it shouldn't mess up any maps or others right?

frigid ember
#

no

#

maps will be okay

#

maps are the worlds

#

Each server has a world

lean fiber
#

Ok yes

#

Perfect, thank you

frigid ember
#

no problem:D

crimson sandal
#

If you don't use anything from the latest API you should just build for the earliest API that will still build for your plugin right? So say I dont use anything added in the 1.5 or 1.6 API I should build for 1.4 so my plugin maintains compatibility from 1.4

quick finch
#

Generally, main plugin updates looking good. Before I start plugin-by-plugin isolation, does anyone know what causes 'No key position_predicate in MapLike' ?

royal topaz
#

in my 1.16.1 server attribute modifiers on items don't work as they should

#

opening your inventory will essentially delete the attribute modifier

#

only happens on the spigot server however

neat oxide
#

@crimson sandal yes but it's preferred to use separate modules if your gonna support older versions

#

But if you don't know use the oldest version you intend to support

gray plume
neat oxide
#

//fixlighting

gray plume
crimson sandal
#

But if you don't know use the oldest version you intend to support
@neat oxide If my codebase is exactly the same what would be the point in creating separate modules?

river cradle
#

Hi there, whenever I try to load some sort of void world to my server (through Multiverse or just in general) my server crashes and I'm getting bucketloads of Failed to schedule load callback for chunk errors... Does anyone know how to fix this?

neat oxide
#

@crimson sandal it enables you to make a primary structure and in the modules you can add version depending code it would also allow you to add certain futures 0er version

#

@river cradle seems the devs screwed up contact them

river cradle
#

You mean through creating an issue somewhere?

gray plume
snow blaze
#

Quick question, I'm trying to run essentialsX on a 1.16.1 spigot server and it keeps saying "an internal error occurred while attempting to perform this command". Not sure if this is just that essentials hasn't updated yet (which makes the most sense) or if it is something else. I hope it's something else because I'd love to update my sever for my friends.

lone summit
#

hello, does spigot not have a built in anti xray anymore? i cant seem to find it in the spigot.yml

small bobcat
#

isnt that only paper?

unreal jackal
#

@frigid ember same way voting knows a player voted and checks if the person is online or not

frigid ember
#

Thats a lot different

#

It would have to analyse how the player invited the other player

#

Via WhatsApp?

#

Via discord?

#

In real life?

unreal jackal
#

i would geuss via a link

#

the person fills the friends name in

keen compass
#

not sure if a plugin exists, however creating one isn't all that hard

unreal jackal
#

submits a invite, server will try to confirm it if the person is online

keen compass
#

essentially what you would do is generate some kind of id for every player that can be used for those that are invited

unreal jackal
#

i found a plugin thats relative to my question "INVITE | Referral system to get more players"

keen compass
#

in this manner you only have to check the id given to know which player to reward regardless of how they were invited

unreal jackal
#

true

#

its a possible thing, and im use many servers would straight want it

ionic hound
#

Does anyone know why bungee cord placeholders to show how many players are on a server don’t work?

neat pulsar
#

Hello!

#

I'm looking to buy a plugin, but we are using skirll to complete the ranslaction. If I include my name in the translations description, can the plugins owner give my account acess to the plugin?

sturdy whale
#

I've just updated my minecraft server from vanilla 1.16.1 to spigot 1.16.1, and emm, using the end gateway to go to the end city makes my game to crash
crash report:

#

damm, I cant share the crash report

odd knoll
#

They can manually give access, but if you're not paying with PayPal through Spigot, that's all down to you talking to the developer.

neat pulsar
#

All right, thanks! Let me send the money!

odd knoll
#

Make sure you've talked to the developer, not just randomly sending them money.

ashen stirrup
#

How do you understand what each method in NMS does?

odd knoll
#

Trawling over hours of obfuscated code.

ashen stirrup
#

;-;

odd knoll
#

NMS isn't made to be commonly used for plugins, so it might take a while, depends what you're doing.

frigid ember
#

how do i add extra fonts to spigot 1.16.1 since i want to add emojis

fossil shoal
#

I have published a package to github packages, it shows me what the maven dependency would look like, but what would the repository be?
I tried https://github.com/username/projectname/packages/ but it doesn't seem to work..
(Please ping me if you answer, so I will see it later)

frigid ember
#

ive heard it was possible to add ttf fonts but how do i do that?

subtle blade
#

Fonts are done through resource packs

#

It's a vanilla feature

#

Ctrl + F, "Fonts"

mild nebula
#

Hello! i can't seem to be able to recursively delete worlds - world folders in 1.16.1, Are all external worlds now counted as vanilla worlds? 🤔

#

I'm getting a Security exception, which is supposed to happen only when deleting vanilla worlds (yes there are no players in the world)

ashen stirrup
#

Is the default zombie health 20.0?

thick hollow
#

yes

ashen stirrup
#

Perfect

inland oxide
#

looks like YamlConfiguration.saveToString can fail if the config containers ItemStack such as Writable_Book with encoded data.

tardy plume
#

what is a good sleep plugin that works with 1.16?

neat pulsar
#

I did ☝️

inland oxide
#

Is there a recommended way to store an ItemStack into a database?

elder lark
#

Anyone know why the biome in f3 differs from the biome from world.getBiome(x,z)?
I assume this isnt intended behaviour?

manic jewel
#

If you are in the nether, biomes are now 3d, so that should need a y as a var now

elder lark
#

no, thats not it :/

#

i'm using 1.15.2 and im on the normal world

manic jewel
#

Oh, I'm not sure then

#

Might just be slightly different name formatting

elder lark
#

Thats not it either

#

because f3 only differs on some blocks from getBiome()

#

other blocks from the same biome get the correct results

frigid ember
#

I'm having villager biome problems as well

elder lark
#

setBiome isn't working correctly either, but it was thought to be fixed on spigot Jira, so i made a comment telling it isnt

floral bone
#

old 1.15 bungee do not work with

#

spigot 1.16

#

is that fixed?

elder lark
#

but it wasnt known that getBiome doenst work properly either

#

Could anyone help me get the biome via NMS for testing purposes?

#

I want to make sure the problem is getBiome and not the f3

#

stop that

mellow wave
#

Have patience

subtle blade
#

What is it you want to change

elder lark
#

You need to be patient, everyone who helps out at spigot does it for free and on their own time

subtle blade
slate dust
#

is the 1.16 spigot out for virtual gladiators?

subtle blade
#

Don't know what that is

slate dust
#

oh

subtle blade
#

If it's a plugin, ask them instead. We do not maintain all plugins on the platform

slate dust
#

its not a plugin

#

its what my server runs on

mellow wave
#

Then ask them

subtle blade
#

Soo... it's a fork...

#

This is Spigot. We have no knowledge of what a fork does. They're separate from us

slate dust
#

oh sorry

mellow wave
#

It's a host

slate dust
#

so is spigot 1.16 out then?

subtle blade
#

Yes

slate dust
#

oh awesome

subtle blade
#

It's a host? Then sure, ask them

#

Idk. Either way, not affiliated with us ;P

slate dust
#

so the host should have it relatively soon

#

thanks for the help 🙂

subtle blade
#

Yes

mellow wave
#

You can build it with buildtools and upload the jar manually

wanton delta
#

player.getAttribute(Attribute.GENERIC_ATTACK_SPEED) is... null?

#

wasnt in 1.15 unless im doing something dumb?

frigid ember
#

Thread got closed for a very valid problem lol

#

These mods don't know what they're doing. Some of them, anyway.

inland oxide
#

Well having a crappy code day.

subtle blade
#

Update, Martoph

#

Was a bug, was fixed last night

wanton delta
#

ah ok thanks

#

i was like... theres no way

inland oxide
#

Choco, can you help me with a bug?

wanton delta
#

@subtle blade just ran buildotols again, no update wait time, and its still not fixed :/

subtle blade
#

If you are, likely still a bug

wanton delta
#

-_- i literally just ran buildtools

subtle blade
#

but still 10 versions behind!

wanton delta
#

oh i see

subtle blade
#

Did you actually properly update your server? ;P

wanton delta
#

buildtools built 1.15 not 1.16 :P

subtle blade
#

That'd do it!

wanton delta
#

what do u mean properly update? 👀

#

not hotswap? lol

#

ah ok

#

it fix

subtle blade
#

No. I meant to make sure you copied over the jar lol. Some people run BuildTools and think their server magically updated

wanton delta
#

ah

#

lol

subtle blade
#

Gotta cover all levels of stupid, just in case!

wanton delta
#

im insulted you would assume that of me 🥺

subtle blade
#

I mean you did build 1.15.2 thinking you were building 1.16.1

frigid ember
#

@subtle blade Are you a mod here?

subtle blade
#

no

frigid ember
#

ah ok

#

Well, given you know your stuff regardless, can you take a look at that

#

Because that should not have been marked as closed. My issue is definitely a bug with spigot/bukkit

subtle blade
#

(i am a mod lol - just not on the jira)

frigid ember
#

ah

inland oxide
#

YamlConfiguration.saveToString() doesn't work in all cases.

subtle blade
#

This almost seems to me like a logic error somewhere. Commodore doesn't affect villager type

inland oxide
#

It's specifically failing on ItemStacks that contain books that have a lot of data.

frigid ember
#

Thats what I thought

#

But its not

subtle blade
#

They were not changed between 1.16 and the most recent version

inland oxide
#

This is occuring on 1.15.2

#

Just thought someone should know since the API has a function that relys on SnakeYAML that can fail.

#

In this case, in my plugin, since I'm using, its causing an exploit.

frigid ember
#

@subtle blade Like I said its not a logic error. It seems like that at the surface level, but I can assure you its not that. I inject Enum types into my constructor (for that same object actually, such as Material) and it works fine. The issue is only with the Type enum.

inland oxide
#

So, I'd suggest not using YamlConfiguration to convert ItemStacks to be stored in databases.

frigid ember
#

Perhaps this was an existing issue.

rapid folio
#

I'm trying to teleport a player on the PlayerRespawnEvent but I can't get it working. The same code works with the PlayerJoinEvent.

@EventHandler
    public void onRespawn(PlayerRespawnEvent event) {
        if(plugin.getConfig().getBoolean("spawn.tp_on_respawn")) {
            Log.info("test");
            Player player = event.getPlayer();
            player.sendMessage("Test");
            SpawnCMD.sendToSpawn(player);
        }
    }
inland oxide
#

did you look at that javadocs at all??

subtle blade
inland oxide
#

@rapid folio look at the javadocs

naive goblet
#

Else just do it explicitly with teleport?

rapid folio
#

Okay there is setRespawnLocation but why can't I teleport the player manual

naive goblet
#

Hmm I mean try delay a task?

inland oxide
#

I have no idea what SpawnCMD.sendToSpawn is.

naive goblet
#

^

frigid ember
#

hey Conclure

#

Mind checking this out for me?

naive goblet
#

Sup

frigid ember
#

This is not a logic error

#

Everyone has been quick to assume that it is one.

subtle blade
#

Okay there is setRespawnLocation but why can't I teleport the player manual
Because you're teleporting then the event is teleporting it

#

Use the event

frigid ember
#

But its not. This is simple object insantiation

subtle blade
#

There's a reason setRespawnLocation() exists, you should be using it

rapid folio
#

I have no idea what SpawnCMD.sendToSpawn is.
@inland oxide

public static void sendToSpawn(Player player) {
        double posX = plugin.getConfig().getDouble("spawn.x");
        double posY = plugin.getConfig().getDouble("spawn.y");
        double posZ = plugin.getConfig().getDouble("spawn.z");

        Location loc = new Location(player.getWorld(), posX, posY, posZ);
        player.teleport(loc);
        player.setFallDistance(0F);
    }
frigid ember
#

click on the pastebin

#

conclure, click on the pastebin

#

instead of just what I posted in the c ode. It looks like a logic error, but its not

rapid folio
#

There's a reason setRespawnLocation() exists, you should be using it
@subtle blade alright

graceful silo
#

so uhh guys i noticed the 1.16 build is missing chat colors on the console log, at least on windows, all except for one message from protocollib... like cyan shows up as ºb

naive goblet
#

@frigid ember idk yeah I mean it looks

#

But idk

potent creek
#

Is there a sure-fire way to check if the current thread is sync or not?

I need to return a Future<Long> in my currency plugin, which checks the player's inventory for money.

inland oxide
#

OK, I'll ask once again, hopefully someone will know

#

What is best way to serialize and put an ItemStack into a database?

potent creek
#

(and if I were to use BukkitScheduer.callSyncMethod​ on a sync thread, it'd cause a deadlock)

graceful silo
#

@inland oxide get the long ass string you would store in a file, but instead paste it into database

#

as a string

bold anchor
#

Itemstacks are serializable by default

potent creek
#

@inland oxide I have given up on that, even the string deletes a bunch of information

naive goblet
#

@inland oxide explain more

#

What specifically do you want in the ItemStack to be stored

#

Everything?

tall crystal
#

So uh I ran 1509 and the scoreboard is good now but the Bossbar now displays on other servers its not on

inland oxide
#

The method that I have been using, is to take the ItemStack and set it into a new YamlConfiguration object, then to use the saveToString() method from that to create a String

#

Then I would convert the String to a byte[]

potent creek
#

afaik that deletes all custom NBT

neat orbit
#

How can I tp to a cord without z? What command?

inland oxide
#

and store as a Blob

graceful silo
#

nah there's an easier way @inland oxide

inland oxide
#

but its not working in rare cases.

graceful silo
#

ItemStack.serialize() boom

inland oxide
#

Right, well, guess I got bad advice when I first implemented this

tall crystal
#

@neat orbit like /tp 12213 56 ~

potent creek
#

@graceful silo that deletes a bunch of information from the ItemStack

graceful silo
#

...u tell me this now ._.

potent creek
#

If you are not working with NBT etc. it should be fine

inland oxide
#

I am sometimes.

graceful silo
#

so NBT stuff like book pages & custom head data doesn't store in serialized string?

potent creek
#

Same, I am using NBT too and I've just given up on it

neat orbit
#

yes colin

potent creek
#

@graceful silo Custom NBT

rotund hemlock
#

does anyone know how to make customEnchanments

potent creek
#

@graceful silo It seralises Vanilla NBT (usually) but not any stuff you add yourself.

bold anchor
#

Nbt stuff should be serialized by the CraftItem

neat orbit
#

colink

graceful silo
#

oh damn

inland oxide
#

NBT Stuff like Book Pages are failing on saveToString() because of the data.

bold anchor
#

If not that is an oversight

graceful silo
#

thanks good to know :I

tall crystal
#

did you want something special with it

rotund hemlock
#

does anyone know how to make customEnchanments

#

does anyone know how to make customEnchanment

bold anchor
#

Stop spamming

potent creek
#

@rotund hemlock Impossible, you have to hack around it.

inland oxide
#

So, they are using a hacked client to make a writable_book and when I try to save to database, it causes dup exploit.

neat orbit
#

@tall crystal yes

inland oxide
#

because I made the assumption that serialization would never fail.

potent creek
#

@rotund hemlock Usually what plugins do is they add a custom lore, but it's a bunch of work to make sure it stays etc. in an anvil

inland oxide
#

using a bukkit method.

tall crystal
#

@neat orbit oh sorry what did you want I think I missed it because thats the command

inland oxide
#

for a standard MC object like an ItemStack

rotund hemlock
#

@potent creek i want to make a custom recipe what has custom enchant on

neat orbit
#

Oh okay, I just wanted to teleport to a cord with a command.

frigid ember
#

hello

graceful silo
#

pretty sure spigot has enchantment api but ive never used it so idk how expansive it is

tall crystal
#

oh ok

graceful silo
#

or how much it lets u change

frigid ember
#

How can I make a new post on the fourm

potent creek
#

@rotund hemlock Go for it then, you can register your own enchants but the client won't see them. You need to add a custom Lore to them, and make sure the item never loses that Lore.

frigid ember
#

?

graceful silo
#

@frigid ember hit the register button

#

at the top

frigid ember
#

I do it

graceful silo
#

there's a orange button in the forum that says new post or something

rotund hemlock
#

i dont want players to see the enchantment

graceful silo
#

it's big and orange cant miss it

potent creek
#

@graceful silo The enchant system in spigot is super incomplete, there is no way to make a true Vanilla-like enchant. There is no way to make an enchant that the client can see either, since the client needs to register the enchant for that to work.

frigid ember
#

where leo

graceful silo
#

ohhhh so custom enchants are impossible server-side?

potent creek
#

50/50

rotund hemlock
#

no 100%

potent creek
#

You can register enchants and add listeners to act on them

frigid ember
#

I have already account

graceful silo
potent creek
#

but you can't make the enchant table work like vanilla

frigid ember
#

I dont have this

#

man

potent creek
#

and you need to use a lore to make the enchant visible

#

(which also means it doesn't localise)

graceful silo
#

ohhhhh

potent creek
#

and of course stuff like using an anvil will delete the lore, so you need to add it again

rotund hemlock
#

I want to make life steal enchantment

frigid ember
#

ok thanks

#

I will report for lie

#

Lol

potent creek
#

@rotund hemlock You have to look around

frigid ember
#

on&

rotund hemlock
#

i didnt find anything

#

i did

slate dust
#

yo

rotund hemlock
#

but it didnt work

slate dust
#

can anybody tell me the difference between paper and normal spigot?

potent creek
#

@rotund hemlock Help us help you.

#

@slate dust craftpaper is a fork of craftspigot

#

Spigot is an API, not a server

slate dust
#

oh ty

inland oxide
#

so what are the downsides of ItemStack.serialize()?

potent creek
#

Craftspigot and craftpaper both implement the Spigot API

slate dust
#

i am big dumb dumb stoopid

inland oxide
#

just losing custom nbt?

potent creek
#

@inland oxide Custom NBT data gets lost

crisp widget
#

So I believe I've found a odd bug with the latest Spigot, nether portals don't have the same behaviour as previous :monkahmmm:

inland oxide
#

and still have to convert from Map to String?

graceful silo
#

map to string? ;-; why

potent creek
#

Serialiastion is a mess

inland oxide
#

returns Map<String,Object>

frigid ember
#

@fleet crane Sorry for the @, but this issue needs some review. The issue I raised here: https://hub.spigotmc.org/jira/browse/SPIGOT-5815
is not a code problem. This is simple object instantiation. It looks like its a logic problem, but it is not.

inland oxide
#

well that description doesn't really cut the mustard if you want some feedback

graceful silo
#

@frigid ember "I know how to code bruh" LOL

frigid ember
#

yea, Black Hole closed the thread with a very assumptive statement

#

"declare an api version" - yeah, because I haven't been doing that?

#

I realize they are flooded with a bunch of garbage threads every day. I totally get it. With that said, this is a real issue that should be taken seriously.

graceful silo
#

tbh it looks like a plugin dependent issue tho with nationsatwar

frigid ember
#

it looks like that

#

But trust me

#

Its not. Click in the pastebin & you will see the simple object instantiation where this fails.

waxen ridge
#

Hello, I have problem migrating spigot, is this the right channel?

graceful silo
#

@frigid ember which line

#

@waxen ridge migratin to 1.16 u mean?

waxen ridge
#

yes migrating to 1.16.1

graceful silo
#

@waxen ridge is it a problem with spigot itself or a plugin

waxen ridge
#

I think it's spigot itself

frigid ember
graceful silo
#

shoot

waxen ridge
#

I was using spigot 1.15.2 before -> migrated to vanilla 1.16.1 because players were impatient -> then I migrated back to 1.16.1 today

#

all I did was keeping the DIM-1 folder when I move 1.15.2 spigot to vanilla

frigid ember
#

The object is instantiated here: Nation gaul = new Nation("gaul", Color.GREEN, 10, ChatColor.DARK_GREEN, Material.GREEN_WOOL, org.bukkit.ChatColor.DARK_GREEN, Statics.NORTH, Type.SWAMP);

#

Notice... Type.SWAMP

mellow wave
#

@waxen ridge Worlds are split in spigot

frigid ember
#

Just gets set to null during instantiation

waxen ridge
#

when spigot released, I removed the "nether" and "the-end" folder, let spigot regenrate, and move back my original DIM to those folders

graceful silo
#

try changing it to
System.out.println(biomeType.toString())
not sure it would fix ur problem but it's what i'd try next

waxen ridge
#

it all works except there's no new entities in my nether now

frigid ember
#

nah that will just throw a null pointer

verbal latch
#

maklegend - not heard that name for years

waxen ridge
#

no magma cube, no piglin

graceful silo
#

also is there a reason ur using System.out and not bukkit's logger?

waxen ridge
#

the biomes are still there though

frigid ember
#

cuz leo, I'm just tracking it temporarily

graceful silo
#

nah that will just throw a null pointer
@frigid ember ur right actually

wheat summit
#

I'm trying to make a small and simple vein miner and I'm getting close, when I want to call this method until all the blocks around are air and it to stop I'll get a stackoverflow error is there a way to prevent that or mmake it easier for the server to handle? Here is what I have so far https://pastebin.com/GWPaEBGr

inland oxide
#

where is the code for the constructor?

frigid ember
#

Right here Kluge

#

Nation gaul = new Nation("gaul", Color.GREEN, 10, ChatColor.DARK_GREEN, Material.GREEN_WOOL, org.bukkit.ChatColor.DARK_GREEN, Statics.NORTH, Type.SWAMP);

waxen ridge
#

did I do something wrong when migrating

frigid ember
inland oxide
#

no, i mean the actual method that constructs in the Nation class

frigid ember
#

yeah

#

the paste

radiant pollen
#

@wheat summit what line is the stackoverflow on?

graceful silo
#

@waxen ridge hmm thats odd, might be a matter of giving them more time to spawn. I tried 1.16 spigot with a brand new nether and it had new mobs, but idk about an existing nether

waxen ridge
#

yeah when I tried with brand new nether, it works normally

#

however if I imported vanilla 1.16.1 nether there's no entities

graceful silo
#

@frigid ember are u absolutely sure it prints null when called from the constructor u posted? could it perhaps be creating a different Nation object elsewhere with a faulty argument?

inland oxide
#

Statics.NORTH is a string?

frigid ember
#

@wheat summit Stackoverflow is caused by 2 things:
1.- you never set a base case at which to break
2.- The stack is flooded with more than 'n' entries, (often 10,000?)

inland oxide
#

strange

potent creek
#

Anyway do you guys know whether there is a way to check whether the current thread is a sync thread or an async thread? I need to count the amount of items in a player's inventory, but the function doing that can be invoked async.

frigid ember
#

@inland oxide its an enum type

#

Enum passing works fine. Notice Material

#

in that same constructor

graceful silo
#

@waxen ridge uhhhh try worldedit's //butcher command on your nether to delete all old entities and see if new mobs spawn

frigid ember
#

Thats what I'm saying. Its bizarre.

#

and its not a logic error.

wheat summit
#

It's when I try to call the method again @radiant pollen

#

I do have a case to break it I think @frigid ember

inland oxide
#

Material is an enum

frigid ember
#

yeah

#

Precisely

wheat summit
#

Here:

        if (!blocks.isEmpty()) {
            for(Block toBreak : blocks) {
                if(toBreak == null) {
                    plugin.getLogger().info(ChatColor.RED + "ALERT IT IS NULL");
                } else {
                    checkToBreak(toBreak);
                    toBreak.breakNaturally();
                }
            }
        }
frigid ember
#

So its type

#

Type

inland oxide
#

You are passig an enum as a string?

frigid ember
#

nah, I am passing it in as its type

wheat summit
#

There also shouldn't be more than 10K Entries

frigid ember
#

so, for type, its getting passed in as org.bukkit.entity.Villager.Type

#

@wheat summit Which is why the method calls itself forever

inland oxide
#

not sure what Statics.NORTH is but sounds like an enum.

waxen ridge
#

@graceful silo thanks, I'll need to look for world edit first then will try that command

wheat summit
#

Though I have an if statement there cancelling it if all the blocks are air

#
        blocks.removeIf(arrayOfBlocks -> arrayOfBlocks.getType() == Material.AIR);

        if (!blocks.isEmpty()) {
            for(Block toBreak : blocks) {
                if(toBreak == null) {
                    plugin.getLogger().info(ChatColor.RED + "ALERT IT IS NULL");
                } else {
                    checkToBreak(toBreak);
                    toBreak.breakNaturally();
                }
            }
        }
radiant pollen
#

How have you tested this?

wheat summit
#

Just mined a block

inland oxide
#

not talking about Type biomeType

wheat summit
#

Mainly

radiant pollen
#

Do you have something floating in the air you're testing it on?

wheat summit
#

No

frigid ember
#

kluge, what are you referencing?

wheat summit
#

Well there are blocks aroundf it that are air yes

inland oxide
#

talking about String ramSwingDirection being passed an Enum

radiant pollen
#

If the block is in the ground, it's going to attempt to break the entire world, that's why it's a stack overflow.

frigid ember
#

No Kluge, ramswingdirection is a String

wheat summit
#

Well I have a check to see if the type of block is different

inland oxide
#

Then what is Statics.NORTH?

frigid ember
#

Sorry, I misunderstood your question

radiant pollen
#

Your base case is when the block is air, but if you're breaking a grass block on the surface, it's going to break the entire world.

frigid ember
#

Statics.NORTH is a public static variable in my Statics class. It is a simple String object.

wheat summit
#

The cube is also in the air

#

With about 100 blocks ^

tiny ore
#

Is the 1.16.1 spigot update a early version or is it a normal release.

frigid ember
#

Not sure why you're doing it recursively anyway

#

very prone to problems

elder lark
#

Its still not the recommended version hotty

tiny ore
#

ok thanks 😄

wheat summit
#

What would be a better way to do it then?

frigid ember
#

use a while loop flaming

#

Better performance, no limit on size

wheat summit
#

I tried that

#

It also didn't work

radiant pollen
#

idk recursive is easier to me

inland oxide
#

Where is Type defined?

frigid ember
#

Type is passed into the constructor

wheat summit
#

So you mean while (!blocks.isEmpty()) { instead of if (!blocks.isEmpty()) {?

#

That didn't work when I tried it earliuer

frigid ember
#

Nation gaul = new Nation("gaul", Color.GREEN, 10, ChatColor.DARK_GREEN, Material.GREEN_WOOL, org.bukkit.ChatColor.DARK_GREEN, Statics.NORTH, Type.SWAMP);

wheat summit
#

Earlier*

frigid ember
#

Last param

#

Type.SWAMP

alpine lion
#

1.16 drops the Player#spigot() method? Haven't looked too in-depth, but is there a work around to be able to send BaseComponent messages to players?

radiant pollen
#

@wheat summit You should break the block you need to break before you check it. Otherwise, say you break a block, the block NORTH is NOT AIR so you break that one and it checks the blocks around it and the block SOUTH is NOT AIR because you have not broken it yet.

#

Does that make any sense?

wheat summit
#

Oh yeah I'll try that

radiant pollen
#

You get stackoverflow from the first two blocks.

wheat summit
#

Thanks! Got excited and spolke in caps so a bot deleted it though thanks so much!

#

It works now

torn elk
#

Is there any land claiming plugins released for 1.16?

wheat summit
#

That took way too long for me to find out

radiant pollen
#

Haha! No problem!

grand current
#

Is essentials 1.16 available?

potent creek
#

@torn elk In principle all the ones for 1.15.2 should still work, but it might be trial and error.

#

The point of having a modding API is that it doesn't break between versions

torn elk
#

@potent creek I have residence installed, but it shuts down my server, just because the plugin is outdated

potent creek
#

@torn elk You need to figure that out with the author, it's a premium plugin after all.

lucid plank
#

No pickupevent for Piglins ?

subtle blade
#

API is still being added. You're welcome to PR yourself. I'm in the process of making one for respawn anchors being charged

#

?stash

worldly heathBOT
frigid ember
#

I'm an idiot guys

#

I figured itout

alpine lion
#

Choco, I'm no longer seeing a Player#spigot() method. Trying to send Component messages

frigid ember
#
        Nation gaul = new Nation("gaul", Color.GREEN, 10, ChatColor.DARK_GREEN, Material.GREEN_WOOL, org.bukkit.ChatColor.DARK_GREEN, Statics.NORTH,                       Type.SWAMP);
                Nation rome = new Nation("rome", Color.RED, 70, ChatColor.DARK_RED, Material.RED_WOOL, org.bukkit.ChatColor.DARK_RED, Statics.WEST,        
                      Type.PLAINS);
        Nation noNation = new Nation("nationless", Color.NAVY, 0, ChatColor.BLUE, Material.LIGHT_GRAY_WOOL, org.bukkit.ChatColor.BLUE, null, 
                      null);```
#

Notice the null value in the noNation object....

#

........................................

inland oxide
#

and?

frigid ember
#

thats what was causing the null validation fail

#

FACEPALM im dumb

inland oxide
#

well thanks for including that code.

frigid ember
#

"Its not a logic problem"

#

famous last words

#

it was in the pastebin in the question

#

Sorry

#

I should have posted it in here

waxen ridge
#

@graceful silo Hi, I want to let you know the worldedit butcher command worked! Thank you!

#

I've been trying to fix this for 6 hours lol

inland oxide
#

wow, all the problems seem to be getting solved except mine.

radiant pollen
#

what was your problem?

inland oxide
#

where to start.

opal bay
#

🤷 start where it starts?

inland oxide
#

just the serialization issue with databases

#

if using YamlConfiguration.saveToString() after setting an ItemStack, the method will sometimes fail on Writable_Book items.

#

If using ItemStack.serialize(), apparently I will lose custom nbt data.

#

not sure what the best way to get an ItemStack to a BLOB and back again.

#

Seems like the way I'm using works fine unless someone overloads a Writable_Book with a hacked client.

#

If I change to a different method, well, then have the pain of bunch of users having data stored in another format

#

I'm wondering if the hacked client is making the book malformed somehow or if it is just a issue of too much data.

steady cedar
#

To a BLOB copy the code that bukkit uses to serialize itemstacks to base64

cerulean gust
#

Is there new colour formatting code I should be aware about or will ChatColor.translate do the job?

inland oxide
#

This is what is happening when I use the saveToString() method..

#

looking at that code where the exception is thrown, leads me to belived that that method is never entirely reliable

wheat mirage
#

Build tools isn't installing 1.16 to my local maven repo?

inland oxide
wheat mirage
#

Does --compile craftbukkit ONLY compile craftbukkit?

inland oxide
#

whats in BuiltTools.log.txt?

wheat mirage
#

No worries

#

i re-ran without --compile craftbukkit

#

and it worked

#

thanks anyways guys

clever bobcat
#

Hey lads,

Got some issues, console being spammed with the following:
[Server thread/ERROR]: No key position_predicate in MapLike

The string is much longer though, shortened for discord, https://paste.md-5.net/viwupoviwi.cs, quick google didn't give me many clues.

Running CoreProtect, LuckPerms

lapis plinth
#

@formal jacinth hey you there

formal jacinth
#

yah what’s up

tall crystal
#

Any Ideas why it says that ChatColor.of doesn't exist? I have the dependency in my pom.xml file and reloaded it. I've also ran clean and install but its still returns cannot find symbol

odd knoll
#

There is no ChatColor.of method.

#

ChatColor.translateAlternateColorCodes

frigid ember
#

There is

odd knoll
#

I swear I just checked both ChatColor enums

tall crystal
#

it is with the bungeecord chat api

odd knoll
#

Oh, I see.

inland oxide
#

@wheat mirage use --compile craftbukkit,spigot

#

that will do both

wheat mirage
#

Ah, fantastic

#

Thanks

inland oxide
#

yeh, forgot I had that in my script file

#

but useful for later

#

instead of running it twice

subtle blade
#

Okay I'm done with PRs for now. I'm gonna eat 😅

inland oxide
#

thank you.

frigid ember
#

@tall crystal Is this new in 1.16? I think there was a hex color system introduced

odd knoll
#

^^

#

Just checked it is.

frigid ember
#

Maybe you havent upgraded your dependency to 1.16

tall crystal
frigid ember
#

yeah

#

1.16-R0.2-SNAPSHOT

pure bone
#

I was wondering, is it possible to make spigot plugins with the Atom Text Editor?

frigid ember
#

Thats the newest version

odd knoll
#

Don't think so coz you can't compile.

#

Java is a language that require compilation.

#

Even if you could, it's probably not the best thing as you don't receive all the benefits from Java IDEs

patent monolith
#

Does vscode offer stuff like eclipse?

#

like maven and compiling

inland oxide
#

Just download IntelliJ IDEA Community Edition

odd knoll
#

Using an IDE made for the language will nearly always be better.

inland oxide
#

Yes, and its Java not .NET, so I would go with IntelliJ over VS

patent monolith
#

can Intellij look just as sexy as vscode?

inland oxide
#

Yes, can even get those color schemes

patent monolith
#

I do not scheme though

hollow torrent
#

anyone know how to fix [Server thread/ERROR]: No key position_predicate in MapLike

patent monolith
#

what plugin

#

@hollow torrent

hollow torrent
#

maybe multiworld because it gets spammed when loading my worlds

inland oxide
#

upsides/downsides to running my database entry creation in main thread?

lapis plinth
#

@odd knoll hi zak XDDD

inland oxide
#

trade off of lag in main thread vs. being able to catch this stupid Yaml exception.

lapis plinth
#

yah what’s up
@formal jacinth so uh, I did this and its still giving me a null pointer thingy

tall crystal
#

your checking the main scoreboard not your scoreboard you made

patent monolith
#

@inland oxide can't you run with the taskscheduler once it is complete?

inland oxide
#

wdym

lapis plinth
#

@tall crystal how do I "identify" the scoreboard I made?

tall crystal
#

and you end up registering it to the other scoreboard

inland oxide
#

its right now not returning anything because it's async

tall crystal
#

the scoreboard variable

lapis plinth
#

ooo

inland oxide
#

so I have to put into main to return false to cancel the listing

patent monolith
#

@inland oxide you can make your own callbacks

lapis plinth
inland oxide
#

still not seeing how that helps

patent monolith
#

Just run the query on another thread, then call taskscheduler

tall crystal
#

yeah

patent monolith
#

Unless you need the info on command

inland oxide
#

no its prequery that's failing

#

hmm, so ok, split then

patent monolith
#

@inland oxide just dont call the bukkit apu async

#

api

lapis plinth
#

it worked! Thanks Colink <3

inland oxide
#

hmm, lemme look again

tall crystal
#

Yep

inland oxide
#

ok if I do only database code async, how would I handle if there is a database error

patent monolith
#

@inland oxide what do you mean? how would you handle it if it wasnt async?

inland oxide
#

I'd just catch the error and return it

patent monolith
#

return it for a method?

#

are you making an api?