mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2025-04-07 04:36:50 +02:00
Make ProtocolLib load on startup. No need to wait for the world to load
This commit is contained in:
parent
83f5a7e5b7
commit
7845a844d4
@ -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);
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user