From 7845a844d475e5be2be1f589710b250bb3df1245 Mon Sep 17 00:00:00 2001 From: "Kristian S. Stangeland" Date: Sun, 9 Dec 2012 15:35:01 +0100 Subject: [PATCH] Make ProtocolLib load on startup. No need to wait for the world to load --- .../src/main/java/com/comphenix/protocol/ProtocolLibrary.java | 4 ++-- ProtocolLib/src/main/resources/plugin.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/ProtocolLibrary.java b/ProtocolLib/src/main/java/com/comphenix/protocol/ProtocolLibrary.java index e9c887c4..2d753368 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/ProtocolLibrary.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/ProtocolLibrary.java @@ -240,9 +240,9 @@ public class ProtocolLibrary extends JavaPlugin { if (!config.getIgnoreVersionCheck().equals(current.toString())) { // We'll just warn the user for now if (current.compareTo(minimum) < 0) - reporter.reportWarning(this, "Version " + current + " is lower than the minimum " + minimum); + logger.warning("Version " + current + " is lower than the minimum " + minimum); if (current.compareTo(maximum) > 0) - reporter.reportWarning(this, "Version " + current + " has not yet been tested! Proceed with caution."); + logger.warning("Version " + current + " has not yet been tested! Proceed with caution."); } } catch (Exception e) { reporter.reportWarning(this, "Unable to retrieve current Minecraft version.", e); diff --git a/ProtocolLib/src/main/resources/plugin.yml b/ProtocolLib/src/main/resources/plugin.yml index f56352fe..84bff7e3 100644 --- a/ProtocolLib/src/main/resources/plugin.yml +++ b/ProtocolLib/src/main/resources/plugin.yml @@ -3,7 +3,7 @@ version: 1.8.0-SNAPSHOT description: Provides read/write access to the Minecraft protocol. author: Comphenix website: http://www.comphenix.net/ProtocolLib - +load: startup main: com.comphenix.protocol.ProtocolLibrary database: false