TheCwispyOne You never initialized gfile in Cmds.java which results in it being null by default. You then call a method on the gfile variable...
YellowKamel public class CommandKits extends JavaPlugin { should be public class CommandKits implements CommandExecutor {
FuZioN720 That would cause the same error he was already having... The getLineOfSight method returns a List<Block> which is not something you can...
The Fancy Whale Change: Location loc = (Location) player.getTargetBlock(null, 100); to: Location loc = player.getTargetBlock(null, 100).getLocation();
chikenlitle99 Or you can use the BanList.addBan(...) method seeing as setBanned(...) is deprecated.
Mxeaez You never initialized the plugin variable therefore it is null.
My bad, I thought that would do something different than what it actually does. Here you go:...
Azolex The issue is that you named your plugin main class Snowball. The class is trying to call the getConfig() method in the...
Xyplo Change: (World) getConfig().get("world") To: this.getServer().getWorld(getConfig().get("world"))
PokeNet Eclipse isn't giving any errors for me. Did you save the class? The Problems tab updates when you save it.
jojodmo2010 Change it to: if(player != null)){ If you try to call a method on a variable that is null it will throw a NPE. So checking if the...
nanerz_123 You are implementing Listener when you should be extending JavaPlugin. package me.nanerz_123; import org.bukkit.Bukkit; import...
Deathbyrussian You should use the equals(...) or equalsIgnoreCase(...) methods to compare Strings instead of ==. Change: to:
hurleyboarder When I tried your code for the most part it worked. The main issue was that the warp command check was inside the braces of the...
hurleyboarder What is your plugin.yml?
Separate names with a comma.