#help-archived
1 messages · Page 149 of 1
But you can declare it as a FileConfiguration as you won’t need the YamlConfiguration implementations
@naive goblet ok
ok thanks.
It's the substitution principle
It’s the MiniDigger
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
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.
Is this the right way to get a resource? jdk.xml.internal.SecuritySupport.getResourceAsStream
Or is there any better way?
Like getting a resource within the jar file?
Yes. As a stream
theres a method in javaplugin for that
After that you need to register the economy @ashen stirrup
Is there an alternative to WorldData in 1.16?
@crisp widget that got completely refactored
I think theres a guide on vault site
I forget most of that, but check for a WolrdDataServer
I think that's how md called the class
Mojang changed a bunch of such stuff
World/worldserver, worlddata/worlddataserver, iblockdata/baseblockdata etc
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
Was kinda a pain for updating paper to 1.16
PS: Running on paper 1.16.1 btw
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
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?
They will, if somebody reports that issue ^^
Any idea if anything changed for commands & brigadier stuff between 1.15.2 & 1.16.1 besides the addition of a new biomes suggestionprovider?
Dw, ill report on the ones i tested, hopefully it gets fixed soon
Are armour stands the best way to create floating items?
It would be really nice if the paper api exposed the nms SuggestionProviders or something 😛
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
True, I guess I'll wait for the update to 1.16.1 to settle first
Also, is there a way to check if an ArmorStand instance has been destroyed in game?
Isvalid
note: when shutting down server checking an entity is alive sometimes wont work
so, dont use it ondisable
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;
}
Isvalid
@hoary parcel Thanks that's perfect 🙂
@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
Oh man yeah I totally forgot about item frames. I think armour stands are going to provide more options though
could be put on the ground to make items non-entities, and flat
maybe
might still be entities
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
well could have at least 2
Two item frames on the front of a chest?
double chest 😄
Ohhh 😄
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
Yeah that would be cool
That sounds like too much effort 😄 😄 😄
thought there was a way to show item for text
problem with holograms is that they rotate with viewing
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
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
Oh man you've just given me a really cool idea
yeh, happens a lot
😄 😄 😄
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
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.
Have you tried UUID.fromString()?
With Morphia? I have no control over the import as far as I can tell
Or at least, not at the moment
IDK how Morphia works so I'm probs not the best.
Ok, thanks anyway 🙂
It would be nice if there was a Player.sendBlockChange() equivalent for entities
YAML Imo. JSON is more explicit and has better IDE support, but YAML configs I can pawn off to the less technically literate
well at least Bukkit have API for yaml
That too. As good as GSON is
Config -> yaml
Serialization/Communication -> Json (with Gson)
Agreed
Yep
Does ChatColor.translateAlternateColorCodes already support hex codes?
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
You can remove it from the world with MCEdit
I don't know where it is
If you're comfortable with it, I believe you can remove all entities with MCEdit
Is there a way to permanently set an entity on fire?
set fireticks to whatever you want
.setFireTicks(Integer.MAX_VALUE); seems a bit overkill lol
then just do it for 2^31-1
😄
anyone know if spigot affect nether spawning?
Does anyone know if spigot got a new update?
What happens with this? [17:14:32 INFO]: Your version isn't recognized, switching to fallback solution: "generic_v3", please update!
Is there something wrong with dimensions right now?
I'm trying to use this datapack, but it's not teleporting me to the custom dimension https://www.planetminecraft.com/data-pack/poor-man-s-aether/
Works fine on singleplayer
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
I don't even think vanilla knows how it handles custom dimensions
Though last I recall, Bukkit delegates that kind of stuff to vanilla
[17:14:32 INFO]: Your version isn't recognized, switching to fallback solution: "generic_v3", please update! Halp plz
is that the only log?
plugins?
About 40.
I was actualising them
I test eliminating all plugins and adding all the plugins what are in the 1.16?
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
Now all the plugins are in confinement :kappa:
dumb question but i just cannot find the answer, is there anyway to get the join message outside of an event?
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?
Ho do i delete a resource from spigot ?
report it using Report button
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?
report it using Report button
i don't want to be banned
no, if you describe it "i want to delete this project", your project will get removed after 1-8 hour
oh okay thanks
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
@dusk ferry if you could send here your current code, we can help
Sure
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"
@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
it wasn't a help thread though..
@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
The code is the 1st pastebin
but nvm
seems like the e.getFrom method is missing in ServerSwitchEvent or you using an old software
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.
Aegis is a bungeecord fork.. but they might've removed it?
Aegis developer has been banned and their project removed
i heard about aegis not sure from where 🤔
(from mcmarket)
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.
Does anyone know why the PlayerVelocityEvent velocity is completely different from what the server actually sends to the client?
Well, @opal bay it's not my product, I'm not here to discuss that, I really don't know.
idk I just saw that
Aegis has strong defence against bot, ping, spam attacks etc.
there is plugins to protect from bot attacks
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! ❤️
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...
You should disable the end, which is possible, and then get a plugin to force the first-join in the nether world.
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
Oh man, blocks and items show differently on armor stands 😭
report to Mojand or Jira?
Guessing it's because I'm using .setHelmet() I'm not sure what I should be using
yep
@rare prairie What you said about plugins blocking bot attacks etc, you know any plugins that can block "Null Ping" attacks?
if you set the
level-nameto 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 :/
Is there a way to tell if an ItemStack is a block vs an item?
Material#isBlock Material#isItem
Ah how did I miss that 😛
Any good plugins that creates custom armors?
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
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)
I dont see one. Let me run buildtools again
where do I put the holographicextensions jar? when I put it into my plugins folder it says it wont load
Choco, this pops up when i run buildtools
That's odd, cant sent pictures
you mind if i dm u the pic?
Upload to imgur or something
according to https://www.spigotmc.org/wiki/buildtools/ you nee to add --rev 1.16.1 if you want that one
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
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)
You've run BuildTools through the command line, right? All those directories should be generated
By git bash you mean?
Yeah
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?
Yessir
?paste it please 😄
I pasted it.
Then press Ctrl + S and send the link back here
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?
No, I wanted to build the 1.16.1
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
So thats why it appeared as old. I get it now.
Im currently downloading the java -jar BuildTools.jar --rev 1.16.1
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?
eyy, Thank you Choco. It works! ^_^
😄
Does ChatColor.translateAlternateColorCodes already support hex codes?
gamerule maxEntityCramming 0
EntitySpawnEvent: entity.setCollidable(false);
PlayerJoinEvent player.setCollidable(false);
PlayerRespawnEvent player.setCollidable(false);```
Why do i still collide with entities?
spigot
ah nvm
Maybe
nametag plugin
NametagEdit has setting to turn it off, and I think so does TAB
dont see it
Which plugin?
dev question not plugin question
tried to look at nametagedit though and didnt see collide or collision in the github repo
on search anyway! 🙂
What I meant was, if you do use a nametag plugin, check there.
If you don't, downloading one won't help 😄
i dont use one no
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
Is it possible to use the ChatColor.of(HEX) in a custom entity name?
Tells you latest build date ;3
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?
Hey, is craftbukkit related to BungeeCord?
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
I have a problem that really bothers me
@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
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.
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
Hey I have a quick question is there a quick way to change the seed without changing the map?
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
CommandNPC
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
save the block that was here and send block change again, that'd how I do
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
that usually sends wrong if colored wool?
Yeah I did it with a sign and the sign was blank
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)
Ah, sign.getState().update(); worked
Sweet 🙂
would i use == or .equals to compare 2 blocks
Which command could I use to close a screen?
an inventory?
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.
Is it possible to detect a Escape Sequence execution?
Does anyone know if the new hexcolours are only for chat? We can’t use them for vanilla team names?
hey guys
When a player clicks something in their inventory, I know the PlayerClickInventoryEvent is fired. Does the PlayerInteractEvent also get thrown?
no
When you open an inventory for a player, does it get thrown?
@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
what version are you on
thats prob why, i use 1.15.2 and it never triggers it
idk
Because to me that seems like a bug...
would i use == or .equals to compare 2 blocks
@steady osprey .equals(). CraftBlock instances are created every time they're referenced
How can I close both of them? (I cant go inside Attached one)
thank you
@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
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 ?
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
@subtle blade ok. I got chewed out last time for not including a test plugin. Do I just throw in a jar?
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?
@lean fiber Are these servers hosted on your pc, a vm, a hosting service?
No, a hosting service
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?
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
I'm writing the mock one right now. I submitted already but I'll attach the plugin in a minute
anyone know what plugin prevents you from invalid movement, and makes a popping sound when you do
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
Yeah, in fact I could do it now, but I just have to upload bungee in ftp files?
bungee jar
and btw even if your server is massive
you dont need 2gb for bungee
I would recommend half a gb https://www.spigotmc.org/threads/how-much-ram-does-bungeecord-need.52715/
Does anyone know where I can go to get live help for my spigot minecraft server?
xd
oh ok, thanks
Is anyone else having a problem with mobs not spawning on the nether ceiling?
guys
is there a worldedit and worldguard for spigot
as i see theres one for bukkit
but not spigot?
can anyone help me ?
Bukkit plugins will work on Spigot
yes it will
Yes
then i need some help
in fact, those plugins actually utilize paper features and thus run better on paper
(pls dont hurt me choco)
xD
im trying again
with worldedit
if it doesnt work would anyone spare like 10 mins to help me ?

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
1.8 lol
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
then is there a plugin that can make 1.8 pvp xD
how do i upgrade my server to 1.16.1?
Download spigot 1.16
stop, use buildtools.
Wonder if I can write an automod into the bot
I'm getting annoyed having to delete those messages as often as I do
How do I update my spaghet to 1.17?
Can someone help me to deal with those kind of Freeze, it happens on the entire network (practice, faction, others servers).
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.
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!
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
What permissions plugin do you use?
I don't have any
do I need one?
Yes.
isn't there any way to do that only using the permissions.yml file?
Ehh, probably, but I never use it.
LuckPerms is whats in
rip, can't find any example of a permissions.yml file
can you use LuckPerms?
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...
LuckPerms works perfectly fine on 1.16.1
I'll try it, thx
So, I'm getting this message, along with ones for other plugins.
Only thing is... it is, along with the others that give that message
Thats just the plugin loading classes from another plugin, its fine
I make the plugin.
soft depend it in the plugin.yml and you won't get that message
It is, see the screenshot I sent
oh nevermind the photo just loaded
How do I upload BungeeCord.jar to one of my servers?
Also with Votifier and ChatReaction
Votifier is near the bottom of my soft depend, chat reaction is near the top.
🤷♂️
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
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
It doesn't let you download it?
no, upload it
What's the message you get?
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
Are you using a hosting provider?
Ye
I recommend contacting them
But one question
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
@wheat mirage not everyone just has server management knowledge available.
Mc hosting providers are always overpriced
@odd knoll Everyone is able to learn though
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
yeah, replace the spigot, if you still cant i dont know why you havent contacted your host provider
Ok
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
So permissions.yml is some sort of "override" for the permissions defined in the plugin's plugin.yml?
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....
hola soy nuevo, como me puedo registrar en spigot? :c
Hello, I'm new, how can I register in spigot? :c
Hello, I'm new, how can I register in spigot? :c
@outer garnet
Ya encontre el botón, no aparecía
Does anyone know if the new hexcolours are only for chat? We can’t use them for vanilla team names?
Maybe it's possible to edit them in nbt data 🤷
You can theoretically use them wherever text components are supported
should be possible but not throught bukkit api
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?
I did
For some reason when I try to get my config, it returns 0 for all values
(More code) sending soon
Main: https://hastebin.com/risurijuye.java
Config: https://hastebin.com/icopecekew.yml
If anyone knows why this could be happening, please let me know
@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
Did you upgrade bungee or the spigot server?
Bungee and the spigot
Your spigot server is still on 1.15.2
^
If you were trying to run a 1.15.2 server you can use ViaVersion to support multiple versions
👍
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
@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
@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
Ok. Did that happen in 1.15.2 as well?
either we delete the event for LEFT_CLICK_AIR or we live with extra events
Mojang's been adding a few more hand swings lately and it's possible that was one of them in 1.16
I guess I just check for LEFT_CLICK_AIR & cancel if its that, correct?
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
@fleet crane The thing is, it only happens sometimes. Its not consistent.
Its weird as hell
@cedar wharf if the server is truly crashed, remove the file listed. Make 100% sure the server is not still running on that folder
md, what happens if i cancel the force upgrade?
or anyone else that knows the answer.
Remove [spigot-1.16.1.jar? Sorry if it's obvious, just seems counterintuitive and I'm not seeing any other file names.
net.minecraft.server.v1_16_R1.SessionLock$ExceptionWorldConflict: /home/minecraft/server2020/./snoosh/session.lock: already locked (possibly by other Minecraft instance?)
@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
Yeah - that's a tad obnoxious but nothing we can really fix
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?
what inventory action causes this to be called?
Thank you, md.
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
does PlotSqured work on 1.10?
@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?
for those using dynmap 1.16, did you need to re render the map or?
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?
how often does api.spigotmc.org update?
its cached by cloudflare, check the http headers
Anyone know why the latest 1.16.1 server jar is sending duplicate messages in my console?
Equipo probably because bugs. 1.16 server jars will still have many because it wasn't released long ago
That playerinteractevent & playerclickinventoryevent issue took literally the entire day
i was straight up losing my mind
How do i set the keepplayer inventory to be true in the nether?
/gamerule keepinventory true?
its per world
not on the nether
run it in each world you want to set it in
Hello,anyone else experiencing server crash when u throw ender pearl thru end gateaway to get to end islands?
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
is it fixed in newer spitgot build?
Yes
sweet
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?
Do you have the error?
= 0
Also common practise would be i++ rather than i--
(probably wrong with that)
👀
yeah backwards iteration is weird unless you have a reason to
oh I was right pog
then what would i set it to
i would have to write VanishedPlayers.size() again wouldn't i?
Why not just for (UUID uuid : VanishedPlayers)
because for some reason it stores it as an object
oh nvm fixed it
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
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
ok thank you
Or a map with UUID - int
wait what is the key that i pass to getMetadata()?
i have to get that and then call get()
Probably the key you saved it under
i think i need to do some more reading on metadata
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.
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
Is there a benefit over metadata to a Map<UUID,Integer>?
not that i know thats just what ive heard
would i just want to use the ubuntu server release?
@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
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
reduction of troubleshooting? Horses for courses but the Arch wiki is fantastic imho
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
agreed
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?
just have fun with it and backup regularaly 🙂
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?
hey guys one question
i'm trying to format the code in md5 hahah
@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
so
what do u mean localy
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
easiest way is reference the main class in events class
and then just call main class to update whatever needs updating
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
I was looking at bug SPIGOT-5849 and I am having the same issue. Is there a fix?
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?
yep
oh ok
and i find this function that i added to the main class
@frozen hound yes, update
ohai md_5
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
}
}```
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?
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
Has anybody updated to dynmap 1.16?
Has anybody updated to dynmap 1.16?
@wet bronze works on a test server... idk about live with players runnin around
Because I want to know if I update it, if it will delete the dynmap that I already have
Someone knows what's is a block Type?
It's Material?
I would save the file on shutdown, player logout, and every X minutes
^ yes that
?
So I am getting this:
Unlikely argument type for equals(): Material seems to be unrelated to Block
Material, yes
@subtle blade
Preferably async saving
You can't do block.equals(Material.WHATEVER)
You have to compare the type
how
block.getType() == Material.WHATEVER
block.getType().equals() perhaps?
Block.getType == Material.whateever
This is basic Java
oh ok
Dangit
thanks
God I wish I knew java lol
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.
No
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
no lol they complicate it for legal reasons i think
Not without using some sketchy third party site
buildtools is ez 2 use tho
Paper doesn’t need buildtools
Paper is still unstable, also this isn’t the paper discord
?bt
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
Please don't advocate for forks here. This is Spigot
Just wondering because I dont understand how to use build tools through my host lol
Wdym unstable? It’s much more optimized than spigot for later versions
I thought it was common knowledge?
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
If you're using a host, it's likely they let you select a jar already
Paper for later versions spigot for older versions
.-.
java -jar buildtools.jar somethin somethin
block.getType() == Material.WHATEVER
@subtle blade and if I want to check if it's not that
I am adding!
But It's says thatThe operator ! is undefined for the argument type(s) Material
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
}
}
So uh, for some reason the event isnt getting triggered
I try this
and i registered in the main class
it's gave me error
Show the line
I registered my event, but the code inside the event isnt getting triggered when the event happens
.equals is for booleans i think
yeah, equals can throw nullpointerexception
LOL no .equals is for anything that isnt a basic datatype or enum
use Objects.equals(Object, Object) or "=="
someone rename this channel school & gimme tutor rank
https://hastebin.com/dujaloxeni.cs - listener
https://hastebin.com/azoqecogiz.java - main
Idk why when I right click an end portal its not giving a console log / showing up GUI
someone rename this channel school & gimme tutor rank
@L.C. Coicraft#1938
Oh, i found the error
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
https://hastebin.com/dujaloxeni.cs - listener
https://hastebin.com/azoqecogiz.java - mainIdk why when I right click an end portal its not giving a console log / showing up GUI
@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
@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
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
Why would you ever compare 2 diff object types with each other
Using equals, it will be false
https://hastebin.com/gejowuquho.apache @graceful silo well fuck
"if (event.getClickedBlock().equals(Material.ENDER_PORTAL_FRAME) && event.getAction() == Action.RIGHT_CLICK_BLOCK)"
o_o
@lapis plinth use event.getClickedBlock().getType() == Material.ENDER_PORTAL_FRAME
You forget the getType
😂
Also event.clickedBlock can be null
wait no do what @haughty hound say before bathroom
LMAO
xDD
You should check the action before checking the clicked block
Yeah I added a system.out.println
change line to
if (event.getAction() == Action.RIGHT_CLICK_BLOCK && event.getClickedBlock() == Material.ENDER_PORTAL_FRAME)){
change line to
if (event.getAction() == Action.RIGHT_CLICK_BLOCK && event.getClickedBlock() == Material.ENDER_PORTAL_FRAME)){
You also forgot the getType() :p
https://pastebin.com/44H9CEvj i have disabled the hunger on another class but this class breaks it for somereason
Did ya register it
how can i set an enchantment higher than the max level?
run a command from another plugin :thonk:
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
oh nvm
Is there still no way to have an unnamed item?
Ex an item that doesn't show this https://i.imgur.com/xSjXB8M.png
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
any fixes to my issue
what's your issues
@hardy cedar looks like you have two classes with the extension of JavaPlugin, only one class can have it
can you check if the config has a key?
@opal bay scroll up a bit in chat
@hardy cedar looks like you have two classes with the extension of JavaPlugin, only one class can have it
@opal bay thx it worked
getConfig().isSet(""); @grizzled hound
i removed the JavaPlugin thing
ty
Isn't it contains()?
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?
https://hastebin.com/xamicovewi.java now this Kaboom Plugin is Fine but it doesn't disable falldamage
.-.
one, you're putting your events inside of a command class
yes i have more than the Kaboom duuh
you have to register listeners inside of a listener class
that has nothing to do with the events not firing, you have to register them to work
they are
🤔
Does anyone know if the new hexcolours are only for chat? We can’t use them for vanilla team names?
iirc you can use them anywhere
^ yeah im literally wondering that too, the setColor option for teams only works for bukkit chatcolors https://seth.doesnt-have-a.life/g7w95yk.png
https://hastebin.com/ubawemocam.cs - listener https://hastebin.com/azoqecogiz.java - main
But then we need a plugin, right? @opal bay
The event isn’t getting triggered when I right click an end porta frame @opal bay
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.
Is dynmap updated tho?
Yes it is
Dynmap is updated, you don't need to reset your Dynmap files
Janny, you can restart and it will keep loading when server is back up.
No it's already loaded, I just don't want to have to reload it because of the update.
ok i fixed it @opal bay tysm
you don't have to
Yeet
@opal bay I sent my classes + issue above if ya wanna check it out <3
I'll check it out in a sec<3 I need to update my dynmap webserver
Kk
Do you know how I can implement this new hex colours as team colors
without any plugins?
LOL
I have no idea man, I haven't used hex colors yet
I wouldn’t touch 1.16 api yet if I was you
i cant it work, i think bukkit needs to have support for hex colors, but afaik thats not gonna happen
does startup flags do much performence diffrences?
I have never really used them lol
I’d say don’t touch them unless you know what you’re doing
I just read aikars
guide
and it was pretty clear
in my eyes
b u t
I don't know
@lapis plinth give me a sec and I'll do some quick debuggin'
do you think a paper 1.16
Kk ty
What specs
Where?
any idea whats happening here? if (entity instanceof Player) { Player player = (Player) entity;
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.
^^
Paper has been updated to 1.16.1 @hardy forge
it always tries to cast
alright<3 thought you were asking up there
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
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?
niice, how much does it cost you monthly?
nice
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
@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!");
}
}```
try to use the e.getClickedBlock().getType.equals
it's chill
developer* well yea he is
cuz I have a question
Try == instead, afaik it’ll work
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?
Have you got ViaVersion installed?
nope
its my local test server, just my plugin and worldedit
if i remove my plugin, worldedit tab-completes
TabCompleteEvent
with my plugin, only vanilla commands tab-complete, but all commands still work, they are just said to be invalid
already checked for errors, there are none, even with spigot debug on. will check tabcompleteevent tho
And your plugins may just not work with the new tab completion standards
Im not too versed with them though
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
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
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("");
}
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
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
yea removing the plugin fixes it
removing the plugin fixes it, removing all command/tab completion stuff from the plugin does not
plugin.yml isnt the only thing doing cmds
Just keep removing until it fixes
and pinpoint the break
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
The static initializer block is executed when loading the class
Use Collections.emptyList() instead of Arrays.asList("")
It wont fix your problem, but, idk
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
eh i considered it but is it really worth it for my puny single command with 4 subcommands
hmm
How can I make a chat message look a certain way for a specific player but normal for everyone else?
iterate through every online player, sendMessage() each one
then use an if statement to see if each player is your specific player
Will sendMessage still retain the <playername> in the front of the message?
no, so you'll have to manually put it there
yep, np
event.getFormat() ??
Does SPIGOT-5881 fix the serialization issue with YamlConfiguration.saveToString throwing 'invalid string value has occured' exception?
what is the replacement for .getMaxHealth()?
it's deprecated in new versions of spigot
i would assume getting the attribute that is mentioned in the javadocs on the Attributable interface
Still get the Yaml exeception post SPIGOT-5881, so something else is causing that invalid string value exception on the writable_book.
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?
@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
are you sure the logger is being initiated correctly? You could always just Bukkit.getConsoleSender().sendMessage
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
alright <3
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
that's weird
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
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
^ 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
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
try to find out which one it is, that could help solve this.
