mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Turn off unused NMS compatibility layers
This commit is contained in:
parent
7258b0995d
commit
7eef87b2e0
@ -3,6 +3,7 @@ Version 2.1.133
|
|||||||
French locale has been updated (thanks Elikill58)
|
French locale has been updated (thanks Elikill58)
|
||||||
Another fix has been deployed to prevent mobs from having hearts in player death messages (thanks FrankHeijden)
|
Another fix has been deployed to prevent mobs from having hearts in player death messages (thanks FrankHeijden)
|
||||||
Players no longer ready their tool if they don't have access to the skill (thanks Draycia)
|
Players no longer ready their tool if they don't have access to the skill (thanks Draycia)
|
||||||
|
Unused NMS compatibility layers have been disabled for now (expect them to be used in the future for 1.12/1.8 support stuff)
|
||||||
|
|
||||||
Version 2.1.132
|
Version 2.1.132
|
||||||
A fix is in place to prevent an exploit from working that is due to a yet to be patched Spigot server software bug
|
A fix is in place to prevent an exploit from working that is due to a yet to be patched Spigot server software bug
|
||||||
|
@ -51,20 +51,22 @@ public class CompatibilityManager {
|
|||||||
* For any unsupported layers, load a dummy layer
|
* For any unsupported layers, load a dummy layer
|
||||||
*/
|
*/
|
||||||
private void initCompatibilityLayers() {
|
private void initCompatibilityLayers() {
|
||||||
if(nmsVersion == NMSVersion.UNSUPPORTED) {
|
isFullyCompatibleServerSoftware = true;
|
||||||
mcMMO.p.getLogger().info("NMS not supported for this version of Minecraft, possible solutions include updating mcMMO or updating your server software. NMS Support is not available on every version of Minecraft.");
|
|
||||||
mcMMO.p.getLogger().info("Certain features of mcMMO that require NMS will be disabled, you can check what is disabled by running the /mmocompat command!");
|
|
||||||
//Load dummy compatibility layers
|
|
||||||
isFullyCompatibleServerSoftware = false;
|
|
||||||
loadDummyCompatibilityLayers();
|
|
||||||
} else {
|
|
||||||
playerAttackCooldownExploitPreventionLayer = new PlayerAttackCooldownExploitPreventionLayer(nmsVersion);
|
|
||||||
|
|
||||||
//Mark as operational
|
// if(nmsVersion == NMSVersion.UNSUPPORTED) {
|
||||||
if(playerAttackCooldownExploitPreventionLayer.noErrorsOnInitialize()) {
|
// mcMMO.p.getLogger().info("NMS not supported for this version of Minecraft, possible solutions include updating mcMMO or updating your server software. NMS Support is not available on every version of Minecraft.");
|
||||||
supportedLayers.put(CompatibilityType.PLAYER_ATTACK_COOLDOWN_EXPLOIT_PREVENTION, true);
|
// mcMMO.p.getLogger().info("Certain features of mcMMO that require NMS will be disabled, you can check what is disabled by running the /mmocompat command!");
|
||||||
}
|
// //Load dummy compatibility layers
|
||||||
}
|
// isFullyCompatibleServerSoftware = false;
|
||||||
|
// loadDummyCompatibilityLayers();
|
||||||
|
// } else {
|
||||||
|
// playerAttackCooldownExploitPreventionLayer = new PlayerAttackCooldownExploitPreventionLayer(nmsVersion);
|
||||||
|
//
|
||||||
|
// //Mark as operational
|
||||||
|
// if(playerAttackCooldownExploitPreventionLayer.noErrorsOnInitialize()) {
|
||||||
|
// supportedLayers.put(CompatibilityType.PLAYER_ATTACK_COOLDOWN_EXPLOIT_PREVENTION, true);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
private void loadDummyCompatibilityLayers() {
|
private void loadDummyCompatibilityLayers() {
|
||||||
|
Loading…
Reference in New Issue
Block a user