Enums should use ==, not .equals().
Static is best way i found. You can easily in other class do FileConfiguration config = Config.config;
Howdy, today my friend @_Error asked me how to make custom configs, i gave him some things but it didn't work. So now i will tell you how to do it...
I always forget about ".equals("")", but i think it is useless until you need ".equalsIgnoreCase("")".
You can use configs without saving them in a file. I found out that when forgot to use my saveConf() method. They will reset after reload....
@HenkDeKipGaming Then you better swap player name and guild name.
If you using CraftBukkit or Spigot (not API, server jar itself as library) you can send player packet through NMS....
Using .getString() for that is easy. if (config.getString("Guilds.Leaders." + player.getName()) == "lol"/*or how you want to get the name, maybe...
It is easy. You loop through all entities and check if they have exact x, y, z and entity type. World world = player.getWorld(); //Or put world...
After i removed code causing stacktrace to appear, nothing is happening, only sendMessage:"Debug: Mission Failed" that i use for debug if player...
It really was what spigot was saying to me until i turned debug server on, now found out that stacktrace is useless.
The folder and file exist, code tested.
Yes, i do, it says that permission is granted and other plugins are working fine. PlayerChatEvent didn't help at all, nothing is changed.
I wondered if it will work like that... IntelliJ is much better than Eclipse or Netbeans. If i have any problems with {} then it will tell me. It...
That's just me copying it wrongly... I have IntelliJ and there's no {} problems either.
1. Yes. 2. Yes. 3. No. (error message says anything but not about code i provided, so it's useless) 4. No, i guess.
I found that the log is completely not helping, error is in next code, that can't get anything from config because code i sent can't add anything,...
Howdy, i have got error: org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:305)...
I have in event onPlayerJoin this code: this.plugin.config.set("Players." + player.getName() + ".prefix", "\\xa7e[PLAYER]\\xa7r" ); I want to...
Separate names with a comma.