Ep6. Settings (Custom Config Files) - Minecraft Plugin Development

preview_player
Показать описание
How to create configuration with your Minecraft plugin, save/load values using commands, including tab-completion, and comment support. Pretty much how to create an advanced settings plugin!

Welcome to Minecraft plugin development tutorial series! In this episode, we'll cover:

- Using YamlConfiguration — Saving and loading keys from .yml files.
- Editing files on the go — How to write and load values to your settings using a command, with tab-completion support.
- Comment support — How to properly save .yml files with retaining support for comments.

🙋‍♂️ Need help? Ask in our Discord community:

👋🏼 About Me

You’ve found my YouTube channel where I help other people wrap their heads around Java programming by teaching them coding using Minecraft and growing a lucrative skillset.

My only hope is that one day some of you will learn enough from my videos to see an exciting opportunity in the IT space and build a life you love.

#minecraft #spigot #minecraftplugin #java
Рекомендации по теме
Комментарии
Автор

How does he update the code without restarting the server or reloading???

rick_demezio
Автор

question:
in the first line of the load function it dosent register my plugin ( new File(no_vallay_custom.getInstance().getDataFolder(), "settings.yml"); ) my plugin name is at the top level of the browser "no_vallay_custom". It is complaining about no_vallay_custom after "new File(" . My main class is called "No_vallay_cusom" (yes it is the right capitaliation). sorry fir spelling mistakes

simonschnaller
Автор

also, what is the intellij plugin for those auto-command completions where it types 'Copilot: did smth' on the screen

handleavailable
Автор

Hi im using 1.18.1 and i get this error java.lang.NoSuchMethodError: However in the Documentation in 1.18 i can find this method. Any idea how to fix this?

marnix
Автор

I'm having an issue. When starting te server paper remaps my plugin. Now the datafolder is this isn't right. How do I fix this and what is causing this remapping to happen?

jaanrogiers
Автор

i would recommend you use {} brackets for if statements because it confused the hell out of me when you stopped using them... just talking from a beginner's point of view

detonario
Автор

Nice tutorial! I am currently working on a skyblock plugin. Would you recommend creating a world for each player with their island or just every island in 1 world with a grid system?

timl
Автор

How would i make a folder inside the plugins folder?

tissemyren