#help-development
1 messages · Page 370 of 1
lol
is there a way to get https://textures.minecraft.net/ of a player?
PlayerProfile textures returns a way bigger url link for them.
how do people put textures on textures.minecraft?
You add them as a skin to your account
PlayerProfile texture is base64. Decode it to get the url
how to access them?
access what?
this
You can use the Minecraft launcher for that
Yeah like that create a skin
but where do i get the link for it?
oh so u decode the base64 huge value
For the link yeah
It works fine
what's the most low-level language that has an api for generating schematics?
how can i simplify this stuff?
i think something like permissions: [ uks.help: {}, uks.reload: {} ] but that seems awkward for yaml
uks.*:
then list all the things as a subcategory?
do you mean children: []?
probably
this is from plugin.yml wiki
permissions:
test.foo:
description: Allows foo command
default: op
test.*:
description: Wildcard permission
default: op
children:
test.foo: true
uks.*:
default: op
children:
...
thought you could define there as well
yeah ik about wildcard perms, but i'm not sure if not registering the permission in the first place would work
hikari = new HikariDataSource();
hikari.setDataSourceClassName("com.mysql.jdbc.jdbc2.optional.MysqlDataSource");
hikari.addDataSourceProperty("serverName", ip);
hikari.addDataSourceProperty("port", port);
hikari.addDataSourceProperty("databaseName", database);
hikari.addDataSourceProperty("user", username);
hikari.addDataSourceProperty("password", password);``` Im trying to make mysql connection using hikari, ``` implementation 'mysql:mysql-connector-java:8.0.28'``` i got this in build.gradle, and when my plugin is staring i got error https://pastebin.com/F8vzthCS
i know that i must change daraSourceClassName, but i dont know how
lmao couriway just got an insane run https://clips.twitch.tv/LuckyResilientSkirretKlappa-X7aQiOOoDdvWDn5Y
using this? String jdbcUrl = "jdbc:mysql://mysql.db.server:3306/my_database?useSSL=false&serverTimezone=UTC"
Lol, are you trying to write an operating system? 😂
hes doing communication with the aliens
Hello ! I saw that CommandSender can have many types.
Do someone know what's happening when we use the sendMessage method on the sender (CommandSender type) in the case where the sender is the Console or a Command Block ?
Yes but in which way ? I don't really see how you can send a message to a block x)
Why don't you try and see
?tas
if you send a message to console afaik it's just gonna pop up in the console
not sure about command blocks
but probably the output field
yeah i just clarified the console :p
Oh yeah indeed, I forgot about that ! Okay thank you for your help !
Hey i'm trying to check the name of a GUI but I can't figure it out. I was using getTitle() but it is deprecated, what can I use instead ?
I tried title() but I can't figure how to check just the name of it?
I tried this
if (invView.title().contains(Component.text("§cMenu des améliorations")) || invView.title().contains(Component.text("§cCookie Clicker"))) {
But it doesn't work
I know i'm soryy, but when I tried to join paper it says that invite are disabled 🥲
Okk
you probably got banned from paper lol
they are rather sensitive i must say
na, it don't say that i'm banned, it says that invite are disabled
Disabled or expired?
Why are you coding for paper and not Spigot?
Spigot is teh root. Everything which works on Spigot works on Paper
Disabled, not expired
you're wrong good sir, bukkit is actually the root
or craftbukkit
i still confuse the two
Ikr, If I wanted I would use spigot but the second owner of my server says that paper offer more things and is better and some things doesn't work on paper's server bla bla, he doesn't want to ear anything 🥲
mostly 🙂
^
right, last time I were on they discord I saw that lol
i just joined their server
read a couple messages
never coming back lol
😂
it's sad that such a good server core has such a poor community

How did you joined it wtf, for me it says that invite are disabled on this server
well seems that you are b a n n e d
You're probably banned.
are you sure you're using .gg/p*permc
I don't see why I would be banned 🥲
And the message is different from a "ban message" saying "This user is banned from this guild"
yeah, I'll try on another device maybe 🥲
That message is not always the case.
you were banned in advance
just in case you were using an outdated version
they are always a step ahead and have foreseen that
Ok i'm not banned, just my pc won't join it '-'
I just joined with my phone bruh
95, and no I wasn't using an old link. I tried the SAME link on my phone and it worked, I don't know why lol
how can i make so blocks dont drop?
Anyway, thanks for helping, I gotta see a toxic community now 🥲
when break ?
i just need to do: event.setCancelled(true);
🙂
ok thx
wait
do you refer to BlockDropItemEvent or BlockPhysicsEvent
"blocks don't drop" is a bit ambiguous 😄
BlockPhysics doesn't make sense in this case.
We assumed the items.
As it's likely to be more common than falling blocks.
tbh when i've read the message i thought he was talking about sand and stuff
but sure
yes its items
alrighty
Trying to fix bugs in plugin for some guy, but he is unable to give me all the dependencies for compilation what should I do
Stop helping him
I am in desperate need of some vouches to help me get started
nah, give up at the first hurdle, much easier
Should I just write everything out and pray it works without testing
no
If he has the dependencies he needs to provide them
You won't even be able to compile without the deps
The guy you’re working for is a potato, sorry to tell you, but that’s the least he should he able to provide u with
This is upsetting news
It could be as simple as that he just gives you what you need :>
Hoping someone can help me, I'm editing the plugin config (with getConfig(), and config.set(...)) and whenever I run the saveConfig() I get an error in console:
org.yaml.snakeyaml.error.YAMLException: No JavaBean properties found in net.kyori.adventure.text.TextComponentImpl
This doesn't happen when running it in the onEnable method though. Anyone have any insight why?
may I ask, what are you passing into set(…)
are you trying to save a kyori component
Just to try to debug, it's as simple as config.set("player.name", joinedP.name());
🤦♂️
you probably want to use .getName() or .toString() .name
You could probably just use mini message or a normal adventure serializer
Yeah i just added .toString() to it and now testing
Well that took a very long time to figure out thanks for your help!
Anyone know I how in a EntityShootBowEvent I can tell if the arrow was a multishot arrow?
it is
I was asking if there is a way from the event or the arrow entity im given to tell if the arrow itself itself is a multishot arrow
is there a reason to use the bukkit Consumer over the java one?
No
It's older than the Java one I believe
how split a string by your text position, example: String type = "abcdefg";
i want a String[] { a, b, c, d, e, f, g }
or abc123, return { a, b, c, 1, 2, 3}.; ?
i see
maybe you can use String.toCharArray() ?
hm ok
Any better alternative for working with ConfigurationSerializable, rather using my genrics class?
how do i make it that when you are wearing Stone Helmet to drop 2x the amount of diamonds you would've gotten
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/block/BlockBreakEvent.html
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/inventory/PlayerInventory.html#getHelmet()
- some simple code
declaration: package: org.bukkit.event.block, class: BlockBreakEvent
declaration: package: org.bukkit.inventory, interface: PlayerInventory
What is this for?
When working with configuration serializable
Specific talking about that if i havent self expalined
You can just cast your list and Map right there...
yeah, but isnt unsafe doing unchecked casting?
Also its really annoying to havign your IDE yelling at you about unchecked casting
It hurts my eyes a lot tho
Your createMap method is also using an unchecked cast
Same for createList
yes, but atleast IJ doesnt yell me haha
Why are you always casting to Map<String, String>?
Did you test your methods? Because this looks like it shouldnt work
does spigot api have a way to check if item is special? special as in has a pink name (nether star for example)
nope iirc
Do you want to check if the item is a specific special item or do you want to check if its a non-vanilla item
u’d have to nms the item rarity
at this point i forgot how to use reflection
Just add nms to ur classpath :>
NMS ❌

how the fuck is dragons breath uncommon but netherite shit common
Maybe the name’s just colored
But possibly ye
Code review?
I would probably use implicit else/guard clauses
Dont lie to us. You have been here for years my guy
The name does seem familiar
if (!(cs instanceof Player player)) {
return true;
}
float speed = (float) pl.getConfig().getDouble("flight-speed");
boolean flight = pl.getConfig().getBoolean("flight-enabled");
if (!flight) {
return true;
}
boolean isFlying = !(player.isFlying() || player.getAllowFlight());
player.setAllowFlight(isFlying);
player.setFlying(isFlying);
player.setFlySpeed(speed);
player.sendMessage(isFlying ? "§6You are now flying" : "§6You are no longer flying");
return true;
no guys, he only joined feb 1st!!
Also, I would avoid the variable (name) pl for 2 reasons
1 the variable is a field thus belongs to a big scope therefore the name should be informative to the rest of the instance methods, constructors etc
2 the variable name is not descriptive
Also you might wanna pass a FileConfiguration rather than Plugin since you only seem to be using the config from your plugin.
That’s not what I meant
I would even go one step further and deserialize the whole FileConfiguration in a proper class
to pass around.
^
JavaPlugin offers ::getConfig()
getConfig() offers FileConfiguration
if you only use JavaPlugin::getConfig (in said class), then it might be proven smarter to just pass the value of JavaPlugin::getConfig to your constructor.
But what smile meant is that you completely get rid of any pl.getConfig() calls
Instead you create a new class that represents your configuration more accurately and pass an instance of that to the class
Where dog pic 
Yeah, anyway if you’re interested this goes under Inversion of Control principle, Dependency Inversion principle and general decoupling
Aaah, a person forcibly stole my phone an switched it
Thus far not allowed to change it
:>
I see 
Nice having you back here my gradle #1 fan
oof
(:
gradle is love
Ye, with the new update its even more goated
what was the new update

No, u are wrong, Graven >> maven or gradle
hahaha i still make my stomach hurt laughthing about that meme
is there really no method to cause a block to be broken by a player without using nms? feels very hacky to be calling blockbreak events and blockdropitemevents just to get it to play nice with other plugins
breakBlock() doesn't even call a blockdropitemevent
It should
declaration: package: org.bukkit.entity, interface: Player
it probablky doesn;t as it doesn't trigger a break event
I was talking about Player#breakBlock(Block)
And this one should fire BlockBreak and BlockDropItem events
damn i really ought to check documentation some more huh
I have a feeling it doesn't
yeah i was referring to Block#breakNaturally()
oh
my bad
Any recomendations about creating a custom menu type which allows you to set items into it, and then save them into the positions they are?
Im planing to add the type buil it into my menu api
Someone know how can I put in a inventory a item that is negative or zero ? Like this :
I think this doesnt work anymore. Illegal item amounts will result in the item being removed from the inventory.
What version?
1.19.3
are there any solutions to "patching jars"? Basically applying some kind of patch (like git does) but to a compiled jar executable
Hm maybe with some nms. I would have to look that up.
Okk
i guess one way would be to decompile, apply a patch and recompile
thats what spigot does to nms right?
Yes this is possible. You would have to edit the byte code of the contained classes.
But its not clean
what about my option 2?
i know that you can do changes at runtime, but its not good for my case as changes are pretty large
Anyone have any tips for adding more abstract and implementation classes to my plugin?
If you have the source of the project then i would just fork it and compile with your changes
Apply abstraction where it makes sense. Whats your plugin about?
PvP teams claims ect just not sure if it makes sense for stuff like a TeamsService to be abstract since there would only be one implementation
But I guess stuff like Chunk interface only has 1 implementation right
Chunk have 1 impl because its api
Because its an API. Everything in spigot just has one implementation. But one implementation per version.
You need to consider the trade offs
So would it make sense to make team service an interface?
Do you really need to build abstraction for something that will never be reused?
JSONTeamService MongoTeamService
We cant answer this decisively
I think would be the implementations
Well then it would make sense
https://www.spigotmc.org/threads/working-with-data.562421/
If you look at this forum post you can see a good example for abstraction.
I implemented an interface to write against without knowing the implementation.
So abstraction can be helpful if you didnt decide how exactly you want to implement something.
Only the general idea of what it should be able to do.
i am trying to build a project but it cant find the right api jar (because it doesnt exist)
i have found the problem (underlined in red) but i am not able to find any type of config where i would be able to change this
so its searching for the api from 2023 jan 21
but the oldest thats available is 2023 feb 10
try the --rev latest flag
The spigot api does not need a BuildTools run
Try calling clean before build
Also add build --refresh-dependencies to your build run
I need some recomendations about creating a custom class which will track all the sub menus opened by a player and also the current inventory open, how would you do it?
make one class thats called openMenu which has a container or what have you representing the menu, and have that point back to whatever opened it
i dont think you need a treeset
I wil lmake a diagram
let me write man
class MenuChain{
final MenuChain opener;
public MenuChain(Object MenuConfiguration){
opener = null;
popularizeMenu();
openMenu();
}
public MenuChain(Object MenuConfiguration, MenuChain openedFrom){
opener = openedFrom;
popularizeMenu();
openMenu();
}
public void openOther(Object MenuConfiguration){
closeMenu();
new MenuChain(MenuConfiguration, this);
}
public void closeThis(){
closeMenu();
if(!(opener == null))
opener.openMenu();
}
popularizeMenu(){...}
openMenu(){...}
closeMenu(){...}
}
basically that
hmm, i dont know how to
also i dont think the problem is at building
its when i press this button to load the gradle stuff in to inteliJ
this wont build it yet
wait what exactly are you doing
Basically linked list node but then menu
and the other way around
ig linkedlist works too
So i would need a LinkedList<MenuChain> ?
well linkedlist just points to the element before
so thats why a linkedlist would work too
so i can use it or not? Confirm so i can continues coding
I want to download Spigot Build Tools fot 1.8 but I Can't, anyone can help me?
download buildtools
It wasn't a 'use a linked list'
I meant as in, it's a Node often used in base-level LinkedList implementations
It reminded me of
i generated a new plugin with inteliJ and the minecarft plugin thingy within inteliJ
this gave me this butifall plugin base which normally works just fine
but for some reason it wont load the it like it normally does, it is trying to reach an not existing api
so i know this is the parts thats wrong, i just dont know where i am able to change it
and for 1.19.2 it works just fine, bruh
Can i open a thread ith you? and monterious, so its easy?
if youre using the intellij plugin youre in uncharted waters mate
people just run buildtools and import using maven/gradle
from their local .m2 folder
ow okay, thnx anyway
Can you tell me how can I create a git bash command?
its like a normal command shell
Tracking current player custom menu and the sub menus opened
just open it, navigate to where buildtools is and call "your Java 8 path" -jar BuildTools.jar --rev 1.8
Can I do it in a start.bat file?
Moterious please if you can join my thread, so we can chat there
Like if I was trying to start a minecraft server?
well you could but i have experienced that command shell doesnt work properly with buildtools
hence me recommending git bash
Hi all, I want to use a method that is only in paper-api, to what extent am I allowed to talk about this feature existing on the spigot page / in the plugin?
you can certainly try but theres no guarantee
bat works fine with BT
Ok
most people will tell you to ask on the paper api the rest will not know what youre on about
I'm asking about spigot forum rules, which is related to spigot much more haha
SpigotMC maintains the Spigot server. If you are using a fork of Spigot (such as Paper, Airplane, Purpur, or other derivative works), you should seek support in the appropriate Discord servers.
yes, I'm asking to what extent plugins can use API functionality that only exists in paper on the spigot forums
This is a question about spigot forum rules
you are not allowed to post a resource on the Spigot forums which will not run on Spigot
It will run on spigot, just one feature will be disabled
tired much elgar?
iirc should be fine
very
at least I recall a few plugins that allowed for mini messages "smooth gradients" when on paper and on spigot just did not
essentialsx has paper only functionality in its spigot fork
and if that plugin can have it
everyone can
Do they say this in the plugin / spigot page?
I tried, but when i run the command, just it doesn't do nothing
screenshot
its mentioned in the config
awesome, thank you.
I can't send photos right there, can I send you the image in MD?
?img
Not verified? Upload screenshots here: https://prnt.sc/
md5 paste will not accept my bat 😦
this is my Buildtools cmd file http://haste.palmergames.com/hibovefelu.tex
it needs curl installed
You were Right, thx
whos palmer games
mine

whats your start arg
like what shows up if you press up once
besides this sounds like git broke, not spigot
you should have your server jar and the necessary files in .m2
I just trying to use NMS
ye you should be able to do that now
if not someone else has to help you, i have to go
I see, so anyways thanks you
may anyone tell me what Statistic.SPRINT_ONE_CM returns? is it actually the sprinted blocks in cm (1 block = 1 metre)?
@eternal oxide says he doesn't want to give dependencies because it's 1k worth of plugins
I'd turn down the work if he can't provide the dependencies he expects you to use
or just change the dependencies behind his back
Chances are you don't need any dependency on another plugin unless you are working with a highly tight-nit system
cough cosmic cough
Yeah I mean there's unresolved packages being used in the code though
oooh, updating other people's code...
Not to get emotional here but it's really starting to tear me down 😢
If it looks like it being a very small dependency - just try to get rid of it by all means necessary.
Otherwise, decline and look for other ways.
wtf man
i declared one function
iget error that i havent declared another
which doesnt even exist anymore
i tried cleaning up the project
nothing owkrs
grep it
How is it possible that I'm running a 1.1.4.4 server on Java 8, but I'm getting this exception? java.lang.NoSuchMethodError: java.util.List.toArray(Ljava/util/function/IntFunction;)[Ljava/lang/Object;
The line that produces this is taken from my ItemBuilder class:
.withLore(lore.toArray(String[]::new)) where lore is a List<String>
thats not even a mc version
you get the gist
i will eat a broom if 1.1.4.4 is a minecraft version bukkit exists for
The method doesn't exist: https://docs.oracle.com/javase/8/docs/api/java/util/List.html
You probably want to use lore.toArray(new String[0]) instead
Is it foolish to make everything yourself when there are pre-existing libraries you could take from
depends
if its a math lib DEFINITIVELY
otherwise its debatable
flashbacks to be me reimplementing the maven resolver
I just read the docs and it says the method was released on Java 11... my bad 😄
answer's usually 'use lib' tho
thank you
It's a nice learning experience nonetheless
but then it's not your baby
that is the wrong argument.
depends
Try to improve existing libraries, and create your own stuff just for learning
it will help you a ton
if its the wrong license and youre doing commercial shit
u need to do it urself sometimes
I myself mostly rewrite libraries because the authors of the library wrote it in a way that is counterproductive or not intuitive
I doubt you abuse the hell out of services, so you're not in that list
i feel scummy if i use other peoples plugins tho
but i have no idea what im doing and i dont write documentation
Whatever, if I instantly get what you mean (and believe it or not I can understand spaghetti code better that CDI or service hell), documentation is secondary
Example is the build system that I use (byrachyura). It isn't documented, but was intuitive to use so it only got the fork (because unfortunately it still has many problems)
I make my own libraries for most things because:
- It's cool to learn new stuff
- I like having control over the code I'm running
The only instances where I don't make stuff on my own are
- If the project is overly complex (NPCs, for example)
- If the public API / solution has good code
public static List<Location> typeThree(Location anchor, double radius, double startRadians, double endRadians, double offset){
double radiansStep = Math.toRadians((offset * 180) / (radius * Math.PI));
endRadians+=startRadians;
List<Location> list = new ArrayList<>();
for(double currentRadians = startRadians; currentRadians<endRadians; currentRadians+=radiansStep){
double x = Math.sin(currentRadians) * radius;
double z = Math.cos(currentRadians) * radius;
list.add(anchor.clone().add(x,0,z));
}
return list;
}```
@quiet ice tip, dont do trigonemetry without saying wtf ur doing
Ah, drawing arcs.
lol
private static void hiss(Location loc){
loc.getWorld().playSound(loc, Sound.BLOCK_LAVA_EXTINGUISH,1f,1f);
}
Well that on is self-documenting code
Can someone help me with this error in BuildTools 1.8?
Som1 know how i can use rgb color in scoreboard?
I try somethings but it doesnt work
in the scoreboard ? no sadly not
Hmmmm what do you mean with RGB?
&x&f&f&f&f&f&f for #ffffff
yo what
Read the line above the runtime exeption
cant you just tell it 'color this part with this hex color'
ok
why tho
transition to components is cancer
it should've been seamless transition
for devs

true
You can just rely on adventure all time
or that ^
spigot should integrate adventure api
It doesnt work for me (in my scoreboard)
i wouldnt even try because of BaCkWarDs CoMpAT rules of spigot
have you seen the material enum to registry PR 
that is some cancerous backwards compat shit
adventure is a component api done right
would incline to agree (tho I might be biased)
well since mojang mappings you can almost use it as an api 😄
tho I might be biased
*is contributor*
sshhhhh
Gotta fix the issue with gamerule spectators load chunks
actually I don't think I contributed much to adventure 😅
like, two PRs maybe ?
I hate C++ memory management
i've been trying to solve why my pointer gets invalid
turns out shared_ptr objects can only share ownership by copying their value
creating two seperate shared_ptr objects from the same pointer do not guarantee memory safety
you need to copy shared_ptr object in order to use it in both locations
4 fucking hours
wasted for this
im done.
C++ is powerful but annoying
oh dont i know it
moj maps
you can accidentally try to put an array on the stack
?nms
which then just brreaks with an exception pointing to a completely wrong line
And rust, have you code already?
I've seen a bit of rust. Very close to raw ASM
I feel like there are way less docs and support for moj ones tho
spigot maps arent doced either
support etc. on old forum threads
mojmaps is the future though
I mean
Because i need to choose a lang to move and start hard working for doing Backend, im between Java, C#, Rust, JavaScript and/or TypeScript, i still cant decide which lang to decide
laravel >>
No please php 🤢, i cant support it., it doesnt have good sintax
When looking for mojmapped search for forge and fabric projects too
so forge/farbic uses them too?
let me guess, you never actually tried laravel
oh syntax is problem
nvm
yeah i mreally weird to choose syntax
Forge does and some Fabric projects do
I need hightly typed syntax for coding, in my case i dont able to code on c++ for example, C
hmm aight ty
I've only used Java and JS/TS for backend
Right, i find typescript really interesting but the tools are not really stable currently
well, c doesn't have any new syntax compared to java
Wdym not stable. Typescript is everywhere
aside from pointers ig
right, but must people complain about it
And i dont know if follow them or what do
Im opened to suggestions ofc
I find having types and better auto completion good
Which is why I use TS for larger projects
For small simple stuff js is fine
Yeah
I already read that
Then do what it says
I always self asked my self to choose lang whcih have future because if not i lsot time
Check the Wiki por FAQs?
Depends on what you want to make
Last part
please dont do js
this is valid syntax in javascript
input = "text";
var input;
Paste in pastebin all the logs?
Don't use var 💀
TS is a nightmare when it comes to types
?paste Yes
Eh it's not that bad
Ok, now what Im supposed to do?
Send the link
Why are you building 1.8 and not 1.8.8

Can I use 1.8.8 in a 1.8 version?
No one uses 1.8
1.8.8 works for 1.8, 1.8.9, etc
If they do then they're making a huge mistake
I always i use 1.8.8 R3 when need old plugins, is it okay?
So I have to install BuildTools for 1.8.8 right?
No
1.8.8 is for 1.8.8 and 1.8.9
But I'm using 1.8 in my plugin
Fake players
Then don't
check how paper does it, but probably fake players
??
Use 1.8.8
No one uses 1.8, you should use 1.8.8
If I use 1.8.8, Can I use the plugin in a 1.8 servers?
Depends, some stuff are version dependent
No one runs 1.8 servers so it doesn't matter
Yeah right too
Most people run 1.8.8 server which support p´laying with: 1.8, 1.8.8, 1.8.9
I'd run it in a clean folder with the latest buildtools tbh
You got buildtools from https://www.spigotmc.org/wiki/buildtools/ and not some sketchy backwater site right?
are you running it at cmd or bash?
bash
try at cmd
kk
Yes, in the official site
Do you have the file?
file?
I use a custom script
I see
is there a performance difference between world.getBlockAt() vs chunk.getBlock()? im calling this quite often
Can I get the script?
I did post it earlier
Where?
I'll try
well or you could cut the curl line and run it in the dir with ur buildtools
yep
the more important part is adjusting the java paths lol
and not building javadocs when building 1.8.8
urgh dont remind me
I used the code but I have an error
its elgars complain to him
😄
It said that it can't find the route specified
two lines set the paths for java versions
Yes, I already changed my Java Path
whats the error then
thats the script not the error
It said that couldn't find the route
Ik, I just trying to show you my path
internet issues?
It can't be
remove the @rough moon off and try again might show us where its broke
Okok
you can see what coimmand it uses then
Nope
Let me check the path
My mistake xD
Now Is working
Just let me wait for the installation
as you are building 1.8.8. delete --generate-docs from the cmd line
javadocs are broken for 1.8.8
looks good
ok
hey guys, somebody knows how can i make async sql requests to get database information? i can't understand spigot's tutorial very well :/
Hold on
Hmmm can u be more specific?
What data is involved? Can it afford to be loaded async? Just run it in a async Bukkit runnable
i tried but the getPlugin parameter of this method (runTaskAsynchronously) doesn't let me
I want to kill myself
Huh? You don't need to call getPlugin to schedule a task
i mean in Bukkit.getScheduler().runTaskAsynchronously(plugin,....) i can't make the method recognize my plugin so it works...
i mean it doesn't work hahaha
Guide to dependency injection: https://www.spigotmc.org/wiki/using-dependency-injection/
thank you dude!
Send the full code
Confused what the problem is?
I think that BuildTools hate me
It's that they can't get their plugin to resolve which sounds like they don't have an instance of it to use.
??
seems so. makes no sense
see if you can build 1.19.3
i tried it a few days ago but it didn't work, i'll give it a second try anyways
ok
I've never seen your error before
Ye that’s what I thought but the way they were describing the problem was a bit misleading
Where are you installing it from
Hold on because Im stupid and I tried to download 1.19.3 in Java 8
Do you have a spigot server setup?
asdlhjasjdh
if you set teh other path in that script it will use teh correct java for teh version you try to build
What is teh, sorry
the
the
glad to see im not the only one butchering that all the time
it works in other classes like commandexecutors but when playing with mysql it turns a little weird, i'm gonna investigate a little more thank you for your response!!
I don't know if you know but I speak spanish adjlajshd
so dont expect correct grammar here
Don't worry
more like correct typing xD
I'll try understand
muscle memory failed them
best i can do is pseudo syntax / grammar
que problema estás teniendo?
Cuando instalo el BuildTools, recibo un error que no me deja continuar con la descarga, por ende, no puedo utilizar en mi plugin las librerias de net.minecraft que son necesarias para lo que necesito hacer.
Ammm I downloaded 1.19.3 version and I didn't have problems
Sooooo
What it can be?
now see if you can build 1.8
no 1.8
his issue is building 1.8.8. He can build 1.19.3 so I want to see if he can build 1.8 to see if it's his java 8 at issue
I do now notice you set the path for java 8 to a jre
you might want to try a jdk
he has
he created a completely fresh folder in a new location
Yeah that was my first idea. No dice lol
nope, it was at root
so two folders under root
it also works fine building 1.19.3
it has to be his java 8 version
xero
Tell me
For sure
get java 8 from adoptium
I don't know how it doesn't work for you but I can surely help
Can U give me the link
sec
Where dude?
Can someone suggest the best solution for the following? I'm creating a kit builder plugin where players can select items from a GUI to build their own kit. These items rotate every 'X' days. I want to store the kit information in my player database, but I also want to keep the database connection low. Should I create a cache when the player logs in? and should I run batch updates for new kits that aren't in the existing cache or database yet? It may be a simple one, but I think I might be overthinking it
mk
Latest or
make sure you use a jdk
Which one?
What version build tools is it
Ok now I have
jdk
Spigot folder should look like this
Yeap
@warm mesa Show me your spigot folder
kk
mine is SET JAVA_CURRENT="C:\Program Files\Eclipse Adoptium\jdk-19.0.1.10-hotspot\bin\java.exe" SET JAVA_8="C:\Program Files\AdoptOpenJDK\jdk-8.0.252.09-hotspot\bin\java.exe"
the java current should point to your latest java install
I use a script so I can build any version
and it always has an up to date BT
yep, my script picks the correct java for the version you want to build
I have an error with the path
Like the Sintax
But I downloaded and pasted the path correctly
estás utilizando maven?
Si
How Can I fix it?
asigna permisos para esa carpeta \SpigotBuildTools\
edit the cmd file
Como?
your paths
anyone able to advise on this
you guys ready for some naming conversion fails
these are from the 1.16.5 jar file
dont worry they go all the way to z
whats the point of this
theres a reason im using remapped
?
mojang code is obfuscated, remapped gets rid of a lot of nonsense
CubicSampler has a bunch of ☃ in them
no way ur finding anything in this mess
if you need to but call 988 first
do you just want the 1.8 server file?
Yep, I give up. No clue why you are having issues
ok :c
no rhyme nor reason for it
why not follow the links it gives you
asigna permisos para esa carpeta \SpigotBuildTools\ How Can I assign permissions in Maven for the folder SpigotBuildtools?
wait a damn moment
Maybe It can be the problem
Ok
it didnt work for me in cmd either
For sure
he's done it in bash and cmd
hm
also used jre, jdk and different version
have you tried manually downloading buildtools and calling that
bruh
open cmd and type set path=c then reopen cmd
he can build 1.19.3 but not any 1.8.x
welp reboot time
And If I try rebooting?
reload file explorer
Just for make sure that It is not the problem
a reboot can not hurt
BRUH
wrong java version
you need 7-8 java
Ok, One attempt more and I'll try rebooting
same error
did you goto those links
ill reboot
Hmmmmm I don't remember
I'll reboot
Hold on x2
also read this
cmd
you probably only have a lock file
'-'
Just Craftbukkit_
his error is different
i mean
I asked to ChatGPT and my bro said that the error is in Bukkit or Spigot folder because it doesn't found spigot-server
Fr I want to kill myself
So would you recommend javaScript and/or TypeScript for backend?
did you try in an empty directory
Yes
huh
I mean
TS can be nice backend
assuming u might use sth like npm with webpack
right i never used webpack tho
Just made simple rest apis
Because i never learnt Javascript completly nor TypeScript
But i just want to confirm and then learn it, if not i just lost time
c# all the way
check this out
Built an entire api to hide my webhook link
I didnt udnerstand
Can we talk more in detail that
Im really interested to listen you
You can implement a rate limit, thats one option
use uuid or ip
I love using uuid's on my asp net web api!!
actually not a bad idea but
maybe cookies
C# is slower than java
aspnetcore
Really?
I'm making a webapi though
I'd rather use asp net
than java
java only for minecraft
You can do that in spring boot no?
How to test EntityPlayer is spawned?
I can't see it and i dont know how to send packet
did u send the packet to show ?
I don't believe so. That's just how the client renders it. You could try ItemFlag.HIDE_POTION_EFFECTS (poor naming, it really represents hiding item-specific details), but I don't think that bundles respect that flag
I'm off from computer now. Will try tomorrow if I don't forget.
Thank you for the idea
if that doesnt work try any other flags like hide_attributes xD
I wonder where that came from
in NMS stuff, the item flags are just integers, so I guess this time it's actually bukkit's fault to have chosen to call it "HIDE_POTION_EFFECTS"
It was accurate at the time
Just like Material.WATCH was accurate for clocks at the time pre-1.13
The ItemFlag API was added in December of 2014. A little over 8 years ago. It was accurate then
huh?
wdym?
what has changed in watches/clocks?
The Material constant for clocks was called WATCH before the 1.13 update
You'll still find LEGACY_WATCH but no LEGACY_CLOCK, because CLOCK didn't exist
It was called a WATCH way back in the day which was accurate for the time before Minecraft renamed it to a clock
oooh ok
yeah but tbh, watch makes no sense right?
aren't watches the things you put on the arms
and it's usually the "offhand" which didnt exist pre 1.8 lol
Yes
My point being that WATCH was correct at the time but was incorrect after Minecraft changed it. ItemFlag.HIDE_POTION_EFFECTS was accurate in 2014, but since then has evolved to mean more something along the lines of HIDE_ITEM_SPECIFIC
spigot should rename that
It's used to hide a whole whack of stuff now that are specific to items. Like the type of mob spawner, that gets hidden by HIDE_POTION_EFFECT
or deprecate potion effects and add a new one that just maps to effects
to break all existing plugins? no
rather just add some javadocs and call it a day
@Deprecated
HIDE_POTION_EFFECTS,
// etc.
;
public static final ItemFlag HIDE_ITEM_SPECIFIC = HIDE_POTION_EFFECTS;```
Probably the only reasonable "fix"
yeah
but that's ugly lol
Sleeping
damn choco still only 23 years? he was already 23 when I first talked to him
do you not age
when do we get to see them again
he turned 23 like 11th of december
oh
11th of december? lol
is it not?
idek where you got that one
we know more about you than you do
Som1 know why i have this error
https://paste.md-5.net/wuzodacafe.cs
With this code
https://paste.md-5.net/uzokiticow.java
And why gradient doesnt work (on the scoreboard)
👀
we love bungee colour
please tell me this wasn't your idea




