Bugfix for version 2.1.12
This commit is contained in:
1 parent
ecdb5bac27
commit
b6822e84f7
4 files changed
+12
-4
No files matched your search
+1
-1
@@ -66,7 +66,7 @@ tasks.compileJava.configure {
|
||||
options.release.set(8)
|
||||
}
|
||||
|
||||
version = "2.9.12-SNAPSHOT-01"
|
||||
version = "2.9.12a"
|
||||
|
||||
tasks.named<Copy>("processResources") {
|
||||
filesMatching("plugin.yml") {
|
||||
|
||||
@@ -75,9 +75,17 @@ public class BadPotionCheck {
|
||||
if (p != null && Protections.AllowBypass.isEnabled() && p.hasPermission("illegalstack.enchantbypass"))
|
||||
return false;
|
||||
|
||||
PotionMeta potion = null;
|
||||
|
||||
if(IllegalStack.isPaperServer())
|
||||
potion = (PotionMeta) tp.getPotionMeta();
|
||||
else
|
||||
potion = (PotionMeta) tp.getItem().getItemMeta();
|
||||
|
||||
PotionMeta potion = (PotionMeta) tp.getPotionMeta();
|
||||
PotionData pd = potion.getBasePotionData();
|
||||
|
||||
PotionType pt = null;
|
||||
|
||||
if (pd.getType() == PotionType.UNCRAFTABLE || (potion.hasCustomEffects() && !potion
|
||||
.getCustomEffects()
|
||||
.isEmpty())) {
|
||||
|
||||
@@ -750,7 +750,7 @@ public enum Protections {
|
||||
35,
|
||||
true,
|
||||
"Prevent Invalid Potions",
|
||||
"> 1.11",
|
||||
"1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19",
|
||||
"Exploits.Other.PreventInvalidPotions",
|
||||
"Prevents non-opped players from possessing invalid / uncraftable potions. Typically these are used for malicious purposes on creative servers such as potions of instant death",
|
||||
"",
|
||||
|
||||
@@ -297,7 +297,7 @@ public class fListener implements Listener {
|
||||
}
|
||||
}
|
||||
|
||||
if (!ver.contains("v1_14") && !ver.contains("v1_15") && !ver.contains("v1_16") && !ver.contains("v1_17") && !ver.contains("v1_18") && !ver.contains("V1_19") && !ver.contains("v1_20")) {
|
||||
if (!ver.contains("v1_14") && !ver.contains("v1_15") && !ver.contains("v1_16") && !ver.contains("v1_17") && !ver.contains("v1_18") && !ver.contains("V1_19") && !ver.contains("v1_20") && !ver.contains("V1_21")) {
|
||||
if (ver.contains("v1_13")) {
|
||||
LOGGER.info("MC Version 1.13+ detected!");
|
||||
|
||||
|
||||
Reference in new issue
Block a user