Fix for fatal error at startup in CraftBukkit 1.1-R5 and above

Updated Bukkit lib
This commit is contained in:
Brettflan 2012-03-01 09:40:29 -06:00
parent e1a3d8bffb
commit 460c382699
2 changed files with 1 additions and 2 deletions

Binary file not shown.

View File

@ -21,8 +21,7 @@ public class MPluginSecretServerListener implements Listener
// reference command will be used to prevent "unknown command" console messages
try
{
@SuppressWarnings("unchecked")
Map<String, Object> refCmd = (Map<String, Object>) p.getDescription().getCommands();
Map<String, Map<String, Object>> refCmd = p.getDescription().getCommands();
if (refCmd != null && !refCmd.isEmpty())
refCommand = (String)(refCmd.keySet().toArray()[0]);
}