#help-archived

1 messages · Page 149 of 1

frigid ember
#

yeah, but i think a FileConfiguration can handle yaml too.

#

But you can declare it as a FileConfiguration as you won’t need the YamlConfiguration implementations
@naive goblet ok

naive goblet
#

FileConfiguration config = YamlConfiguration.loadConfiguration(File)

#

iirc

frigid ember
#

ok thanks.

hoary parcel
#

It's the substitution principle

naive goblet
#

It’s the MiniDigger

crisp widget
#

Is there an alternative to WorldData in 1.16?

#

In 1.15 that class is 853 lines long, in 1.16 it's only 42

ashen stirrup
#

How do you set a custom currency as the Vault economy currency? My economy class extends the vault Economy, not sure where I go from here though.

frigid ember
#

Is this the right way to get a resource? jdk.xml.internal.SecuritySupport.getResourceAsStream

#

Or is there any better way?

halcyon snow
#

Like getting a resource within the jar file?

frigid ember
#

Yes. As a stream

lament cove
#

theres a method in javaplugin for that

bright forge
#

After that you need to register the economy @ashen stirrup

hoary parcel
#

Is there an alternative to WorldData in 1.16?
@crisp widget that got completely refactored

bright forge
#

I think theres a guide on vault site

hoary parcel
#

I forget most of that, but check for a WolrdDataServer

#

I think that's how md called the class

crisp widget
#

Ahh yes that class contains what's missing, perfect

#

Cheers

hoary parcel
#

Mojang changed a bunch of such stuff

#

World/worldserver, worlddata/worlddataserver, iblockdata/baseblockdata etc

hexed lodge
#

Testing ServerRestorer and when running the backup, i get these (for world, world_the_end and world_nether)

"§6[§3ServerRestorer§6]§8 FAILED TO ZIP FILE: C:\Users\Root\Desktop\backups\world_the_end\session.lock Reason: java.io.IOException"

I've also tried with ebackup, drivebackupv2 and they all give me that error

hoary parcel
#

Was kinda a pain for updating paper to 1.16

hexed lodge
#

PS: Running on paper 1.16.1 btw

hoary parcel
#

Post the full exception pls

#

But that looks like file permission errors

#

Oh or wait, mojang changed how session lock works in 1.16, maybe the plugins all can't cope with that

hexed lodge
#

Oh or wait, mojang changed how session lock works in 1.16, maybe the plugins all can't cope with that
@hoary parcel Im kinda certain is this but cant know for sure, i've tried like 4 plugins they all do the same error. Do you think plugins devs will be able to fix it?

hoary parcel
#

They will, if somebody reports that issue ^^

gusty swallow
#

Any idea if anything changed for commands & brigadier stuff between 1.15.2 & 1.16.1 besides the addition of a new biomes suggestionprovider?

hexed lodge
#

Dw, ill report on the ones i tested, hopefully it gets fixed soon

hoary parcel
#

Haven't touched brigadier yet

#

But our brigadier API applied cleanly

crimson sandal
#

Are armour stands the best way to create floating items?

gusty swallow
#

It would be really nice if the paper api exposed the nms SuggestionProviders or something 😛

hoary parcel
#

Yeah, I know

#

But not sure how that would look like 🤔

#

I mean, open an feature request on GitHub

#

After a bit discussion on how the API should look like, it should be easy to implement, as it would be most likely just a bunch of wrappers in the mojangapi project

#

But then mojangapi would depend on server which I am not sure it does right now

#

So def needs a bit of discussion

gusty swallow
#

True, I guess I'll wait for the update to 1.16.1 to settle first

crimson sandal
#

Also, is there a way to check if an ArmorStand instance has been destroyed in game?

hoary parcel
#

Isvalid

fair abyss
#

note: when shutting down server checking an entity is alive sometimes wont work

#

so, dont use it ondisable

frigid ember
#

Can i improve here anything? ```java
FileConfiguration config;
JavaPlugin plugin;

public ConfigManager(JavaPlugin plugin, String filename, Configuration configuration) {
    this.plugin = plugin;

    if (!plugin.getDataFolder().exists())
        plugin.getDataFolder().mkdir();
    File file = new File(plugin.getDataFolder(), filename);

    if (!file.exists()) {
        try (InputStream in = plugin.getResource(filename)) {
            Files.copy(in, file.toPath());
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    this.config = YamlConfiguration.loadConfiguration(new File(plugin.getDataFolder(), filename));

    config.addDefaults(configuration);
    config.options().copyDefaults(true);
    plugin.saveConfig();
}

public FileConfiguration getConfig() {
    return config;
}``` ```java
Configuration configuration;

public Configuration getConfiguration(String name) {
    if (name.equals("config")) {
        configuration.addDefault("have-fun", true);
    }

    return configuration;
}
crimson sandal
#

Isvalid
@hoary parcel Thanks that's perfect 🙂

inland oxide
#

@crimson sandal not sure if you can really float an item frame, but those can now be invisible

#

suppose you could use barriers if you don't mind the lines

crimson sandal
#

Oh man yeah I totally forgot about item frames. I think armour stands are going to provide more options though

inland oxide
#

could be put on the ground to make items non-entities, and flat

#

maybe

#

might still be entities

crimson sandal
#

Because I would like to display multiple items in front of a chest based on the most common items inside it

#

So like a grid of 4 items in front of it

inland oxide
#

well could have at least 2

crimson sandal
#

Two item frames on the front of a chest?

inland oxide
#

double chest 😄

crimson sandal
#

Ohhh 😄

inland oxide
#

shame a map can't have item markers

#

then i'd say make a blank map, add markers based on items, and then put map in frame

crimson sandal
#

Yeah that would be cool

inland oxide
#

could procedurally make the map somehow with textures?

#

might be really hard

crimson sandal
#

That sounds like too much effort 😄 😄 😄

inland oxide
#

thought there was a way to show item for text

#

problem with holograms is that they rotate with viewing

crimson sandal
#

Yeah, basically my plugin links chests together and so they're always single chests. And to create one you place a sign on the front of it. I'm basically adding a feature now where the sign is invisible using sendBlockChange() and then I'm going to add an armour stand showing the item infront

#

And then another armorstand with text above the chest showing the name of the group

#

But using an invisible itemframe might be the way to go

#

And just show the most common item

inland oxide
#

yeh, I might play around with that stuff on my padlock plugin

#

would be nice to show the chest as locked better

#

problems with itemframes are it takes space

#

so nothing infront of chest

crimson sandal
#

Oh man you've just given me a really cool idea

inland oxide
#

yeh, happens a lot

crimson sandal
#

😄 😄 😄

#

Awww man ItemFrame's are Entities not blocks. I was going to show players different ItemFrames based on their permissions using sendBlockChange

#

That would require NMS though wouldn't it

grim mantle
#

Hi all, do any of yall use Morphia? If so, how do yall handle HashMaps with UUIDs for the key?

#

It seems like when Morphia decodes, its decoding as a string instead of a UUID.

odd knoll
#

Have you tried UUID.fromString()?

grim mantle
#

With Morphia? I have no control over the import as far as I can tell

#

Or at least, not at the moment

odd knoll
#

IDK how Morphia works so I'm probs not the best.

grim mantle
#

Ok, thanks anyway 🙂

crimson sandal
#

It would be nice if there was a Player.sendBlockChange() equivalent for entities

brave vector
#

Json or Yaml

#

which config file type do you use?

grim mantle
#

YAML Imo. JSON is more explicit and has better IDE support, but YAML configs I can pawn off to the less technically literate

brave vector
#

well at least Bukkit have API for yaml

grim mantle
#

That too. As good as GSON is

fossil shoal
#

Config -> yaml
Serialization/Communication -> Json (with Gson)

grim mantle
#

Agreed

odd knoll
#

Yep

candid umbra
#

Does ChatColor.translateAlternateColorCodes already support hex codes?

ashen stirrup
#

Uhh, i'm getting errors from an old NMS entity which I don't have anymore. Not sure what I can do here...

#
[16:23:26] [Server thread/WARN]: java.lang.NoSuchMethodException: me.straggly.infection.entities.normal.NormalZombie.<init>(net.minecraft.server.v1_8_R3.World)
[16:23:26] [Server thread/WARN]:     at java.lang.Class.getConstructor0(Class.java:3082)
[16:23:26] [Server thread/WARN]:     at java.lang.Class.getConstructor(Class.java:1825)
[16:23:26] [Server thread/WARN]:     at net.minecraft.server.v1_8_R3.EntityTypes.a(SourceFile:182)
[16:23:26] [Server thread/WARN]:     at net.minecraft.server.v1_8_R3.ChunkRegionLoader.loadEntities(ChunkRegionLoader.java:403)
[16:23:26] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_8_R3.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:46)
[16:23:26] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_8_R3.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:1)
[16:23:26] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_8_R3.util.AsynchronousExecutor$Task.finish(AsynchronousExecutor.java:188)
[16:23:26] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_8_R3.util.AsynchronousExecutor.finishActive(AsynchronousExecutor.java:347)
[16:23:26] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_8_R3.chunkio.ChunkIOExecutor.tick(ChunkIOExecutor.java:34)
[16:23:26] [Server thread/WARN]:     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:734)
[16:23:26] [Server thread/WARN]:     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[16:23:26] [Server thread/WARN]:     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[16:23:26] [Server thread/WARN]:     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[16:23:26] [Server thread/WARN]:     at java.lang.Thread.run(Thread.java:748)
[16:23:26] [Server thread/WARN]: Skipping Entity with id Zombie
grim mantle
#

You can remove it from the world with MCEdit

ashen stirrup
#

I don't know where it is

grim mantle
#

If you're comfortable with it, I believe you can remove all entities with MCEdit

crimson sandal
#

Is there a way to permanently set an entity on fire?

tiny dagger
#

set fireticks to whatever you want

crimson sandal
#

.setFireTicks(Integer.MAX_VALUE); seems a bit overkill lol

tiny dagger
#

then just do it for 2^31-1

crimson sandal
#

😄

jaunty niche
#

anyone know if spigot affect nether spawning?

peak portal
#

Does anyone know if spigot got a new update?

ebon forum
#

What happens with this? [17:14:32 INFO]: Your version isn't recognized, switching to fallback solution: "generic_v3", please update!

ornate birch
frigid ember
#

in the comments on that page it seems like someone else had the same problem

#

so there's probably no fix due to how spigot handles custom dimensions vs vanilla

subtle blade
#

I don't even think vanilla knows how it handles custom dimensions

#

Though last I recall, Bukkit delegates that kind of stuff to vanilla

ebon forum
#

[17:14:32 INFO]: Your version isn't recognized, switching to fallback solution: "generic_v3", please update! Halp plz

frigid ember
#

is that the only log?

ebon forum
#

Yep.

#

It shows repeatly in an infinite loop

frigid ember
#

plugins?

ebon forum
#

About 40.

#

I was actualising them

#

I test eliminating all plugins and adding all the plugins what are in the 1.16?

frigid ember
#

idk what that log could be referring to but have you tried singling out the plugins to find which one it could be

#

and by that i mean divide your plugins in half (so run your server with 20 of them), if the problem still happens you know it's within those 20, then try it with 15, 10, etc

#

until you find the plugin causing it

ebon forum
#

Now all the plugins are in confinement :kappa:

sullen nebula
#

dumb question but i just cannot find the answer, is there anyway to get the join message outside of an event?

inland oxide
#

I've notice something quite strange during world regen.

#

As its preparing the spawn area on one world, say the nether, if a player tries to move it causes

#

a %player% moved too quickly! error

#

Perhaps if a world is regenerated, should not include the cpu the main thread is on in the fork join pool?

crude coral
#

Ho do i delete a resource from spigot ?

rare prairie
#

report it using Report button

dusk ferry
#

Hey guys, just wondering if I could get a hand with a Bungee issue. I'm new to using the Bungee API, so the events aren't making much sense to me.
For some reason, the "ServerSwitchEvent" is being called when a player joins the network. I really didn't expect this, and it throws an error like "Error dispatching event ServerSwitchEvent", the error thrown is "java.lang.NoSuchMethodError: 'net.md_5.bungee.api.config.ServerInfo net.md_5.bungee.api.event.ServerSwitchEvent.getFrom()'".
Can I make a check to see if the player is connecting to the server, and not switching servers? And if they are connecting, just cancel what I was trying to do?

#

Would I just check to see if event.serverFrom() == null?

crude coral
#

report it using Report button
i don't want to be banned

rare prairie
#

no, if you describe it "i want to delete this project", your project will get removed after 1-8 hour

crude coral
#

oh okay thanks

willow topaz
#
settings:
  world-container: worlds
```[bukkit.yml] didn't work for 1.16 :/
1. known issue? fix comming?

2. what does this even mean?? `[13:45:51] [Netty Server IO #1/INFO]: Your version isn't recognized, switching to fallback solution: "generic_v3", please update!` also followed by a single line null pointer error
rare prairie
#

@dusk ferry if you could send here your current code, we can help

dusk ferry
#

Sure

rustic glade
#

no, if you describe it "i want to delete this project", your project will get removed after 1-8 hour
last time I tried removing a thread of mine, I got denied because they wanted to "kEeP hIsToRy"

dusk ferry
#

@rare prairie

rare prairie
#

@rustic glade They described, thread will not get to remove, because for another users if that helps. Moderators only remove the thread, when it's duplicate from same user, or something else

dusk ferry
#

Ah, found it on the wiki.

#

Okay, second question.

rustic glade
#

it wasn't a help thread though..

dusk ferry
#

I get this error

#

When I /server <servername>

rare prairie
#

@dusk ferry It describes that NoSuchMethodError: 'net.md_5.bungee.api.config.ServerInfo so you have to make a null check before the s.getInfo

dusk ferry
#

The code is the 1st pastebin

rare prairie
#

but nvm

dusk ferry
#

Yeye

#

I got that

#

The second is still an issue.

rare prairie
#

seems like the e.getFrom method is missing in ServerSwitchEvent or you using an old software

dusk ferry
#

Hmm

#

I mean, I use Aegis

#

But I don't know if they'd remove stuff like that? And I'm pretty sure it's up to date.

#

I'll ask there.

rustic glade
#

Aegis is a bungeecord fork.. but they might've removed it?

rare prairie
#

Aegis developer has been banned and their project removed

tiny dagger
#

i heard about aegis not sure from where 🤔

rare prairie
#

(from mcmarket)

dusk ferry
#

Yeah, they get banned from a lot of places. He said it was because, when he put it on mc market, he gave so many people who had already bought the product from Discord access to it, that they auto-banned him for botting.

rare prairie
#

and why not using travertine or waterfall?

#

its better

opal bay
forest thorn
#

Does anyone know why the PlayerVelocityEvent velocity is completely different from what the server actually sends to the client?

dusk ferry
#

Well, @opal bay it's not my product, I'm not here to discuss that, I really don't know.

opal bay
#

idk I just saw that

dusk ferry
#

Aegis has strong defence against bot, ping, spam attacks etc.

forest thorn
#

thats what the event reports, vs what is sent via packets

rare prairie
#

there is plugins to protect from bot attacks

dusk ferry
#

There are, but my dude yooniks has it on lock

#

And I trust it works well

#

So I've no issue with using Aegis.

#

Very nice software.

#

Anyway, I just had to update Aegis, ty for the help! ❤️

winter idol
#

Hi! I don't know if this is the right place to ask but I'm having an issue that I'm not able to solve.

I'm creating a new server and I want to be a "nether only" server. I'm trying to make the nether the main world and disable the other two worlds. I don't even know if such thing is possible...

dusk ferry
#

You should disable the end, which is possible, and then get a plugin to force the first-join in the nether world.

rare prairie
#

if you set the level-name to that nether world, players will teleport to that world by default, and I think you can remove other worlds

crimson sandal
rare prairie
#

report to Mojand or Jira?

crimson sandal
#

Guessing it's because I'm using .setHelmet() I'm not sure what I should be using

rare prairie
#

yep

dusk ferry
#

@rare prairie What you said about plugins blocking bot attacks etc, you know any plugins that can block "Null Ping" attacks?

winter idol
#

if you set the level-name to that nether world, players will teleport to that world by default, and I think you can remove other worlds
@rare prairie I have tried this and the nether world just becomes a regular world instead :/

dusk ferry
#

1.15

#

or 1.16 support?

#

No mention of Null Ping 😦

crimson sandal
#

Is there a way to tell if an ItemStack is a block vs an item?

rare prairie
#

Material#isBlock Material#isItem

crimson sandal
#

Ah how did I miss that 😛

opal heron
#

Any good plugins that creates custom armors?

raw vale
#

It says my build is outdated, so i downloaded git and buildtool.jar and ive run it. But i cant find what im supposed to do after that. Any help would be appreciated.

#

I have the latest version :L

subtle blade
#

Once you've run BuildTools, you should see a Spigot jar file in the root directory

#

These guys here

#

(depending on which version you built, obviously)

raw vale
#

I dont see one. Let me run buildtools again

frigid ember
#

where do I put the holographicextensions jar? when I put it into my plugins folder it says it wont load

raw vale
#

Choco, this pops up when i run buildtools

#

That's odd, cant sent pictures

#

you mind if i dm u the pic?

subtle blade
#

Upload to imgur or something

sour perch
subtle blade
#

But yes, you would have to --rev 1.16.1 for the most up to date 1.16 version

#

(at least until it's deemed stable enough to be considered latest)

raw vale
#

There you go, choco

subtle blade
#

You've run BuildTools through the command line, right? All those directories should be generated

raw vale
#

By git bash you mean?

subtle blade
#

Yeah

raw vale
#

Yeah, i did that

#

I right clicked in the download section and ran the buildtools

subtle blade
#

Is it spitting out some information to you? Your console should be telling you what it's doing

#

If not, do you have a buildtools.log?

raw vale
#

Yessir

subtle blade
#

?paste it please 😄

worldly heathBOT
raw vale
#

I pasted it.

subtle blade
#

Then press Ctrl + S and send the link back here

raw vale
subtle blade
#

Looks like it was successful!

Success! Everything completed successfully. Copying final .jar files now.
Copying spigot-1.15.2-R0.1-SNAPSHOT.jar to C:\Users\imadd\Downloads.\spigot-1.15.2.jar

  • Saved as .\spigot-1.15.2.jar
#

Though you've also built 1.15.2. Was that intentional?

raw vale
#

No, I wanted to build the 1.16.1

subtle blade
#

So when running, instead of building latest, you'll want to pass --rev 1.16.1. For example, java -jar BuildTools.jar --rev 1.16.1

#

That will build 1.16.1 for you 🙂

#

1.16.1 isn't quite the default version yet. It will in the near future when it's a bit more stable, but until then you have to explicitly state 1.16.1

raw vale
#

So thats why it appeared as old. I get it now.

#

Im currently downloading the java -jar BuildTools.jar --rev 1.16.1

frigid ember
#

Weird issue - I apply an inventory to the player and it shows up for a brief second

#

After that, it closes immediately... any idea whats going on?

raw vale
#

eyy, Thank you Choco. It works! ^_^

subtle blade
#

😄

candid umbra
#

Does ChatColor.translateAlternateColorCodes already support hex codes?

green hornet
#
gamerule maxEntityCramming 0

EntitySpawnEvent:  entity.setCollidable(false);
PlayerJoinEvent player.setCollidable(false);
PlayerRespawnEvent player.setCollidable(false);```

Why do i still collide with entities?
dusk ferry
#

Using paper?

#

@green hornet

green hornet
#

spigot

dusk ferry
#

ah nvm

#

Maybe

#

nametag plugin

#

NametagEdit has setting to turn it off, and I think so does TAB

green hornet
#

dont see it

dusk ferry
#

Which plugin?

green hornet
#

dev question not plugin question

#

tried to look at nametagedit though and didnt see collide or collision in the github repo

#

on search anyway! 🙂

dusk ferry
#

What I meant was, if you do use a nametag plugin, check there.

#

If you don't, downloading one won't help 😄

green hornet
#

i dont use one no

normal socket
#

hi, is anyone getting [19:45:49] [Netty Epoll Server IO #3/INFO]: Your version isn't recognized, switching to fallback solution: "generic_v3", please update! on the latest 1.16.1 spigot build? I built it about 10 minutes ago

fierce briar
#

Keep Building

undone narwhal
#

Is it possible to use the ChatColor.of(HEX) in a custom entity name?

fierce briar
#

Tells you latest build date ;3

normal socket
#

ok, I'll try again, I'm getting unbelievable amounts of this message

#

thanks

neon matrix
#

Is bungeecord hosted in spigot nexus?

#

I know it is on sonatype oss but isnt bungee a spigotmc thing as well?

#

Could it not be mirrored?

lean fiber
#

Hey, is craftbukkit related to BungeeCord?

subtle blade
#

Not really, no

#

CraftBukkit doesn't support BungeeCord

#

CraftBukkit (or, rather, Spigot) is the Minecraft server, BungeeCord is the proxy which links multiple servers together

lean fiber
#

I have a problem that really bothers me

frigid ember
#
@echo off
title Server Console
java -classpath "spigot-1.15.2;lib/*" org.bukkit.craftbukkit.Main
PAUSE

This is my .bat file^, I just switched back to 1.15.2 cuz I wanted to check something. I have a 1.15.2 jar in my spigot files as well, but it won't start. Says it cannot find bukkit main...

Error: Could not find or load main class org.bukkit.craftbukkit.Main
Caused by: java.lang.ClassNotFoundException: org.bukkit.craftbukkit.Main
Press any key to continue . . .

yet its in here, spigot-1.15.2

lean fiber
#

I have three servers, I was planning to have a 2GB one that was going to be a BungeeCord (proxy?!) server. Then another one of 2GB that was going to be the hub. Lastly, one of maybe, 4 or 5GB that was going to be the main one (Kitpvp). The problem is that it only allows me to put BungeeCord in the 4GB one, and not in the others. Any clues on why does this happen? Thank you, I am new.

frigid ember
#

Didn't speciy .jar

#

oops

lean fiber
#

I have three servers, I was planning to have a 2GB one that was going to be a BungeeCord (proxy?!) server. Then another one of 2GB that was going to be the hub. Lastly, one of maybe, 4 or 5GB that was going to be the main one (Kitpvp). The problem is that it only allows me to put BungeeCord in the 4GB one, and not in the others. Any clues on why does this happen? Thank you, I am new.
@lean fiber Actually it lets me put any custom jar. But the thing is that, I don't know if I just have to put BungeeCord-1297.jar and it will work

mellow scroll
#

Hey I have a quick question is there a quick way to change the seed without changing the map?

twilit orchid
#

Hey, for the citizens plugin if you guys know what that is, Does anyone know how to make it so when you right or left click them, they do a command

frigid ember
#

CommandNPC

crimson sandal
#

After sending a sendBlockChange() packet. how can you send a packet to force the client to change back to the original block?

#

Or whatever is supposed to be there

frigid ember
#

save the block that was here and send block change again, that'd how I do

subtle blade
#

Just send another block change to the original type

#

No need to save the type. The server knows the true type

#

Just Block#getType() will suffice

frigid ember
#

that usually sends wrong if colored wool?

crimson sandal
#

Yeah I did it with a sign and the sign was blank

subtle blade
#

Not in 1.13+ it won't be

#

If you're in older versions, you have to send the data as well

#

(also, it's not type, it's BlockData... mb ;P)

crimson sandal
#

Ah, sign.getState().update(); worked

subtle blade
#

Yessir 🙂

#

update() sends packets to clients

crimson sandal
#

Sweet 🙂

steady osprey
#

would i use == or .equals to compare 2 blocks

frigid ember
#

Which command could I use to close a screen?

steady osprey
#

an inventory?

frigid ember
#

Screen

#

From the terminal

tribal granite
#

Did 1.16 bring a limit to the amount of ChatColor changes you can make in the displayname?

#

Since I have an item with each character alternating colors and the NBT display tag just resets back to the vanilla item. If I shorten the displayname it works fine.

frigid ember
#

Is it possible to detect a Escape Sequence execution?

hardy forge
#

Does anyone know if the new hexcolours are only for chat? We can’t use them for vanilla team names?

frigid ember
#

hey guys

#

When a player clicks something in their inventory, I know the PlayerClickInventoryEvent is fired. Does the PlayerInteractEvent also get thrown?

steady osprey
#

no

frigid ember
#

When you open an inventory for a player, does it get thrown?

steady osprey
#

no

#

only when play clicks

#

if player opens a chest by clicking on it then yes

frigid ember
#

@steady osprey Playerinteractevent does get called when a player clicks something in their inventory

#

I jus checked it

#
[15:05:01] [Server thread/INFO]: in friendly Player clickinventory event
[15:05:01] [Server thread/INFO]: playerinteractEvent called in friendly state
[15:05:01] [Server thread/INFO]: net.mcnations.nationsatwar.commands.FriendlyCommands@3fd3b130 is the value of the command state
#

it gets thrown after the primary event, playerClickInventory event

steady osprey
#

what version are you on

frigid ember
#

the latest

#

16.1

steady osprey
#

thats prob why, i use 1.15.2 and it never triggers it

frigid ember
#

Ah

#

Well

#

Is that bug then?

steady osprey
#

idk

frigid ember
#

Because to me that seems like a bug...

subtle blade
#

would i use == or .equals to compare 2 blocks
@steady osprey .equals(). CraftBlock instances are created every time they're referenced

frigid ember
steady osprey
#

thank you

frigid ember
#

@subtle blade take a look at the above

#

Is that meant to happen?

#

PlayerInteractEvent & PlayerClickInventory event being thrown when a player cliks something in their inventory?

#

They are both thrown

cold steeple
#

Just to confirm, to get the latest version of 1.16.1, I would use the BuildTools.jar with Git Bash and use the command: java -jar BuildTools.jar --rev 1.16.1 ?

subtle blade
#

Correct

#

Maklegend, if you can replicate that on the latest version, create an issue on the JIRA. That sounds like a bug to me

#

Include a test plugin if you can, that would make replicating it much easier for md

frigid ember
#

@subtle blade ok. I got chewed out last time for not including a test plugin. Do I just throw in a jar?

lean fiber
#

I have three servers, I was planning to have a 2GB one that was going to be a BungeeCord (proxy?!) server. Then another one of 2GB that was going to be the hub. Lastly, one of maybe, 4 or 5GB that was going to be the main one (Kitpvp). The problem is that it only allows me to put BungeeCord in the 4GB one, and not in the others. Any clues on why does this happen? Thank you, I am new.
@lean fiber Anyone knows?

subtle blade
#

Yeah just write a plugin that shows the issue

#

Then attach it to the JIRA issue

granite hedge
#

@lean fiber Are these servers hosted on your pc, a vm, a hosting service?

lean fiber
#

No, a hosting service

granite hedge
#

So your issue is it only allowing you to put 4gb to a bungee for what reason? is the lowest tier of the hosting service 4gb?

lean fiber
#

No, I cant put the 2GB to a bungee, and it isn't the lowest, I just don't understand. You can select differejnt types like spigot or bukkit, but I can't in my 2GB servers put Bungee

frigid ember
#

I'm writing the mock one right now. I submitted already but I'll attach the plugin in a minute

sleek ivy
#

anyone know what plugin prevents you from invalid movement, and makes a popping sound when you do

granite hedge
#

try contacting the server host provider, i mean most of them will allow you to add a custom jar, so put spigot for now and later just upload a bungee one on the ftp files

lean fiber
#

Yeah, in fact I could do it now, but I just have to upload bungee in ftp files?

granite hedge
#

bungee jar

#

and btw even if your server is massive

#

you dont need 2gb for bungee

frigid ember
#

Does anyone know where I can go to get live help for my spigot minecraft server?

granite hedge
#

xd

lean fiber
#

oh ok, thanks

neat surge
#

Is anyone else having a problem with mobs not spawning on the nether ceiling?

frigid ember
#

guys

#

is there a worldedit and worldguard for spigot

#

as i see theres one for bukkit

#

but not spigot?

#

can anyone help me ?

subtle blade
#

Bukkit plugins will work on Spigot

frigid ember
#

will it work on paper?

#

cos my server is paper

#

will spigot work it on

hoary parcel
#

yes it will

subtle blade
#

Yes

frigid ember
#

then i need some help

hoary parcel
#

in fact, those plugins actually utilize paper features and thus run better on paper

#

(pls dont hurt me choco)

frigid ember
#

xD

#

im trying again

#

with worldedit

#

if it doesnt work would anyone spare like 10 mins to help me ?

subtle blade
hoary parcel
#

if you are using paper, you shouldnt come here for support btw. every project has its own place for communication, you most likely find it on their website

frigid ember
#

oh k

#

mini dms

#

@hoary parcel

#

the server is 1.8.8 will that be any different?

hoary parcel
#

1.8 lol

subtle blade
#

If by different you mean you're missing out on 5 years of improvements to the server software, then yes, it will be different

#

Update your server because you won't be receiving support here nor at Paper with a version as old as that

frigid ember
#

then is there a plugin that can make 1.8 pvp xD

hoary parcel
#

sure

#

oldcombatmechanics for example

opaque pilot
#

how do i upgrade my server to 1.16.1?

floral isle
#

Download spigot 1.16

worthy pike
#

stop, use buildtools.

subtle blade
#

Wonder if I can write an automod into the bot

#

I'm getting annoyed having to delete those messages as often as I do

sharp hawk
#

How do I update my spaghet to 1.17?

tiny dagger
#

you're old

#

we're all on 1.18.18 now

limber summit
tiny dagger
#

i dunno spites

#

that's not a lot to go on

wraith dune
#

what is the 'provides' field useful for in the plugin.yml plugin description file?

#

the javadoc isn't really descriptive

#

is there any plugin that uses this? I'm not seeing the use case.

tribal granite
#

https://youtu.be/CFJHd315vm8 Any help or guidance on how to fix this bug? I initially got the error on paper, but for testing purposes swapped over to spigot 1.16 and the bug still exists. Basically, there seems to be a limit on how many color codes you can have in an item. Any help would be greatly appreciated!

tawny tide
#

I want to give everyone on the server a permission from a plugin, how do I go about that?
the permissions are eternallight.use and eternallight.mode from the Eternal Light plugin

never did something like this before, it is a small server that I play with friends

odd knoll
#

What permissions plugin do you use?

tawny tide
#

I don't have any
do I need one?

odd knoll
#

Yes.

tawny tide
#

isn't there any way to do that only using the permissions.yml file?

odd knoll
#

Ehh, probably, but I never use it.

opal bay
#

LuckPerms is whats in

tawny tide
#

rip, can't find any example of a permissions.yml file

opal bay
#

can you use LuckPerms?

fierce briar
#

I Suggest Luckperms

#

Plugin

#

For Perms

#

And Read the Wiki

tawny tide
#

I'm on 1.16.1, looks like LuckPerms didn't updated yet
I'm looking for something simple, I'm playing with just 4~6 ppl...

opal bay
#

LuckPerms works perfectly fine on 1.16.1

tawny tide
#

I'll try it, thx

odd knoll
opal bay
#

Thats just the plugin loading classes from another plugin, its fine

odd knoll
#

I make the plugin.

opal bay
#

soft depend it in the plugin.yml and you won't get that message

odd knoll
#

It is, see the screenshot I sent

opal bay
#

oh nevermind the photo just loaded

lean fiber
#

How do I upload BungeeCord.jar to one of my servers?

odd knoll
#

Votifier is near the bottom of my soft depend, chat reaction is near the top.

opal bay
#

🤷‍♂️

odd knoll
#

Oop, happening for more as well I just didn't see before.

cedar parcel
#

So I got linked this in General for updating to the latest 1.16.1https://www.spigotmc.org/threads/447405/ I tried the whole build tool thing. But if i'm Honestly pretty inept with the whole technical thing and was hoping for some kind of walk through xD

lean fiber
#

How do I upload BungeeCord.jar to one of my servers?
@lean fiber Does anyone know? I just go to FTP file acces and download it? It doesn't let me

#

do it

odd knoll
#

It doesn't let you download it?

lean fiber
#

no, upload it

odd knoll
#

What's the message you get?

lean fiber
#

the problem is that, I don't know why, I can't choose bungeecord as a type of server in a 2GB server. And it only lets me in my 4GB but I don't want to. So, someone said that I upload it for having a custom jar

#

What's the message you get?
@odd knoll hmmm

#

Error 400

#

The CSRF couldn't be verified

#

I think I am doing something wrong

odd knoll
#

Are you using a hosting provider?

lean fiber
#

Ye

odd knoll
#

I recommend contacting them

lean fiber
#

But one question

wheat mirage
#

Also don't use mc hosting providers

#

Host using a linux box

#

As many servers as you want, and cheaper

#

Manage your resources better too

odd knoll
#

@wheat mirage not everyone just has server management knowledge available.

wheat mirage
#

Mc hosting providers are always overpriced

#

@odd knoll Everyone is able to learn though

lean fiber
#

I just need to upload it to FTP files, the jar bungeecord?

#

Mc hosting providers are always overpriced
@wheat mirage I didn't even know I had this option, but I guess I will se

#

se

#

see omg

granite hedge
#

yeah, replace the spigot, if you still cant i dont know why you havent contacted your host provider

lean fiber
#

Ok

tawny tide
#

If anyone ever needs an example of a permissions.yml file: https://bukkit.gamepedia.com/Permissions.yml
doing:

server.basics:
        description: Basic permissions.
        default: true
        children:
                eternallight.use: true
                eternallight.mode: true``` solved my issue and enabled it  to everyone without needing other plugins
frigid ember
#

So permissions.yml is some sort of "override" for the permissions defined in the plugin's plugin.yml?

subtle blade
#

In a sense, yeah

#

You can group permissions together into one

frigid ember
#

I have a question I want to upgrade my bungeecord server to 1.16.1 but I walk into some issues. I download the latest version but it still thinks it is in 1.15.2....

outer garnet
#

hola soy nuevo, como me puedo registrar en spigot? :c

#

Hello, I'm new, how can I register in spigot? :c

neon tide
#

Hello, how can I fix this?

outer garnet
#

Hello, I'm new, how can I register in spigot? :c
@outer garnet
Ya encontre el botón, no aparecía

hardy forge
#

Does anyone know if the new hexcolours are only for chat? We can’t use them for vanilla team names?

naive goblet
#

Maybe it's possible to edit them in nbt data 🤷

subtle blade
#

You can theoretically use them wherever text components are supported

bronze marten
#

should be possible but not throught bukkit api

frigid ember
#
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last destination index 37 out of bounds for long[36]

Anyone know why this error happens when booting up a 1.15.2 server?

fleet crane
#

Did you ever upgrade to 1.16

#

You cannot downgrade your server

frigid ember
#

I did

frozen echo
frigid ember
#

@fleet crane I did upgrade it, then I ran into this weird issue where a playerinteractevent is being thrown when a player clicks something in their inventory

#

I wanted to confirm this was an update problem and not something going wrong in my own code, and now this happens.

#

is it possible that an older version of world edit could throw an additional playerinteractevent when the player clicks something in their inventory?

#

Hi @fleet crane I upgraded to 1.16.1 on Bungee but it still keeps saying the following:

#

Outdated server I'm still on 1.15.2

frozen echo
#

Did you upgrade bungee or the spigot server?

frigid ember
#

Bungee and the spigot

crisp widget
#

Your spigot server is still on 1.15.2

frozen echo
#

^

crisp widget
#

If you were trying to run a 1.15.2 server you can use ViaVersion to support multiple versions

frigid ember
#

Ahh found it there was on server not yet updated my fault

#

sorry guys

frozen echo
#

👍

cedar wharf
#

Hi guys, I recently updated to spigot 1.16.1 and was running fine until now when the server crashed. When trying to start it back up however I get this. Any ideas?
https://pastebin.com/iYEYHGjU

frigid ember
#

@fleet crane Just read your post on my playerinteract issue - is this not a new 'feature' to 1.16? A PlayerInteractEvent being thrown on an inventoryclickevent? I don't recall this happening in 1.15.2

fleet crane
#

@frigid ember its because the client is swinging its arm when you do that

#

the only way we can detect LEFT_CLICK_AIR is by detecting an arm swing

frigid ember
#

Ok. Did that happen in 1.15.2 as well?

fleet crane
#

either we delete the event for LEFT_CLICK_AIR or we live with extra events

subtle blade
#

Mojang's been adding a few more hand swings lately and it's possible that was one of them in 1.16

frigid ember
#

I guess I just check for LEFT_CLICK_AIR & cancel if its that, correct?

fleet crane
#

I dont know if it happened for InventoryClickEvent, but it did happen for other things that it isn't supposed to / didn't used to

frozen echo
#

Could anyone help me with this?

#

@fleet crane

frigid ember
#

@fleet crane The thing is, it only happens sometimes. Its not consistent.

#

Its weird as hell

fleet crane
#

@cedar wharf if the server is truly crashed, remove the file listed. Make 100% sure the server is not still running on that folder

frigid ember
#

md, what happens if i cancel the force upgrade?

#

or anyone else that knows the answer.

cedar wharf
#

Remove [spigot-1.16.1.jar? Sorry if it's obvious, just seems counterintuitive and I'm not seeing any other file names.

fleet crane
#

net.minecraft.server.v1_16_R1.SessionLock$ExceptionWorldConflict: /home/minecraft/server2020/./snoosh/session.lock: already locked (possibly by other Minecraft instance?)

frigid ember
#

@subtle blade Just so I don't keep spamming the living hell out of md, just so you are aware, the playerinteractevent is thrown when you click your inventory and the block you hit is AIR

#

It is not thrown when you click your inventory and hit other blocks

#

Only air causes it

#

so dumb

#

Obviously its MC & Mojang but man is that dumb

subtle blade
#

Yeah - that's a tad obnoxious but nothing we can really fix

frigid ember
#

choco

#

could ya help answer my q :>

#
        if(event.getClickedBlock().getType() == Material.AIR) {
            event.setCancelled(true);
            return;
        }

Is this sufficient for managing the playerinteractevent for air?

#

dunno if i'm risking anything by doing this, cancelling interaction with air. I don't think theres ever an instance where air interactions actually do anything?

subtle blade
#

getClickedBlock() is null if it's left click air

#

(or right click air, really lol)

frigid ember
#

what inventory action causes this to be called?

cedar wharf
#

Thank you, md.

frigid ember
#

Just clicking things in your inventory if the player clicks in the air

#

or is looking at the air while they click around in their inventory

real forge
#

does PlotSqured work on 1.10?

bitter palm
#
    @EventHandler
    public void onVehicleEnter(VehicleEnterEvent event) {
        if (minecarts.contains(event.getVehicle())) {
            new BukkitRunnable() {
                Player.Spigot player = ((Player)event.getVehicle().getPassengers().get(0)).spigot();
                int index = minecarts.indexOf(event.getVehicle());
                @Override
                public void run() {
                    player.sendMessage(
                        ChatMessageType.ACTION_BAR,
                        new TextComponent(Integer.toString(points.get(index))));}
            }.runTaskTimer(this, 5L, 5L);}}```I can't seem to get this to work. Points is a List<Integer> with only one integer (0) at the moment. I get no error but I also don't get an action bar, when I should get an infinitely long action bar that simply says "0". Any idea what I could have done wrong this time?
frigid ember
#

for those using dynmap 1.16, did you need to re render the map or?

magic sun
#

What's the easiest way to go from a worldedit .schematic file to an array of <BlockData, Location> is there an existing library or any example code anywhere?

frigid ember
fleet crane
#

its cached by cloudflare, check the http headers

frigid ember
#

dang fast response my man

#

thanks

small swift
#

Anyone know why the latest 1.16.1 server jar is sending duplicate messages in my console?

bitter palm
#

Equipo probably because bugs. 1.16 server jars will still have many because it wasn't released long ago

frigid ember
#

That playerinteractevent & playerclickinventoryevent issue took literally the entire day

#

i was straight up losing my mind

wary ingot
#

How do i set the keepplayer inventory to be true in the nether?

magic sun
#

/gamerule keepinventory true?

wary ingot
#

i used it like this

#

but it only worked in the overworld

magic sun
#

its per world

wary ingot
#

not on the nether

magic sun
#

run it in each world you want to set it in

wary ingot
#

ok

#

thanks

crisp widget
#

Anyone got a clue what a ConversionSession is?

sacred cloak
#

Hello,anyone else experiencing server crash when u throw ender pearl thru end gateaway to get to end islands?

subtle blade
#

Yes. Last week

#

Update your server

#

?bt

worldly heathBOT
sacred cloak
#

is it fixed in newer spitgot build?

mild nebula
#

Yes

sacred cloak
#

sweet

subtle blade
#

It was fixed 2 builds after initial release 😛

#

Literally 4 hours later

lament sonnet
#

Ok im making a vanish plugin and im trying to get players who just joined to hide the vanished player using Player.hidePlayers(). Im keeping track of the vanished players using their UUID because i want them to stay vanished when they join the game. Whenever i try to join and another player is in vanish it throws a bunch of error messages at me. ```java
@EventHandler
public void onPlayerJoin(PlayerJoinEvent e) {

    Player player = e.getPlayer();

    if (VanishedPlayers.contains(player.getUniqueId())) {
        e.setJoinMessage("");
        Vanish.hidePlayer(player);
        player.sendMessage( ChatColor.BOLD + "" + ChatColor.GREEN +"[Vanish] " + ChatColor.BOLD + "" + ChatColor.AQUA + "You are still in Vanish! Other players don't know your there");

    } else {

        for (int i = VanishedPlayers.size(); i > 0; i--) {

            String  playerStringUUID = (VanishedPlayers.get(i)).toString();
            getServer().getConsoleSender().sendMessage(playerStringUUID);
            Player personVanished = Bukkit.getPlayer(UUID.fromString(playerStringUUID));
            player.hidePlayer(personVanished);


        }

    }
}
VanishedPlayers is an ArrayList of all the vanished player's UUID. Is there anyway or another way i could fix this code?
crisp widget
#

Do you have the error?

lament sonnet
#

i cant uplaod files

#

its longer than 2000 characters

crisp widget
lament sonnet
#

the code is in the class Vanish

crisp widget
#

IndexOutOfBoundsException

#

You're checking if i > 0 but an arraylist can be 0

lament sonnet
#

ohhh

#

so i check i > -1?

crisp widget
#

= 0

#

Also common practise would be i++ rather than i--

#

(probably wrong with that)

#

👀

fleet crane
#

yeah backwards iteration is weird unless you have a reason to

crisp widget
#

oh I was right pog

lament sonnet
#

then what would i set it to

#

i would have to write VanishedPlayers.size() again wouldn't i?

lone fog
#

Why not just for (UUID uuid : VanishedPlayers)

lament sonnet
#

because for some reason it stores it as an object

lone fog
#

What

#

What does your list declaration look like

lament sonnet
#

oh nvm fixed it

grizzled hound
#

what's the best way to store player data. I basically need to be able to store an int for each player. it doesnt need to be persistent

wheat mirage
#

Could anyone link the bungeecord chat javadocs? cant find anyway

#

@grizzled hound metadata 100%

#

If you need to store multiple values use metadata to store an object

#

And have that as an auxillary player class

grizzled hound
#

ok thank you

lone fog
#

Or a map with UUID - int

grizzled hound
#

wait what is the key that i pass to getMetadata()?

#

i have to get that and then call get()

lone fog
#

Probably the key you saved it under

grizzled hound
#

i think i need to do some more reading on metadata

frigid wharf
#

This may or may not be the place to ask this question, so please tell me if I need to go elsewhere.

I have been running spigot on my primary desktop, and port-forwarding to it so I can have a server running Drehmal for me and a few other people. I picked up an optiplex 3020 with an i5 and 8Gb of ram for cheap and am planning on moving the server there so i can have a dedicated machine running it at all times, and not use up resources on my local desktop.

I figured it would make the most sense to run linux without a gui to save resources, is there a particular distro anyone would recommend? I'm certain there is documentation on someone doing this. I have been looking around and haven't found much.

grizzled hound
#

i would recommend ubuntu due to its community and software support

#

also how would i add 1 to a metadate value

#

im only seeing people use FixedMetadataValue

lone fog
#

Is there a benefit over metadata to a Map<UUID,Integer>?

grizzled hound
#

not that i know thats just what ive heard

frigid wharf
#

would i just want to use the ubuntu server release?

grizzled hound
#

sure that would work fine

#

thats what i use

potent citrus
#

@frigid wharf I'd be more concerned with running a headerless server if RAM was an issue but you'll probably find CPU is more of a limit than running out of ram. For reference I run Spigot on a regular LinuxMint cinnamon install on a standalone i5 laptop with 8GB RAM and my CPU hits limits way before I run out of ram. If I wanted something more 'optimal' I'd probably go with an Arch headerless install

grizzled hound
#

idk i feel like the reduction of troubleshooting isnt worth the like 5% performance boost

#

but thats just my opinion

#

it may be worth it to you

potent citrus
#

reduction of troubleshooting? Horses for courses but the Arch wiki is fantastic imho

grizzled hound
#

idk, you do you

#

i use Pterodactyl which is primarily designed for Ubuntu

potent citrus
#

so much personal choice which is the beauty of linux i suppose, but yeah any regular linux install would work fine for @frigid wharf regardless i think with or withotu UI

grizzled hound
#

agreed

frigid wharf
#

Hmm okay, thanks! I haven't heard of pterodactyl before, that is interesting to look into. I don't plan on having more than one server going at a time but it is something to keep in mind. Since i am starting fresh, is there anything y'all would recommend me doing/setting up?

potent citrus
#

just have fun with it and backup regularaly 🙂

dreamy dawn
#

I'm getting some lag spikes where CPU usage drops to 100% from like 250% and then everyone is kicked. They only last a few seconds, and the placeholder for server_status shows the server as offline during those few seconds. Is there a way to fix these?

frozen lantern
#

hey guys one question

hardy cedar
#

Sure

#

?

#

Why u delete it

#

Lmao

#

`

frozen lantern
#

i'm trying to format the code in md5 hahah

hardy cedar
#

Use this too

#

`

#

3 times before and after the code

frozen lantern
#
@EventHandler
        public void OnLogBreak (BlockBreakEvent e){
        Player p = e.getPlayer();
        if (p.getWorld().getName().equals("world")) {
            if (!breaklog && !craftbench && !craftpick) {
                Block bl = e.getBlock();
                Material bt = bl.getType();
                if (bt == Material.LOG) {
                    breaklog = true;
                    p.sendMessage("Craft Bench");
                }
            }
        }
    } ```
#

how can i gett

#

the variable player to find the UUID

graceful silo
#

u already have it, "p"

#

p.getUniqueId()

frozen lantern
#

out the class

#

yes but locally

#

not for example in the main class

graceful silo
#

<plugin.getServer().getPlayer(name)

#

oh wait what

frozen lantern
#

so

graceful silo
#

what do u mean localy

frozen lantern
#

i have 2 class

#

main and events

graceful silo
#

yes

#

u wanna access getServer() from events class?

frozen lantern
#

the events class handle the events and the player involved, but i need to export the uuid of the player in the main class

#

the player involved in the event

graceful silo
#

easiest way is reference the main class in events class

#

and then just call main class to update whatever needs updating

frozen lantern
#

The idea is that, when a player do something, it change the boolean variable in a file. The file name has his uuid as filename

frozen hound
#

I was looking at bug SPIGOT-5849 and I am having the same issue. Is there a fix?

graceful silo
#

The idea is that, when a player do something, it change the boolean variable in a file. The file name has his uuid as filename
@frozen lantern so you wanna save stuff to a yaml file?

frozen lantern
#

yep

graceful silo
#

oh ok

frozen lantern
#

and i find this function that i added to the main class

fleet crane
#

@frozen hound yes, update

graceful silo
#

ohai md_5

frozen lantern
#
        if (!file.exists()) { //Checks if the file doesn't exist
        try {
            file.createNewFile(); //Tries to create the file
            FileConfiguration config = YamlConfiguration.loadConfiguration(file); //Creates a FileConfiguration for the file
            config.set("health", 100); //Path, where the value is stored and Value, what gets stored example config.set("health",100); would put health: 100 in the plugins/Test/+player.getUniqueId().yml file
            config.save(file); //So the changes are actually saved
            config.get("health"); //Gets the health configuration option
            //etc..etc..etc.. Learn FileConfiguration
        } catch (IOException ex) {
            //If it can't create the file
        }
    }```
frozen hound
#

Trying to figure out how I guess, hosting through Shockbyte and I have it set to autoupdate, but I have access to all the server files, I guess I should do it manually?

graceful silo
#

what function is that @frozen lantern ? load or save?

#

cuz it's doing both lol

#

i'd have health set to a variable locally and just update file when needed

wet bronze
#

Has anybody updated to dynmap 1.16?

graceful silo
#

Has anybody updated to dynmap 1.16?
@wet bronze works on a test server... idk about live with players runnin around

wet bronze
#

Because I want to know if I update it, if it will delete the dynmap that I already have

ripe ledge
#

Someone knows what's is a block Type?
It's Material?

subtle blade
#

Material, yes

#

Block#getType() returns a Material

lone fog
#

I would save the file on shutdown, player logout, and every X minutes

graceful silo
#

^ yes that

wet bronze
#

?

ripe ledge
#

So I am getting this:
Unlikely argument type for equals(): Material seems to be unrelated to Block

Material, yes
@subtle blade

lone fog
#

Preferably async saving

subtle blade
#

You can't do block.equals(Material.WHATEVER)

ripe ledge
#

so how

#

?

subtle blade
#

You have to compare the type

ripe ledge
#

how

subtle blade
#

block.getType() == Material.WHATEVER

graceful silo
#

block.getType().equals() perhaps?

lone fog
#

Block.getType == Material.whateever

subtle blade
#

This is basic Java

ripe ledge
#

oh ok

lone fog
#

Dangit

ripe ledge
#

thanks

wet bronze
#

God I wish I knew java lol

frozen hound
#

Is there a way to just direct download the newest .jar and not use buildtools? Sorry, new to this and confused. Been trying to fix this for a couple days.

lone fog
#

No

wet bronze
#

Is there a way to just direct download the newest .jar and not use buildtools? Sorry, new to this and confused. Been trying to fix this for a couple days.
@frozen hound use paper

graceful silo
#

no lol they complicate it for legal reasons i think

lone fog
#

Not without using some sketchy third party site

graceful silo
#

buildtools is ez 2 use tho

wet bronze
#

Paper doesn’t need buildtools

lone fog
#

Paper is still unstable, also this isn’t the paper discord

subtle blade
#

?bt

worldly heathBOT
subtle blade
#

Please don't advocate for forks here. This is Spigot

frozen hound
#

Just wondering because I dont understand how to use build tools through my host lol

wet bronze
#

Wdym unstable? It’s much more optimized than spigot for later versions

#

I thought it was common knowledge?

graceful silo
#

Just wondering because I dont understand how to use build tools through my host lol
@frozen hound use build tools on ur computer to generate spigot jar

subtle blade
#

If you're using a host, it's likely they let you select a jar already

wet bronze
#

Paper for later versions spigot for older versions

frozen hound
#

🤦

#

I am smart

wet bronze
#

.-.

graceful silo
#

java -jar buildtools.jar somethin somethin

ripe ledge
#

block.getType() == Material.WHATEVER
@subtle blade and if I want to check if it's not that
I am adding !
But It's says that The operator ! is undefined for the argument type(s) Material

lapis plinth
#
package club.atomicnetwork.valuecore.listeners;

import club.atomicnetwork.valuecore.CoreGUI;
import org.bukkit.Material;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.Action;
import org.bukkit.event.player.PlayerInteractEvent;


public class PlayerRightClick implements Listener {

    @EventHandler
    public void playerRightClickCore(PlayerInteractEvent event){
        if (event.getClickedBlock().equals(Material.ENDER_PORTAL_FRAME) && event.getAction() == Action.RIGHT_CLICK_BLOCK){
            CoreGUI.coreGUI.open(event.getPlayer());
            System.out.println("A player has clicked a command block.");
        }
    }

}
#
package club.atomicnetwork.valuecore;

import club.atomicnetwork.valuecore.listeners.PlayerRightClick;
import fr.minuskube.inv.InventoryManager;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;

public final class Main extends JavaPlugin {
    private InventoryManager CoreGUI;


    @Override
    public void onEnable() {
        this.CoreGUI = new InventoryManager(this);
        this.CoreGUI.init();
        registerListeners();
        getInvManager();
    }

    public InventoryManager getInvManager() {
        return CoreGUI;
    }
    public void registerListeners() {
        PluginManager pm = Bukkit.getServer().getPluginManager();
        pm.registerEvents(new PlayerRightClick(), this);

    }

    @Override
    public void onDisable() {
        // Plugin shutdown logic
    }

}
subtle blade
#

!=

#

Again, basic Java you should know

lapis plinth
#

So uh, for some reason the event isnt getting triggered

ripe ledge
#

I try this

lapis plinth
#

and i registered in the main class

ripe ledge
#

it's gave me error

lone fog
#

Show the line

ripe ledge
#

Wait I refresh and save and now all good

#

ok

lapis plinth
#

I registered my event, but the code inside the event isnt getting triggered when the event happens

haughty hound
#

Don't compare enums with equals method

#

Use ==

graceful silo
#

@haughty hound may i ask why? ._.

#

i know you can use == on em but y not equals

lapis plinth
#

.equals is for booleans i think

lone fog
#

No

#

equals is for objects

haughty hound
#

yeah, equals can throw nullpointerexception

graceful silo
#

LOL no .equals is for anything that isnt a basic datatype or enum

haughty hound
#

use Objects.equals(Object, Object) or "=="

graceful silo
#

someone rename this channel school & gimme tutor rank

lapis plinth
bronze marten
#

someone rename this channel school & gimme tutor rank
@L.C. Coicraft#1938 md_5

haughty hound
#

Oh, i found the error

subtle blade
#

enums don't override equals() and will default to referential comparison, though for the sake of avoiding potential NPEs, you're best to compare them with == directly as they are constants after all

graceful silo
haughty hound
#

You are comparing Block and Material

#

Using "==", it doesn't compile

lapis plinth
#

@lapis plinth if i were you the 1st thing id do is add a println at the start of the event handler to see if the event even fires at all before the material checks
@graceful silo alright

graceful silo
#

enums don't override equals() and will default to referential comparison, though for the sake of avoiding potential NPEs, you're best to compare them with == directly as they are constants after all
@subtle blade ahh makes sense

bronze marten
#

Why would you ever compare 2 diff object types with each other

haughty hound
#

Using equals, it will be false

lapis plinth
#

"if (event.getClickedBlock().equals(Material.ENDER_PORTAL_FRAME) && event.getAction() == Action.RIGHT_CLICK_BLOCK)"

graceful silo
#

o_o

lapis plinth
#

istg if its .equals fucking it up

#

im gonna shit my pants

haughty hound
#

@lapis plinth use event.getClickedBlock().getType() == Material.ENDER_PORTAL_FRAME

lapis plinth
#

welp

#

time to go shit my pants

#

k brb

haughty hound
#

You forget the getType

lapis plinth
#

😂

lone fog
#

Also event.clickedBlock can be null

graceful silo
#

wait no do what @haughty hound say before bathroom

haughty hound
#

uh

#

xd

lapis plinth
#

LMAO

graceful silo
#

xDD

lone fog
#

You should check the action before checking the clicked block

lapis plinth
#

Yeah I added a system.out.println

graceful silo
#

change line to

if (event.getAction() == Action.RIGHT_CLICK_BLOCK && event.getClickedBlock() == Material.ENDER_PORTAL_FRAME)){

lapis plinth
#

now nothing is happening at all

#

let me do what you said about switching it

lone fog
#

change line to

if (event.getAction() == Action.RIGHT_CLICK_BLOCK && event.getClickedBlock() == Material.ENDER_PORTAL_FRAME)){
You also forgot the getType() :p

hardy cedar
lapis plinth
#

yeah nothing is happening

lone fog
#

Did ya register it

lapis plinth
#

its definitely registered as it was causing an error earlier

grizzled hound
#

how can i set an enchantment higher than the max level?

lapis plinth
#

run a command from another plugin :thonk:

hardy cedar
#

Did ya register it
@lone fog it is but when i remove it the hunger doesnt break

#

but when i add it it breaks for some reason

grizzled hound
#

oh nvm

pastel arrow
knotty karma
#

anyone else been having issues w tab completion since (not 100% sure the exact version but somewhere around) 1a27cfd8cc4?

#

tab completion in my plugin has worked, until that version

hardy cedar
#

line 24

lapis plinth
#

any fixes to my issue

opal bay
#

what's your issues

#

@hardy cedar looks like you have two classes with the extension of JavaPlugin, only one class can have it

grizzled hound
#

can you check if the config has a key?

lapis plinth
#

@opal bay scroll up a bit in chat

hardy cedar
#

@hardy cedar looks like you have two classes with the extension of JavaPlugin, only one class can have it
@opal bay thx it worked

opal bay
#

getConfig().isSet(""); @grizzled hound

hardy cedar
#

i removed the JavaPlugin thing

grizzled hound
#

ty

subtle blade
#

Isn't it contains()?

opal bay
#

not really sure but isSet is what I use to tell if a config path exists or not

#

@lapis plinth gosh you're gonna make me read?

hardy cedar
#

.-.

opal bay
#

one, you're putting your events inside of a command class

hardy cedar
#

yes i have more than the Kaboom duuh

opal bay
#

you have to register listeners inside of a listener class

hardy cedar
#

The Actions are working but wheni remove the this.list.remove(player);

#

thing

opal bay
#

that has nothing to do with the events not firing, you have to register them to work

hardy cedar
#

they are

opal bay
#

🤔

hardy forge
#

Does anyone know if the new hexcolours are only for chat? We can’t use them for vanilla team names?

opal bay
#

iirc you can use them anywhere

regal rivet
lapis plinth
hardy forge
#

But then we need a plugin, right? @opal bay

lapis plinth
#

The event isn’t getting triggered when I right click an end porta frame @opal bay

wet bronze
#

Does anybody know if I can update to Dynmap for minecraft 1.16 without having to delete the dynmap folder and having to reload the dynmap again? It took 3 days to load in completely.

hardy forge
#

Janny

#

you can update it

#

just put it in the plugins folder

#

and restart

lapis plinth
#

Is dynmap updated tho?

wet bronze
#

And it won't mess with the dynmap that's already loaded?

#

Yes it is.

hardy forge
#

Yes it is

opal bay
#

Dynmap is updated, you don't need to reset your Dynmap files

hardy forge
#

Janny, you can restart and it will keep loading when server is back up.

wet bronze
#

No it's already loaded, I just don't want to have to reload it because of the update.

hardy cedar
#

ok i fixed it @opal bay tysm

opal bay
#

you don't have to

hardy forge
#

Oh nono.

#

Its safe

#

Jochyoua

wet bronze
#

Yeet

lapis plinth
#

@opal bay I sent my classes + issue above if ya wanna check it out <3

opal bay
#

I'll check it out in a sec<3 I need to update my dynmap webserver

lapis plinth
#

Kk

hardy forge
#

Do you know how I can implement this new hex colours as team colors

#

without any plugins?

#

LOL

opal bay
#

I have no idea man, I haven't used hex colors yet

lapis plinth
#

I wouldn’t touch 1.16 api yet if I was you

hardy forge
#

One question

#

startup flags

regal rivet
#

i cant it work, i think bukkit needs to have support for hex colors, but afaik thats not gonna happen

hardy forge
#

does startup flags do much performence diffrences?

#

I have never really used them lol

lapis plinth
#

I’d say don’t touch them unless you know what you’re doing

hardy forge
#

I just read aikars

#

guide

#

and it was pretty clear

#

in my eyes

#

b u t

#

I don't know

opal bay
#

@lapis plinth give me a sec and I'll do some quick debuggin'

hardy forge
#

do you think a paper 1.16

lapis plinth
#

Kk ty

hardy forge
#

will handle 35 players

#

on a survival server

lapis plinth
#

What specs

hardy forge
#

50gb size map

#

I send em

lapis plinth
#

Where?

grizzled hound
#

any idea whats happening here? if (entity instanceof Player) { Player player = (Player) entity;

hardy forge
#

DESCRIPTION
For those who value fast access speed, the EX42-NVMe variant is the best choice. In addition to a high-performance Intel® Core i7-6700 Quad-Core processor with the proven Skylake architecture and 64 GB DDR4 RAM, this model is equipped with two 512 GB NVMe SSDs. The NVMe interface utilizes the full power of your SSDs, greatly improving performance of simultaneous mulitple I/O operations.

#

^^

opal bay
#

Paper has been updated to 1.16.1 @hardy forge

grizzled hound
#

it always tries to cast

hardy forge
#

Yeah joch

#

I know

opal bay
#

alright<3 thought you were asking up there

hardy forge
#

oh lol ^^ 30-40 players is where my server usally is in playercount. However, we are under maintainance right now. Updating to 1.16.1

#

since it's a smp

#

and the players are crying over 1.15.2

#

go big or go home

#

is how we handle it

lapis plinth
#

DESCRIPTION
For those who value fast access speed, the EX42-NVMe variant is the best choice. In addition to a high-performance Intel® Core i7-6700 Quad-Core processor with the proven Skylake architecture and 64 GB DDR4 RAM, this model is equipped with two 512 GB NVMe SSDs. The NVMe interface utilizes the full power of your SSDs, greatly improving performance of simultaneous mulitple I/O operations.
@hardy forge dedicated or shared?

hardy forge
#

dedicated

#

🙂

opal bay
#

niice, how much does it cost you monthly?

hardy forge
#

42.50 EUR

#

I just payed for the month, thanks for the reminder

opal bay
#

nice

hardy forge
#

We get our income from selling Vanilla team colours

#

and right now while updating, I just realised that they are bugged in paper 1.16.1

#

soo, I hope they fix it under the night lol

opal bay
#

@lapis plinth this works https://oof.ddns.net/u/21.30.39-28.06.20.png

if (e.getAction() == Action.RIGHT_CLICK_BLOCK){
            utils.debug(e.getPlayer().getName() + " has right clicked block " + e.getClickedBlock().getType());
            if(e.getClickedBlock().getType().equals(Material.END_PORTAL_FRAME)){
                utils.debug("Event has successfully fired!");
            }
        }```
lapis plinth
#

What the

#

Then why does it not work in my end

#

That’s gay

opal bay
#

try to use the e.getClickedBlock().getType.equals

lapis plinth
#

alright

#

I have to go for today

#

I’ll test it tmrw

opal bay
#

it's chill

hardy forge
#

Jochyoua

#

would you say you are a good coder?

hardy cedar
#

developer* well yea he is

hardy forge
#

cuz I have a question

ashen stirrup
#

Try == instead, afaik it’ll work

knotty karma
#

anyone have recommendations on how to debug this, bc im stumped: In recent builds of Spigot/Paper, tab completion in my plugin has stopped working. Not only that, but tab completion in all plugins is nonexistent, if my plugin is installed. As a test, I first removed my tab completion code, and then got the same result. Then, I completely removed all code relating to the command portion of my plugin (including the command section of plugin.yml) and the issue remained. Any ideas what is going on/how I could go about debugging it?

ashen stirrup
#

Have you got ViaVersion installed?

knotty karma
#

nope

#

its my local test server, just my plugin and worldedit

#

if i remove my plugin, worldedit tab-completes

wheat mirage
#

TabCompleteEvent

knotty karma
#

with my plugin, only vanilla commands tab-complete, but all commands still work, they are just said to be invalid

wheat mirage
#

See if its being cancelled using event priority monitor

#

Also check for errors

knotty karma
#

already checked for errors, there are none, even with spigot debug on. will check tabcompleteevent tho

wheat mirage
#

And your plugins may just not work with the new tab completion standards

#

Im not too versed with them though

knotty karma
#

where can those be found

#

it worked in 1.15, and the first several builds of Spigot/paper 1.16

#

atm i am working out exactly where it stopped working

wheat mirage
#

And there should not be any changes then

#

There are all sorts of tab completion stuff these days

#

Some deprecated stuff may have stopped working? Anything could have happened honestly

knotty karma
#

nothing i was using was deprecated, 1 sec ill grab my code. something worth noting is that it still broke after I completely removed all my command/tab completion code, and removed the commands from plugin.yml

#
    private static List<String> COMMANDS = Arrays.asList("biome", "tpbiome", "version", "reload");
    private static List<String> BIOMES = Arrays.asList("AETHER", "END", "SHATTERED_END", "AETHER_HIGHLANDS", "SHATTERED_FOREST", "VOID", "STARFIELD");
    static {
        if(Main.isPremium()) {
            BIOMES = Arrays.asList("AETHER", "END", "SHATTERED_END", "AETHER_HIGHLANDS", "SHATTERED_FOREST", "AETHER_FOREST", "AETHER_HIGHLANDS_FOREST", "VOID", "STARFIELD");
        }
    }
    @Override
    public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
        
        List<String> argList = new ArrayList<>();
        if (args.length == 1) {
            argList.addAll(COMMANDS);
            return argList.stream().filter(a -> a.startsWith(args[0])).collect(Collectors.toList());
        }
        if (args.length == 2) {
            switch(args[0]) {
            case "tpbiome":
                argList.addAll(BIOMES);
                return argList.stream().filter(a -> a.startsWith(args[1].toUpperCase())).collect(Collectors.toList());
            default:
            }
        }
        return Arrays.asList("");
    }
wheat mirage
#

could you make that a hastebin its huge

#

ln mobile anyway

knotty karma
#

sure. didnt think of mobile, sorry lol

wheat mirage
#

Cant see anything wrong at a glance

#

If everything fixed when you removed

#

Then no idea

#

Try testing simpler cases with a new plugin

#

Could be a spivot bug

#

spigot

knotty karma
#

no, the issue remained when i removed it, thats the issue

#

even when i deleted my whole class tab completion was still broken in all plugins

wheat mirage
#

Remove the entire plugin you have

#

and test

knotty karma
#

yea removing the plugin fixes it

#

removing the plugin fixes it, removing all command/tab completion stuff from the plugin does not

wheat mirage
#

plugin.yml isnt the only thing doing cmds

#

Just keep removing until it fixes

#

and pinpoint the break

knotty karma
#

yea i removed the command from plugin.yml, in addition to removing all the code surrounding the commands, just in case something weird was going on

haughty hound
#

The static initializer block is executed when loading the class

knotty karma
#

i mean i really dont know what else to remove

#

yea i am aware

haughty hound
#

Use Collections.emptyList() instead of Arrays.asList("")

#

It wont fix your problem, but, idk

knotty karma
#

yea thx, didnt know that existed

#

but yea my plan was to remove stuff until it worked, but i have removed everything i can think of

#

my plugin is a world generator so the command stuff is a very small part of it, spread across just 2 classes

#

so after i removed all command/tabcomplete stuff, idk what to do next lol

haughty hound
#

mm

#

I recommend you use a command manager

#

like drink

#

or ebcm

knotty karma
#

eh i considered it but is it really worth it for my puny single command with 4 subcommands

haughty hound
#

hmm

frigid ember
#

How can I make a chat message look a certain way for a specific player but normal for everyone else?

knotty karma
#

iterate through every online player, sendMessage() each one

#

then use an if statement to see if each player is your specific player

frigid ember
#

Will sendMessage still retain the <playername> in the front of the message?

knotty karma
#

no, so you'll have to manually put it there

frigid ember
#

So by getting the name of the player from the event

#

ok thanks

knotty karma
#

yep, np

ashen stirrup
#

event.getFormat() ??

wet bronze
#

Guys

#

Does anybody know a command sign plugin that's compatible with 1.16?

inland oxide
#

Does SPIGOT-5881 fix the serialization issue with YamlConfiguration.saveToString throwing 'invalid string value has occured' exception?

spice loom
#

what is the replacement for .getMaxHealth()?

#

it's deprecated in new versions of spigot

inland oxide
#

i would assume getting the attribute that is mentioned in the javadocs on the Attributable interface

spice loom
#

ye found it

#

thanks

inland oxide
#

Still get the Yaml exeception post SPIGOT-5881, so something else is causing that invalid string value exception on the writable_book.

inland oxide
#

Are there any issues when converting worlds from 1.15.2 to 1.16.1 where custom values under BukkitValues NBT info would not get transferred?

knotty karma
#

@wheat mirage I tried listening for the tab complete event, would appear that it simply does not fire.

    @EventHandler(priority = EventPriority.HIGHEST)
    public void tabCompleteEvent(TabCompleteEvent event) {
        main.getLogger().info("Tab completion detected from " + event.getSender().getName() + ", buffer: " + event.getBuffer() + ", Cancelled: " + event.isCancelled() + ", Completion options: " + String.join("\n", event.getCompletions()));
    }
#

Sorry it took so long, had to go for a bit

#

very confused as to what could be causing that - 90% sure it's a Spigot bug at this point but I dont wanna report it till I know what the cause is

opal bay
#

are you sure the logger is being initiated correctly? You could always just Bukkit.getConsoleSender().sendMessage

knotty karma
#

I am 100% sure - I use it successfully in my plugin, and even in that same event handler class. But I will try that just to make sure

opal bay
#

alright <3

knotty karma
#

yeah still nothing :(

#

Vanilla tab completion works, but the server simply does not recognize any plugin commands whatsoever - not even spigot commands, during tab completion

opal bay
#

that's weird

knotty karma
#

not even Spigot commands like tps or pl are recognized

#

so something is causing the event to just not fire whatsoever

#

should I report it on JIRA, despite the minimal information I have?

#

i think i might - the fact that it didnt break at 1.16, but broke a few builds into 1.16 tells me something's screwed up

knotty karma
#

huh

#

the event fires on console

#

w h a t i s g o i n g o n

#

alright im reporting this on jira cause this is wack lmao

blazing aspen
#

^ im having the same issue

#

except i have no tab completion and barely any commands work

#

even /tp doesnt function and does not have tab completion

#

only commands ive found that work are with the multiverse plugin

knotty karma
#

i assume yours dont work bc you have essentials and it overrides those commands?

#

also do you know what plugin is breaking your tab completions?

#

@blazing aspen

blazing aspen
#

i dont

#

but yeah i do have essentials

knotty karma
#

try to find out which one it is, that could help solve this.