#help-development
1 messages Β· Page 1213 of 1
like docker auto restart multiple lpbby stuff
yea?
I mean there shouldn't be any changes to the world if it's a lobby
but using multiple lobbies with the same world and saving wont work
is there any way to set an Item Entity no gravity?
i only found a setNoGravity method in nms
setGravity?
oh thanks
lol
I mean your impl looks fine as is
i searched for setNoGravity but found nothing XD
Don't think you need to save velocity values though
yeah thats overkill
im automatically moving players to second lobby server on crash, so itsmore seamless that way
moving a player to a different server is already a jarring change
losing velocity wont matter
but rlly annoying with all that copy paste stuff
I mean you still don't need their velocity unless I guess they were flying? but I thought like teleporting a player already set the velocity to 0 as it were
yeah
ive seen it work pretty well on a mc server i play on
i can js set it after teleporting though
That sounds like extra work
well theres the chabging world stuff
true. maybe ill writeit on my todo list and do it when im bored lateron
thx tho
Sure!
Biggest thing for lobby transfers would just be all relevant data you'd need for the player being location and uuid... at least I would think you don't need more
yea think so too. i need to load items on join anyways
you'd need yield switch if you want the parenthesis
it's basically a return statement for the new switch blocks
forgot abt that
my item menu goes off screen, is there a way to change the orientation of the menu ?
alr thanks
i'm in 1.8 so i dont think so lmao
the tooltip depends on the position the item is in the inventory
uhhh ima just make multiple lines seems easier lmao
thanks
Bukkit.getOfflinePlayerIfCached when is a player considered "Cached"? Is it if they have ever joined the server?
i think you need to check who adds that method
wdym?
that isnt a thing on spigot
if it says so in the description
otherwise nah
Bukkit is usually unsafe outside of the main thread
yeah ik thats why im asking
yeah then if there is nothing in the docs about it, its unsafe
doeos anyone know why my fwhitelist isnt working to whitelist bedrock users to my server ?
yes
that's not how it's done anymore. when using the offsets i get spammed with this error
i don't want redstone tho
You want the spawnParticle method that accepts a generic T
Pass a Color to it
that's what i'm currently using
What Color
yes bukkit
Yes see the stacktrace I replied to
If it was the wrong one it should throw a different error
iirc
Are you using ViaVersion/ViaBackwards or any other protocol hack?
wait... π
that's probably it..
i forgot to actually test on 1.21 omg i've been using 1.20 still w via π
mb
thanks
Is there a way to create a headless PDC?
Not sure what you mean with headless, but ig that'd be just a file in the plugin's data folder or an entry in your database
yeah i think you just want a db
is there a way to make a recipe with an item that stays in the grid after craft? is so then how? can't find any tutorials no it anywhere
look at cake
Is there any way to register an enchantment made with PDC without NMS and reflection, etc? :/
wdym
I believe they're refering to the bucket
That's not part of the recipe however. Items being kept in the crafting grid is controlled by the item itself and not the recipe
You'd probably have to listen for when a player crafts and then set the slot item yourself
No
is it possible to send different texture packs for people on different versions? for viaversion
@blazing ocean itβs your queue
is there a way to query the constructor arguments of a class using reflection?
you can get the declared constructors of a class
Does Player#teleport close their inventory?
opened inventory or player inventory
Is there a difference?..
Let me guess, if its their own inventory it doesnt close cuz its client side?
?tas i'm guessing
should it be? xD
YES
Integer.class
Integer is already the class
oh for fucks sake
getClass is an instance method
idk what the e is before that expression
is than an else?
no thats case
i cannot declare constants because switch needs to be known at compile time apparantly
because fuck me
bleh i soooo want to do if-else chains now
dynamic switch cases would be so weird xd
HashMap consumer maybe?
true too but i dont have them at hand
something about this just feels so wrong
Class<? extends Tag> clazz = tag.getClass();
Field field = clazz.getField("data");
field.setAccessible(true);
stream.writeUTF(clazz.getCanonicalName());
switch(field.getClass().getCanonicalName()){
case "byte": stream.writeByte(field.getByte(tag));
case "double": stream.writeDouble(field.getDouble(tag));
case "float": stream.writeFloat(field.getFloat(tag));
}
needs more interfaces
Anyone can help me to think about how to make to when it's raining, and a player is in fire, the fire doesn't extinguish?
wait whats the difference between getField and getDeclaredField
getField is limited to public fields iirc
ah so thats why its failing
wonder why the error message is just 'data' tho lol
huh?
this class declares the field 'data' but getDeclaredField(data) isnt finding it
its marked as private final but i should still be able to read it, no?
ah.
obfuscation
fml
actually related question to this, why does getClass give me the Spigot mapping but the field name is the obfuscated one?
shouldnt it be both of either, not one of both?
"getClass" gives you the spigot mapping?
how much you wanna bet it's some compiler fuckery
like, at runtime the classnames are generally spigot mapped
what class?
version: 1.21.4, hash: 2fa57b8f16
Class<? extends Tag> clazz = tag.getClass();
Field field = clazz.getDeclaredField("data");
field.setAccessible(true);
what gives you an unexpected value then?
net.minecraft.nbt.NBTTagByte?
but yea, spigot does not reobfuscate class names, just fields
thats irritating. would paper remap class names to spigot or obfuscated
paper uses mojmaps now afaik
god damn it
can i tell it to give me the mojmap name
probably not tbh
though how do i do this check?
WRONG ORDER
what
oh yeah my bad chief
got the wrong one, lynx is right
the really annoying thing is that i cant make this a switch lol
(not that there is a child type of ByteTag so == would work)
i need to if else chain it
which's faster? :V
wym
Tag tag = ....;
switch (tag) {
case ByteTag byteTag -> System.out.println(byteTag.getAsByte());
case StringTag stringTag -> System.out.println(stringTag.getAsString());
}
bold of you to assume they're using anything newer than java 8
skill issue + don't care
exactly
not worth supporting java 8 users obviously 
but given they were talking about paper remapping, I doubt they are using java 8
mfs still on java 2:
das too old
java 8 was already legacy when it released fr
facts 
I can't wait for new java releases to fix old boring stuff
can't wait for valhalla
FR
given that spigot spits out spigot mappings, what happens if i go Class.forName("net.minecraft.nbt.ByteTag") (mojmap)?
does it not find the class?
Null restricted types π
@eternal night what do you tihnk about amber
specifically code before the super call
already third preview 
that is going to be SO nice
but yea, same for StableValues
also records are getting the whole withXYZ stuff built in like hashCode and equals
488 is interesting
but I am wary of the pattern matching
feels like a possible recipe for bugs
Well, just prep for valhalla for sure 
Tho I guess we already have that for record deconstruction
so eh
valhalla is surely not going to have huge repercussions
uh. how do parametereised functions work again
the "space" operator just feels weird af
don't care 
the performance gains minecraft will see
are crazy
given the server is known for just, shitting out small semi useless objects
I already did that by manually "implementing" valhalla in a lil tool I made, granted I never really tested it on mc because of some issues with transforming lambdas
Anyways turns out that a lot gets a performance boost from that
Well valhalla EA builds are out
like a lot
well yeah I mean, it auto converts to valhalla
ah
Well, minecraft isn't gonna be too happy given a lot of its small BS types are mutable
but that can be solved 
it works for like 98% of cases then breaks down because I haven't fucking figured out how to get it to reliably handle lambdas
holy shit you have no idea
lambdas are a PAIN in the ass
anyways still gonna work on it
actually I did figure it out
it's just annoying to implement
oh nah it's fine
afaik it doesn't really matter
those mutable types still use some form of object to handle themselves
like the BlockPos class
hm?
iirc tho, they already moved Vec3I to be mostly immutable
the withers are not used anywhere where the originally thing is re-used
at least in vanilla, on paper sure to avoid re-alloc
but yea, the fact that the value types allow for like, that fancy level of escape analysis where all of their inner values are just lying around on the stack without any allocation is pretty neat
like, there was a talk where they literally were able to flatten a full wither method on a value class to be a single registry edit
that was their example
does not allocate a single record
the int is stored in a reg and just allocated
which is also huge because iterators become basically free
From Devoxx last year
or like this shit
oh woaw
incredible
I mean, its just c structs
not really
but glad to have them in java
Well, c structs are just fun ways to describe memory offsets
c structs can do more things iirc
I guess
you can do very neat optimizations with them
but yea, can't wait to clown on languages with java performance 
"java is slow" my ASS LOL
I don't get their reason to add a new keyword though
wouldn't that also conflict with older namings
value ?
yeah
I mean, what else are you donna do
you gotta identify shit somehow
can't just turn existing stuff into value types
why not though
because == exists?
if it is just primitives & other records you should be able to
ohh shit yeah my bad
I forget about it
I wonder how they'll deal with it
no I mean, how they'll deal with existing codebases with the variables named like value
var value = "hello";
var record = 1; works
oh wait it does?
yea?
oh damn
I mean you also have contextual keywords vs reserved keywords
i mean a pdc without an holder and without requiring another container's context to create it
why does this produce a NoSuchMethodException
clazz.getConstructor(byte.class)
when clazz is instance of ByteTag whose constructor is
ByteTag(byte b0) ?
try getDeclaredConstructor
urgh ikr
all this couldve been avoided if PDC could just spit out the PDT for given keys
it can't 
Well, it could give you a default, but like that might not be the data type used to store it
wait what
object.getClass() -> class java.lang.Byte
clazz instanceof ByteTag.class
clazz.getDeclaredConstructor(byte.class) spits out non-null constructor
clazz.getDeclaredConstructor(object.getClass()) causes noSuchMethodException
like ?????
i mean i can sidestep this with a switch but like
java.lang.Byte != byte
Well, why is object.getClass() yielding java.lang.Byte
bc im passing a byte to a semi generic method
private static Tag constructTag(Class<? extends Tag> clazz, Object object) throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {
Constructor constructor = clazz.getDeclaredConstructor(object.getClass());
constructor.setAccessible(true);
return (Tag) constructor.newInstance(object);
}
cant have nice things apparantly
'serialize and deserialize PDC'
hm
The pdc impl has a toTagCompound method
i see how compound can be turned into a stream but where's the reverse?
I am looking at it

on the impl
maybe that you can't read
honestly i didnt see this one, though wouldnt this not exist on paper? or do they remap it to their own version of it?
the type also exists on paper
it isn't mojang owned, so it isn't obfuscated either
do you know where the TagCompount -> PDC conversion is?
i cant seem to find it
oh its putall innit
yea
12 hours wasted on ultimately 6 lines of code π€¦
well to be fair ive been talking about this tangentally for a few days now
Never caught the original goal π sorry
Asking half questions does that
i read through PDC but not the implementation coz im an idiot
im pretty sure i said i wanted PDC serialization
not that I saw
(obviously if you are ever dropping spigot, paper has methods to de/serialize on the API, but enough shilling)
pft who uses paper these days

Can confirm these methods won't come to spigot too π―
hater
how to set max stack size?
setMaxStackSize on Inventory or ItemMeta, depending on which you want to limit
https://paste.md-5.net/vawopatoku.java
i am trying to intercept entity packets and set them to a serverplayer so that the client treats all packets from the intercepted entity as the serverplayers
but i dont think im doing it properly
hi guys i have a problem and i cant solve for an hours
problem;
- Code
private static Economy economy = null;
public void onEnable() {
if(!setupEconomy()) {
this.getLogger().severe("Economy can't setup.");
this.getLogger().severe("Plugin Disabling!");
this.getServer().getPluginManager().disablePlugin(this);
return;
}
}
private boolean setupEconomy() {
if (getServer().getPluginManager().getPlugin("Vault") == null) {
return false;
}
RegisteredServiceProvider<Economy> rsp = getServer().getServicesManager().getRegistration(Economy.class);
if (rsp == null) {
return false;
}
economy = rsp.getProvider();
return economy != null;
}
it never hooks
Do you have an economy plugin?
yes
which one, and is it supported by Vault?
EssentialsX
no reason that code would not work then
i think too
it works, thanks!
import net.minecraft.server.v1_12_R1.MojangsonParseException;
excuse meοΌ why this dependency cant search in Maven repositoryοΌ
net.minecraft is not on a repo as it's proprietary Mojang/Microsoft code.
tks οΌ is it a plugin or some server pluginοΌ
its nms. You need to run Buildtools for the version you need, then depend on spigot instead of spigot-api in your pom
?bt
tksοΌnow iβll copy another plugin οΌit used: net.minecraft.server.v1_12_R1.MojangsonParseException;
just for catch a exception , i start gloable search in IDEA ,just this exception used net.minecraft.server.v1_12_R1.MojangsonParseException; ,i dont see any use this import
try {
return ItemUtil.jsonToItem(string.replace("/|/", "'"));
} catch (MojangsonParseException e) {
return new ItemStack(Material.AIR);
}
}
if thats all it does change it to Exception e
tks οΌ thatβs good idea
that moment when you've completely forgotten how one of the core, cursed systems you wrote 5 years ago works
like, I have no idea of how this ever worked and I am now not surprised that it doesn't
and i ready create auth action in Paper pluginοΌif i want connect remote database to auth plugin οΌwhat should i do
comment, comment, comment!
ironically it's not really a lack of clarity so to say
it's that there's three parallel systems that ended up getting built over time
and I have no clue of how I ended up routing this behavior
managers on top of managers
man this definitely is overcooked
I should rewrite it for the (unironically) 10th time
just like οΌuser load my plugin οΌ send a Http request,request my remote interface,i'll verify it's phone οΌip address οΌor some filed
and in my remote dbοΌsave some record to verify this request οΌif( xxxUtils(String phone οΌString ipAddress).equals(DBrecord))
it should to say οΌremote verify auth use local config, what should i use in Paper plugin project οΌ please
how do you "kill" a Text Display Entity?
tyvm (i didn't know how to kill any entity in the first place)
in Paper plugin οΌi βll send Http request to remote server οΌwhat is my steps to do thisοΌcan you help me οΌ please
Hiring a dev for my server.
?services
If you wish to request or offer development/art/building/administration services, please do so at https://www.spigotmc.org/forums/services-recruitment-v2.54/
We arent paper
tks tips me
whats with the arbitrary spacing between commas?
Translator I'm guessing
ah man
so
non-persistent entities aren't surviving to chunk unload events
by which I mean, at the time of the chunk unload they are already gone from the chunk's entity list
which kinda makes sense I guess but truly complicates things for me
going to have to open my third eye for this one
I don't think there's any dancing around this one
I just have to bite the bullet and make a watchdog task
I want to rely on my own unloading but mc has been incredibly flaky with that
either double loading or double unloading chunks
that's what I was looking at right now yeha
was about to test if they get detected
no dice, best I can tell
these are just ghosts in the api
we love that
well, well, well
what do
wait what now, why are they duplicating now
what did I do
Made a new dupe that paper has to patch now kek
hm
I just might
there's no shot right
I swear this used to work
something must've changed while I wasnt' looking
I donβt believe the great magma could be stumped
truly the only person powerful enough to stump me is my past self
Or rather your future self going back in time o.O
I do enjoy playing 4d chess with myself
Youβre like Sheldon but sociable and smarter (but that was a given)
Einstein, Mozart, DaVinci, all dead! Only I remain
ok I don't get it
according to my testing I see the chunks unloading, and none of the chunks unloading have entities
and it never removes the unloading entities
even if they're seet to not be persistent
like, it never tries to remove them in the first place which is why I can't detect them
but at the same time I can't spot the entities in the unload event of the chunk
what am I even supposed to do
I guess youβd have to remove the entities before the chunk unloads?
But now whatβs the point in the entities being βnon persistentβ if this is occurring anyway smh
I can't guess a chunk isa bout to get removed
I can only scan if an entity is no longer valid
but that's a very poorly scaling solution when I have literally tens of thousands of mobs I am managing
I can probably get away with only scanning the loaded ones but falling back to that is something I was hoping to avoid
Was typing something way convoluted, but was gonna basically be this
I donβt think thereβs really a more βefficientβ way since the api is just bugging apparently
I swear elitemobs 10 will be built around implementing my own top to bottom game logic
It might⦠kek
justa game engine built into mc
EliteEngine
has a nice ring to it
Well thatβs one thing to look forward toβ¦ probably the only thing
im gonna assume that spigot/bukkit doesn't directly support datapack creation within the plugin? Otherwise I just wasted a lot of time with my plugin making it copy a /data folder in the jar to the world folder as a datapack,,,
oh i add it before running lol
Try and then call Bukkit.reloadData()
it's moreso so i can create datapack oriented details, like custom armor trims and recipes, through the plugin files rather than making a manual datapack in every server instance
are noteblocks still the best wya to do custom textured blocks
i'd say so, as you can still keep noteblock functionality while having them be custom blocks
Yeah plugins load too late
like generation
Mhm
Does anyone know how I can log packets and their content clientside?
Elaborate.
I want to have a minecraft client
what does client side mean in your use case? Storing the data on the client?
and log whatever packet he receives
for my own use
what does that have to do with spigot.
packets from a server? Im confused why you would need them
so basically
its like a server, but reverse
just listen for whatever the server sends
use MCP and add some logging code to CleintPacketListeber
what's mcp?
I also want to log all packets, handshake as well
Why not use a mod?
https://modrinth.com/mod/packet-loggers here I did a google search for you.
curseforge allows only for packets after the login
yes, thanks, I already found this
Oh youβre trying to capture what the handshake packet looks like for user authentication?
?
wait, does this stuff allow you to modify the client src as you please?
Ew
yooooo
No way they still use MCP
finally
And not something like loom
You just need to rewrite the class I told you about, with Netty.
I think thereβs a class called NetHandlerPlayClient.
I donβt remember.
just a quick question thst im pretty sure i know the answer to but i cant find out rn, can i have a hashmap with a list as the value?
yes
You mean like:
HashMap<String, List<String>> map = new HashMap<>();
Multimap :pogging:
Cool! Good luck on your project!
Does 1.8 support NBTTagCompound?
1.8 has NBT tags yes
Thanks
1.8 clients do
newer clients are usually just fabric mods
?howold 1.8
Minecraft 1.8 is 10 years, 4 months old.
yes but don't forget that you cannot redistribute anything you make with it
cc @shadow night
you can just do stuff
if i have to store true/null for every block in a chunk, what's the most efficient (read: fastest to load/store) method to do so? Byte arrays per layer?
BitSet
hm. no serializer but i doubt heavily i cant just shove it into a byte stream
ty thatd do it
How exactly do I import two different versions of NMS into my pom file?
Do I have to use uhh modules?
yes
IntelliJ freaks out whenever I do this
Something like this isn't in the project root
tell it to calm down then go get it a warm glass of milk
Any other way to do it which doesn't involve modules?
i stg every link tha aint spigot is jeff
is a good blog
astro my beloved
is there a way to gauge the expected time for java code to run, or is the only option to profile it?
Is our superior buildtool website still running
Yep
no
I mean, there is just "this code could be improved" things
but like, "time" is obviously super dependant on the system too
I have work machines that are so slow to the point where multi-threading it takes longer than single-threading
so what plugins would you guys recommend for storing player stats in 1.21.1, like health defense speed etc?
how can i check in a world if its day or night?
hello, im trying to set entitytype on TrialSpawner but i think there is not a method to do it (1.21.4)
i tried to copy blockstate and blockdata and it didnt work
the class TrialSpawner doesnt have this methd
i used it to creature spawner but cant do it for trialspawners
I've not heard of a TrialSpawner, must be a nerw Block
is the spawner of trial chambers (new dungeons)
Its in teh TrialSpawnerConfiguration
getNormalConfiguration() or getOminousConfiguration()
hey, is there someone really good with Databases? MySQL? i need help
If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!
I have a problem with the addVoteToPlayer method... when the starting value is 0, it added 1, but when the starting value is something else then 0, its not working, it just stayed 1, bcs before adding the one, it goes back to 0, idk why...
oh ty
your equation is flawed
0+1 is still 1 just fyi
but when i do it again, it should do 1+1 right?
like I want the value to increas 1 by 1..
is different table its working normal
in this table its working normall
I guess you don't understand cached values?
anyways I don't know your exact setup but you obviously don't safeguard or bother vetting the data you are putting in is even accurate
and I have no idea if there is anything else that touches that data
I will give an example, whatt happens if votes happens to be a negative value? you don't bother checking for that lol
its just very simple method, i guess there is no need to it (i do not understand it :D), but basically it should add 1, like it does add it, but the value is still 1.. not 2 or 3 when i run this method again π
i am adding balance to this table and its working fine π idk where is the problem
sorry for my english, its not my native language
well if you don't understand it, then that means you probably should learn it better. Both Java and MySQL have a thing where it will cache stuff and occasionally this can be a problem. IE you are trying to do things optimally and not creating a bunch of variables so you are going to reuse variables etc
yeah, i am just like on begginer 2 π i am still learning
nvm, thanks for trying to help
still dunno what to do π need to study more
instead of using executeupdate
if you have some materials about it, you cen send it to me pl
are you making use of a connection pool?
if not, then you need to be closing out your statements and connections
i will implement it
Hello, can someone help me with a plugin?I have a problem because if I install this plugin I can't get you to do it commando
Essentials
That's a question for #help-server
incremental syntax exists btw -> ++ :p
not in mysql
lol
String sql = "INSERT INTO sync_data (id, loc_x, loc_y, loc_z, loc_yaw, loc_pitch, vel_x, vel_y, vel_z)" +
"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)" +
"ON CONFLICT (id) DO UPDATE SET" +
" loc_x = EXCLUDED.loc_x," +
" loc_y = EXCLUDED.loc_y," +
" loc_z = EXCLUDED.loc_z," +
" loc_yaw = EXCLUDED.loc_yaw," +
" loc_pitch = EXCLUDED.loc_pitch," +
" vel_x = EXCLUDED.vel_x," +
" vel_y = EXCLUDED.vel_y," +
" vel_z = EXCLUDED.vel_z";
guys am i doing sql correctly?
no way i cant js do something like INSERT OR UPDATE
depends on the sql dialect
basically sqlite, postgres and mysql have different "dialects" and some let you do this
some let you ON DUPLICATE KEY UPDATE
do you know of a quick guide for each?
or Look in the SQL folder of GroupManager
I did all the syntax for INSERT for H2, MariaDB, MYSQL, PostgreSQL and SQLite
Does anyone have an idea why creepers continue to cause damage? https://pastebin.com/4PDa6pDz
might count as EntityDamageByEntity and BlockExplodeEvent instead
An Explosion Location is not going to match the Players Location
ah I see
do some sysout
Also, are doing enough testing? as you only cancel 50% of the creepers
yes so all 100% of the creepers do damage
it's about the damage to players/entity and not to blocks
sysout the distanceSquared for each location
you would also need to listen to the entity damage event
why
does this not bring any output
nothing in the forEach is done
already love kotlin
breaks for no reason
this works no problem
because you're creating a lambda and never calling it
...what?
my question remains
...
forEach { material -> ... } already is a lambda
but you are putting { /* logic */ } in there
it's like doing ```java
forEach((material) -> {
() -> {
// logic
};
});
and for the love of god stop putting the word sex in your code
at first I thought it was because I named my function init0
so I made sure to use a word that no other dev would use
very efficient
a bukkit provided serialization method spits out a string; is it better to store that as a string or byte[] blob when using MySQL? I'm debating if i should use ByteArrayStreams so that all the data is Blobs
which one
asking generally coz theres a bunch of data im going to store as byte[]; but in this specific case its CraftPersistentDataContainer
how can i detect when a item gets cooldown? like enderpearls or shield colldown
i have adjusted it again. it seems to work sometimes, but completely randomly. sometimes one 50% does no damage, sometimes the other 50% and sometimes both https://pastebin.com/cz6C0ZsM
uuuuuuh i just found a new keyword lol
wtf is 'strictfp'
ah interesting... its math related
Just precise floating point
It's also practically useless in modern Java
is API the correct terminology for a plugin that serves mainly as a dependency for methods and object storage file creation?
Wow thats vague lemme try again
The answer is yes
or library / framework
ima go with api bc i dont wanna refactor everything lmao
- If your plugin provides methods and object storage functionality that other plugins use as a dependency, "API" is generally the most accurate term.
- If it acts more like a helper library that other plugins call without adhering to strict interfaces, "lib" might suit better.
- If it enforces a structured approach to plugin development or extends core functionality heavily, then "framework" is appropriate.
im calling mine a library
And API basically just means it has publicly callable functions :p
Anything is an API if you want it to be
though you can get around that if you're up to dealing with reflection
ty
'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 87, column 21
It is highly recommended to fix these problems because they threaten the stability of your build.
For this reason, future Maven versions might no longer support building such malformed projects.
wot
i didnt touch anything π
hm its in the thing for using mojmaps
sure ? is it not your maven compiler plugin version which is missing ?
Li-like NMS?
is there any way of sending an actionbar to a player?
Yes
Are you wanting to use components
?
The Bungee API
https://www.spigotmc.org/wiki/the-chat-component-api/ Are you wanting to use this?
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.Spigot.html#sendMessage(net.md_5.bungee.api.ChatMessageType,net.md_5.bungee.api.chat.BaseComponent) You just need to use sendMessage
declaration: package: org.bukkit.entity, interface: Player, class: Spigot

sorry guys, i have a problem with spigot right now, i pay this plugin and i dont give AdvancedEnchantments... i need support :c i have all details for the payment.
@lost matrix @ancient plank @ivory sleet @young knoll
Please!
Why are you pinging randoms

And what does a forum issue have to do with #help-development
Have you tried contacting them?
π i dont have support with this payment
its for a bug of the spigot page
I tried to contact the plugin owner but was just ignored
why the eye roll dickhead? Did you state that in your message?
I didn't mean to offend with that... in my country I guess it means something else, I try to do things in the best way
But I literally asked you, what does what you're talking about have to do with #help-development?
I'm trying to contact some kind of support, does that exist here on this discord?
sorry with that
im sorry, im busy rn
^^
You haven't explained what it is that's the issue. Is it a billing issue??
thank you so much!!!
super(params)
Or do you mean call another version of ths constructor
this(params) if so
ah ty
btw, is there a maven <something> such that the source code / javadoc gets incorporated into the resulting file?
y
main.java: https://sourceb.in/yCrVezSNAu
marketRunnable.java: https://sourceb.in/5cryNMMslo
i'm getting default value of webhooks key but i want to get in config.yml
how can i solve?

π€¨
uh, wasnt it new File(Directory, filename) ? why would that possibly just create another folder with filename as it's name? im calling mkdirs(); createNewFile();
call mkdirs on the directory
?
If you're calling mkdirs directly on that file object you're telling it to make that as a directory
one for the directory and one for the file
Does boss bar from EnderDragon or Wither will be listed to Bukkit#getBossBars?
Ah, so boss bar from command, thanks.
I really need to read the jdocs before asking here, my bad
You can look in to using the nio file api instead (if possible)
well all i need is that file, and given that i get this
CREATE TABLE FAILED WITH: [SQLITE_ERROR] SQL error or missing database (incomplete input)
i have a feeling the issue is no longer the absence of a file lol
Send your SQL
ye i checked that
forgor the closing ) im pretty sure
if it still doesnt work imma post
well its not throwing an error anymore
wheres my inspector tool...
god damn it it doesnt work
what about it doesn't work?
it throws an error that its incapable of opening the database file
bleh i had a working tool for this once but hell if i remember the name
im on hammer & sickle edition
ah, found one that works
db browser sqllite
ah yes chunk3d oops
yo im bouta lose it how to I add a plugin dependency to my plugin that is a plugin that I made?
i added the dependency with the right groupid artifactid and version
but idk what to do from here
show the part of the pom where you do
- what exactly is the issue? theres more than one way this can break
im pretty sure i figured it out im just gonna test it rq
?paste
yeah no I got it
https://paste.md-5.net/vawopatoku.java
i am trying to intercept entity packets and set them to a serverplayer so that the client treats all packets from the intercepted entity as the serverplayers
but i dont think im doing it properly
can you catch runtime exceptions?
Exception catches runtimes
what does this mean?
means you should do try (PreparedStatement ps = ...) { etc etc }
It closes when scope dropped
It auto closes anytjhing in the parenthesis
is there a way to make a recipe with an item that stays in the grid after craft? is so then how? can't find any tutorials to it anywhere
cake; transmute the item into itself
Some items naturally stay in the crafting grid, like buckets right? I wonder if thats a quality of the bucket itself, or a quality of the recipes.
You could have your recipe include a custom item, which is modeled after the bucket.
Or the other item is of course to just insert the item back into the grid using an Event
guys in yours comunity exists standard architecture? What layers of classes do you mostly have? And what are they usually called
I started learning this when I started developing websites and there's a huge standard in backend
like (controller-> service -> repository -> dto -> controller)
bit of a question with what the standard is in animations in minecraft
lets say i want to display a pixel animation of a circle getting bigger, is there a consensus on how that should be done? should you capture each frame of that animation in like an item model and display it with item display entities, changing the item of the model each tick?
or is there a better way to do it
could you help me because im really slow
in the head
If you are ysing a display entity just set the scale
im not asking that
And generally yes, have a value for each tick or a mapping function
Yep, itβs the only way you can do it
alrighty, thank you
ask mcp
Whats the full error
they seem very responsive
why are you using mcp in the first place
What an informative error
right?
not relevant
TRy run verbose
i mean there's not really a reason to use mcp with modern versions
where?
2 years, no response
WHY are you trying to use mcp for 1.18?
sounds like you should use one of the better alternatives then
so what are the alternatives?
just gotta check some stuff for pre 1.19
clientside
mache supports the client too
Fabric is also an option
does it allow src modifications?
ah yeah okay
it does, alright
Using adventure api HELP FOR THE LOVE OF GOD, how do you edit the stay/fade time on a title part. My brain is mELTING trying to find anything of use.
static @NotNull Title title(final @NotNull Component title, final @NotNull Component subtitle, @Nullable final @Nullable Times times) {
return new TitleImpl(title, subtitle, times);
}
times?
lol
Title.title(mainTitle, subtitle, Title.Times.times(fadeInTime, stayTime, fadeOutTime))
Hello, how can I keep EventHandler annotation in proguard ?
does proguard remove it or something
yeah
I tried pro -keepclassmembers class * extends org.bukkit.event.Listener { @org.bukkit.event.EventHandler public *; }
But it changes nothing
?
Im syncing player data between my lobby servers, using an sql database. should i worry about the player changing servers faster than my plugin can write to the database and commit changes?
Duration.of(...)
yes
Duration.of(10, ChronoUnit.SECONDS)
oh its rather something like this
ofSeconds
ooh
does nothing either, maybe you want to see my proguard conf ?
Stupid question, but how do you call(show it) that one?
Audience#showTitle
it's good with -keepattributes *Annotations*
thanks π
cobblemon isn't spigot
its just datapack related
and this is for spigot development
umm no π
whatre ya obfuscating ur plugin for, hm? π
Hello, I'm developing a plugin and I'm wondering how I can build a schematic world edit in one place with spigot 1.8.8
proguard has other functionality too yk
Are you trying to use an API or something?
yes, and I don't find any help online with WorldEdit 6.1.4
To be honest. I didnβt even know world edit had an API. Ik wg does but not we.
Use 6.2
don't even exist on https://dev.bukkit.org/projects/worldedit/files?page=2
bukkit is dead
Wait that was the WorldGuard version π
seems they didn't publish older builds on there, understandable
there is no WorldEdit which work with 1.8.8
the world would be so much better if Curse didnt stick their grubby little hands in everything
Curse you, Curse!!
poor BukkitDev and MinecraftForum
F
reducing file size
Hey, how can i update a scoreboard, i saw that you need to reopen it, but just doing player.setScoreboard(scoreboard) doesn't seem to work, i tried to remove the scoreboard with player.setScoreboard(null) gave an error.
looking at code for one of my plugins, should be able to just setScoreboard once and then thatll be it
updating individual values for teams/objectives is all i do after
for a flicker-free scoreboard you want to just use a scoreboard and update teams
I didn't use teams, and my tutorial didn't use teams, could you explain what do you mean by teams?
is there any way to register permissions at runtime? like without plugin.yml
and then?
That's it
Do make sure to reuse that permission object
otherwise you'll hurt performance quite a bit
alr ty
Hello, what is the best way to keep track entities between 2 restarts ?
Currently i am spawning entities as non-persistent so they are deleted when the chunk is unloaded and are spawned back when their chunk is loaded with ChunkLoadEvent but it does not work on spawn chunk that are always loaded.
I can always add some code to handle those chunks but i was wondering if there was a better way.
depends entirely on the purpose they have
but you most likely will end up needing chunkload one way or the other
hm what exactly isn't working?
Only to keep track of some villager with no AI
alright thanks
You mean the spawn chunks are loaded before your listener?
I guess so since they not summoned only in chunks loaded around the worldSpawn
however the listener is set up before the actual spawn of the chunk if my test prints are correct
You can set load to startup in the plugin.yml
Should cause the plugin to load before the worlds
oh i did not know that
That ofcourse means you can't reference the worlds during load which usually isn't an issue but keep that in mind
actually, isn'T there an event for when the server finishes loading? couldn't you just scan over spawn chunks then?
And if the plugin requires dependencies do they also need to be loaded at STARTUP ?
That was my idea before but i wanted to make sure there was not a better one
I'm not sure
Give it a try and see what happens
Alright thank you all
Hey, how can i update a scoreboard, i saw that you need to reopen it, but just doing player.setScoreboard(scoreboard) doesn't seem to work, i tried to remove the scoreboard with player.setScoreboard(null) gave an error. (I do not use teams)
import org.bukkit.ChatColor;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerInteractEvent;
public class guiListener implements Listener {
@EventHandler
public void onClick(PlayerInteractEvent e) {
if (ChatColor.translateAlternateColorCodes('&', e.getView().getTitle()).equals(ChatColor.AQUA + "Select Kit")) {
}
}
}
could someone tell me whats wrong with the if statement?
like .getView doesnt work
why
I will only have like 2 huis
guis
maybe 3
inb4 a user renames a chest
they cant cus first of all this is a colored text and second its a pvp server
they wont be able to get stuff to do it
Im trying to make a kit selector for duels
can anyone help me i want the plugin/mod which works like squid game
What do you need with
If you really want to take shortcuts with your plugin like that:
- Follow naming conventions
- There is no view in the interact event so you can't get it
didn't vulcan do this
It did
So wait what do I even do then to make it work?
and then you could just rename a chest and get op
red light green light , mingle and if glass brigde is there or not it not mater's
Do u got any experience in java?
no
If you're looking for an existing plugin ask in #help-server
me ?
yes
Then use skript its not worth to learn java
Or pay some random dev idk
is there not any plugin ?
Prob no
Idk why would anyone make a squid game plugin
Take a step back and think about how exactly do you want it to work
Break down the problem
so how did that yt creators are making video on squid game ?
π
please tell me you are joking
no im not
πΈ
exacly
they paid devs to code a custom plugin for them XD
for a video
they dont make vids about public plugins because no content
oo
they pay money to gain more money
i bet i can make a worse version of whatever they used in the video
from views
ooo
I dont know how to make a gui...