#help-archived
1 messages Β· Page 144 of 1
what are you making? is it a command that a player can run?
i'm modifying the code that writes a auction listing to a database
and when does that happen?
is it periodic? whenever a player changes something in the auction?
when they list something in the auction
ok
whats the method to clear all effects from a player/entity??
with a commnad
so not a periodic transaction, but concerned about the main thread taking a long time
@lapis plinth https://www.google.com/search?q=entity+remove+potion+effect+spigot&oq=entity+remove+potion+effect+spigot
@inland oxide let's suppose it was main thread. what would you do if it threw an exception?
maybe I should just make it in the main thread
well if its for the database connection or write, would cancel the listing, allowing the item to be returned to the player
it can be done async then
also, dont take the item until it is confirmed that it went through
no "returning" the item
thats a sure way to add a dup exploit
just assume this is java but is there anything wrong with this code for fishing? js EventManager.on("PlayerFish", function(event) { const player = event.getPlayer(); if(event.getCaught() != null) { const caughtItem = event.getCaught(); let itemStack = caughtItem.getItemStack(); const newItemStack = new ItemStack(Material.DIAMOND, 64); itemStack = newItemStack; } });
not if it doesnt go through or fails
im not sure if im just meant to change the original itemstack or if I should remove it and just give a new one to the player
for the query that doesnt put the item in, dont take the item
I always remove, try to add, then if fails return
allr ty
if you do like an insert query, im pretty sure it wont update the db
if it fails
also, you dont want it to "eat" player's items just in case the server crashes
again, obviously take the item only after the insert item query
anyone else having issues with attributes in the latest build?
wdym attributes? in the log?
What is the best way to add a ServerPing.PlayerInfo to a ServerPing.PlayerInfo[]?
no attributes like generic movement speed, armor, armor toughness, etc
whenever i do Player#getAttribute it returns null
just assume this is java but is there anything wrong with this code for fishing?
js EventManager.on("PlayerFish", function(event) { const player = event.getPlayer(); if(event.getCaught() != null) { const caughtItem = event.getCaught(); let itemStack = caughtItem.getItemStack(); const newItemStack = new ItemStack(Material.DIAMOND, 64); itemStack = newItemStack; } });
@arctic cloud You don't ever set the item?
You're just re-assigning a local var
it was working fine in 1.15.2, but when i updated it stopped working
i can pull up the error it gave me actually
What is the best way to add a ServerPing.PlayerInfo to a ServerPing.PlayerInfo[]?
Just doing #push isnt working.
well I thought it would automatically set the old item stack but
I figured it out with
event.getCaught().setItemStack(newItemStack);
why would you assign player before the condition?
I just always do that lol
Right. You're only assigning a local var. Java doesn't have pointers, it has references
Not to mention that Bukkit's ItemStacks are mostly cloned
I see, I'll keep that in mind ty
@frigid ember how are you getting attributes?
Gotta remember that CraftBukkit, Bukkit and Spigot update much more frequently than Minecraft does. There are hundreds of releases for every minor release of Minecraft
i think the pom is fine
Yes π
ok ill let u know if i stil have any problems after this, thanks guys
@waxen ridge glad it worked out for ya ;3
Re-running BuildTools should local-install. Or if you're pulling your dependency from the repository, give your Maven project a refresh
Either way, your server has to be up to date ;P
What is the best way to add a ServerPing.PlayerInfo to a ServerPing.PlayerInfo[]?
Ah i think think this website will guide me trough it: https://www.geeksforgeeks.org/how-to-add-an-element-to-an-array-in-java/
I'm just about to add Travis-ci to my project, is there anything I need to include specifically in my yml for Spigot?
everything works! thanks choco :)

anyway, I can't take from them after the database transaction because there is an optional menu involved that gives player opportunity to drop the item in hand, and makes the whole process more complex
return new ItemStack(nbtTagCompoundRoot); I know, NMS help, shoot me.
What's the best way to get an itemstack from a serialized NBTTagCompound in 1.16
For reference, I'm updating from 1.12
Basically I've loaded the NBT Tag Compound from a string
How do I then convert that into an ItemStack
you just want to make an itemstack and set the tag?
the previously used constructor is here
this.load(nbttagcompound);
this.checkEmpty();
}```
As you see, it's now private.
and so is this.load()
@inland oxide I'm unsure if that works, as the tag and the actual item nbt may be seperate?
Not sure, not done item nbt in a while
I don't follow, and ItemStack has more stuff than just NBT
try {
return new ItemStack(nbttagcompound);
} catch (RuntimeException var2) {
LOGGER.debug("Tried to load invalid item: {}", nbttagcompound, var2);
return b;
}
}```
Ah, it's been replaced with a factory
For anyone else who's having this issue, just call this method inside NMS's ItemStack.java
hmm
Seems a lot of NBT stuff have been given factories instead of public constructors
Wonder why
NBTTagString is another case
Oh btw, thanks @inland oxide!
for?
How would I change the chat color for a join message?
i'm assuming it involves net.md_5.bungee.api.ChatColor
event.setJoinMessage(string);
how do i set the color though
ChatColor.GREEN or ChatColor.of(#xxxxxx);
hard code
oh okay then just what Coll said
Is there a way to take advantage of Villager UI's ? Like, is there a way to create a villager UI like the normally have, but to add in your own transactions?
there is but I haven't tried to fiddle with it ): I've seen some plugins modify them though
definetly maklegend
https://imgur.com/a/sdQWwtE something like that?
yea cuz I want to create my own transactions with villagers
probabily it would require reflections to expose it
is it necessary to do the force upgrade parameter?
h shop
anyone who's good with silkspawners could come help me out? everytime we spawn a spawner that isnt pig it quickly turns to pig
Its insanely time-consuming to reflect into each class and guess what each method does
like what y() does
nor how to use them
@inland oxide you taught me about MojangsonParser π
minidigger did a tool regarding that maklegend
just throw it in my dependencies sort of tool?
anyone with silkspawner experience?
Also, if anyone fancies giving me a hand with how to register custom entities in 1.16, would be much appreciated. My old code is just
MinecraftKey minecraftKey = new MinecraftKey(entityName);
EntityTypes.b.a(entityId, minecraftKey, entityClass);
}```
i think
It seems the entity registration system has been drastically changed since 1.16 though
@tiny dagger What do you use to manage nms easier
Not sure if this was answered, but was this fixed ? "The world-container option in bukkit.yml doesn't seem to be working with 1.16.1
It created a new world for me on the root directory"
Obviously you (and other devs here) don't spend 20 hours a day guessing what obfuscated methods do
To make plugins with intellij is there any other stuff I will have to download for intellij to work?
i use my trained eye tbh
it's easy to tell what something does if you check the nearby code
going back to what i asked before, how do i use ChatColor to color a chat message
just append it
to text
or use toString
if you append to text it will automatically apply toString
like this?
yes
oh, thanks
HMm Not sure
Color before text
But Does ChatColor.AQUA.BOLD works?
yeah color before text
LIke i get warning
yes and no
im not sure
event.setJoinMessage(ChatColor.AQUA + "Stuffs");
@tiny dagger Know much about the new entity registration system?
1.14+?
Atleast the one that's currently being used
Yeah exactly
Unsure how to register an entity now
well it just works now
nop
no need to register them
Is there any downside for using super(world, EntityTypes.BAT) etc?
anyway to use Pastebin or hastebin for logs
only if you extend a bat
in spigot?
None of the base mc classes seem to directly reference their own EntityTypes constant
Fair enough
like zombies, drowners etc
So I should make my constructor match the super one?
Or just include it in the super() call so I only need to use the World to construct
Not really
wait lemme give youi an examplr
super(EntityTypes.BAT, world);
this.following = owner;
}```
This is what I've changed it to
@dusty warren as a resource?
Is this incorrect?
I'm Not sure If That super() is required tho
it is
no problem
Confused as to why EntityBat (the super) doesn't do it that way also
Like When i learned it never showed me about constructing super Constucter
But wouldn't be the first time Mojang did something non-intuitive
it extends some ambient entity or something that doesn't require a parameter
super(entitytypes, world);
this.setAsleep(true);
}```
@tiny dagger
It extends entityambient, but entityambient requires it too
Hmmm
I suppose it's just for future-proofing
In case they add another entity extending bat in future?
Who knows, but that's my best guess
Anyone per chance messed with structures in 1.16?
@lone fog Nah, but interested in being able to change loot chest / minecart chest loot tables
glad
Game is flattening the terrain like it should
But it's not actually placing the structure
@tiny dagger What do you mean check the nearby code
When you reflect into a class, you can ge the methods and fields and stuff
But you would have no way of knowing what a() or y() do
@frigid ember You can decompile the NMS classes you're using on-the-fly with IntelliJ
And inspect the code
There's also ModCoderPack which actually attempts to de-obfuscate
i usually use reflect to get unaccessible methods fields
I just need help on this front in terms of efficiency
But I don't think it's been updated since 1.12
Yeah it hasn't
But it was fantastic for understanding how the complex functions work
And some things may still be the same
So, how do you handle your nms code now?
I just decompile and look
mappings for new versions are still maintained
If I don't understand it, I copy it and de-obfuscate by hand
though not as well as until 1.12
I've never actually decompiled an external jar
And @daring nova really?
How does one decompile an external jar with eclipse?
there was a tutorial somewhere on how to get mcp to work with newer versions, but I've never actually needed it
Yeah I do a lot with custom entities, so I might
@frigid ember I'll be honest, IntelliJ is much better
I used to use eclipse
It's so much easier to just make the leap
IntelliJ community is great
they aren't tho
and jetbrains have IDEs for any code you want to write
Ouch
i can't remember the last day an intellij user didn't mocked me for still using eclipse
π
^
I use IntelliJ since I heavily use TeamCity now. I can't go back even if I wanted.
Idk I don't think bad of anyone for still using it
I think Eclipse is good tbh
But IntelliJ has been great for me
And I've never looked back
It gave me everything I wished eclipse did
With a better look.
Do what you'd like, but I use JetBrains for whatever I can these days
I use it for web, python, you name it
Yea I know its good
no need to learn a new IDE every time
JetBrains whacks tons of different lang support into every IDE as well. Unnecessary amounts.
@wheat mirage what jar should I be decompiling?
they should keep their ides different but i guess it would increase the mentenance time
@tiny dagger They're not too similar, but the UI design is similar enough to be comfortable
Everything of a similar function goes into a similar place
@frigid ember You should be able to just decompile any class you wany
In IntelliJ I just use "Go to declaration" and it decompiles using fernflower
there is a jd gui extension for eclipse btw
I canβt even get multiverse working lmao
@frigid ember Seems like it!
Do you have to do something to convert maps from 1.15.2 to 1.16.1 ? Every map is acting like a brand new regenerated map. Nothing is the same. All builds are gone.
Or are maps just not compatible?
forceUpdate or something
Google around
@daring nova http://mcpbot.bspk.rs/# how do I actually join an irc with this bot
all of the IRC links are dead
Or maybe I need an IRC client installed
Which I'd rather just use a web one
Hi. I own a small server and am trying to update from Paper 1.15.2 to Spigot 1.16.1. Everything is working fine, except all of my worlds from before updating crash every time a brand new chunk (never loaded in before) is created in a world from before updating. I need assistance. Can anyone help me?
Oh wicked
Thanks @daring nova , how long do you think it'll take for 1.16 to release there also?
But 1.15 is still good
Β―_(γ)_/Β―
Have you run with forceupgrade
there are still no 1.15.2 mappings, so probably quite a while
Makes sense
@quartz trench Are you talking to me??
yeah
I'm on Apex Hosting. How do I do that?
Oh Idk I would hope they have an option for it or if they let you edit the startup command
It's a startup parameter, correct?
Ok the ChatColor.of doesn't do what I thought it did
@mild phoenix there should be launch options somewhere. Append the force-upgrade flag
Will this delete any files in the FTP? @wheat mirage
You should append --forceUpgrade to the end of the startup command
Yeah, 1.16 broke my server
Roger
Well actually the worlds
Is the --forceUpgrade a one time thing, or it needs to be there forever?
One time
One time
one time each minecraft version update
Yes
Alright.
@daring nova I have realised I have absolutely no idea how to use these CSV files
Last time I used MCP you just downloaded the de-obfuscated mc source
yeah you'd have to look up the tutorial
Doesn't work @wheat mirage
I remember also struggling with it
Is there anything else I can do? I need to get this fixed soon.
oh fuck i did -forceupdate
instead of --forceupdate
it worked xd
Hello, has anyone been having the issue where launcher a server with spigot resets the nether, but launching vanilla brings it back
--forceupdate doesn't work for me.
Wait
Apex Hosting has --forceUpgrade, is that the same??
@daring nova Yeah this is confusing, but it seems it's available as a bot in sponge's discord too, I'm going to give that a check
? afaik only --forceUpgrade works
that's what I have, but it acts like it never even worked
sure, you might also want to check https://gist.github.com/Pokechu22/97bf5bd528eeadef09dcbae8a15b009f
@daring nova thanks
Can anyone help me or should I look for support somewhere else.
what does forceUpgrade actually do?
Nothing, apparently
I just need help fixing this issue. I can't load any old worlds.
@mild phoenix https://lmgtfy.com/?q=forceupgrade+minecraft
so is there a reason to ChatColor.of(String) existing if it doesn't return the proper hex color?
@tall crystal What does it actually do?
Well all its so far is pull from the old 16 colors
oh wait
I think I know what I did lol
How it ends up working is that it adds the section sign which I guess if I do ChatColor.translatealternateColorCodes it translates it as if it was the other ones
ahh got it also had an issue with sending it in a TextComponent removing that fixed it
why is it that when I try to build the javadocs for bungeecord, there are dependencies missing?
@proven vale Why can't it be an armorstand?
Looks like armorstands to me
What part of that uses a scoreboard lol
@proven vale
You've not explained anything
hi I was looking for a method to add particles to the npc i use Citizens API
Yeah use multiple armorstands
Lmfao
You don't need scoreboards to make names
Primary example of research the entities and how they work, like armorstands
How do I change my username?
you donate 10 bucks to get the right
I did. Im redstone. What do I do after?
look at profile
Then what?
Jesus im blind
Thank you
why does updating to 1.16.1 spigot reset the nether? anyway for spigot not to do this?
Alright boys, looking for something a bit complicated.
Basically, I want a player join event on Spigot. I want it to create a string based on permission / group information. I then need that string to be passed to a bungee cord plugin / bridge or something, for the bungee cord plugin to run a command on the proxy.
Has anybody has any experience in something like that?
Tried using this
But it seems terribly outdated, doesn't work
the most obvious way would be to use a mysql database, but it seems overkill
and unnecessairy
I was hoping someone knew how to send some sort of packet or something.
I could use MySQL I guess. Big effort.
There is a way to do it without mysql for sure, but i dont know it, never tried
objects disappear when leaving the server on 1.16 spigot. what to do?
Do any of you still have an issue where the Bossbar from another server still exists when joining another
What kind of inventory problems are 1.16 spigots?
Hey!
I uuh have problem every time the server starts
if that's common make sth like a FAQ or idk
Question: in 2019 minecraft released obfuscation maps for easier modding. Is this better than the current ModCoderPack deobfuscator?
And if so, how exactly do you use it
You can only use it for βreferenceβ because of copyright
Yeah I'm not interested in anything else
But is there anywhere I can download a deobfuscated source for 1.16?
That would be fantastic
As I can't even find the searge mappings for 1.16
I'm not sure spigot's NMS code is technically searge mappings
I've updated to 1.16 for spigot and EssentialsX has stopped working?
Is essentials out for 1.16?
No, you have to deobfuscate using official mappings yourself
CraftBukkit uses its own mappings, not MCP nor Mojang's mappings
It's not something I necessarily want to encourage as it brings you no benefit
How so?
If you want to browse mappings, Mini made a nice browser for you
??
That's nice
But I mainly want to compare obfuscated code to de-obfuscated code
For coding NMS with my spigot plugin
@subtle blade Hardly no benefit
You're better to use that mappings viewer for that exact purpose
Why not? Open it in your IDE, search the method name
That being said, if there's something in NMS you can abstract out as Bukkit API, we encourage a PR
lmao you're not getting it
If I want to see how Bat's AI works for example
Mappings would take forever
De-obfuscated code I can just look at and see how it's being used.
Quickly
There's no way you could convince anyone that's anywhere near as good for seeing how the actual code flow works.
dose any one know if essentialsx is updated to 1.16?
Idk if fabric uses it it's probably good though
Got it
EssentialsX has a dev build for 1.16
@wheat mirage How do mappings work?
Not the most qualified person to ask π
what should the UUID be of in PacketPlayOutChat's constructor?
The recipient of the message I assume?
Or 0 if it's console
@zealous lynx Don't forget to use protocollib π
i prefer not to, i like doing nms for some reason
Protocollib can't do everything
But it's the definition of a stitch in time saves nine
I tried to update my server to 1.16.1 and it still says 1.15.2
When I goto the end or nether it tells me difficulty easy by the default minecraft command
i just don't use packets enough to justify using a library for them
I've updated to 1.16 for spigot and EssentialsX has stopped working?
@frigid ember yo, the guy is currently working on the EssentialsX version
he'll probably push an update in the coming days
there is a build of essentails for 1.16
Also any ideas why suddenly worlds are not syncing difficulty?
anyone π¦
use hex
I was boutta type that
(My goal is to change the color of player's name)
its now hex based just add it as a hex colour
ah
Yea so use hex codes lmao
full color gradients
so do i need to prefix it with #
did section symbol plugins break?
that looks so ugly what the heck
Ye u do
xD
thats dumb ngl
Very
anyway anyone have any idea why on spigot no plugins I get my overworld being /difficulty as hard but end and nether as easy?
ChatColor and section symbol appear to be working in my plugins so far
hol up
and I tested peacful doesnt work
you need to
any actual ideas I am gona shoot myself soon
Β§#Β§1Β§2Β§3Β§4Β§5Β§6
Hmm Iβm not sure
yea
anyway anyone have any idea why on spigot no plugins I get my overworld being /difficulty as hard but end and nether as easy?
someone should make a PR for that
I am wondering if it was because I deleted them both?
I can not figure out why for the life of me
Same here thatβs very weird
your getting the same thing?
No just seems weird
Ah fuck
Oop
I can not understand it this si wierd ngl
Did your plugins ever work?
I rlly donβt know
Anyone else have eternal rain in 1.16 spigot? Weather commands do nothing as does sleeping
https://pastebin.com/KTSHnP6s https://timings.spigotmc.org/?url=aragikucog Hi what's this come from?
And why my players can't sometimes pick up items from the ground?
You have an incompatible plugin
Damn why is everyone a quicker typer than me
@fervent cipher
from "kleinwolf" his plugin
Probably NMS
aka plugin doesn't support 1.16.1
ποΈ
is it run and jump something
If the error happens on startup it will be the plugin that says starting right before the error
I can't tell because your paste is only the stacktrace
I upgraded everything up to 1.16.1 Spigot and the lobby works well. But as soon as I join another server like Creative or Survival, I get this error: https://prnt.sc/t6je6e
I am using the deprecated method, but even with the another method to register a new Objective this comes up, just different. Here the error: https://prnt.sc/t6h9ru
This is what BungeeCord is telling me: https://prnt.sc/t6ha2x
gives it a last try
can anyone link me an article or explain how to update a non spigot 1.16.1 server to a spigot? Thanks.
oh it's that easy?
sweet, thanks for the help.
Np
Probably goes along with the multiple worlds handling in vanilla changing but has anyone else noticed the 'worlds-container' option in the bukkit.yml is being completely ignored in 1.16?
Iβve not tried out 1.16 yet
trying to open craftbukkit :/
Open and install Bukkit first
(i.e. build it)
Though BuildTools should have done that for you
hi guys anyone knows where is the problem, in console i have like 100 lines of error once in while
it starts like this "> [22:38:57] [Server thread/ERROR]: No key position_predicate in MapLike"
i have 1.16.1 spigot with some plugins but every plugin look like its working so far
What plugins do you have?
oh
Does anybody know where I should put the Worldgen_settings_export file to make the spigot world run custom settings
Yea choco i have done it through buildtools :/
but this is via the stash
i pulled via my fork and hasnt updated
i looked at the repo online and theres no 1.16 bukkit ( @subtle blade )
Thanks Choco, i guess its not a major problem right
Doesn't cause a server crash, so, no. Though obnoxious, yes.
@fleet crane server crashes every time I use an endgate? glitch??
Update your server. Was fixed > 24 hours ago
Hey
How would I go about using the new ''chat colors''?
I just tried to update my server to 1.16.1 but it still says 1.15.2
For example, if I wanted to try out text in brown
I just tried to update my server to 1.16.1 but it still says 1.15.2
So you've run a 1.15.2 server jar
make sure to update your bungeecord aswell @simple aspen
topic try modifying your launch parameters to match the correct jar name
It's literally 1.16.1
Well I launch through the panel
and the version is set to 1.16.1 there
Ohhhh
locally hosted
wat
did anything change for the server icon btw? mine shows up blank after updating (bungeecord)
Where I should put the '--forceUpgrade' argument when upgrading from 1.15.2 to 1.16.1?
Like so: java -Xms2G -Xmx2G -jar Spigot.jar nogui --forceUpgrade?
did anything change for the server icon btw? mine shows up blank after updating (bungeecord)
@lament mica same
So i had a vanilla world which I had Worldgen_settings_export within the world. When I set up the world in spigot, It began to crash with chunk related issues. Where am I supposed to put the Worldgen_settings_export so that the world will load properly.
I had no issues on the vanilla
soo what should I do regarding my server
@fleet crane Sorry for the @, but this issue needs some review. The issue I raised here: https://hub.spigotmc.org/jira/browse/SPIGOT-5815
is not a code problem. This is simple object instantiation. It looks like its a logic problem, but it is not.
@frigid ember because you completely mischaracterised the issue. Thatβs why we ask for reproduction plugins rather than you trying to assume what the issue is
you gotta have some balls to @ md_5
wait
There's the spigot jar file and the server.jar file
Are there supposed to be two separate ones
Or should I rename the spigot 1.16.1 jar to server.jar
Hey guys, 1st time doing this buildtools stuff, so ive downloaded the buildtools file and also downloaded "Git". Ive tried running the build tools file with java -jar BuildTools.jar --rev 1.16.1 but its not doing anything. Guessing im doing it wrong. Anyone able to help ?
Have you attempted running it via git?
"I know how to code bruh"
server.jar isnβt made by spigot, you mustve made it
yes thats how you act on a public issue tracker, lol
you gotta admit its a little funny
@grand gorge it must be giving some message
i copied java -jar BuildTools.jar --rev 1.16.1 into git but it says its unable to access jarfile buildtools.jar
Is it actually inside the folder you're using git bash with?
bungeecord server icon shows up blank after updating
make sure it's even there
it is
its just on my desktop, not sure where it should go
make sure the image isn't blank
a white square lol
mind if I ask, whats your server ip?
yes it's private sry c:
@grand gorge If you put BuildTools into a folder and then right click in the folder then press "Git bash here"
you can use something like this to check if it's actually white https://mcsrvstat.us/
it's a server pinger and it displays icon, motd, etc.
oh snap it's actually showing up fine for me on there
must've been my client side lol
yeah
thanksthanks β€οΈ
np
can i write you something via dm? is important @fleet crane
So i had a vanilla world which I had Worldgen_settings_export within the world. When I set up the world in spigot, It began to crash with chunk related issues. Where am I supposed to put the Worldgen_settings_export so that the world will load properly.
@crisp widget and then paste in java -jar BuildTools.jar --rev 1.16.1 ? still saying its unable to access
alright sec
not sure if this is something with spigot or essentials or just my game, but its literally always raining now, other players on my server arent seeing rain so im not sure. The server is running the 1.16 file
Anyone else noticing issues with map directory creation when using sub directories?
@mortal jolt hmm try reloging
ive tried that
is there a way to get advancement text?
I rlly donβt know whatβs wrong with that. Hope you get it resolved
@hoary parcel about the "I know how to code bruh"... you were acting like that was way out of place. Lets take things into context here and realize ther are wayyy worse things that could have been said.
@mortal jolt re starting mine craft maybe?
Emotional levels got a bit high out of frustration. That is all.
that makes it so much better, lol
Its not a big deal. If that statement is a big deal, not sure what to say.
Way worse things such as, perhaps
The above question should not have been closed. This is a bug, not a coding problem. I code full time for a fortune 50 company, I'm not a 12 year old just learning how to code.
lol
Seems so professional getting emotional on Jira π
Hey paul
Yeah i'll agree to that
Load up your launcher and change versions there. @ripe ledge
to see somebody create an issue without following the template properly and then replying with that when questioned
^ what mini said π
damn bringing up the past bc ya in the wrong just as usual π
Load up your launcher and change versions there. @ripe ledge
@flat topaz What
How I can see a player version with spigot coding
@ripe ledge
Sorry, that is what you asked.
And I need the player version
You can check in your launcher
What is a player version?
THATS NOT what I mean
I mean
I need to check
if the player is on version 1.13 and up
with SPIGOT CODING
how I am doing this
I thought they couldn't connect if they weren't on the same version as the server.
Correct
My server support multi versions
Does this in #announcements mean that spigot 1.16.1 is out?
So consult the plugin you use to retrieve the player's version
Nope, next year.
Anyway @hoary parcel @subtle blade I see your points. My response was out of line. I should have taken a deep breath before responding.
ViaVersion presumably. They likely have an API
(cough) they do have an API just for reference
via has an api
Look
at the web I saw that:
((CraftPlayer) player).getHandle().playerConnection.networkManager.getVersion();
But the IDE says that there is not getVersion thing
so what can I do
that doesnt exist
That was from 4 years ago
@ripe ledge https://jd.viaversion.com/overview-summary.html
@ripe ledge https://jd.viaversion.com/overview-summary.html
@crisp widget I am using ProtocolSupport not via
Is there updated docs on where world files are stored in 1.16.1?
soo what can i do to update all of these LOL https://spigot.club/checker#git-Spigot-a99063f-8ea9b13
ProtocolSupport doesn't officially support 1.16 yet
So personally I'd recommend Via
I don't think I quite have this worldgen down yet
this may be stupid, but, isnt this wrong?
I thought the block that you are standing on was the the number before the coma. But it seems it isnt?
I could've sworn that was the way it worked
You guys know how to give permissions for kick ban etc? "minecraft.commands.ban" doesn't work (I'm using luckperms) I know the commands to grant permission but don't what works because commands.ban is not in the list with tab
essentials i think
Negative values round upwards, Onyxian
Oh damn. thanks a lot
I need to review my jira post asap i think
might've messed up there
Well, they "round upwards" lol. Minecraft's coordinates are fucked
totally
@loud jasper https://bukkit.gamepedia.com/CraftBukkit_Commands Here's the wiki with them all, however if you're using a plugin that overrides those commands you'll need to use their perms
Round towards -Infinity
Hey, how would I go about using new formatting as a server owner?
For example, setting someone's nickname as a custom color
I don't know if many plugins support it yet
can someone link me to the 1.16.1 jar download?
nope
public static Optional<Vec3D> getBed(WorldServer worldserver, BlockPosition blockposition, boolean flag, boolean flag1) {
IBlockData iblockdata = worldserver.getType(blockposition);
net.minecraft.server.v1_16_R1.Block block = iblockdata.getBlock();
if (block instanceof BlockRespawnAnchor && (Integer)iblockdata.get(BlockRespawnAnchor.a) > 0 && BlockRespawnAnchor.a(worldserver)) {
Optional<Vec3D> optional = BlockRespawnAnchor.a(EntityTypes.PLAYER, worldserver, blockposition);
if (!flag1 && optional.isPresent()) {
worldserver.setTypeAndData(blockposition, (IBlockData)iblockdata.set(BlockRespawnAnchor.a, (Integer)iblockdata.get(BlockRespawnAnchor.a) - 1), 3);
}
return optional;
} else if (block instanceof BlockBed && BlockBed.a(worldserver)) {
return BlockBed.a(EntityTypes.PLAYER, worldserver, blockposition, 0);
} else if (!flag) {
return Optional.empty();
} else {
boolean flag2 = block.ak_();
boolean flag3 = worldserver.getType(blockposition.up()).getBlock().ak_();
return flag2 && flag3 ? Optional.of(new Vec3D((double)blockposition.getX() + 0.5D, (double)blockposition.getY() + 0.1D, (double)blockposition.getZ() + 0.5D)) : Optional.empty();
}
}
Any of y'all know what the extra "flag1" does?
It was added in 1.16
as a guess, maybe has something to do with the spawn anchor
Has anyone ran into certain players not being able to pick up items?
Probably plugin related but for the life of me I cannot locate which one
Has anyone been able to create a Smithing recipe in a plugin yet? I tried the following, but it's not being added:
public void onEnable() {
RecipeChoice base = new RecipeChoice.MaterialChoice(Material.IRON_SWORD);
RecipeChoice add = new RecipeChoice.MaterialChoice(Material.DIAMOND);
SmithingRecipe testRecipe = new SmithingRecipe(new NamespacedKey(this, "test"), new ItemStack(Material.DIAMOND_SWORD), base, add);
Bukkit.addRecipe(testRecipe);
}
Someone help me? You're making a mistake in this part
public static Main getplugin() {
return Main.getplugin(Main.class);
}
What ? On 1.16, we are on ground but not count as
Could anyone recommend a decompiler better than jd-gui for getting source
jd-gui leaves really weird spacings and comments on each file
It looks horrific and is terrible to use
hi there, Iβve never had to wait for paper spigot builds because I never updated my server that quickly so this is the first time Iβve waited for a build to come out, whatβs the usual time frame from Minecraft release -> spigot -> paper?
How to use the rgb colors?
As developer
Does this works for items too?
@fervent cipher you're gonna need to go in depth on your situation.
Uh, yes
This is my dream come true
succkrit don't know what could cause it
1.16
HO LEE FUCK
ask me for more info π
I'm so fucking happy
I've been waiting for this for years
And yes
Does it work on items?
Should work on items too
I'm cumming
And scoreboards, titles, bossbars, etc
Yeah, should work on everything which has text
What version are you running and if you're running something other than vanilla, what? Any plugins that could interfere with item pickup? ( @fervent cipher )
I use Luyten when I need.
I'm running 1.16
Plugins: : Captchas, LuckPerms, ViewDistanceTweaks, PlaceholderAPI, UltimateTimber, IllegalStack, NametagEdit, Votifier, PvPToggle, Multiverse-Core, ProtocolLib, HamsterAPI, MVdWPlaceholderAPI, DeluxeTags, PhysicsToGo, Chunkmaster, NoteBlockAPI, FeatherBoard, LimitPillagers, Vault, TokenManager, IPWhiteListBukkit, Trampolin, TimeVote, JukeBox, LagAssist, WorldEdit, LogBlock, ChatControl, CMI, WorldGuard, VotingPlugin, BetterBees, Plan, XPBoost, BungeeTabListPlus, ClickDye
Never had problems with CFR decompiler
There's no way they're all 1.16 compliant @fervent cipher
Remove any plugins interfering with items 1 by 1 to find the culprit
Luckperms isn't updated
I feel like illegalStack could be it
There's probably an error in console that will tell you which
His console should be spammed
No way that all plugins work
Multiverse isn't even working on 1.15 for me xd
Tagged: IllegalStack, PvPToggle, PhysicsToGo, ChunkMaster, LimitPillagers, LagAssist, LogBlock, ClickDye. Check to make sure that either these are updated, or go into their config folders to make sure none of them have any item specific configurations.
@ashen dove Can it decompile to a source structure?
@wheat mirage it's a command line decompiler
Hi there is someone who know how to add a lore to a mined block ?
Very nice
@ashen dove Is it not? I have a working version but I don't remember where I got it from.
It's giving you the source
Are you using 4.1.0?
i'm trying with blockbreakevent.getblock.getdrops
This site has em all
@ashen dove Is it not? I have a working version but I don't remember where I got it from.
@keen fulcrum I'm coding everything by myself so I don't use any plugins that you know and so
but i can't use the .GetItemMeta method
So I don't use multiverse anymore
GetDrops is a list of items
You need to get a single element and call .getItemStack on it
I see.
What do you mean by single element ?
But there is hyperverse, an good multiverse alternative
i have to add the lore to every single block manually ?
What do you mean by single element ?
@frozen lantern show us your code
I see.
@keen fulcrum and yes even worldedit. Not joking
OMG format please
this is the code at the moment
Use blockDropItemsEvent
Please format your code
Then loop over each item with a for loop
Use blockDropItemsEvent
@lone fog look at the codr
It doesn't make sense what he is typing
Aren't you using an IDE or something?
yep, i'm using eclipse
And it's giving you an error right?
Block#getDrops returns a lost of itemstacks
So you need to loop that list
Keep in mind those items donβt exist in the world
And then do something with the looped item
Thatβs what BlockDropItemsEvent is for
you right
And "lists" (arrays)
you're right
@keen fulcrum and yes even worldedit. Not joking
@ashen dove i cant live without worldedit π
Worldedit works without an update
@ashen dove i cant live without worldedit π
@keen fulcrum I'm doing it by myself, and it's working 10000 times better
But if you want to work with tile data get the dev build
I don't want to download something
are you placing blocks by hand or something?
My server is 100% selfmade
@ashen dove color me impressed
My server is 100% selfmade
@ashen dove except for Spigot, but I'm working on that
Currently making my own software in C++, then using JNI to execute java code (atm, later completely C++)
I successfully implemented the protocol, currently I'm working on the API, when I'm done I start coding the real working server
Performance beast
lmao
I said it
Thatβs pog
pog?
Pogchamp
Pogchamp?
Poggers
I'm not an native English speaker
Itβs a twitch emote
Hereβs another meme I guess
I'm having lots of freetime
It was more towards the claim that its "Performance beast"
Also the Minecraft protocol is fully documentated
Well, it is
It's in C++, Multi-threaded and mostly async
Sure, and I assume you have numbers to back this
Well I don't have a working version, as I said I was working on implementing the protocol, now the API. When this done I "merge" both and creating the actual functionality
But I did a basic test
Which means?
Let's say spigot would needed 1gb ram, mine needed 200mb
He sounds like he knows what heβs doing
Unoptimized
He sounds like he knows what heβs doing
@vagrant widget I think so lmao
yes because u haven't implemented everything
Lmao...
You didn't know what I tested stfu
nice
I'm taking a shower lol
And texting?
Tho when we speak in terms of performance we mostly mean the CPU time so π€
And Multi-threaded is an advantage which spigot has not
Right
:wtfakka:
You must know what u are doing then!
And because of the fact that I. Doing it async it's not blocking the server
Yeah, but I'm not publishing it, private use only
Just stop before u embarrass urself
Or if anyone pays me 10k
LOL
$10k?
yeayeah you sound like mazikro with his plugin making AI
Iβll buy myself a nice place
And a setup
Maybe 2 setups
The other would be for flight sim
What?
yeayeah you sound like mazikro with his plugin making AI
@ancient ridge wait what
π nothing
Doing it async it's not blocking the server
The last famous words
Well I think a custom server is more realistic then an plugin making ai
Anyone working with 1.16 Structures?
Lol wtf do you mean Coll
OMG I have the best idea ever
Scrap a C++ server
Let's make an assembler server lmao
No
Which has its own Operating System Kappa
Structures
Are talking about structures in the world?
Villages, shipwrecks, whatever
so the list have to be like this, right?
items = new ArrayList<>(e.getBlock().getDrops(p.getItemInHand()))
ok i'm dumb sorry
Hi, I'm confused about the "using the --forceUpgrade server argument, and then do the same on 1.16.1." line in md_5's newest post. What command do I attached the argument to?
The server start command
ah, and I need to download the newest jar correct?
?bt
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
im cancelling an inventoryclickevent and it cancels the event but the player now has the item in their hand and in the inventory slot
basically it cancels the removal of the stack but the not the player having it in their cursor
Pro tip:
If youβre gonna start a Minecraft server, make sure you have the money for it, donβt pirate plugins
Why are you saying that?
yeah doesnt seem like a post for #help-archived
anyone use an alternative to ServerListPlus, haven't been updated since 2017 but still works fine (using on bungeecord) but i'm guessing won't be updated to support 1.16 stuff
Some things just work as long as the bukkit API doesnβt change
yeah but still
how would you remove a players cursor item?
Used to be a setCursor but it was deprecated
Either that or null
ah that would be better
Weird thing that never happened to me before, and that I found no fix searching it on google. I have a multiverse world that no matter how many times I do /weather clear or /weather sun it keeps raining. Does anyone have the slight idea of how to fix this ?
That was being discussed a bit ago in #general
hmm its not working to remove the cursor item
That was being discussed a bit ago in #general
thanks already got some ideas on how to fix it
@grizzled hound are you using the deprecated method or the one via the InventoryView?
i think last i used the setCursor in InventoryView it worked, but iirc i had to schedule a task in order to do it as a result of an inventory event
I mean the issue to begin with sounds like a bug
ya, read it more slowly, sounds like different behavior compared to previous versions
Although I donβt recall having that issue
anyone got multiverse working or something similar on 1.16?
i have a plugin that cancels inventory clicks under certain circumstances, ill see if it does a visual dupe for me in a bit
it doesn't
works like it did in 1.15.2
Im having no issues /weather even with multiverse
wait so multiverse does work 1.16?
#spigotcraft's been running it this whole time
oh ok then cool ill have to get it running on my server I was under the impression that it was broken.
Has anyone noticed a significant decrease in performance when loading and writing chunks in Spigot 1.16?
actually maybe I wont I noticed the nether takes significantly more ram than previous and I am only running 6 gb with 15 players
(Specifically the nether taking a long time) ^
If youβre on windows change the sync chunk writes in server.properties
I think thatβs the name
well they added much more crap to the nether
what does the sync chunk do?
so its not really surprising its more like the overworld now
Time for a custom fork!
It makes the server wait on chunk writes iirc
Was behaviour with Nether portals changed btw?
so what does it enabled, do to my server? performance wise anyway
I was playing around with them earlier and had to go 50+ chunks to get a new portal
Right, definitely meant to disable sync-chunk-writes lol
I can see why they made it default - better safe than sorry - but man does it suck
Wasnβt it for power outages mostly
..power outages?
oh so I should disable it then? cause it was disabled on my server and synced chunks seemed important so I enabled it I didn't think about it too much it was 5 am when I was making the server
100%
what changed...?
You spammed CTRL + C that's what π
I am going to have to kill it
seeing async actually makes allot more sense reminds me of when I was making my discord bot xD. I will definitely change that once I notice noone on the server
yeah reminds me of my discord bot too! π
L no embed
English pleasee
L, The gif I posted did not embed for all users to see so it rendered my joke useless.
Who you calling L?
in chat please?