@Roadrunner2222 you should check if the length of the args is higher then 0. If you try to get args[0] if it doesn't exists it will throw a...
@MrFloatingCow Can you show us what you tried?
Solved. I used this as a shortcut to acces the clans file from my main class. Stupid as I am I used it also to load the configuration file in my...
Debug 2 and 5 show @mine-care
When I try to save my custom config I get a NullPointerException. java.lang.NullPointerException [12:19:10 WARN]: at...
You can call the getOnlinePlayers() method from the Bukkit class.
You have to implement the CommandExecutor in the class you want the command executed from. Because CommandExecutor is an Interface you have to...
@mine-care Sorry posted to fast
@The_BloodHound If you want to have the commands in different classes you need to implement CommandExecutor in every class that has a command. In...
plugin.method();
Try putting the motd String in the config file between ' '
@amatokus check if the chest inventory is instaceoff DoubleChestInventory
Why are you getting the CommandSender if you are using an InventoryCloseEvent. Just use Player p = e.getPlayer();
use p.sendMessage(getConfig().getString("YourString").replace("%Player%", p.getName())
@CrossBowerMan What do you mean? it gives an error when you add them?
You can not get the location of the CommandSender because the CommandSender is not always a Player . So first check if the sender is a Player and...
@FisheyLP \\n was not working i used %n in config and used this and it worked String welcomemessage =...
@Googlelover1234 Yes @FisheyLP Yes but isn't there a way to make ik work with \n?
Hello Bukkit, I am trying to get a String from the config but the \n is not doing his job. Config ('&6Welcome to the server &c %player \n &6...
You do not need to override onEnable and onDisable if you do not use them. Also use cmd.getName() instead of label and check if (sender...
Separate names with a comma.