Make ProtocolLib load on startup. No need to wait for the world to load
Dieser Commit ist enthalten in:
Ursprung
83f5a7e5b7
Commit
7845a844d4
@ -240,9 +240,9 @@ public class ProtocolLibrary extends JavaPlugin {
|
|||||||
if (!config.getIgnoreVersionCheck().equals(current.toString())) {
|
if (!config.getIgnoreVersionCheck().equals(current.toString())) {
|
||||||
// We'll just warn the user for now
|
// We'll just warn the user for now
|
||||||
if (current.compareTo(minimum) < 0)
|
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)
|
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) {
|
} catch (Exception e) {
|
||||||
reporter.reportWarning(this, "Unable to retrieve current Minecraft version.", 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.
|
description: Provides read/write access to the Minecraft protocol.
|
||||||
author: Comphenix
|
author: Comphenix
|
||||||
website: http://www.comphenix.net/ProtocolLib
|
website: http://www.comphenix.net/ProtocolLib
|
||||||
|
load: startup
|
||||||
main: com.comphenix.protocol.ProtocolLibrary
|
main: com.comphenix.protocol.ProtocolLibrary
|
||||||
database: false
|
database: false
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren