#help-archived

1 messages · Page 176 of 1

sturdy oar
#

@wraith thicket ban this man

gloomy dew
#

IM BOREDE

vernal spruce
#

and so on with every java element

gloomy dew
#

i will learn

#

and when i learn

#

i will tell u

grim halo
#

Hello BOREDE im 7smile7

frigid ember
#

what did you do after that? I assume learned java by reading docs

gloomy dew
#

add me dm "Suma#2232"

#

if u wont

#

np

vernal spruce
#

nope i was like

slim hemlock
#

this may sound like a really odd question but does Bukkit#getOnlinePlayers() tick non-player entities?

tough kraken
#

guys is there something like saveDefaultConfig, but for custom yml Files?

graceful vigil
#

get unix epoch time, add X seconds, then compare when another command is ran

#

that's what I did at least

vernal spruce
#

i want to make this plugin,i started working on it and when i got stuck i looked up on spigot forum to see possible solutions

grim halo
#

@slim hemlock What do you mean by "tick"

sturdy oar
#

thicc

vernal spruce
#

its really impressive the size of spigots forum

slim hemlock
#

tick non-player entities in a way that would be detected by the timings

vernal spruce
#

there is multiple solutions for every possible problem

graceful vigil
#

it reall yis

vernal spruce
#

you can have

grim halo
#

It just copies a List and gives it to you.

graceful vigil
#
Returns:
    a view of currently online players. 
vernal spruce
#

@tough kraken call configfile.save(file)

#

should save it in the path

slim hemlock
#

yeah I meant the implementation of it

vernal spruce
#

or more specific

slim hemlock
#

I'm having a hard time understanding why the timings say what they say

tough kraken
#

it doesnt saves the file, existing in the plugin jar

#

it just saves an empty fiel

#

file

vernal spruce
#

if there is something in it it should

grim halo
#

@slim hemlock Timings v1 or v2

slim hemlock
#

I iterate through the list of players and check their inventories to //do stuff and somehow that ticks non-player entities

#

v2

vernal spruce
#

i think this is also used when calling getconfig.save

tough kraken
#

there is

`#Supported Languages: German 'ger', English 'eng'

#Just Change this, and restart your Server. you're done!
language: eng

lang:
eng:
test: ''
de:
test: '`'

grim halo
#

Would you mind sending me the link in a private message? It sounds odd.

vernal spruce
#

@tough kraken call saveResource(customfilename,false)

slim hemlock
#

me?

grim halo
#

yes

vernal spruce
#

also double them

#

so theyr 6 and write in middle to have full block grayed rather than only text

#
juicy

tough kraken
#

i will try

@tough kraken call saveResource(customfilename,false)
@vernal spruce

#

the file returns null lmao

vernal spruce
#

is it in the plugins resource

#

as u created plugin.yml/config.yml

tough kraken
#

ah wait

#

i think in intellij i have to add the yml to the build-artifacts

vernal spruce
#

not sure i just hit to build the hole module

#

excluding spigot jar

#

cast Color to the blockdata?

#

Colorable*

tough kraken
#

well it creates a config, but saving an empty file

#

?paste

worldly heathBOT
vernal spruce
#

well from there

tough kraken
vernal spruce
#

use the fileconfiguration.save

tough kraken
#

thats whats in my onEnable

vernal spruce
#

it should save the contents to the file

tough kraken
#

still empty

vernal spruce
#

hmm let me throw in a code i used some time ago

#

to save config

wraith thicket
#

Why was I tagged? Did I miss something while eating brunch?

tough kraken
#

i just want to allow multiple languages, so i create a config with all the Strings

vernal spruce
#

some guy typed his server in here by mistake

#

not knowing its bannable

#

so i have a

tough kraken
#

thanks ford, now i am hungry 😦

vernal spruce
#

quests.yml creating in my plugin folder in IDE

#

and i have these methods

#
        private void createQuests() {
            quests = new File(getDataFolder(),"quests.yml");
            if(!quests.exists()) {
                quests.getParentFile().mkdirs();
                saveResource("quests.yml",true);
            }
            loadQuests();
        }
        public void loadQuests() {
            questscfg = YamlConfiguration.loadConfiguration(quests);
        }
        public void saveQuests() {
            try {
                questscfg.save(quests);
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        public FileConfiguration getQuests() {
            return questscfg;
        }```
tough kraken
#

i will look at it, thank you

vernal spruce
#

this i know for sure it copys whats inside

#

also this is inside main

#

so a main instance is needed if you have a object for it

tough kraken
vernal spruce
#

no need to getplugin when creating the file

#

its by default there

#

also im not calling get path

#

on it

tough kraken
#

aaaaaand

still empty 😦

slim hemlock
#

does someone know off the top of their heads if I two itemstacks will return as being equal if one is a damaged version of the other?

vernal spruce
#

im sure those methods i posted work

#

copy-paste them then switch names

#

@slim hemlock dont equal them

#

do .isSimilar

#

equal will return false even if its same item but with 1 more stacked

slim hemlock
#

I thought so, been a while since I had to do smth like this

vernal spruce
#

isimilar should return true if its same item but with lowered durability

slim hemlock
#

I'll go check the docs for isSimilar

#

thanks

tough kraken
#

and call all of them in the onEnable? or just "create"

#

and save

vernal spruce
#

you just call the create in onenable

#

its kinda selflooping

#

one call to create and everything should be good to go

tough kraken
#

okay it finally works

much thanks

#

but does it now overwrite the config, if it gets edited from the file itself=

#

?

vernal spruce
#

it acts just like config.yml

tough kraken
#

alright, then thanks

vernal spruce
#

this

#

saveResource("quests.yml",true); will only get called if there is no file with that name

#

so it wont overwrite next reload/restart

tough kraken
#

perfect

#

well
if i update my plugin (public), in most updates the config gets updated with more Strings added.

how can i add them if they are not in?

because if not, the users have to everytime remove the config

vernal spruce
#

however keep in mind that calling this will always copy a section if it doesnt exist

#

and call .save after

tough kraken
#

yeah thats what i want, thank you!

slim hemlock
#

guys I don't get it I did Bukkit.createNewPlugin("Good Plugin, "No bugs", "Very profitable"); and it didn't work

vernal spruce
#

aww shit

slim hemlock
#

aw java just let me clone null values

#

what could go wrong

frigid ember
#

where are preferences in intellij?

tough kraken
#

i think strg + alt + s

frigid ember
#

what is strg

tough kraken
#

ctrl

#

sry, i am german 🙂

frigid ember
#

no its not ctrl alt s

tough kraken
#

well

frigid ember
#

hm

#

is that ultimate?

tough kraken
#

nah, i have community

frigid ember
#

wtf

#

okay nevermind

#

i will just use file > settings

tough kraken
#

yeah, doing the same i think

#

look into the keymaps for settings, maybe for you they are set other

frigid ember
#

Those are the IDE settings...

#

Settings = preferences

tough kraken
#

and they have the tab "appearence"

#

and thats literally the preferences

reef sparrow
#

How can I get the Docs for 1.14.4

bold anchor
#

Get them from the maven shit

river cradle
tough kraken
#

dont think there is a playsound thing for advancements

torn robin
river cradle
#

Wow, thank you!

reef sparrow
#

Why I cant get the PATROL SpawnReason

#

on 1.14.4

grim halo
#

What do you mean by you cant get it?

reef sparrow
#

it doesnt even exist

rustic canopy
#

Hey, on my 1.16 server there's a bug when players go to the end cities they just die.
My host told me its a spigot bug, is there any way I can fix this?

wraith thicket
#

What are they dying from?
What's the version of your server? (/version)

rustic canopy
#

They just fall into the void, let me get the version real quick

wraith thicket
#

If they fall into the void then they're supposed to die...

rustic canopy
#

But they just fall into the void when teleporting there

#

When entering end city they just die, my host told me its a Spigot bug

wraith thicket
#

Then they issue is most likely with the telorting

rustic canopy
#

It's done the vanilla way.

#

by throwing an enderpearl into that portal thing.

#

My host told me it was a Spigot bug, and it happened to others to

wraith thicket
#

Just because your host said it's a Spigot bug, doesn't mean it is.

rustic canopy
#

What else could it be, I got nothing on my server

#

Except Spigot

wraith thicket
#

Throwing an ender pearl into an end portal gateway and ending up in the void used to be a vanilla bug.

rustic canopy
#

But in 1.16 that should be fixed. :P

wraith thicket
#

There's plenty of bugs that should be fixed.

#

If you want to know if this is a Spigot bug, then try it on the vanilla server and compare the results to that of a Spigot server.

rustic canopy
#

Already did that

#

It works fine on vanilla

#

Also had my host do the same thing.

wraith thicket
#

Did you use the same world/seed for both the tests?

rustic canopy
#

Yep

#

Pretty sure my host did too.

frigid ember
#

guys, can i have help in my mineacrft aternos spigot java server? the mineacrft version u need is- 1.12 1.13 1.14 1.15 and 1.16, can anyone help?

wraith thicket
#

And you've still not provided me with your server version

rustic canopy
#

I cannot provide you with it sorry

#

My host is temporarily closed.

#

So I cannot acces my ftp.

wraith thicket
#

Because I know there's been enderpearl issues before that have been fixed in updated versions of Spigot

#

So it's possible you're simply running an outdated version

frigid ember
#

So it's possible you're simply running an outdated version
@wraith thicket who?

rustic canopy
#

When was the latest update?

wraith thicket
#

Every day

rustic canopy
#

I am running an old version then

#

Havent updated for over 1 week.

#

😂

frigid ember
#

guys, can i have help in my mineacrft aternos spigot java server? the mineacrft version u need is- 1.12 1.13 1.14 1.15 and 1.16, can anyone help?

#

plz

lone fog
#

You don’t need FTP access to do /version

wraith thicket
#

That is true.

#

Atlhough he said his host is down, so I assumed the server was as well

#

@frigid ember
The Spigot server can only ever run on one MC version at a time.
If you want to support multiple versions of MC on one server, you'll need to use ViaVersion and/or ViaBackwards.

frigid ember
#

oh ok

#

thx

#

but can u atleast join my server and tell me how it looks?

wraith thicket
#

This is not the place to advertise your server.

balmy sentinel
#

^

#

Use one of those voting sites

neat orbit
#

Are you allowed to request help for custom plugins here?

frigid ember
#

This is not the place to advertise your server.
@wraith thicket but isnt this help channel?

lone fog
#

Yes

frigid ember
#

im not advertising my server, i just want feedback from other peoepl to it

naive goblet
#

Its not really a help situation

wraith thicket
#

Go to the forums and post in the "Rate My Server" section

frigid ember
#

oh ok

neat orbit
#

Does anybody know/recommend any plugins that allows you as a player to change your prefix titles based on the ranks you have? Like if you have ranks 1, 2 and 3 you can select any of the actual prefixes and change them.

naive goblet
#

Use a permission plugin for that and a prefix plugin?

wraith thicket
#

Like any chat + permission plugin?

naive goblet
#

LuckPerms and deuxetags or something

neat orbit
#

I want the actual players to have the permission to change their prefix.

naive goblet
#

LuckPerms even has its own meta system

neat orbit
#

I've used DeluxeTags but it doesn't have that feature.

#

I'd like players to like run a /prefix command and it would inform them available prefixes & give them the option to change based on those available prefixes they have access to.

#

If anyone knows any similar plugins that do this I'd appreciate it a lot.

wooden patrol
#

Hello! So I have a spigot 1.16.1 server connected to bungee and I have issue with nametags (prefixes not showing up above player head) I spent 2 days figuring out whats the problem. When I setup localhost the prefixes works.. I removed all plugins on spigot 1.16.1 server and they still didn't show up. (bungee plugin list https://prnt.sc/thldzx)
this way I setup the nametags
/team add Test
/team join Test myName
/team modify Test prefix {"text":"Test","color":"dark_blue"} PS: I even tried to upload same plugins on my localhost bungee and it worked so..

naive goblet
#

@neat orbit it’s possible to combine different plugins to achieve that

neat orbit
#

such as?

#

@naive goblet ^

frigid ember
#

Does an event get fired when closing an inventory, say a crafting table, and the items in the grid get re-added into the player's inventory?

mellow bobcat
#

jesus my back hurts

bronze acorn
#

@neat orbit i'd say just make a command such as /setprefix whatever, and either run a command from the console sender that sets their prefix to whichever they chose, or use luckperms api to set their prefix

#

oh you asked for a plugin, nevermind aorry

#

sorry*

#

@frigid ember i believe InventoryCloseEvent ?

#

and then just get the contents of the inventory and add them back to a player's inventory

#

possibly

frigid ember
#

No no, I mean, when you close an inventory that doesn't store items (such as an anvil or a crafting table), if there are items in there, they'll get added back to your inventory. What I need is take control over those items that get added back.

naive goblet
#

@frigid ember cast it?

bronze acorn
#

i believe on an inventory, you can check if they're an instanceof CraftingInventory

#

or whichever

#

then cast it like Conclure stated

#

how would you get a class cast exception

#

wat

#

you're listening for when they close an inventory

#

InventoryCloseEvent event

naive goblet
#

Yeah it would be the blockdata ig

bronze acorn
#

event.getInventory

neat orbit
#

@bronze acorn how would i do that exactly? the luckperms api version

#

i can't code anything unfortunately

bronze acorn
#

oh wait

#

sorry tristellar

naive goblet
#

But its right tristellar, do an instanceof check

bronze acorn
#

i thought you were another dude i said that to

frigid ember
#

lol

bronze acorn
#

yeah i thought u was him ^

#

lol

#

wait

#

im so confused

#

hold on

naive goblet
#

What is even Colorables super interface?

bronze acorn
#

yes i was talking to fefo

#

oof

naive goblet
#

It might be blockstate

bronze acorn
#

ok so yeah fefo

#

you'd do what i said

naive goblet
#

tristellarif you don’t know I’ll check for myself

#

?jd

naive goblet
#

Wait what exactly ru trying todo

bronze acorn
#
@EventHandler
public void onInventoryClose(InventoryCloseEvent e)
{
  if (e.getInventory() instanceof CraftingInventory)
  {
    CraftingInventory workbench = (CraftingInventory) e.getInventory()
  }
}```
frigid ember
#

Yeah I guess I can listen to InventoryCloseEvent, check the inventory type and all that and loop through the inventory to do what I want to do with the items in there

#

yeye pretty much that

unkempt ridge
#

I'm in the process of coding a 1.16.1 server is there anyway to allow older clients to connect to it? I was also wondering what the blocks would look like for a 1.8 client (i.e. I add a honey block)? Is there an API I could use in my plugin to check whether or not a player is on a version that is below 1.16 and if they are change a block to something else?

bronze acorn
#

viabackwards

#

@unkempt ridge

frigid ember
#

for older clients I suggest protocolsupport

bronze acorn
#

1.8+ i usually use via stuff

naive goblet
#

@frigid ember what API version?

neat orbit
#

taahanis, do you recommend any exisiting setprefix plugins?

unkempt ridge
#

What are the benefits of ViaBackwards vs. Protocolsupport for allowing older clients?

bronze acorn
#

they have a table on there to tell you which if you have this server version you need this

naive goblet
#

Okay so there is no meta for chaning that stuff

bronze acorn
#

hmm

#

uh

neat orbit
#

i can't seem to find any good ones

naive goblet
#

Basically you’d have to create your own help class for that

bronze acorn
#

i do not know.. if you need a simple one command plugin for that i could make one and post the source code and send it to you

#

if you want

neat orbit
#

i'd rly appreciate that

bronze acorn
#

oof rip tristellar

neat orbit
#

but the thing is

naive goblet
#

Not at all

unkempt ridge
#

@bronze acorn ProtocolSupport doesn't. I saw one on Viabackwards, but I thought the purple checks were future updates because the only thing in green under 1.16 server is 1.16 clients

neat orbit
#

it'd just have to be the ability to select existing prefixes

naive goblet
#

@frigid ember pretty sure it only has to be a switch of all the different colors including unknown

bronze acorn
#

oh to select alright

naive goblet
#

Yeah don’t use switch for that

#

Do it materialwise

bronze acorn
#

if its a 1.16 server use viabackwards and viarewind

naive goblet
#

And idk if an enum or a collection is best

#

Just do something you believe is good

#

I can check it out later then if you want (:

unkempt ridge
#

@bronze acorn have you used Viabackwards before? and will I need ViaVersion to get Viabackwards working?

bronze acorn
#

yes and probably? i dont think so because you're allowing older clients not newer to join

frigid ember
#

Yes, you need the core ViaVersions for ViaBackwards to work

bronze acorn
#

oh then maybe

#

i remember running it without viaversion on a proxy

#

🤷🏽‍♂️

frigid ember
#

Personally, for allowing older clients exclusively, I had had better results with ProtocolSupport, but if you need to go both ways, ViaVersions (+ ViaBackwards) is the one you'll need

unkempt ridge
#

I have a 1.16.1 server so right now all I need is older client support, but I guess it might be smarter to use ViaBackwards for future use

bronze acorn
#

you'll need rewind as wel

#

for 1.8 i think

#

yeah

mellow bobcat
#

ProtocolSupport is better

frigid ember
#

rewind is for 1.7 and 1.8 clients

unkempt ridge
#

@mellow bobcat may I ask why you say that?

#

and I didn't see an API for ProtocolSupport. I'm making custom inventories and if a user is on a version earlier than 1.16 I'll have to pick a different block

bronze acorn
#

i dont think you have to use an api to get a player's version

#

isnt like an nms thing to do that

#

or smthn

unkempt ridge
#

No idea, I figured it would be easier to use their API if offered

bronze acorn
#

aight

frigid ember
mellow bobcat
#

🤦 it's been the first ever resource to ever add support for older versions and even when ViaRewind had to stop development they even mention to use ProtocolSupport and i don't see a point of not using it

unkempt ridge
#

ProtocolSupport says this on the top of their resource page? Adds 1.12, 1.11.*, 1.10.*, 1.9.*, 1.8.*, 1.7.*, 1.6.*, 1.5.*, 1.4.7 clients support to your spigot 1.12.2 server

frigid ember
#

it also says in big bold letters 1.16.1 version:

#

and a jar download link

unkempt ridge
#

okay I'll download that and see how it works

reef sparrow
#

How can I run a listener for the CreatureSpawnEvent after the Listener for the RaidSpawnWaveEvent

frigid ember
#

(and in the github page it says Support 1.16, 1.15, 1.14, 1.13, 1.12, 1.11, 1.10, 1.9, 1.8, 1.7, 1.6, 1.5, 1.4.7 clients on Spigot 1.16.1 lol)

mellow bobcat
#

yup

#

but that would be pretty damn hilarious if anyone still plays on 1.7 or 1.5 until up this day.

#

i mean if their pc is that bad 🤷

frigid ember
#

I mean, I'm not gonna judge anyone for playing in 1.4.7 single player, I play in 1.5.2 form time to time, but playing in 1.4.7 in a modern server... that doesn't sound very anti-cheat friendly lmao

mellow bobcat
#

expect getting kicked less than 5 seconds

#

i remember playing 1.8 on a 1.15.2 server the glass pane was bugging me and making me stuck there i was kicked everytime i try to log-in

#

eventually i had to do quickly log in and typed /jump

#

it was not a fun experience

odd moon
#

Hey people, anybody here know how to bypass the new Hoglins and Piglins "brain", so that I can manage their behaviour with pathfindergoals?

fathom coral
#

Is there a way to sync inventories between servers without MySQL?

rare prairie
#

web interface

granite pendant
#

why don't you want to use MySQL?

#

or why can't you*

fathom coral
#

i have no idea how to use it

sullen harness
#

i have no idea how to use it
@fathom coral big brain

rare prairie
#

its an easy thing

#

mysql is easy database

granite pendant
sullen harness
#

you can use items.yml to store inventories

#

but obv

spring nexus
#

What's the range for bee anger level?

sullen harness
#

mysql is way easier

fathom coral
#

how do I use it then?

sullen harness
#

just watch tutorials

#

you need to setup it tho

#

setup is the easy part

balmy sentinel
#

@fathom coral I'd highly recommend learning how to use MySQL it's super efficient for saving data and, as stated above, it's really easy to learn and use.

sullen harness
#

@fathom coral I'd highly recommend learning how to use MySQL it's super efficient for saving data and, as stated above, it's really easy to learn and use.
@balmy sentinel mongo db for mongos

steady cedar
#

Depends

#

mongo is good in some cases and sql is good in some cases

balmy sentinel
#

I've always used sql

cerulean gust
#

SQLite 🙂

steady cedar
#

¯_(ツ)_/¯

peak socket
#

where is the download page for just the spigot part and not the build tools?

spring nexus
#

@rare prairie What are you trying to say by giving me that link hmm?

#

@peak socket it's not possible.

peak socket
#

well i have it so

#

i just need a different version

spring nexus
#

You just need to run BuildTools again using a different version argument.

#

Make sure to delete the other folders before doing that.

pulsar ledge
#

When I try to upload a resource pack with custom sounds accessible only through commands, to a spigot seerver, according to tutorials I've found, the sounds aren't accessible through the autofill in the /playsound command (The pack works fine if you have the resourcepack on through the options menu and it loads like it should on the server). Oh and when I upload a resourcepack with textures only, with the same mcmeta file it works just fine.

peak socket
#

but i dont like build tools, they never work on my pc

spring nexus
#

Well, that's how it is. I wished Spigot could provide something faster too.

peak socket
#

so how did get it before? like 2 weeks ago?

spring nexus
#

I don't know lol.

peak socket
#

let me attach a screenshot

naive goblet
#

BuildTools is a must wat

peak socket
#

i cant attach images, one sec

#

there

#

done iit now

frozen pawn
#

Is there a good 1.16 alternative to votingplugin that can award money, Because I have tried everything and I cannot get it to work.

lone fog
#

It can run commands can’t it?

#

Just have it run your eco give command

wraith thicket
#

You really should refactor your code. The one you've posted is next to impossible to follow.

#

DRY principle, for one

#

You need to remember, code is generally read more times than its written.

#

And most of the time the re-reading is done by the author itself

#

So by writing spaghetti code like this you're doing a disservice to yourself (multiple times - once when writing, once every time you're forced to read/change it)

tiny pebble
#

is it possible, with a custom entity extending EntityPlayer, to give said custom entity a PathfinderGoal although it isn’t an EntityInsentient?

wraith thicket
#

No, you don't. You only need to update it after you change something in the inventory.

frozen pawn
#

@lone fog When I set it to do the eco command it awarded it every time I joined the server instantly

frigid ember
#

mysql is way easier
just watch tutorials
you need to setup it tho
setup is the easy part
@sullen harness yeah dude, getting into the KGB facilities is easy, just do it carefully and plan it thoroughly, you need to plan it tho, the planning is easy

#

and boom, you'll succeed 👍

sullen harness
#

@sullen harness yeah dude, getting into the KGB facilities is easy, just do it carefully and plan it thoroughly, you need to plan it tho, the planning is easy
@frigid ember just use a paper

#

and draw

lone fog
#

Pretty sure I’m using votingplugin and it works fine

#

Did you update

frozen pawn
#

The plugin or the spigot version?

lone fog
#

Both

frozen pawn
#

I updated the plugin last night

#

And I last updated spigot a week ish ago

#

But i feel like it isnt due to that

#

As it just does nothing instead of outputting and error

#

Do you think you could send a screenshot of what your votingplugin reward folder looks like

lone fog
#

Are you using setResult?

wraith thicket
#

If you want to change the result of a crafting recipe, you can create your own recipe
CraftItemEvent extends InventoryClickEvent, for which the javadocs clearly state:
"Modifications to slots that are modified by the results of this InventoryClickEvent can be overwritten. To change these slots, this event should be cancelled and all desired changes to the inventory applied. Alternatively, scheduling a task using BukkitScheduler.runTask( Plugin, Runnable), which would execute the task on the next tick, would work as well."

#

Or, you can change the result in the PrepareItemCraftEvent event

tiny pebble
#

is it possible to assign a PathfinderGoal to an entity that doesn’t extend from EntityInsentient?

hasty crag
#

how many unique map IDs can there be?

subtle blade
#

Presumably ~4.5B. Integer range

tough kraken
#

is there a way to stop Time-Changing if a boolean is false?

#

so if its false, dont change Day-Night Cycle

frigid ember
#

world.setGameRule(GameRule.DO_DAYLIGHT_CYCLE, false)?

hasty crag
#

thx Choco

tough kraken
#

well, but i would have to set this on boolean-change i think?

hasty crag
#

and other question, what does that mean that an ItemFrame is fixed? Whats different if i setFixed to true

frigid ember
#

eh?

naive goblet
#

Whenever you change the boolean. Just put it in the second param vngc

wraith thicket
#

@tough kraken Either gamerule or you can listen to TimeSkipEvent

tough kraken
#

timeskipevent... thats what i was searching for. thank you

#

well

#

there is no event

wraith thicket
tough kraken
#

Cannot resolve symbol 'TimeSkipEvent'

frigid ember
wraith thicket
tough kraken
#

what the

frigid ember
#

beat you

wraith thicket
#

You must be running an out dated version

tough kraken
#

only at 1.16?

#

1.14.4

naive goblet
#

Rip

tough kraken
#

lmao

#

but thanks anyway

wraith thicket
#

It's there since some 1.15 version

tough kraken
#

doesnt really helps me

#

i am on 1.14

wraith thicket
#

It does - you just need to upgrade to an up to date version of the software.

tough kraken
#

then my plugin doesnt work on 1.14... and thats my server version

#

and the most stable for my system

frigid ember
#

It's there since some 1.15 version
1.15.1 👀

cerulean gust
#

It's just that it is the 1.16.x docs

hasty crag
#

much appreciated ❤️

tough kraken
#

maybe i will update my Plugin to 1.16.1... if there are no performance issues anymore for me

frigid ember
#

i read the thing i got from my intellisense editor
never trust your IDE

lapis plinth
#

how to get the item that was clicked from an InventoryClickEvent?

frigid ember
#

the one you're picking up? getCurrentItem

lapis plinth
#

No I meant like in a GUI, how do yo know what material you clicked?

frigid ember
#

getCurrentItem().getType()

lapis plinth
#

ty

frigid ember
frigid ember
#

Hey, is it only me having problem adding description for my new resource or is it website bug???

ionic relic
#

I need help with bukkit's help.yml, its index-topics section is not displaying in-game.

frigid ember
#

Hey, is it only me having problem adding description for my new resource or is it website bug???
Just to let @Spigot know, there is problem with editor in chrome

bronze acorn
#

@tranquil edge you registered each of those, getCommand(labelhere) and set the executor for that same class, and added each of those labels into the plugin.yml?

tough kraken
#

can i loop through all Concrete-Materials?

or do i have to add them manually to a list

bronze acorn
#

oh

#

they dont set correctly

dark shuttle
ionic relic
#

Does anyone have experience with help.yml?

dark shuttle
#

nvm, I saw public, max-age=21600 on the response header

crimson sandal
#

Anyone know where the comparator calculates it's strength when reading a chest inventory in NMS code?

bronze acorn
#

oh you got those

#

well dang lol

#

does it change at all?

#

when you do /day what does it change it to?

#

sunrise?

peak marten
#

Hey everyone. I got a plugin that used to work fine with 1.8 until 1.16.1. I never use nms to guarantee better compatability. Now one of my plugins got recently recompiled with the new 1.16.1 jar which used to be the 1.15.2. When the plugin is running on a 1.8 server, the following error got reported by one of our users, any ideas if this is just a bug or permanently removed as of 1.16.1 ?

https://hastebin.com/wonofiziru.pl

bronze acorn
#

then which ones dont change?

#

Caused by: java.lang.NoSuchMethodError: org/bukkit/entity/LivingEntity.isSleeping()Z (loaded from file:/pro/bin/mc/spigot/1.8.8/spigot-1.8.8.jar by sun.misc.Launcher$AppClassLoader@13b5ea1a) called from class me.qintinator.sleepmost.services.SleepService (loaded from file:/home/gs-40119/plugins/sleep-most%204.3.0.jar by org.bukkit.plugin.java.PluginClassLoader@9e9ec214).

#

@peak marten

#

@tranquil edge try replacing "true" with false maybe

#

general i believe isSleeping() is no longer a method as of 1.16.1

peak marten
#

Yes @bronze acorn , but the exact same code used to work fine until I recompiled with the new 1.16.1 jar

#

ah that explains

bronze acorn
#

according to that

peak marten
#

Any idea on the new correct method?

bronze acorn
#

let me check

peak marten
#

So any ideas on how I could possibly solve this?

#

Or should I no longer mention 1.8 compatibility ?

bronze acorn
#
    @EventHandler
    public void onSleep(PlayerBedEnterEvent event)
    {
        Bed bed = (Bed) event.getBed().getState();
        if (bed.isOccupied())
        {
            // here?
        }
        
        if (event.getBedEnterResult() == PlayerBedEnterEvent.BedEnterResult.OK)
        {
            
        }
    }```
#

you could try these?

#

oh

#

oh it is

#

uh

#

is the plugin 1.16

#

but the server is 1.8 possibly?

peak marten
#

Wait, I help a bit by providing the github URL

#

yes indeed

bronze acorn
#

oh

#

update the server to 1.16 probably

#

if thats not an option then uh

#

yeah i dont see a bed event on 1.8

peak marten
#

The thing is that I got quite a few people using my plugin, question is how many people are using it for 1.8 🙂

bronze acorn
#

oof

#

did you have it working for 1.8?

#

if so i'd say just check the server version and if it's this, use this method

peak marten
#

It used to work, until I recompiled with the 1.16 jar

bronze acorn
#

and if it's this version, use this method

peak marten
#

Maybe this helps, thanks already btw

#
    @Override
    public int getPlayersSleepingCount(World world) {
        return (int) world.getPlayers().stream().filter(LivingEntity::isSleeping).count() + 1;
    }
bold anchor
#

That's a lot of overhead fora simple for loop

peak marten
#

What do you mean @bold anchor ?

bronze acorn
#

hm isSleeping is also a method in 1.8.8 already

bold anchor
peak marten
#

@bronze acorn , not sure to be honnest

bronze acorn
#

i have it here and it is 👁️👄👁️

peak marten
#

@bold anchor , agree, but this is the only and fastest way I believe to achieve the result I need

bronze acorn
#

oh

#

livingentity doesnt have isSleeping

#

but player has isSleeping

#

wait huh xd

#

ah

#

i see

peak marten
#

Are you sure ? Because if I'm not mistaken, villagers also sleep no?

bronze acorn
#

LivingEntity#isSleeping doesnt exist in 1.8

#

but Player#isSleeping does

peak marten
#

Ah so that could actually solve my issue 🙂

#

Instead of using LivingEntity

#

I could use player

bronze acorn
#

yeah if ur checking for players just use Player instead

#

ye

peak marten
#

Wonderful, I believe I'm going to try that 🙂

hasty crag
#

how to get the offline player's profile of WHATEVER minecraft account from name, whether they have played on server before or not

bronze acorn
#

uh

#

Bukkit.getPlayerExact() maybe?

peak marten
#

@hasty crag , Bukkit.getOfflinePlayer(String UUID)) ?

#

Not sure if I understand you correct

hasty crag
#

well i need to provide an OfflinePlayer inside SkullMeta.setOwningPlayer(...)
All I have is a string as player name. And this has to apply of any players, whetehr they have played on the server before or not

tough kraken
#

a Question:

i want to do something like Snake.

if the Players move, they leave a concrete-line under them. if someone runs on a line of another Player, or even on his own Line, he dies.
There is no "Cooldown" or anything, they should can stand still if they want.

so i made this: https://hastebin.com/ebizatijul.cs

but i have to spawn the line behind the player, and not directly under him, as then he dies.

how can i make that?

rustic prism
#

One message removed from a suspended account.

bronze acorn
#

cancel PlayerCommandPreprocessEvent if their gamemode is SPECTATOR

peak marten
#

well i need to provide an OfflinePlayer inside SkullMeta.setOwningPlayer(...)
All I have is a string as player name. And this has to apply of any players, whetehr they have played on the server before or not
@hasty crag I'm quite sure it works with the username also, so Bukkit.getOfflinePlayer("playerName");

bronze acorn
#

ye

peak marten
#

isSleeping comes from LivingEntity

bronze acorn
#

whats up

#

oh

wraith thicket
#

Bukkit#getOfflinePlayer is potentially blocking - if the player hasn't joined the server, a call is made to the mojang servers which will freeze your server for some time

bronze acorn
#

its due to

#

LivingEntity#isSleeping

#

doesnt exist in spigot 1.8's api

#

but Player#isSleeping does

#

idk that logic

#

but its that apparently

#

and because you're using spigot 1.16 plugin on spigot 1.8

#

well ye xd

peak marten
#

Is there any 1.8 docs?

bronze acorn
peak marten
#

It would make sense 🙂

#

I'll try with the player instead

bronze acorn
#

aight

hasty crag
#

can someone help me out and indicate me whats wrong with my code? My goal is to put a player's head as a result of renaming a zombie, skeletton or creeper head in the anvil.

    @EventHandler
    public void onPlayerItemRename(PrepareAnvilEvent anvil){
        AnvilInventory inv = anvil.getInventory();
        if ((inv.contains(Material.ZOMBIE_HEAD) || inv.contains(Material.SKELETON_SKULL) || inv.contains(Material.CREEPER_HEAD)) && inv.contains(Material.AIR)){
            ItemStack skull = new ItemStack(Material.PLAYER_HEAD);
            SkullMeta skullmeta = (SkullMeta) skull.getItemMeta();

            skullmeta.setOwningPlayer(Bukkit.getOfflinePlayer(skullmeta.getDisplayName()));
            skull.setItemMeta(skullmeta);
            anvil.setResult(skull);
            System.out.println(skull);
    }
}```
#

i don't really get what i'm doing wrong tbh

#

i don't have any errors

#

but it simply gives me a zombie head back (if i tried it on a zombie head)

bronze acorn
#

you're

#

setting the owningplayer

#

as the skullmeta's display name

#

and the skullmeta has no display name

hasty crag
#

freak sake

#

yeah

#

i meant

#

anvil.getblabla

bronze acorn
#

xd

hasty crag
#

yeah

#

i meant

#

anvil.getResult().getItemMeta().getDisplayName()

#

thanks a lot @bronze acorn u saved me frustration

bronze acorn
#

no problemo

hasty crag
#

what would be the event triggered when someone place sth in an item frame?

wraith thicket
#

PlayerInteractEntityEvent?

finite crescent
#

Is there any way I can possibly add a user to my Spigot resource page to modify the page?

wraith thicket
#

The page is formatted the same as any other page on the site. So send them them raw text (the "Use BB Code Editor" button on the right)
You can then have them edit it on (i.e) on a converstaion tab and preview it there and then send back the formatted message/page.

tough kraken
#

a Question:

i want to do something like Snake.

if the Players move, they leave a concrete-line under them. if someone runs on a line of another Player, or even on his own Line, he dies.
There is no "Cooldown" or anything, they should can stand still if they want.

so i made this: https://hastebin.com/ebizatijul.cs

but i have to spawn the line behind the player, and not directly under him, as then he dies.

how can i make that?
@tough kraken maybe an idea?

hasty crag
#

PlayerInteractEntityEvent?
@wraith thicket thats the one i used yeah but it triggers only when we rotate the object within the item frame, not when we place it

#
    @EventHandler
    public void onPlayerClickItemFram(PlayerInteractEntityEvent event) {
        if (event.getRightClicked() instanceof ItemFrame){
            ItemFrame itemframe = (ItemFrame)event.getRightClicked();
            if (itemframe.getItem().getType()==Material.GLASS_PANE){
                itemframe.setVisible(false);
            }
        }
    }

    @EventHandler
    public void onPlayerClickItemFram2(PlayerInteractAtEntityEvent event) {
        if (event.getRightClicked() instanceof ItemFrame){
            ItemFrame itemframe = (ItemFrame)event.getRightClicked();
            if (itemframe.getItem().getType()==Material.GLASS_PANE){
                itemframe.setVisible(false);
            }
        }
    }```
acoustic temple
#

Is there a way to directly change the attributes of an entity rather than putting it on an item?

#

I'm trying to have certain players have a constant, small speed boost.

acoustic temple
#

thank you!

frigid ember
#

how do i change the color of firework spark particles?

tiny dagger
#

by giving the firework a firework meta

#

with the colors you want

frigid ember
#

wait does that work for the spawnParticle method?

tiny dagger
#

not entirely sure

#

actually no

#

the explosion

#

is different than the launching fireworks

subtle blade
#

Firework sparks do not have colour

#

They're white

#

The explosion itself can be changed if you'd like using FireworkMeta as mentioned above, but that requires a firework

pliant lion
#

is there something worng with spigot?

wraith thicket
#

If you've got a specific issue, you'll need to desribe it.

pliant lion
#

the two step verification couldn't be complete it

#

pleas try again

#

._.

#

I've tried 3 times and nothing

#

@wraith thicket help pleas

wheat mirage
#

What's the best way to check if an entitys AABB is colliding with any others? (Specifically a player)

hasty crag
wheat mirage
wraith thicket
#

@pliant lion I'm not entirely sure where you're having the issue? Is it when setting up 2 step verification? Or when logging in with it?

pliant lion
#

login in

wraith thicket
#

@hasty crag I don't know exactly. You can try a bunch of different events and see which one gets triggered

wheat mirage
#

@wraith thicket But thanks, that doc helps. Do you know if it's more efficient to use bukkit or the minecraft world#clips function?

wraith thicket
#

I'm fairly certain CoreProtect had a check for items in item frames - you can check how they did it

wheat mirage
#

I'm unsure the best way to get nearby bounding boxes, either filtering the entire world by range, or doing what minecraft does and getting all relevant chunks entities.

wraith thicket
#

What's your end goal, though? Because if you have a location, then checking with the method I've linked above is pretty straight forward

hasty crag
#

ok

#

thx anyway i guess 🙂

wheat mirage
#

@wraith thicket I'm trying to see if bounding boxes are colliding why do you keep linking me the point definition

#

You're looking for BoundingBox#overlaps

#

Or rather I am

#

I'm just unsure the most efficient way to get potential bounding boxes from nearby entities

wraith thicket
#

Sorry, doing multiple things at a time, thought you were looking for a location contained within, but you're looking for overlaps

wheat mirage
#

@wraith thicket Thanks, that's actually exactly what I want

#

Thank you very much

#

@wraith thicket You seem to know the spigot API very well, do you know why the IDE never seems to autodetect org.bukkit.entity.Entity when suggesting imports?

#

I've seen a few mention this issue, and it's a huge pain

wraith thicket
#

That's an issue with your IDE

#

It's most likely because there's other Entity classes also available

wheat mirage
#

IntelliJ IDEA

#

And yeah there's a few others

shadow drift
#

I have this error when the world saves which makes my server crash, does any of you know how to fix this?

wheat mirage
#

but it's never been an issue with other classes

wraith thicket
#

Entity is a common name for a class, that's all

subtle blade
#

God damn it, Swing

hasty crag
#

whats difference between spigot and bukkit

#

(xd)

sage quartz
#

@grim halo Worldguard manages the region, I just want to grant them access into the region but apparently there is no permission node for regions such as worldguard.region.access.exampleregion. I am wondering how can I grant them access into the region from an NPC, what plugin can I tie into CitizensCMD to give them access

tiny dagger
#

i thought people knew by now alexis

#

anyway, the bukkit used to be the base server

#

and spigot used to improve upon it

#

however since spigot took the lead bukkit became a part of spigot

#

so spigot is now the base

knotty karma
#

any of you know of an app that you can use to get spigotmc forum notifications on mobile thats not literally spyware? (aka not tapatalk)

reef sparrow
#

How can I proof if a entity has a name Tag

#

...in a plugin

wraith thicket
reef sparrow
#

Okay thanks

balmy sentinel
#

Why is it when I do /kick PlayerName in the terminal or in-game it passes PlayerQuitEvent instead of PlayerKickEvent?

peak marten
#

@bronze acorn , issue again, isSleeping also doesn't exist for players

#

in 1.8

wheat mirage
#

@wraith thicket Is there any way to fix the Entity import suggestion in IntelliJ?

wraith thicket
#

No idea, I don't use IntelliJ

wheat mirage
#

Okay, something else then, is there any way to check if a bounding box is colliding with blocks / world voxels (as some code seems to refer to them as), @wraith thicket ?

frigid ember
#

?paste

worldly heathBOT
frigid ember
#

trying to use API's using maven but it isnt working?

#

is anything wrong in there? :/

#

order of classes

#

is there a plugin for making it if u click a block you teleport

#

(right-click)

wraith thicket
#

@frigid ember Maven's default source directory is src/main/java and within that you'd have the group id

wheat mirage
#

@wraith thicket No I mean if a bounding box is overlapping with the world, as in like a wooden plank

#

Say I create a bounding box and I wanted to see if it fit in the air space

#

Does the API have any support for that

frigid ember
#

wait whatt?

lyric cypress
#
Location loc = event.getEntity().getLocation();
for(double x=-4; x<=4; x+=1) {
    for(double y=-4; y<=-4; y+=1) {
        for(double z=-4; z<=4; z+=1) {
            Location temp = loc.clone().add(x, y, z);
            if(temp.getBlock().getType()==Material.FIRE) {
                Bukkit.broadcastMessage(ChatColor.GREEN + temp.toString());
                temp.getBlock().setType(Material.AIR);
            }
            else {
                Bukkit.broadcastMessage(ChatColor.RED + temp.toString());
            }
        }
    }
}

Why does the y not change?

wheat mirage
#

y <= -4 @lyric cypress

#

lol

lyric cypress
#

yeah it checks a 9x9 area for fire

frigid ember
#
y=-4; y<=-4; y+=1```
wheat mirage
#

Yes, and you're starting with a value of -4

frigid ember
#

middle is also -

wraith thicket
#

@wheat mirage I don't quite understand what you're saying above

wheat mirage
#

And saying, keep going while it's below or equal to -4

lyric cypress
#

yeah it goes from -4 to 4

frigid ember
#

its different than the first and third one

wheat mirage
#

@lyric cypress Stop trolling

frigid ember
#

look at 2nd y

lyric cypress
#

ooh

frigid ember
#

and 2nd x - z

lyric cypress
#

I see

wheat mirage
#

@wraith thicket Minecraft has some built in functions which checks if an entities bounding box collides with the world, does the API have any support for this

lyric cypress
#

thanks

frigid ember
#

np

wraith thicket
#

Still not sure what you're saying. A world does not have a bounding box as far as I'm aware

wheat mirage
#

@wraith thicket I mean blocks within the world

#

As in if it the current location of the bounding box does not collide with any blocks.

#

For example checking if an entity has space to spawn

wraith thicket
#

You'd likely need to get the blocks within the bounding box and get the bounding box and then use the #overlaps method

#

But you're welcome to dig into NMS to see if there's another way

wheat mirage
#

@wraith thicket Yeah NMS definitely has an api for it

#

But I wanted to know if spigot directly supported it

wraith thicket
#

Again, check its implementation. I'm not sure what it does, haven't looked into it.

balmy sentinel
#

?paste

worldly heathBOT
rose crystal
#

How much RAM do you recommend for 1.16.1 server with ~100 players?

undone narwhal
#

10Go

rugged sundial
#

5+

#

depends on plugins actually

opal bay
#

it doesn't entirly depend on ram either, what CPU are you going to use?

rose crystal
#

I9 9900k

sturdy oar
#

10Go
@undone narwhal STOP

#

using French units of measure

#

It's illegal

undone narwhal
#

I'm the boss

sturdy oar
#

How much RAM do you recommend for 1.16.1 server with ~100 players?
@rose crystal you want a very good dedi to handle 100 players in a single server

#

It's really hard with .16.1

rose crystal
#

I9 9900k is pretty good tho

sturdy oar
#

Although depends on the game mode

rose crystal
#

survival

undone narwhal
#

Ok, I'll stop it when I'll never see any: lb, miles or other stuff than the metric unit (and liters, grammes)

sturdy oar
#

Survival is the heaviest one 😩

rose crystal
#

lol

opal bay
#

pepeThink no plugin survival with spigot?

rose crystal
#

with plugins

opal bay
#

self hosted I assume?

rose crystal
#

wait no

#

i mean

#

its on a rented dedi

opal bay
#

dedi good ok

sturdy oar
#

Good luck I guess

opal bay
#

I mean just get something flexible with a good amount of ram, so incase you need to upgrade or something

#

I'd start out with 8gigs and gradually increase it with demand

#

goodluck

rose crystal
#

Okay thanks!

balmy sentinel
#

Any idea why this InventoryClickEvent isn't working properly (Yes it is registered)? The issue is whenever I click slot 9 or 18 it opens their preference menu (the inventory they had to open to get to this one) instead of reopening their privacy menu. The only way I can keep the privacy menu open is if I add player.closeInventory(); before I reopen the privacy menu. However, I don't want to do this as it resets the mouse to the center of the screen. Code: https://paste.md-5.net/jefefeqace.cs

sturdy oar
#

Do you guys remember the good ol times

opal bay
#

shh we don't speak of those times ):

sturdy oar
#

When 1.8.8 and having 100 players was normal

#

And didn't require NASA hardware

opal bay
#

1.8 EOL when

#

shesh

rose crystal
#

D:

frigid ember
#

Is that return Bukkit.getPlayer(player.getUniqueId()).getPlayerProfile().getProperties().iterator().next().getValue();, so in 1.13.2 Since I did not get get ("textures")

#

I'm using befor 1.13.2

#

return ((Property)entityPlayer.getProfile().getProperties().get("textures").iterator().next()).getValue();

wraith thicket
balmy sentinel
#

@wraith thicket so create a private method that will run a BukkitScheduler.runTask to execute player.openInventory()?

wraith thicket
#

If that's what you want to do.

crimson sandal
#

What event would be fired when the /kill command is called and an ItemFrame is removed?

lone fog
#

Huh I didn't know about that with inventory events

balmy sentinel
#

@wraith thicket could the Bukkit.Scheduler.runTask go within the InventoryClickEvent?

lone fog
#

yes

wraith thicket
#

Yes, that'd be fine

balmy sentinel
#

okay sweet thanks

lyric cypress
#

How would I test multiplayer things in my plugin?

wraith thicket
#

With multiple players, generally

#

But you can also mock them if you like

lyric cypress
#

mock them?

wraith thicket
#

Use unit testing and mock the player instances

#

It depends on what you're trying to test exactly, of course

lyric cypress
#

ok

wraith thicket
#

I ended up buying another MC account and just using that for some things

tacit trellis
crimson sandal
#

Or you set your dev server into offline mode and login with an offline client 🤷‍♂️

wraith thicket
#

Again, depends on what you want to test. As far as I know, offline mode doesn't guarantee matching UUIDs for players

tacit trellis
#

its my intellij thats telling me that

crimson sandal
#

It does, but just means switching your server back into online mode will break UUID's. In offline the UUID is just a hash generated from the name of the player

tacit trellis
#

I wasnt even able to compile

wraith thicket
#

But in online mode you can actually change your name. Which means offline mode will not be able to track your UUID

#

Like I said - depends on what you're testing

#

For most things, offline mode will likely suffice

crimson sandal
#

@tacit trellis looks like you're trying to use NMS code and you probably don't have it as a dependency in your pom

tacit trellis
#

I do

#

All my other nms works

#

just that one

#

doesnt even give me an error

wraith thicket
#

You just told us that you got an error in your IDE?

tacit trellis
#

I doesnt show it in red but maven tells me it cannot compile i think

crimson sandal
#

Maven errors like that aren't very helpful in IntelliJ

wraith thicket
#

If maven won't let you compile then it's an issue in your dependency setup

crimson sandal
#

I would try running maven clean

tacit trellis
#

i do clean install

crimson sandal
#

try running BuildTools --rev 1.16.1 --compile craftbukkit , to install the CraftBukkit jar to your local repo again maybe?

tacit trellis
#

I will try but I dont think its work, its only that one and Ive seen a lot of people have the same problem on the internet

crimson sandal
#

And what have they said about it?

tacit trellis
#

never found an answers thats why I asked it here

wheat mirage
#

Is there any way to prevent block entities from lagging back on the client? They seem to always move slower on the server than on the client, huge desync causes ugly lag-backs.

#

Even with 20.0 tps

#

It's an issue

#

This is especially apparent when it isn't just falling, it's been given velocity.

unborn jewel
#

Any of you guys have made a bossbar plugin before

crimson sandal
#

Ah man, HangingBreakEvent isn't called when /kill @e[type=!player,distance=..4] is called to remove ItemFrames

wheat summit
#

How would I change the block water and lava forms?

#

I've tried a lot of different events though none seem to work

crimson sandal
#

Beat me to it @lone fog 😛

wheat summit
#

Ok thanks

frigid ember
#
        <dependency>
            <groupId>com.sk89q.worldedit</groupId>
            <artifactId>worldedit-bukkit</artifactId>
            <version>6.1.3-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>com.sk89q.worldguard</groupId>
            <artifactId>worldguard-bukkit</artifactId>
            <version>6.0.0-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>```
#

The WorldEdit one works, wg doesnt

#

thought it was the version but none worked :/

#
            <groupId>com.sk89q.worldguard</groupId>
            <artifactId>worldguard-bukkit</artifactId>
            <version>6.0.0-SNAPSHOT</version>```
#

the 3 names are all red

dense minnow
#

I only have 4 plugins across 5 servers that are connected to a mysql database

#

just curious if 3004 connections is normal or if I done gone and messed something up

sturdy oar
#

Maybe ....

#

One plugin...

#

Isn't closing the connection 😂

fleet crane
#

Pretty sure thats 3004 ever

#

51 at the moment

unborn jewel
#

How can i make a boss bar plugin

sturdy oar
#

With boss bar API

unborn jewel
#

Ok

wheat summit
#

I'm wanting to change the block a water and lava combo making cobble does, can anyone help? I'm using the BlockFromToEvent though that checks every block change, I've tried limiting it though there doesn't seem to be a way, is there a better event to sue?

#

Use*

sturdy oar
#

If you on 1.8.8 I think you need to use NMS/Packets/Someone else's library

wheat summit
#

Yeah may have to use NMS for bossbars in 18 ^

#

I don't see any BossBar object

dense minnow
#

I am wondering if I've misconfigured the plugins or if I have just set them up wrongly in general... Not used to setting up plugins that connect to mysql... >.<

unborn jewel
#

Viper I have it, so now what

sturdy oar
#

Have what

unborn jewel
#

BossBar Api

#

I added it to my library

sturdy oar
#

OwO

#

I've never used it, people just told me it works

#

There must be a documentation I guess

unborn jewel
#

🤦‍♂️

#

Nope there isn’t

sturdy oar
#

Btw what version are you even developing with

unborn jewel
#

1.8

sturdy oar
#

I'll look one second on spigot

unborn jewel
#

The BossBar api works for 1.8

sturdy oar
#

This right?

unborn jewel
#

Yea

sturdy oar
#

Yeah there's javadoc and a usage sample on the spigot page...

unborn jewel
#

Source code?

#

That doc page brings you nowhere

dense minnow
#

Are there any good tutorials out there for connecting bungeecord plugins to a mysql database? (luckperms, litebans, etc...)

Not sure if I should be connecting only the bungeecord-side plugin to the database or also each server instance of the plugin as well...

unborn jewel
#

Its pretty simple connecting them

#

Your just putting your information in there

dense minnow
#

yeah, but do I do it in every server instance or only in the bungeecord plugins folder?

unborn jewel
#

Every server

dense minnow
#

ah, ok! So I should have it connected properly in theory...

wheat mirage
#

@sturdy oar Hey, did you ever find out how to do the bed stuff?

unborn jewel
#

Viper their docs is broken

dense minnow
#

The reason being that my backend software to connect to server instances in the browser is having issues ever since setting up mysql. The guy who created the software is thinking that it keeps timing out because I am going over the connections limit, so we are assuming that it has something to do with the mysql database pushing us over our connection limit... I guess I will just have to reduce the number of plugins that are connected to the database.

sturdy oar
#

@sturdy oar Hey, did you ever find out how to do the bed stuff?
@wheat mirage no I'm angeri

#

Other servers are doing it tho

#

Like Cubecraft

unborn jewel
#

Viper do you know any other?

wheat mirage
#

@sturdy oar There's always a way

rose crystal
#

Is there a way to fix the 2-seconds delay when changing world?
there is a delay on the chunk loading on screen

sturdy oar
#

Some time

fleet crane
#

yeah there's no unread emails that old

#

either you got it wrong or it was a crappy ban appeal that got ignored

unborn jewel
#

@sturdy oar so i put this in my BossBar.java ```java
BossBar bossBar = BossBarAPI.addBar(player, the BossBar
new TextComponent("Hi " + player.getName() + "!"),
BossBarAPI.Color.BLUE,
BossBarAPI.Style.NOTCHED_20,
1.0f,
20,
2);

sturdy oar
#

Man I'm going to sleep soon

#

I don't code at 1 AM

unborn jewel
#

Ah ok sorry

sturdy oar
#

I'm GMT+2 timezone gang

sinful spire
wheat mirage
#

Is this the best place to get support for Protocollib

#

Trying to send an entitymetadata packet

#

And the source here tells me entitypose exists in the source.

unborn jewel
#

what is protocolib for anyways

wheat mirage
#

However, I'm using the latest version they have on maven and it doesn't exist there

#

Packets

unborn jewel
#

ah

nimble stump
#

It’s for listening to packets and sending them out easily with customized data

sturdy oar
#

Oh oh oh metadata is fun.

#

Glhf

wheat mirage
#

@sturdy oar I'm a bit out of practice with protocollib, think you could lend a hand?

ashen nebula
#

^^ same, metadata is not going well for me right now

wheat mirage
#

@zinc basin Any reason protocollib 4.6.0-SNAPSHOT doesn't seem to have EntityPose in the EnumWrappers class?

unborn jewel
#

how am Suppose to use the bossbar api if there is no doc

wheat mirage
#

@unborn jewel Look at createBossBar on the javadocs.

#

And BossBar

unborn jewel
#

isn't it though better to use an api

#

since im on 1.8

wheat mirage
#

Then use an API

#

Or update to have the spigot support

unborn jewel
#

How can i use the api if there is no docs

wheat mirage
#

@unborn jewel what are you talking about

unborn jewel
#

The bossbar api doc doesn’t work

wheat mirage
#

Link me

unborn jewel
wheat mirage
#

if you want support with third party plugins, ask them

ashen nebula
#

Yeah just use the built in spigot API

wheat mirage
#

We can't provide docs for something we know nothing about

unborn jewel
#

bruh

#

thats 1.16

wheat mirage
#

Bruh, check if it's in your 1.8 version

#

bruh, go find your own help if you don't want to use the spigot api

#

@ashen nebula Does your protocollib dependency have EntityPose as an Enum?

unborn jewel
#

its not

ashen nebula
#

Are you modifying metadata on entity spawn? I'm just trying to edit an existing entities name.

wheat mirage
#

@ashen nebula Trying to send a sleep packet

#

I need to access entitypose for this

#

But it's not in the dependency I have

#

which is the latest snapshot

#

which is bonkers

ashen nebula
#

Sleep packet for a fox?

wheat mirage
#

Uh, no?

#

A player

#

Could you please just answer my question

#

Does EntityPose exist for you?

ashen nebula
#

I'm not sure I assume not if we're both using 4.6.0-snapshot

#

I'm just trying to dig into metadata and understand wtf is going on

wheat mirage
#

Well just see if it exists in the EnumWrappers class please?

#

I can't find it in any dependency

#

Makes little sense

ashen nebula
#

Could you send a bit of your code? Are you putting this into a datawatcher or how are you sending the packet?

wheat mirage
#

@ashen nebula I'm just trying to use the EntityPose enum which doesn't exist in the code

#

Please look at around line 380 in EnumWrappers.java

#

And see if you find EntityPose

ashen nebula
#

Yeah I dont see it

wheat mirage
#

When I download it off jenkins

#

It does exist

#

When I download off of maven, it doesn't exist even in the non-dev latest build

#

@zinc basin

pulsar trout
wheat mirage
#

@ashen nebula I compiled it myself, I have it now

#

A bit of a joke honestly.

ashen nebula
#

¯_(ツ)_/¯

ornate birch
#

When I type say @e[distance=..100] in console, where's that distance relative from?

bold anchor
#

You

ornate birch
#

Actually, nevermind -- I found out. It's relative to the world spawn

stuck quartz
#

does PersistentDataContainer only saves to the saved block state?

wheat mirage
#

Anyone any good with protocollib? Please ping me.

stuck quartz
#

when i try getting the state of the block again it doesnt show the saved variable

frigid ember
#

try state.update(true)

stuck quartz
#

@frigid ember still not working

#

oh wait it works now

lilac echo
#

anyone can help me?

quick arch
#

its not
1.8.8 doesn't have a BossBar class, gotta do it with nms. ;)

keen compass
#

@lilac echo you should ask the appropriate devs

#

you are not using official bungeecord

lilac echo
#

@keen compass so the problem from the bungeecord.jar not from plugin

#

yeh i use flamecord

#

not the official one

keen compass
#

I am aware you are not using official bungeecord, therefore I can't make an accurate assessment in what your problem is

lilac echo
#

hmm ok thank you

lost solar
#

Helpme

#

I'm creating an edited spigot

tough kraken
#

i dont get it, i know this mapping eror, but i think its right formatted

frigid ember
#

Is 1.16 more stable than 1.14 was server side?

quick arch
#

yes, close or possibly above 1.15

unborn jewel
#

The method registerEvents(Listener, Plugin) in the type PluginManager is not applicable for the arguments (a, Plugin) how come im getting this

subtle blade
#

What is a

#

and does it implement Listener

tough kraken
#

one or both arguments are not possible..

first should be your Listener-classname
and second should lead to your main/plugin

unborn jewel
#

yes

#

its implements Listener

tough kraken
#

you named your class a? or am i dumb

unborn jewel
#

yea

#

im lazy to name it something else

tough kraken
#

idk if that is so good...

unborn jewel
#

why

subtle blade
#

Is it implementing the correct Listener?

#

There are some from Swing among other libraries in the JDK

unborn jewel
#

import org.bukkit.event.Listener;

tough kraken
#

well...

#

thats the right

subtle blade
#

And you're importing the correct class? (because as mentioned before, a really is not a great name)

unborn jewel
#

yes I am

tiny pebble
#

is a the name of the class?

tough kraken
#

idk if something other is called "a" in java

tiny pebble
#

oh that was answered oops

unborn jewel
#

well

#

i have to classes named a

tiny pebble
#

yeah probably should name it something more identifiable, even just naming it "Listeners" is better

unborn jewel
#

two*

tough kraken
#

i think i am the wrong to talk about java conventions etc, but a is really bad

tiny pebble
#

^

graceful vigil
#

imo class names should be somewhat identifiable

tiny pebble
#

If you got two classes named the same thing in the same paths they will clash with eachother

tough kraken
#

and a doesnt seems identificable...but thats just my opinion

#

i have to classes named a
@unborn jewel thaths the cause...

unborn jewel
#

i fixed it

tough kraken
#

good

unborn jewel
#

i named it p

tough kraken
#

i suggest giving your classes real names.
even Class would be better than a simple letter

graceful vigil
#

that is horrible practice @unborn jewel

tiny pebble
#

not sure how you are going to remember what class does what but good luck

graceful vigil
#

There's not really any good reason to name a class a single letter

unborn jewel
#

well

tough kraken
#

like i said i am probably the wrong to talk about such stuff, but thats what i am doing

tiny pebble
#

don't see why you'd be in the wrong, that's not a bad way of naming imo

#

it's better than a lmfao

graceful vigil
#

You should be able to at least infer a little about what a class does from the name of it

tiny pebble
#

^

tough kraken
#

well naming yeah, but
i dont use any packages etc

tiny pebble
#

that's fair, i tend to do the same

tough kraken
#

if some good coders see that... ouch