I'm still fairly new to coding, so I'm not that good. My plugin should actually create a config as soon as I enter the command / mlg teleport set (integer / number). The command class: In the console and in Eclipse no errors are displayed.
The config is not saved?
httpshttps://hub.spigotmc.org/javadocs/spigot/org/bukkit/configuration/file/FileConfiguration.html
Try the save method from FileConfiguration and not that
Main.getPlugin (). SaveConfig ()
Your other problem would be that if you access an index without checking if the array is that long, there would be a fat error.
I can try, but / mlg fly doesn't work either.
So it must have something to do with the class itself
If (args.length == 3) {
if (args [1] .equalsIgnoreCase ("fly")) {
Fly can't work!
Your operation for it makes it impossible.
You gave fewer arguments than 3 for / mlg fly
Can you set the (args.length) so that you can use as many args as you want? If I leave out the (args.length), then there are errors in the console