Fix for fatal error at startup in CraftBukkit 1.1-R5 and above
Updated Bukkit lib
This commit is contained in:
parent
3af6f2737a
commit
2954fa621f
BIN
lib/bukkit.jar
BIN
lib/bukkit.jar
Binary file not shown.
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user