mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 08:36:45 +01:00
Tweak UP warning
This commit is contained in:
parent
fe713c9931
commit
db55635f0d
@ -148,9 +148,6 @@ public class mcMMO extends JavaPlugin {
|
|||||||
public static FixedMetadataValue metadataValue;
|
public static FixedMetadataValue metadataValue;
|
||||||
|
|
||||||
public static final String ULTRA_PERMISSONS = "UltraPermissons";
|
public static final String ULTRA_PERMISSONS = "UltraPermissons";
|
||||||
public static final String UP_WARNING_2 = "Stop using " + ULTRA_PERMISSONS + " with mcMMO immediately!";
|
|
||||||
public static final String UP_WARNING_1 = "mcMMO has detected " + ULTRA_PERMISSONS + " on your server, users have reported a severe plugin conflict between these two plugins which severely degrades server performance";
|
|
||||||
public static final String UP_WARNING_3 = "The author of UltraPermissions has passed away and its unlikely this issue will ever be solved";
|
|
||||||
|
|
||||||
public mcMMO() {
|
public mcMMO() {
|
||||||
p = this;
|
p = this;
|
||||||
@ -271,15 +268,7 @@ public class mcMMO extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(pluginManager.getPlugin(ULTRA_PERMISSONS) != null) {
|
if(pluginManager.getPlugin(ULTRA_PERMISSONS) != null) {
|
||||||
Bukkit.getScheduler().runTaskTimer(this, () -> {
|
getLogger().info("mcMMO has detected UltraPermissions is running, make sure to keep both mcMMO and UltraPermissions updated as older versions of UltraPermissions had performance degradation issues when used in conjunction with mcMMO");
|
||||||
getLogger().severe(UP_WARNING_1);
|
|
||||||
getLogger().severe(UP_WARNING_2);
|
|
||||||
getLogger().severe(UP_WARNING_3);
|
|
||||||
|
|
||||||
Bukkit.broadcastMessage(UP_WARNING_1);
|
|
||||||
Bukkit.broadcastMessage(UP_WARNING_2);
|
|
||||||
Bukkit.broadcastMessage(UP_WARNING_3);
|
|
||||||
}, 0L, 1200L);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user