Written Minecraft plugin does not work?

Ch
- in Plugins
5

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.

Ul

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.

Ch

I can try, but / mlg fly doesn't work either.

Ch

So it must have something to do with the class itself

Ul

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

Ch

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