#help-archived

1 messages Β· Page 11 of 1

devout sierra
#

(a spefific block)

silk bane
#

i'm not aware of a way to do it with the bukkit api (though there may well be one), but you can listen for the Player Digging packet, and update some flag based on whether the status is 'start', 'stop', or 'cancel'.

devout sierra
#

uff..

#

what does stop do?

silk bane
#

stop is when the player finishes breaking the block

#

cancel is when the player decides they don't want to finish breaking the block

devout sierra
#

hm alright

golden vault
#

You may be able to use BlockDamageEvent depending on what you are doing

silk bane
#

blockdamagevent tells you when they start, but not when they stop

frank oasis
#

Sooo.... The instructions for BuildTools says this:

The very latest versions of BuildTools will automatically download and install Git for you. Only grab it manually if you are having troubles!

...followed by stating several times:

Do not double-click BuildTools[dot]jar

...uh ok, so what do I do then? I'm getting conflicting messages here.

#

(apparently I'm warned for posting URLs because I said BuildTools[dot]jar)

silk bane
#

it's not like you'll brick your system so might as well try double clicking it to see if it works

#

and if not, maybe download git bash Β―_(ツ)_/Β―

frank oasis
#

I did, it does nothing

silk bane
#

guess you download git bash then

frank oasis
#

So no one else has complained that the instructions are wrong?

#

I just hate not understanding why they say that

bronze pelican
#

Well, I have a really weird server crash.

fleet crane
#

1.8

subtle blade
#

That's also definitely not the whole crash log

lusty vortex
#

@bronze pelican Either post full crash log inside the latest.log (Not crash report), or try TacoSpigot for 1.8.

bronze pelican
#

Servers running fine, then it shows that nullpointerexception and is stopping the server

lusty vortex
#

Probably a StellarSpigot issue

#

I've been hosting 1.8 since it came out

#

Never crashed on CraftScheduler

bronze pelican
lusty vortex
#

Yeah I'm assuming he modified it

bronze pelican
#

Yea it's line 373 which would be

#
              Level.WARNING, 
              String.format(
                "Task #%s for %s generated an exception", new Object[] { Integer.valueOf(task.getTaskId()), 
                  task.getOwner().getDescription().getFullName() }), throwable);```
lusty vortex
#

How are you scheduling the task? You doing anything weird?

lusty vortex
#

I would just blame Stellar then tbh. He modified that class for sure.

#

It shouldn't be possible to throw an exception in that catch block unless something in the task field is null ,or the task it's self is null

#

Which it shouldn't ever logically be null. Unless of course someone messed with the class

bronze pelican
#

Yea I agree, but how would it be null

#

yea exactly

lusty vortex
#

That's something you'll have to ask the Stellar dev

bronze pelican
#

Well doing that then

fleet crane
#

if youre not running spigot this isnt the place to be

lusty vortex
#

From what I've heard, he mostly just tosses everything on parallel threads with no real thread safety

#

So who knows what he's done lmao

bronze pelican
#

Yea you're right md_5, I thought it was maybe a general issue, but yea I'll contact the fork dev

fleet crane
#

doesn't matter if you think it might be a general issue or not

lusty vortex
#

They don't even allow 1.8 support here lol

#

Too old

#

unsupported. Ect

frigid ember
#

all my factions plugins dont work but my other plugins are fine, what do i do?

fleet crane
#

sounds like an issue with your factions plugins or the way youve configured them

frigid ember
#

i didnt touch the config, is it possibily automatically disabled?

fleet crane
#

I suggest you look at your logs

frigid ember
#

i did it doesnt show anything up with it

#

@fleet crane wait do i need to install massive core for factions to work?

fleet crane
#

I have no idea, I suggest you read the plugin page

frigid ember
#

yeah it says dont get massive craft

lusty vortex
#

Ah THAT plugin

#

That plugin's super broken

frigid ember
#

FactionsUUID?

lusty vortex
#

No idea about that one. You're looking for a 1.15 plugin?

#

I'd suggest you just find an alternative until one works πŸ€·β€β™‚οΈ

frigid ember
#

yeaah

keen moth
#

You do not need MassiveCore for FactionsUUID

frigid ember
#

i cant find any

lusty vortex
#

There's tons of faction plugins nowadays

frigid ember
#

@keen moth yeah ik thats why i dont know why it doesnt work

lusty vortex
#

Is it RED in /pl

frigid ember
#

@lusty vortex all of them dont work for some reason

#

no

#

it isnt

#

its green

keen moth
#

'Doesn't work' can mean a lot of things

frigid ember
#

it doesnt do the commands

#

the only thing that works is /factions

#

anything else doesnt work

lusty vortex
#

And you have no error logs..?

frigid ember
#

nope

lusty vortex
#

Are you absolutely sure..?

frigid ember
#

yeah

quick arch
#

Your using MassiveCore factions?

frigid ember
#

no

quick arch
#

oh

frigid ember
#

FactionsUUID

#

before i used saber factions

#

both didnt work

quick arch
#

is there anything in the logs πŸ€”

frigid ember
#

oh

keen moth
#

Check your console logs for any errors or warnings

frigid ember
#

it disables factions

#

no error or warning

quick arch
#

πŸ€”

frigid ember
#

but thats the first thing it does

#

just disables it

keen moth
#

There are other alternatives with more features too: SaberFactions, SavageFactions

quick arch
#

provide the logs

keen moth
#

paste/hastebin please πŸ˜›

lusty vortex
#

My guess is

#

You've got multiple faction plugins/versions

#

And they're interfering with eachother

#

No clue otherwise

quick arch
frigid ember
#

ok

#

it deletes my link and i got warned by a bot

keen moth
#

Verify your account to post links

frigid ember
#

ok wait

#

@keen moth @quick arch

quick arch
#

A file isn't found apparently

frigid ember
#

why though

quick arch
#

Β―_(ツ)_/Β―

#

try deleting the Factions folder and letting it generate fresh

frigid ember
#

i tried that 5 times

quick arch
#

o

frigid ember
#

is it possible it disables the folder then it cant locate it because it goes offline or smth?

#

like can there be smth in the config that automatically disables it?

quick arch
#

no

#

It just can't find the file

keen moth
#

Try Savage/Saber factions

#

Or if you have the time, report the issue to drtshock

quick arch
#

doubt drtshock will do much

#

The plugin was only updated after SavageFactions became big with features

frigid ember
#

@keen moth yeah i had saber factions beforehand and im on their server and they just said you need vault and saber factions which i did

#

my elytras are causing players to have elytra effects even after they no longer have the elytra in the inventory and they have been killed it requires a player file reset for them to go away any ideas?

#

For my BedwarsRel plugin, the holo wont update

#

@keen moth can you help me?

#

or else @golden vault

golden vault
#

You should ask the author of BedwarsRel

frigid ember
#

who is that

golden vault
#

Where did you get it?

frigid ember
#

at the website

golden vault
#

Ok then go there and see how they want to be contacted.

frigid ember
quick arch
#

that versions... old

#

thought it's the one on Spigot, not Bukkit

frigid ember
#

i dont have a spigot one on my server hosting website

golden vault
#

Resource staff help moderate Spigot regarding resources. If you need help with a specific plugin you need to talk to the person that wrote it.

frigid ember
#

ok

gusty crane
#

Hey how would i use the .setDurability() thing i wish for it to set my item to the durability which is just about to break how would i do this? gs.setDurability((short) 1); does not seem to work

fleet crane
#

you want it the other way round

#

max durability - 1

#

you can get max durability from the material

gusty crane
#

ohh

#

so i just do .setDurability((short) -1);?

fleet crane
#

no

#

max durability - 1

#

where max durability is the max durability of the item, that you can get from the method in Material

gusty crane
#

so i gotta get the durability first

#

then set it

quick arch
#

yes

fleet crane
#

durability can be better described as Damage

#

and in fact is described as that in 1.13+

quick arch
#

wonky

shadow trail
#

Help everyone

nimble solar
#

Thank you so much for describing the issue in such depth

shadow trail
#

@zenith palm can you help me?

zenith palm
#

?ask

worldly heathBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply.

shadow trail
#

oh ty

#

?ask

worldly heathBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply.

shadow trail
#

i need help wuth my spigot server

#

failed to obtain login start packet

#

kept spamming me

#

i did build with build tools

fleet crane
#

post your log

shadow trail
#

my server lof

#

or the error?

fleet crane
#

the server log

#

it will contain the error.

shadow trail
#

@fleet crane i can't post anything

#

i cant use pastebin

#

no links

nimble solar
#

verify

shadow trail
#

?verify

fleet crane
#

!verify

tawdry lilyBOT
#

Usage: !verify <forums username>

final verge
#

Anyone know how to get the destination slot of a shift click in nms?

quick arch
zenith palm
#

Links enabled in here now πŸ™‚

quick arch
#

wot

shadow trail
#

kept spamming

fleet crane
#

hint: your protocollib version isnt compatible with 1.15.2, update it

shadow trail
#

ok hold on

fleet crane
#

this probably shouldve been obvious from protocollib being plastered all over the log

gusty crane
#

so ehe about that durability thing

quick arch
#

what

fleet crane
#

sigh

final verge
#

xD

fleet crane
#

I very clearly said not just -1

final verge
#

poor md

gusty crane
#

;I

quick arch
#

You can get the durability from the material

gusty crane
#

alcohol is key to great plugins trust me ik this is my first one ive got the knowledge

fleet crane
#

Material.getMaxDurability() - 1

quick arch
#

Is this your Balmer's Peak πŸ€”

fleet crane
#

also your code wont work in 1.13.2+ because of the warnings given in the deprecation message of setDurability

quick arch
#

Damageable.setDamage() πŸ€”

shadow trail
#

thank you @fleet crane

#

it wont happen

final verge
#

bUt DePrEcAtIoN dOeSnT mEaN bAd

#

xD

fleet crane
#

deprecation means read the damn docs

#

the world would be a better place if people did that

gusty crane
#

i were looking for it but

#

intelligence is non exsistent

#

on my side

#

ovb

dusty topaz
#

Last time I read the docs, getOnlinePlayers returned an array πŸ™ƒ

gusty crane
#

Im annoyed by how intelligent i am

vocal wraith
#

subtle flex

gusty crane
#

i assume u wouldnt be surprised if i were to tell u i havent come any further except from the page and all appreciate it thx

golden vault
#

Would I be crazy to use an enum like Operation.GIVE_PLAYER_MONEY with an instance of GivePlayerMoney.class in a field, so that a config with "givePlayerMoney" as a value could be matched to the enum then retrieve the GivePlayerMoney object? If it is not crazy is there a way to match "givePlayerMoney" to the properly named GIVE_PLAYER_MONEY?

gusty crane
#

ill ask again after several bottles and mental breakdowns @fleet crane if i still dont get it but thanks for the help i appreciate it m8

#

im thankful to myself i checked the rules before sending that

fleet crane
#

did you know you can have abstract enums @golden vault πŸ˜„

#

then you could put the GivePlayerMoneyObject code just as part of the GIVE_PLAYER_MONEY enum entry

shadow trail
#

at net.minecraft.server.v1_15_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) [spigot.jar:git-Spigot-ae72bf4-183139d]
at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeNext(SourceFile:118) [spigot.jar:git-Spigot-ae72bf4-183139d]
at net.minecraft.server.v1_15_R1.MinecraftServer.ba(MinecraftServer.java:918) [spigot.jar:git-Spigot-ae72bf4-183139d]
at net.minecraft.server.v1_15_R1.MinecraftServer.executeNext(MinecraftServer.java:911) [spigot.jar:git-Spigot-ae72bf4-183139d]
at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.awaitTasks(SourceFile:127) [spigot.jar:git-Spigot-ae72bf4-183139d]
at net.minecraft.server.v1_15_R1.MinecraftServer.sleepForTick(MinecraftServer.java:895) [spigot.jar:git-Spigot-ae72bf4-183139d]
at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:828) [spigot.jar:git-Spigot-ae72bf4-183139d]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_231]
Caused by: java.lang.NullPointerException
at com.earth2me.essentials.Essentials.onCommandEssentials(Essentials.java:389) ~[?:?]
at com.earth2me.essentials.Essentials.onCommand(Essentials.java:380) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[spigot.jar:git-Spigot-ae72bf4-183139d]
... 17 more

#

help

#

essentials aint working

#

i cant chat

fleet crane
#

check your logs again

shadow trail
#

at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:828) [spigot.jar:git-Spigot-ae72bf4-183139d]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_231]
Caused by: java.lang.NullPointerException
at com.earth2me.essentials.Essentials.onCommandEssentials(Essentials.java:389) ~[?:?]
at com.earth2me.essentials.Essentials.onCommand(Essentials.java:380) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[spigot.jar:git-Spigot-ae72bf4-183139d]
... 17 more

fleet crane
#

I mean at startup

shadow trail
#

whats that

fleet crane
#

the whole log

#

not just a small section of it

shadow trail
#

over 200 cahracter

#

pastebin?

fleet crane
#

sure

shadow trail
fleet crane
#

[20:04:03] [Server thread/ERROR]: Error occurred while enabling Essentials v2.13.1 (Is it up to date?)

#

you need a newer version of essentials

shadow trail
#

i just installed latest EssentialsX from spigot forum lol

fleet crane
#

doesnt look like it

shadow trail
#

so

#

i need to install latest essentials from Bukkit forum?

#

or spigot

fleet crane
#

it definitely does not look like you installed Essentialsx

quick arch
#

It's outdated

keen moth
quick arch
shadow trail
#

oh hold on

quick arch
#

oof

golden vault
#

I didn't know that, abstraction is one of my weaknesses. That would be great except that there is a whole package full of these Operation classes, spread across 3 different plugins. Before the plugin would have the operations defined in the config then it would Class.forName() them. But when the extension plugins told the main plugin what the extension classes would be It would log the "Plugin loaded class from other plugin which is not a depend softdepend or load before".

quick arch
fleet crane
#

@golden vault just make the extension plugins softdepend on the main one?

#

that'll remove the warning

golden vault
#

it does but the main one is what loads the classes of the extension after the extension tells it to. then the main one gives the warning

fleet crane
#

hmm

#

what's the extension 'telling' ?

viral roost
#

@fleet crane is spigot ur full time job

fleet crane
#

can't / shouldn't the extension be the one loading its own classes?

keen moth
#

Out of curiosity weaves, since you mentioned all this before, what plugin is this? πŸ˜›

golden vault
#

That is what I am trying to change it to doing, currently the config of the extension has strings that are also the name of the classes in the extension plugin that are passed to a method in the main plugin that does Class.forName() for those strings.

#

SignShop

fleet crane
#

just pass Class to the main plugin instead of String ?

frigid ember
#

Weaves are you the one who looks at premium resources

golden vault
#

No

#

lol

#

I met the minimum requirements for resource staff. I don't handle premiums, you can relax.

#

πŸ™‚

frigid ember
#

Oh so @keen moth does?

#

Just wanted to say thanks. Haven’t submitted anything, but appreciate your work. πŸ™‚

golden vault
#

md I would just do that if I was starting over. And I will be passing the classes once I make this update I am just not sure how to pass the classes referenced in the config of the extension when some of them are in the extension package and some are in the main package.

final verge
#

I would just do that if I was starting over.
I relate hard

golden vault
#

I was thinking about using an enum in each plugin that all implement a common interface

fleet crane
#

just move the Class.forName call from the main to the extension?

#

or ignore the warning for now, its just a warning πŸ™‚

golden vault
#

the latest release i have it printing a line that says to ignore the following warning from signshop

#

lol

keen moth
#

Just wanted to say thanks. Haven’t submitted anything, but appreciate your work. πŸ™‚
@frigid ember np. it's a team effort from all of us to handle resource reports & approval πŸ™‚

wanton delta
#

I'm having a crisis i need someone to point out my foolishness

#

i have this is a yaml file

#
- 354,0,291
- 156,0,177```
#

System.out.print(config.getStringList("coord")); prints []

fleet crane
#

use config.get and see if anything shows

final verge
#

use a different delimiter instead of , imo. Could try @

fleet crane
#

though it should indeed be a string list

wanton delta
#

yea im not sure why its not parsing

#

also thanks for that tool

fleet crane
#

did you load the config

wanton delta
#

YamlConfiguration#loadConfiguration

#

yes

#

this isnt the standard config.yml in the plugin folder so ill have to double check

#

but its worked successfully in the past, which is why im confused

#

i didnt make any changes to the path

dusty topaz
#

what did you change

golden vault
wanton delta
#

i didnt change anything

#

config.get returns null

dusty topaz
#

config likely isn't loaded

fleet crane
#

make sure you're editing the right config file also :p

golden vault
#

SignShop is very static and string oriented

dusty topaz
#

why do you need reflection

golden vault
#

Is Class.forName() case sensitive?

dusty topaz
#

yes

wanton delta
#

I found it

#

the folder was incorrect

#

changed the wrong one πŸ€¦β€β™‚οΈ

#

you would think im brand new to this stuff by how often i jump here lol

frigid ember
#

is there any plugin where i can just claim land and so it displays on dynmap

#

not factions

#

just claim land

#

so there will still be griefing or whatever

#

i just want something to mark my territory on dynmap

oblique prism
#

if anyone here deals with nms this guy needs help (not me)

final verge
#

ib4 this is hex

#

aye i called it

oblique prism
#

lol

#

@final verge how'd you guess

crude dock
#

Does anyone have any idea how long it takes for the verification private message to be sent to your forum account?

final verge
#

He was talking about it in another chat earlier xD

ashen siren
#

does anyone know how the cURL request from votifier gets sent?

frigid ember
#

Does anyone have any idea how long it takes for the verification private message to be sent to your forum account?
@crude dock try every 15 minutes again

sudden compass
#

Hello good, I read some posts that said that you could connect two different servers using bungeecord. Is this possible?

Kind:

host 1 -> bungeecord -> prelobby -> lobby ->
host 2 -> bungeecord -> spigot server

Or the other thing I ask if it is possible is the following:

Host -> bungeecord 1 -> prelobby -> lobby
Host -> bungeecord 2 -> spigot server
(They are the same hosts but with different bungeecord. Is this possible?)

frigid ember
#

do spigot servers support multiple resource packs?

#

a plugin i have sets a resource pack, but if i also want to specify another one in the server properties, will it override the one set by a plugin?

#

my end goal is to have both loaded

buoyant path
#
    at org.json.simple.parser.Yylex.zzScanError(Yylex.java:474)
    at org.json.simple.parser.Yylex.yylex(Yylex.java:681)
    at org.json.simple.parser.JSONParser.nextToken(JSONParser.java:269)
    at org.json.simple.parser.JSONParser.parse(JSONParser.java:118)
    at org.json.simple.parser.JSONParser.parse(JSONParser.java:92)``` 
```java
    public void set(String key, Object value, File jsonFile) {
        Object obj = null;
        try {
            obj = jsonParser.parse(new FileReader(jsonFile.getPath()));
        } catch (IOException | ParseException | NullPointerException e) {

        }
        JSONObject jsonObject = obj == null ? new JSONObject() : (JSONObject) obj;
        if (value instanceof ArrayList) {
            ArrayList<Object> array = (ArrayList) value;
            JSONArray jsonArray = new JSONArray();
            for (Object arrayObject : array) {
                jsonArray.add(arrayObject);
            }
            jsonObject.put(key, jsonArray);
        }

        if (!(value instanceof ArrayList)) jsonObject.put(key, value);
        writeFile(jsonFile, jsonObject);
    }```
```java
 public void writeFile(File jsonFile, JSONObject jsonObject) {

        try (FileWriter fileWriter = new FileWriter(jsonFile.getPath())) {
            fileWriter.write(jsonObject.toJSONString());
            fileWriter.flush();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }```
#

Can anyone help me fix this erro?

#

error?

#

obj = jsonParser.parse(new FileReader(jsonFile.getPath()));

#

its caused by this line when trying to save base64 inventories in JSON

subtle blade
#

Ew. JSONSimple lol

cloud sparrow
#

Best idea I would say is to have each texture pack on different items

frigid ember
#

Yea that’s what I have rn

#

I’m asking if it’s possible to have the server load 2 resource packs at the same time

fleet crane
#

resource packs or data packs

buoyant path
#

@subtle blade any suggestions lol?

#

i literally cant do anything until i fix this

fleet crane
#

like server side data packs and resource packs sent to the client are 2 very different things

frigid ember
#

For example a plugin sets the players resource pack to resource pack A. Resource pack A has a custom carrot item. I also want Resource pack B to be loaded, so I set it in server.properites. Resource pack B has a custom apple. So if both are loaded, I get the custom carrot and apple. Obviously it’s more complex than just 2 items, since both resource packs I want loaded add many different things. I’m asking if it’s possible to have both loaded like this?

#

Resource packs:)

fleet crane
#

I dont think you can make the client do that

#

merge the resource packs or have the user manually stack them

frigid ember
#

Oh ok I was just curious since I know you can set multiple on the client

#

I was curious if the server can do something similar

fleet crane
#

yes the server can, but textures obviously dont have effect on the server

#

so you're mixing terminology a little

#

all the resource pack set in server.properties does is tell the client to download it

#

for the client, not the server

frigid ember
#

Sorry, not well versed in server-lingo. I just mentioned the server.properties as an example of i could β€œpossibly” set 2 resource packs

#

But thanks anyway πŸ™‚

keen moth
#

Iron why not use Gson

golden vault
#

thanks md and Frosted for the help earlier, instead of using enums (holding objects) I have the extension plugin passing the operations objects to the main plugin and the main plugin checks that collection for existing external operations and uses them, then if it is not an external operation it uses the Class.forName() on its own stuff.

keen moth
#

I'm not sure what the internals look like, but is the Class.forName being called once, or being called multiple times for the same class?

#

If it's being called multiple times on the same class, I'd recommend caching

sudden compass
#

Hello good, I read some posts that said that you could connect two different servers using bungeecord. Is this possible?

Kind:

host 1 -> bungeecord -> prelobby -> lobby ->
host 2 -> bungeecord -> spigot server

Or the other thing I ask if it is possible is the following:

Host -> bungeecord 1 -> prelobby -> lobby
Host -> bungeecord 2 -> spigot server
(They are the same hosts but with different bungeecord. Is this possible?)
@sudden compass
Any response to mine?

buoyant path
#

@keen moth im already committed to JSON lol

final verge
#

its a committed relationship

buoyant path
#

idk what the error means i believe its illegal characters but

final verge
#

its complicated

buoyant path
#

Lol ^

keen moth
#

I mean it's an easy switch. Gson will automatically attempt [de]serialize objects for you.

buoyant path
#

Or, I could fix what i have lol

keen moth
#

that too lol

buoyant path
#

GSON is probably better but for this project i really wanna go with JSON

lusty vortex
#

GSON = JSON

#

It's a library for JSON

#

Super useful too

storm tulip
#

I use gson in my lib

#

I have a util so I can just 1 line it all

#

gson feels like magic

#

you do need typeadapters for somethings

keen moth
#

why in your lib?

#

do you mean included or actually used

storm tulip
#

I have a wrapper for JavaPlugin

keen moth
#

sorry misunderstood probably

storm tulip
#

which contains utils

buoyant path
#

Could i get that lib?

storm tulip
#

and also serializer

#

yea

buoyant path
#

would be nice xd

storm tulip
keen moth
#

You don't really need a lib for gson tho

storm tulip
#

yeah this just had other things I use

keen moth
#

You just need to make your gson instance and use it. Append any adapters if needed

storm tulip
#

this is kotlin tho

keen moth
#

It's REALLY nice for data πŸ™‚

storm tulip
#

^^

#

u can minimize the data too

#

so its using less space

keen moth
#

I use it for standalone loading, and use Jackson for jedis data

storm tulip
#

what is jedis

keen moth
#

redis

#

java impl of redis -> jedis

storm tulip
#

huh cool

#

I wonder how hard it would be to implement support for multiple dbs

#

like I use flatfile json rn

keen moth
#

abstract it out

golden vault
#

It only calls the forname method for each operation during on enable. I think it does call multiple times if the operation is in multiple kinds of shops but they are cached while the plugin is actually running

storm tulip
#

ok

keen moth
#

Oh ok Weaves. I was just suggesting it cache the classes if it's attempting to use Class.forName in other places outside of of onEnable during the program's lifetime

golden vault
#

Ya it's not that bad lol

keen moth
#

everything is working great now?

golden vault
#

Ya it has worked for years like it was. But now I don't have the annoying circular dependency message.

#

Now that I am maintaining the plugin I don't want users to have warning messages. Before 1.13 the message wasn't a thing.

frigid ember
#

Do the staff know each other irl? Like are you all friends irl?

golden vault
#

Never met any of the others irl

frigid ember
#

Oh lol

#

Sighs bash - Question: In my server console when I type in the command restart, the server does restart, but in the console it does not show running any longer. Per chance is my ubuntu shell being awkward?

fleet crane
#

No, it's just the way restart works

#

The better option is to just use stop and run your server in a loop

sudden compass
#

Hello good, I read some posts that said that you could connect two different servers using bungeecord. Is this possible?

Kind:

host 1 -> bungeecord -> prelobby -> lobby ->
host 2 -> bungeecord -> spigot server

Or the other thing I ask if it is possible is the following:

Host -> bungeecord 1 -> prelobby -> lobby
Host -> bungeecord 2 -> spigot server
(They are the same hosts but with different bungeecord. Is this possible?)
mmm help?

slim hemlock
#

if I try to spawn an entity in an unloaded chunk does the chunk load in async to spawn that entity?

frigid ember
#

no

#

I’m pretty sure you’ll get errors

slim hemlock
#

I've already done it with no errors so I have to assume that's not the case

#

just wondering if it's sync or async

#

actually now I'm questioning whether I really did that, I am almost 100% certain I did

#

too tired for this

frigid ember
#

Ok, thank you md_5

fleet burrow
#
public static long locationToLong(Location location) {
        return ((long) location.getBlockX()) << 38 | location.getBlockZ() << 12 | location.getBlockY();
    }

    public static Location longToLocation(long packed) {
        return new Location(null, packed >> 38, packed & 0xFFF, packed << 26 >> 38);
    }``` I have this to convert a location to a long but it seems to not work after `z=524288` as the output on the other end is `-524287.0` it overflows for some reason at such a very small number
#

nvm i casted z and y to longs

#

well, now when z<0 x=-1

tiny dagger
#

how can you comprime 3 double, 2 floats in a long, sounds impossible to me

#

also a world name

keen moth
#

You don't.

#

It's only the coordinates, nothing more

solemn grove
#

or is it client side only?

fleet burrow
#

Except it isn't working

#

Β―\_(ツ)_/Β―

keen moth
#

Did you write that yourself? seems a bit wonky

fleet burrow
#

Someone sent it to me

keen moth
#

I can suggest you a different packing you can try

fleet burrow
#

That'll be nice :)

tiny dagger
#

oh

#

i don't think you can even 2 locations because of the sign actually πŸ€”

keen moth
tiny dagger
#

for signed integer 1 whole bite was for sign

keen moth
#

@fleet burrow

fleet burrow
#

Thanks, I'll try it out now

tiny dagger
#

oh coords

#

i get it now

fleet burrow
#

Works

keen moth
#

nice!

devout sierra
#

could someone help me out with something?
I'm trying to learn making plugins with Intellij but even when i follow the tutorial as close as possible (https://www.youtube.com/watch?v=3EQ5G2Aodxg), it just doesnt dispose a .jar file for me.

Two possible mistakes I may have made are: screwing up the .jar file, or not fixing the LIB errors that I already got when I startet the program

#

id like to send an image of the yml file but I cant

knotty surge
#

is there a builtin way to just use brigadier directly?

slate ocean
#

can someone allow me start a thread in "Hiring developers" my name is CrispyCrumb

keen moth
#

@knotty surge not sure, but checkout commodore by luck

knotty surge
#

yea I've had a look at commodore, just seems a bit meh

slate ocean
#

umm frosted u there lol

slate ocean
#

yes

#

i did that

#

lol

uneven flame
#

someone can gives me a plugin for the scoreboard?

uneven lake
#

hi, im looking for a plugin developer how do i make a thread in the forum?

zealous yoke
#

These are the requirements

#

you have to create an account and then you have to use the blue "Post New Thread" button in the upperright corner in the correct section.

uneven lake
#

ty

quaint scaffold
frigid ember
#

hmm anyone has idea how i can block cactus from being broken by blocks on grow or cancel the event when that happens?

uneven lake
zealous yoke
#

then you have to get those 20 posts

#

help people for example in Spigot Plugin Help

#

but dont farm those posts or spam

uneven lake
#

may i ask in #general ?

zealous yoke
#

that is really not the right place

uneven lake
zealous yoke
#

the channel is for the spigot server

uneven lake
#

than what can i do?

#

i rly can't help anybody with spigot so i don't know how to make those 20 posts

sour dock
#

if are at the point where you want to buy or sell services related to spigot I suspect you have enough knowledge to at least help some people

dapper palm
#

how i can read forum in the web page?

#

i need help, with the comands blocks

#

in my server, becouse @p its not detectect

#

any @a @p @c ...

worldly scroll
#

it's possible to give link or newest release of spigot

normal swift
#

@worldly scroll just download BuildTools

#

and you will be happy

zealous yoke
#

There is not a download link for spigot AF21

dapper palm
#

im solved, i removed essentials plugin, thanks

dusky basalt
#

Hey, anyone here know how to make players spawn with a written book?

sour dock
#

give them a written book on player join

opal adder
#

You could get a plugin for it, like a essentials. Or use the PlayerJoinEvent if you know how to code.

frigid ember
#

im about to finish my server but i just have one issue someone help me

#

basically I have a GuiPlus set up and when players purchase something its supposed to give them an item but for some reason it doesnt give them an item and says "You do not have access to this command"

#

when im op it works

#

i have it trigger /give player item when they purchase something

shy shard
#

any one maybe know simple way to return default vanilla names of items from Material ?

#

so example like "Grass Block"

#

not just GRASS

vapid kindle
#

So, I've been looking into hoppers performance today and noticed that the way Bukkit (and thus Spigot) does the InventoryItemMove event puts a major load on the server even without plugins actually dealing with it.

In specific when the hopper tries to pull items (Mojang Method: tryTakeInItemFromSlot) from a container above will create an InventoryMoveItemEvent for every non-empty slot of the container until it successfully moves an item or no non-empty slot remains. That means, in the worst case a single hopper can throw 54 InventoryMoveItemEvents every single tick, without any item actually being moved.

Restoring Vanilla code reduced the performance impact of those hoppers in my (very simple) test setup by around 80%, not accounting for plugins.

Given that the plugins on my server that use this event don't even seem to assume/care for failed item moves I wonder if any plugin actually relies on this behavior. And even if one does I'd question whether that's worth the massive performance impact it has.

So... wouldn't it be better to just fire the event when an item has actually been moved?

(Also just created another test setup, a hopper trying to push into a container with non-full stacks will exhibit the same InventoryItemMoveEvent spam behavior)

wooden phoenix
#

sooo @vapid kindle what changes did you did on the spigot.yml file to have those results? or any other folder/file for that matter

vapid kindle
#

none, I built my own version of Spigot

naive goblet
#

Ur own version?

vapid kindle
#

well, a local fork

frigid ember
#

yessir

#

you forked

#

u meant

wooden phoenix
#

ok then but for us who can't do that xD do have any recommendation to try? XD cause i use a lot of hopper systems and that would be nice to test

vapid kindle
#

well, it was more directed at the actual Spigot maintainers, I should probably open a JIRA ticket instead πŸ€”

solemn grove
#

is there an api for command like this: /title @s actionbar [{"text":"It's a test","color":"gold"}]
?

#

or it's packet time?

vapid kindle
#

check the Spigot API, I recall something like that being there

solemn grove
#

okok

#

just to confirm if it exists

naive goblet
#

In 1.8.8 etc you need to involve nms

solemn grove
#

ill search for myself

#

i am 1.15.2

naive goblet
#

Ok Player has method for that iirc

solemn grove
#

great thx for the confirmation

vapid kindle
#

Player#spigot().sendMessage(ChatMessagePosition, BaseComponent)

solemn grove
#

yeah i saw it thanks a lot!

wanton delta
#

@shy shard there’s no API solution

#

β€œGrass Block” is what Minecraft the client handles

#

You could take and copy the β€˜Material.isBlock’ method and do something with that

valid zenith
#

Hi

boreal tiger
#

Beehive.isSedated() is throwing a NPE πŸ€”

#

I can get other properties

#

but isSedated is null πŸ€”

normal swift
#

NPE?

frigid ember
#

yup

#

yuh

sick citrus
#

Hey guys. Sorry posted this in #general.

I was wondering. In the previous versions of the API, to check if a block was a furnace, you needed to check block.getType() == Material.FURNACE || block.getType() == Materia.BURNING_FURNACE
What do we use now ? Do we still use Material ? Do we use MaterialData ? BlockData ? BlockState ?

boreal tiger
#

null pointer exception @normal swift

sick citrus
#

what's the "best" way

normal swift
#

aa

sick citrus
#

@boreal tiger usually a NPE is not on the method's result but on the object

naive goblet
#

Weby I was using BlockState but maybe BlockData is the correct way now idk

sick citrus
#

so in your case Beehive is null

boreal tiger
#

@sick citrus its not

#

I can get other properties

sick citrus
#

Show more of your code then.

boreal tiger
#

wait I think I know whats wrong

naive goblet
#

NullPointerException is mostly unassigned fields?

boreal tiger
#

oh wait I just read the javadoc

sick citrus
#

@naive goblet thanks

naive goblet
#

If we don’t initiate a field and later try to use it. It will result in NPE

sick citrus
#

NullPointerException is mostly unassigned fields?
@naive goblet could be

boreal tiger
#

its says "True if hive is sedated" so maybe if its not sedated it returns null

sick citrus
#

It returns false if it's not true.

#

Not null.

#

🐴

boreal tiger
#

yeah but beehive is not null

#

so its the method

sick citrus
#

Then show more of your code

boreal tiger
#

tahts returning null

naive goblet
#

Remember booleans are a way to check success or failure

sick citrus
#

and the error

boreal tiger
#

yeah it doesnt make sense to return null

naive goblet
#

@boreal tiger Spigot API?

boreal tiger
#

yeah

naive goblet
#

That’s weird

sick citrus
#

isSedated is not in the spigot api

boreal tiger
#

I can call the other methods sucesfully

sick citrus
#

Β―_(ツ)_/Β―

boreal tiger
#

it is

naive goblet
#

I mean if your server runs 1.15.2

boreal tiger
#

yeah I'm in 1.15

#

the plugin is 1.15 only

sick citrus
#

nevermind

naive goblet
#

Not the patch version?

boreal tiger
#

the patch version yh

sick citrus
#

@boreal tiger show more of your code please, cuz it could be loads of things.

#

isSedated returns a boolean primitive, so either true or false

naive goblet
#

^

sick citrus
#

never null

boreal tiger
#

the instance of beehive is not null

subtle blade
#

SHOW THE CODE

#

IT IS NULL

sick citrus
#

^

thorny quartz
boreal tiger
sick citrus
#

can we get a log of the error as well ?

boreal tiger
#

1sec

#

its in the line of the broadcast

sick citrus
#

that's BLockCampfire.java:177

subtle blade
#

NPE from NMS

#

You're passing something stupid

sick citrus
#

^

boreal tiger
#

wdym passing something stupid?

naive goblet
#

@thorny quartz It’s hard to know but it be a cause of managing worlds or something.

boreal tiger
#

should I not pass the block instance? @subtle blade

#

@subtle blade I just printed it before passing to that class

#

I still get an npe

naive goblet
#

Beehive seems to be BlockState and not BlockData or smtng

#

I am on phone so little hard to read lines in bin

boreal tiger
#

there's two classes theres Beehive blockdata and blockstate

subtle blade
#

The NPE is as a result of NMS trying to get block information from a null world. IBlockData iblockdata = world.getType(blockposition1);

#

Is this bee hive placed?

boreal tiger
#

it is

sick citrus
#

can you please try to do Bukkit.broadcastMessage("Beehive null : "+beehive==null); ?

subtle blade
#

When do you run this code

boreal tiger
#

on the PlayerInteractEvent

subtle blade
#

The beehive isn't null. It's an internal NPE

boreal tiger
#

beehive is not null

sick citrus
#

aight

subtle blade
#

Okay so the block isn't placed yet, Attlantiz

boreal tiger
#

oh

subtle blade
#

Events are called before

boreal tiger
#

oh wait i see

subtle blade
#

You want to call this in a BlockPlaceEvent

sick citrus
#

nice

boreal tiger
#

wait but I want to get the information after it is placed choco

#

if someone clicks a beehive thats already placed

subtle blade
#

Alright

#

And you construct this object every time it's right clicked?

frigid ember
#

anyone knows why i dont get verify message on spigot?

sour dock
#

check that DMs are enabled

boreal tiger
#

I do, I know its not a good idea, changing that soon

frigid ember
#

i have dms enabled

subtle blade
#

Can I see your listener?

boreal tiger
#

sure

subtle blade
#

gaspercino, give the bot about 15 minutes or so. It may be rate limited

#

Lots of people verifying at once

boreal tiger
#
    @EventHandler
    public void onRightClick(PlayerInteractEvent event) {
        Player player = event.getPlayer();
        Action action = event.getAction();
        Block clickedBlock = event.getClickedBlock();

        if (action == Action.RIGHT_CLICK_BLOCK && player.isSneaking() && clickedBlock != null) {
            if ((clickedBlock.getType().equals(Material.BEEHIVE) || clickedBlock.getType().equals(Material.BEE_NEST)) && player.hasPermission("beesplus.beehive.view")) {
                event.setCancelled(true);

                Beehive beehive = (Beehive) clickedBlock.getState();
                Bukkit.broadcastMessage(Boolean.toString(beehive.isSedated()));
                guiManager.openGui(player, new BeeHiveInfo(beehive));
            }
        }
    }
thorny quartz
#

@naive goblet Oof i really need help 😭

boreal tiger
#

the broadcast was for testing choco

subtle blade
#

Figured that was the case, yea

boreal tiger
#

do you have any idea what the problem might be?

subtle blade
#

Trying to see if there's any reason that world would be null in this case

boreal tiger
#

mhm

frigid ember
subtle blade
#

For the sake of debugging, mind throwing in:
((CraftBeehive) beehive).getTileEntity().hasWorld() and printing that out?

boreal tiger
#

sure

subtle blade
#

(for the beehive block state, not the data)

boreal tiger
#

one sec

#

right

subtle blade
#

You should @frigid ember, but again,

give the bot about 15 minutes or so. It may be rate limited

#

Try again later

frigid ember
#

i tryed yesterday still havent got anything.

subtle blade
#

Some had to try 3 or 4 times

frigid ember
#

ok

boreal tiger
frigid ember
#

okay now it worked thanks choco for advice.

subtle blade
#

oh lol. .block

#

The middle one

frigid ember
#

yup πŸ‘

boreal tiger
#

getTileEntity()' has protected access in 'org.bukkit.craftbukkit.v1_15_R1.block.CraftBlockEntityState'

subtle blade
#

πŸ™„

frigid ember
#

@subtle blade i said yes two times and automoderator warns ne

#

me, what is that bruh

#

if people ask qs and i just say yes twice

#

it is considered spam

#

i tag two people, automod warns me

#

as a quote

naive goblet
#

@boreal tiger reflections maybe

subtle blade
#

Bot's a bit harsh, don't worry much about it. Doesn't do anything

#

Yea you'd have to reflect it. 1 sec

frigid ember
#

Ok

boreal tiger
#

you mind sending it please? not very experienced with reflection πŸ˜›

subtle blade
#

Yea I got ya

naive goblet
#

Master Choco lmao

frigid ember
#

ah im trying to like disable cactus from being dropped when broken by block on grow and i still have no idea XD i did add physic event but idk how can Cactus transform into cactus and AIR into AIR XD

subtle blade
#
try {
    Method methodGetTileEntity = Class.forName("org.bukkit.craftbukkit.v1_15_R1.block.CraftBlockEntityState").getMethod("getTileEntity");
    methodGetTileEntity.setAccessible(true); // Maybe not necessary?
    TileEntity methodGetTileEntity = methodGetTileEntity.invoke(beehiveBlockState);
} catch (ReflectiveOperationException e) {
    e.printStackTrace();
}```
#

Oh wait lol

#

Don't remember if you have to set accessible private methods

#

If you don't, ignore that middle line

boreal tiger
#

right

subtle blade
#

oh fuck. full package

#

Used to utilities

boreal tiger
#

πŸ˜‚

frigid ember
#

may i ask so:

Bukkit.getConsoleSender().sendMessage(event.getChangedType().toString() + " " + block.getType().toString());

either requrns AIR AIR
or CACTUS CACTUS
so im not sure how i could check if like CACTUS turns to AIR? and disable its drop?

#

event is BlockPhysicsEvent

subtle blade
#

Sorry it's been a while lol

#

okay i think it's good now

#

I'm not in an IDE ;P

boreal tiger
#

ahah np. what should I do in the invoke method?

#

parameter wise

#

wait

subtle blade
#

Oh the instance LUL This is what happens when I'm not in an IDE. Pass your beehive state

boreal tiger
#

ah right haha

naive goblet
#

Check how the method by decompile

boreal tiger
#

done thx I'll print what you asked now

subtle blade
#

At least hasWorld() is public

naive goblet
#

And then if it’s a String param put String.class etc

#

@frigid ember if source block is cactus and material is cactus as well?

#

Or am I wrong?

frigid ember
#

hmm

boreal tiger
#

class not found choco πŸ˜‚

#

in the reflection part wait

subtle blade
#

(β•―Β°β–‘Β°οΌ‰β•―οΈ΅ ┻━┻

#

org.bukkit.craftbukkit.block.v1_15_R1.CraftBlockEntityState

#

I COPY PASTED THAT TIME

naive goblet
#

Isn’t getDeclaredMethod better?

subtle blade
#

Does it exist?

#

Again not in an IDE lol

#

Didn't remember if it was just fields or methods as well

boreal tiger
#

I'll try to find it one sec

naive goblet
#

If I get to know how to control my brain I’ll install an IDE in my brain

boreal tiger
#

found the rror lmao @subtle blade

naive goblet
#

@boreal tiger try find the method name, method params, and the class path?

boreal tiger
#

block and v_15 are switched xD

naive goblet
#

Or mb nvm

subtle blade
#

:((

#

i knew that

boreal tiger
#

no such method now xD, let me try to find the method

subtle blade
#

Yea there's probably a declared method thingy

boreal tiger
#

yeah yeah

subtle blade
#

getDeclaredMethod()

frigid ember
#

yeah

#

cls.getClass().get...

boreal tiger
#

it outputed true @subtle blade

frigid ember
#

right?

subtle blade
boreal tiger
#

for the hasWorld

subtle blade
#

That was the opposite of what I expected

naive goblet
#

or Class.forName ? Retrooper?

subtle blade
#

Well now I'm just confused

boreal tiger
#

xD

#

reflection seems very intuitive I should probably spend some time learning it

subtle blade
#

OH BUT THE CAMPFIRE DOESN'T

#

omfg

#

Okay so it is a bug

naive goblet
#

@boreal tiger Yeah it’s kinda simple (:

subtle blade
#

WAIT NO

#

i hate this game

boreal tiger
#

hahaha lmao

subtle blade
#

But it's passing this.world PES_HyperReee

boreal tiger
#

reeeee

frigid ember
#

i have another problem guys, so how could i check when cactus gets broken by block so far i have this:

    @EventHandler
    public void onBlockUpdate(BlockPhysicsEvent event){
        Block block = event.getBlock();
        if(registeredBlocks.contains(block)){
            //Bukkit.getConsoleSender().sendMessage("Found the block..." + block.getType().toString())
            Bukkit.getConsoleSender().sendMessage(event.getChangedType().toString() + " " + block.getType().toString());
            if(block.getType().toString().equalsIgnoreCase("CACTUS") && event.getSourceBlock().getType().toString().equalsIgnoreCase("CACTUS")){
                Bukkit.getConsoleSender().sendMessage(event.getChangedType().toString() + " " + block.getType().toString());
                Location below = event.getBlock().getLocation();
naive goblet
#

Attlantiz I can try teach you rn how it works

frigid ember
#

but that just gets everytime cactus grow anywhere XD

naive goblet
#

Pls bin

subtle blade
#

The only possible way that can be null is if world was null but it's not and PES_CryHands

#

Are you on the most recent version of 1.15.2, Att?

boreal tiger
#

yeah

#

I can try rebuilding spigot if you want

naive goblet
#

No idm

subtle blade
#

Yea, give it another build so at least the stacktrace is up to date, I'll do the same with mine

boreal tiger
#

@naive goblet sure let me jsut finish that, thanks!

#

@subtle blade πŸ‘

#

give me 5min

subtle blade
#

Sounds good

naive goblet
#

Hmm you sure updating the build would do a differ?

subtle blade
#

(can remove that reflection by the way lol)

#

Yes because the stacktrace might differ from one version to the next if any patches were made

#

At the moment I think we're finding a CB bug

#

Or at least a CB oversight on a vanilla bug

rough root
#

I blame choco.

#

trying to do a pvp area within my survival world, where the server has pvp enabled in server.prop, but pvp isn't working.

boreal tiger
#

mhm

subtle blade
#

Are you in spawn protection or do you have WG?

rough root
#

not spawn protection, I'm not a complete noob :P

subtle blade
#

WELL

boreal tiger
#

when I finish building spigot, you want the stacktrace for the isSedated thing right?

rough root
#

and wg region set up for it has pvp allowed

subtle blade
#

Yes πŸ™‚

rough root
#

as did the global region

boreal tiger
#

right, I'll ping you when It finishes

subtle blade
#

o/

frigid ember
#

Choco i have question so yesterday you recommended me to use BlockPhysicsEvent to check if cactus got broken by block on grow but now idk how i could do that and how i could disable it from dropping a default cactus.

#

Anyone know how to set up luckperms for bungeecord?

rough root
#

Pretty much the same as for spigot

frigid ember
#

but like

naive goblet
#

@frigid ember documentation exists

frigid ember
#

How do I make it so they have the same roles in each server

naive goblet
#

Database

#

Like MySQL or smtng

#

Then name bungee server β€œbungee” in the config in BungeeCord and when adding permissions to bungee you need to put server=bungee

boreal tiger
frigid ember
#

or just use the /lp editor

#

lpb is for bungee i think

#

i recommend using pluginmesaging to so it syncs permissions faster

boreal tiger
#

are we filling a bug in spigot issue tracker then?

subtle blade
#

I just don't know if I can be convinced it's a CB bug. The thing that's confusing me is that the line the NPE is being thrown on isn't possible

#

It's IBlockData iblockdata = world.getType(blockposition1); but we checked hasWorld() which is just a null check

boreal tiger
#

mhm I can try checking on another event if you want

subtle blade
#

Won't make much of a difference I'm afraid

boreal tiger
#

right

subtle blade
#

Going to sound stupid but do you want to run it one tick later?

boreal tiger
#

sure

subtle blade
#

Doubt it will fix it but hey, worth a shot

boreal tiger
#

I got the same thing :/

subtle blade
#

Okay... so at this point I'd say make your own check because I honestly have no idea

#

1 sec

boreal tiger
#

for the run later one

#

can this be done with nbt?

#

the isSedated thing

subtle blade
#

Nah, Mojang makes the check every time. I'll write one, 1 sec

boreal tiger
#

thank you πŸ˜›

subtle blade
#

Lemme actually open an IDE though lol

boreal tiger
#

sure hahah

naive goblet
#

opens eclipse with ultra white gradient theme :o

frigid ember
#

i have question:
https://i.imgur.com/j7LyGHK.png
so i listen for cactus stuff either i get
AIR AIR
AIR
or
CACTUS CACTUS
CACTUS
is there a way for me figure out if cactus got broken by block on grow?

rough root
#

alright, what all could be blocking pvp?
server.properties is set to true
spigot.yml/bukkit.yml have no settings??
worldguard region __global__ is set to allow
no other region in the way
can't pvp in or out of the minigame... so not a minigame issue, as far as I can tell..

subtle blade
#

I think this will work fine, @boreal tiger

    public static boolean isSedated(Beehive beehive) {
        Location location = beehive.getLocation();
        for (int i = 1; i <= 5; i++) { // Vanilla checks 5 blocks
            Block block = location.subtract(0, 1, 0).getBlock();

            if (block.getType() == Material.CAMPFIRE && ((Campfire) block.getBlockData()).isLit()) {
                return true;
            }
        }

        return false;
    }```
naive goblet
#

@frigid ember You could check ItemSpawnEvent

subtle blade
#

It's at least a temporary work around while isSedated is being strange

frigid ember
#

but i cant check if cactus got broken....

subtle blade
#

I'll mess around with it on a server later

boreal tiger
#

right, thank you πŸ˜„ I'll try it

naive goblet
#

Wym

hollow bane
#

Could I contact someone from the administration in a private message?

boreal tiger
#

@subtle blade there isnt a isLit method rip hahaha. can this be done using nbt?

subtle blade
#

wat

#

what do you mean there's no is lit method?

boreal tiger
#

for the campfire

subtle blade
#

Are you importing the right one?

#

block data, not state

boreal tiger
#

oh oops

rough root
#

So, none of you have any idea what all could be blocking pvp from being allowed?

boreal tiger
#

my bad lmao

subtle blade
#

;P

boreal tiger
#

thanks

hollow bane
#

@subtle blade Could I write to you in a private message?

valid zenith
boreal tiger
#

thats the actionbar

#

you could have a runnable check if there's a player where your looking at

#

and getting their display name if there is a player

valid zenith
#

Yes

#

Pls help me, how to setting?

#

I have plugin

ChatBubble
CMI
TAB
Chatty

crimson raft
valid zenith
#

Support 1.15.2

#

I am use server 1.15.2 paper

frigid ember
#

haha got the if got broken event working

valid zenith
#

?

frigid ember
#

eh been trying to do it for 3 days

#

and finaly figuret out

#

figured*

crimson raft
#

Support 1.15.2
@valid zenith i dont think so sorry

#

is the one i could find on spigot, it cost 4.5 euro

hollow root
#

hey! Im looking how to enable logging. My logs folder does contain a lastest.log file but it says that logging is disabled. How do I turn this on?

sour dock
#

how is a plugin that sends strings to the action bar on an interval a premium plugin πŸ€”

#

well it sells so I guess there is demand

tiny dagger
#

omg

stuck viper
#

hi!, i cant get dynmap to render anything. i do /dynmap fullrender world. and then it doesnt output anything. the stats shows 0 on everything. but if i do the command again it says is already in process. I have already done forceupgrade on all chunks and im running the latest dynmap and spigot

#

And its stays like this for hours. it never changes

frigid ember
#

^

#

@stuck viper wait whats forceupgrade

stuck viper
#

Its when you update the chunks on the world to the latest version of the game

sour dock
#

forces upgrading all chunks, used when transitioning from 1.13->1.14->1.15 etc

frigid ember
#

oh

sour dock
#

if you don't do this it will upgrade chunks when they are first explored in the new version

frigid ember
#

i started off from 1.15

#

so im fine

sour dock
#

even when upgrading it's fine to not do this, you'll just get a bit of a performance hit when people enter old chunks

frigid ember
#

also is there any plugin with /trade thats supported by vault in 1.15?

stuck viper
#

Yeah i was thinking if the old chunks interfered with dynmap but it didnt help

#

@frigid ember Mayby essentialsX

frigid ember
#

it doesnt

#

i have essentials

stuck viper
#

Ohh okay

solemn grove
#

is there a block state updated event?

stuck viper
#

Hi what you mean by block state update event? πŸ™‚

solemn grove
#

like an event fired after i updated a blockstate: blockstate.update()

stuck viper
#

Ohhh how do i see this information?

frigid ember
#

I did /wb trim and /wb fill 30 0 then once it finished i restarted and did /dynmap fullrender and once it finished there are still chunks that arent loaded in (i manually loaded every other chunk)

#

what do i do?

#

(note i did this 3 times already)

#

still doesnt show chunks on dynmap

#

tried going to the chunks?

#

thats just manually loading it all in

#

which i already did but i dont want to do it anymore

wanton delta
#

ive had the same problem with dynmap

#

do they appear when you zoom in?

frigid ember
#

you'd probably be better off contacting the dynmap dev

#

depending on the server version, it could just be a problem with his plugin

vagrant rune
#

Hello there guys!

Who could spend a little time with me and help me figure out, what the hell is wrong with me, my server and my understanding of how servers should work?

Short info:
Privat vanilla server, Spigot 1.15.2, ~10 not heavy plugins, and from 3 to 15 players online.
VPS: 1x (or 2x) 3.9-4.5 GHz CPU, 4gb (or 8gb) RAM. SSD.

The problem: low TPS and ~lags.

I have a huge text to explain my question, so.. I share it on pastebin)
https://pastebin.com/wVnraZ4W

I would be so happy if someone could help me with it, so please if you have some ideas, could you DM me or @vagrant rune here ?

frigid ember
#

its the vCore

#

lol

#

VPS's are decent but anywhere above 13-15 with 1vCore is eh especially on 1.15.2

#

you are using shared resources

#

so ofc its not going to be running well

wanton delta
#

he said he upgraded to 2 vCores

#

but yes

#

i agree

#

@vagrant rune can you run timings?

#

/timings paste

frigid ember
#

even 2 vCore's

wanton delta
#

uea

frigid ember
#

it won't really be enough

wanton delta
#

yep

frigid ember
#

maybe 5 more players then poop

vagrant rune
#

I understand what is vCore, but..
the PLAN plugin, and >htop on my console sais that there are 40-60% cpu usage.

wanton delta
#

roosky i see

vagrant rune
#

like, htop stats are:
1st and 2nd core load jumps from 0 to 80

wanton delta
#

:p

#

hm

frigid ember
#

check your panels cpu usage

#

the plugins you have don't really cause issues

vagrant rune
#

@wanton delta not the actually rooo, but roo speaking)

frigid ember
#

AuthMe maybe is the most intensive

wanton delta
#

yea ive studied a bit of russian as well

frigid ember
#

what's in the castle

vagrant rune
frigid ember
#

KeepChunk is also an iffy one

#

that could also be a reason why

vagrant rune
#

KeepChunk used only for 4 chanks for my.. "admin room" where are few command block are

#

Regarding the UNDER the castle chaos: it's the only one place on the whole server

rough root
#

I hate multiverse sometimes.

#

it was blocking pvp.

vagrant rune
#

multiverseCore ? If so.. I don't use it on the current server

#

I have a quick look for TIMINGS paste info and... need a bit time to read it deeply, but I see that WorldEdit and AuthMe Avg tps is in a yellow zone..

And next question is.. Players don't user WorldEdit at all. This plugin is blocked by permissions for them. How it could be that the WE tps are in the yellow zone?

frigid ember
#

AuthMe is a big contender on performance followed by just how chunks are handled on 1.15 and including your player count and using shared resources.

#

do you need AuthMe for any particularly like are you in offline mode?

#

and WorldEdit has things running in the background regardless of who using it

vagrant rune
#

Nope
I'm using it only like LOGIN-plugins and save user logout location.

#

and WorldEdit has things running in the background regardless of who using it
@frigid ember hm, understood. thanks

frigid ember
#

ok then you really shouldn't need AuthMe, its just extra strain and annoyance for your players

vagrant rune
#

agree. Thanks)
Mb any advice for other login-plugin?

#

Also, I have sinned on the CoreProtect - can it eat a lot of resources too?

frigid ember
#

Its properly maintained by the dev so not necessarily

vapid kindle
#

looking at the timings it looks like server lag is mostly caused by Villager and Hoppers

vagrant rune
#

hm, sounds quite logically
thanks I'll experiment with it)

wanton delta
#

hopper lag can be reduced with droppers on top

#

a lot of villagers usually mean iron farm... which is usually in spawn chunks

#

so not much i can say there

vapid kindle
#

put Composters on top, they're better than droppers

wanton delta
#

i did not know

#

fairly new block so :p

vapid kindle
#

yeah, figured that out myself yesterday. It has fewer inventory "slots" to check and by itself has no logic, so it's rather lightweight

vagrant rune
#

dropper? composter? what) how dows it can help? how minecraft works?)

wanton delta
#

hoppers are constantly checking for items on top of them

vagrant rune
#

a-haa

yeah, figured that out myself yesterday. It has fewer inventory "slots" to check and by itself has no logic, so it's rather lightweight
@vapid kindle

wanton delta
#

if you put a tile entity on top

#

they will stop checking

#

the best tile entity to use is composters

vapid kindle
#

also telling WorldGuard to ignore hoppers might reduce it's impact as well

vagrant rune
#

iron bars are enough?
I see some of the players put iron bars on top of the hoppers

vapid kindle
#

it must be a block with an inventory

wanton delta
#

heres a vid with more info

stone oxide
#

Can I somehow alter a command I'm sending?
The quirk is that I can call any command, like, even Minecraft ones.
So I wanna like add come variables and functions into commands,
so I can call /tp Kitulous {rand -100 100} 0 0 and {rand -100 100} will be replaced by my plugin to a random number between -100 and 100. But I don't know how to modify the chat packet or whatever that is.
Is that even possible?
I tried googling but no result (maybe I googled bad)

frigid ember
#

does one get a role for boosting

wanton delta
#

yes

#

look at the side

#

lol

frigid ember
#

Ok

#

e.setMessage() i believe

#

use the playerprecomamndprocessevent or so

stone oxide
#

I'll try that out rn thanks

vapid kindle
#

basically, if a hopper has an inventory block above it it will try to pull from it, if there isn't it will try to pull in items on the ground (even if that's impossible due to normal blocks above it)

frigid ember
#

i keep forgetting how the event called

#

playercommandpreprocessevent ke something along thise lines

wanton delta
#

@stone oxide you can process it with PlayerCommandPreprocessEvent

#

and parse it yourself

#

mojang should probably update the behaviour check if the hitbox of the block on top is a full block :p

vagrant rune
#

well, thanks a lot for all support.
I'll go deep to set up the "Aikars flags", and try to figure out what it is)
also... mb will find the AuthMe replacement

  • fix hoppers
  • telling WorldGuard to ignore hoppers
  • fix "Aikars flags"
  • find the AuthMe replacement

thanks a lot, guys!

vapid kindle
#

also Villagers, there may be some options in the spigot.yml regarding activation/ticking of villagers that might help

hollow root
#

Hey! I want to enable logging of the konsole but I can't get it work. can someone help me?

wanton delta
#

your console doesnt log to the logs/ folder?

hollow root
#

no, the file that is there said that logging is disabled but that file is from last year.
latest.log

wanton delta
#

strange, otherwise i dont know. should be on by default

hollow root
#

Idk if i did something wrong in the spigot.yml, or if something else is disabling it.
But I don't know what to look for. 😦

hollow root
#

I even replaced the spigot.yml but nothing changed.

solemn grove
#

i wanted the parrot dancing but i do not want the sound playing

player.playEffect(location, Effect.RECORD_PLAY, Material.MUSIC_DISC_STAL);
player.stopSound(Sound.MUSIC_DISC_STAL, SoundCategory.RECORDS);

i use this but it work only for the first time, the rest of the time i run the function it never stop the sound
anyone knows why?

wanton delta
#

Use World#playSound and set the volume to 0

vagrant rune
#

hm, also, guys, one question for the end
(and sorry for @ you)

@frigid ember grimaced upon learning that I have vCore!

so could you guys share your experience?

What would be better for my needs:
#1 - 2 vCPU of powerful 3.9-4.5 GHz,
#2 - kick off the hostings and made own server PC (with ~xeon E5-1620v2 3.7-3.9 GHz) and separete

@wanton delta

frigid ember
#

uh

#

ok

#

don't use your pc

wanton delta
#

i know that the code libraryaddict will get u 30% off bisecthosting

#

lol

#

if youre interested in a dedi

frigid ember
#

BisectHosting was a peculiar hosting when I used it

#

hope they improved

wanton delta
#

ive heard good things

frigid ember
#

I got a horror story from one of the founders of the server I am on from them, it was 4 years ago

#

we switched to OVH after it

wanton delta
#

Kimsufi is a child company under OVH and they offer real cheap dedicated

#

worth checking out as well

frigid ember
#

mid-range is SYS

glacial plaza
#

anyone using ovh here at the moment tho?

frigid ember
#

in a way yea

vagrant rune
#

ofc, like additional server-only pc
I can put it in my work's office and we could launch there some file storage for our needs

So we could find a way to use it for some way beside the Minecraft.

But, would such a radical and +- expensive decision be justifyed?

frigid ember
#

child companies

#

is your server public

#

is it private for your friends?

vagrant rune
#

*my host right now is OMGserv
GAME-4/8 plan, if you are interested in

frigid ember
#

who that

solemn grove
#

@wanton delta the parrot doesn't react to it even with the record sound category

frigid ember
#

I wouldn't do a minecraft server at home unless I knew everything I was doing

solemn grove
#

I am pretty sure it needs the effect packets

glacial plaza
#

Hosting at home probably not worth it unless you have top internet speeds

vagrant rune
#

Like, I'm seting up the VPS by myself, from installing and seting up DBs and so on. Does it enough knowledge?)