forum Forumsplay_arrow Minecraft fiber_manual_record Mods

1

Plugin Decoding - HELP

1 emerald2 replies255 views
created 07/23/2013 10:19 am by ComputerTurtle_
last reply 07/23/2013 1:19 pm
The Code

else if(args[0].equalsIgnoreCase("class"))
{
if (sender instanceof Player)
{
Player player = (Player) sender;
if (args.length == 2)
{
String[] classes = getConfig().getString("classes.names").split(",");
for(String s : classes)
{
if(s != null)
{
player.sendMessage(ChatColor.AQUA + "[EggWars] " + ChatColor.DARK_GRAY + "Add you to the " + s + "class!");
}
}
}
else
{
for(String s : getConfig().getConfigurationSection("classes").getKeys(false))
{
if(args[1].equalsIgnoreCase(s))
{
player.getInventory().clear();
try
{
String items = getConfig().getString("classes." + s + ".items");
String[] indiItems = items.split(",");

for(String s1 : indiItems)
{
String[] itemAmounts = s1.split("-");
ItemStack item = new ItemStack(Integer.valueOf(itemAmounts[0]),Integer.valueOf(itemAmounts[1]));

player.getInventory().addItem(item);
}
player.updateInventory();
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
}
}
}

Console Errors

2013-07-23 13:51:22 [INFO] Zandor300 issued server command: /eggwars class
2013-07-23 13:51:22 [SEVERE] null
org.bukkit.command.CommandException: Unhandled exception executing command 'eggwars' in plugin EggWars v1.0
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:189)
at org.bukkit.craftbukkit.v1_6_R2.CraftServer.dispatchCommand(CraftServer.java:523)
at net.minecraft.server.v1_6_R2.PlayerConnection.handleCommand(PlayerConnection.java:964)
at net.minecraft.server.v1_6_R2.PlayerConnection.chat(PlayerConnection.java:882)
at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:839)
at net.minecraft.server.v1_6_R2.Packet3Chat.handle(SourceFile:49)
at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296)
at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:118)
at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37)
at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590)
at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226)
at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
Caused by: java.lang.IllegalArgumentException: File cannot be null
at org.apache.commons.lang.Validate.notNull(Validate.java:203)
at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:170)
at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:117)
at org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:111)
at com.missiecraftmine.eggwars.Commands.onCommand(Commands.java:60)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
... 15 more
2013-07-23 13:51:24 [INFO] Zandor300 issued server command: /eggwars class basic
2013-07-23 13:51:24 [SEVERE] null
org.bukkit.command.CommandException: Unhandled exception executing command 'eggwars' in plugin EggWars v1.0
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:189)
at org.bukkit.craftbukkit.v1_6_R2.CraftServer.dispatchCommand(CraftServer.java:523)
at net.minecraft.server.v1_6_R2.PlayerConnection.handleCommand(PlayerConnection.java:964)
at net.minecraft.server.v1_6_R2.PlayerConnection.chat(PlayerConnection.java:882)
at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:839)
at net.minecraft.server.v1_6_R2.Packet3Chat.handle(SourceFile:49)
at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296)
at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:118)
at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37)
at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590)
at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226)
at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
Caused by: java.lang.IllegalArgumentException: File cannot be null
at org.apache.commons.lang.Validate.notNull(Validate.java:203)
at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:170)
at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:117)
at org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:111)
at com.missiecraftmine.eggwars.Commands.onCommand(Commands.java:49)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
... 15 more

Command Errors

Error: An internal error occurred while attempting to perform this command
Posted by avatar
ComputerTurtle_
Level 22 : Expert Architect
5

comment Login or register to post a reply.

2 replies

07/23/2013 1:19 pm
Level 76 : Legendary Modder
cuchaz
I'm not a Bukkit person, but the error message says the crash is in the call to getConfig().

It seems like the plugin is not configured correctly.

Cuchaz
07/23/2013 10:20 am
Level 22 : Expert Architect
ComputerTurtle_
The lines are how they're supposed to be, the forums are dumb like that.
But, CAN YOU HELP ME!

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome