mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-18 16:35:25 +01:00
Add UltraPermission warning to mcMMO
This commit is contained in:
parent
13a2d03444
commit
4f08c69557
@ -4,7 +4,8 @@ Version 2.1.182
|
||||
Fixed several errors in de locale (Thanks TheBusyBiscuit & w1tcherrr)
|
||||
Fixed a bug where double smelt never succeeded if the furnace was empty
|
||||
Added some safety so that mcMMO automatic save interval is never more frequent than 1 minute
|
||||
Removed a few "silent" exceptions for scoreboards & mcMMO
|
||||
Removed a few silent exceptions for scoreboards & mcMMO
|
||||
Added warning about UltraPermissions to mcMMO
|
||||
|
||||
Version 2.1.181
|
||||
mcMMO no longer pointlessly tries to check for missing UUIDs for FlatFile database
|
||||
|
@ -74,6 +74,10 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class mcMMO extends JavaPlugin {
|
||||
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";
|
||||
/* Managers */
|
||||
private static PlatformManager platformManager;
|
||||
private static ChunkManager placeStore;
|
||||
@ -273,7 +277,17 @@ public class mcMMO extends JavaPlugin {
|
||||
// getLogger().severe("mcMMO has detected ChatControlRed on your server, users have reported a severe plugin conflict between these two plugins which degrades server performance and wastes many server resources.");
|
||||
// getLogger().severe("It is HIGHLY RECOMMENDED that you do --NOT-- use ChatControlRed until this issue is resolved!");
|
||||
// }
|
||||
if(pluginManager.getPlugin(ULTRA_PERMISSONS) != null) {
|
||||
Bukkit.getScheduler().runTaskTimer(this, () -> {
|
||||
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);
|
||||
}
|
||||
}
|
||||
catch (Throwable t) {
|
||||
getLogger().severe("There was an error while enabling mcMMO!");
|
||||
|
Loading…
x
Reference in New Issue
Block a user