Inform the server operator about problems with Guava.

This commit is contained in:
Kristian S. Stangeland 2013-02-01 01:32:48 +01:00
parent b26c9c45c8
commit c7caf16a94

View File

@ -74,6 +74,9 @@ class PacketProcessingQueue extends AbstractConcurrentListenerMultimap<AsyncList
maximumSize(maximumSize).
<PacketEventHolder>create(), null);
} catch (IncompatibleClassChangeError e) {
System.out.println("[ProtocolLib] Guava is either missing or corrupt. Reverting to PriorityQueue.");
e.printStackTrace();
// It's a Beta class after all
this.processingQueue = Synchronization.queue(
new PriorityQueue<PacketEventHolder>(), null);