Problem Accessing yml elements using java for minecraft
Problem Accessing yml elements using java for minecraft :
i'd like to have kits where i give players some blocks defined in the config.yml
but when i try it, it doesn't work, the yml is valid, the code too, the list in't null, but doesn't show any element event if i put a basic element at the start of the list (BEDROCK one)
Version mc + spigot 1.16.5
26 Replies
⌛
This post has been reserved for your question.
Hey @Electroking! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
java Code :
config.yml :
result in mc using both screens above :
i used those video to understand yml : https://www.youtube.com/watch?v=ymMLShZqHxw&list=PL65-DKRLvp3Yn7iglPfxKoc7bl0N80XgG&index=12&ab_channel=CodedRed
https://www.youtube.com/watch?v=EFp6oCS_Mns&list=PLMS9Cy4Enq5KConY5UFCV93A_5k76zcpS&index=7&ab_channel=Graven-D%C3%A9veloppement
CodedRed
YouTube
How to make a Spigot 1.15 plugin (Ep11) Creating a config.yml file
Learn how to use the config.yml! Finding known and unknown values from the config.yml file :)
------ Links ------
Download Eclipse: https://www.eclipse.org/downloads/packages/release/2019-03/r/eclipse-ide-java-developers
Download Spigot: https://getbukkit.org/download/spigot
Build Spigot: https://www.spigotmc.org/wiki/buildtools/
Starting S...
Graven - Développement
YouTube
CREER UN PLUGIN ? #7 | LES CONFIGS
Aujourd'hui , on se retrouve pour l'episode 7 de "Creer un Plugin" sur la création de fichier "config.yml". Bon Visionnage
QUIZ : https://www.onlinequizcreator.com/creer-un-plugin-les-configs/quiz-287383
Android Studio : http://graven.yt/android-studio
Eclipse : http://graven.yt/eclipse
Spigot: https://getbukkit.org
Java : http://java.com/fr/
...
(merci de me ping dans vos réponses)
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.
still need help pls
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.
@Electroking
Whats the output if you print the returned value of
?
I can't really tell, but I assume that
YamlConfiguration#getStringList
only works on YAML lists that contain ONLY strings, your list however contains Objects with multiple properties (id,amount).
Also, to make it easier for people to help you, its recommended to post your code and config using discords code formatting feature, see the message below.working, lets go thank you
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
tysm, ill see if i get what i want
happy to help :)
and, can you tell me how you access id and amount ?
i tried this but not working
I'd try something like this: (not tested)
thank you so much bro, its working perfectly
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
tell me when u've seen, then i can close
yml is so weird to get x)
yoo nice
everyone has to start somewhere :)
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.
Post Closed
This post has been closed by <@278562333977214976>.