mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-02-17 10:41:26 +01:00
Add a warning if people try to run the new ChestShop version with an older CraftBukkit version
This commit is contained in:
parent
4d5f568e1f
commit
83dbce40fd
@ -89,6 +89,12 @@ public class ChestShop extends JavaPlugin {
|
||||
description = getDescription();
|
||||
server = getServer();
|
||||
|
||||
if (server.getBukkitVersion().contains("1.7.2") || server.getBukkitVersion().contains("1.7.5")) {
|
||||
for (int i = 0; i < 5; ++i) {
|
||||
logger.log(java.util.logging.Level.SEVERE, "This version of plugin does not work with Minecraft 1.7.5 or lower!");
|
||||
}
|
||||
}
|
||||
|
||||
Configuration.pairFileAndClass(loadFile("config.yml"), Properties.class);
|
||||
Configuration.pairFileAndClass(loadFile("local.yml"), Messages.class);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user