mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-09-12 14:28:28 +02:00
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
|
// reference command will be used to prevent "unknown command" console messages
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@SuppressWarnings("unchecked")
|
Map<String, Map<String, Object>> refCmd = p.getDescription().getCommands();
|
||||||
Map<String, Object> refCmd = (Map<String, Object>) p.getDescription().getCommands();
|
|
||||||
if (refCmd != null && !refCmd.isEmpty())
|
if (refCmd != null && !refCmd.isEmpty())
|
||||||
refCommand = (String)(refCmd.keySet().toArray()[0]);
|
refCommand = (String)(refCmd.keySet().toArray()[0]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user