Referencing for-removal arg parsers at all will now log an error
This commit is contained in:
@@ -27,4 +27,8 @@ public class ColorArgParser implements LookupArgParser {
|
||||
@NotNull final ItemMeta meta) {
|
||||
return null;
|
||||
}
|
||||
|
||||
static {
|
||||
Bukkit.getLogger().severe("Referencing a class marked for removal! (" + ColorArgParser.class.getName() + "), this will throw an error in a future release!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,4 +27,8 @@ public class CustomModelDataArgParser implements LookupArgParser {
|
||||
@NotNull final ItemMeta meta) {
|
||||
return null;
|
||||
}
|
||||
|
||||
static {
|
||||
Bukkit.getLogger().severe("Referencing a class marked for removal! (" + CustomModelDataArgParser.class.getName() + "), this will throw an error in a future release!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,4 +27,8 @@ public class EnchantmentArgParser implements LookupArgParser {
|
||||
@NotNull final ItemMeta meta) {
|
||||
return null;
|
||||
}
|
||||
|
||||
static {
|
||||
Bukkit.getLogger().severe("Referencing a class marked for removal! (" + EnchantmentArgParser.class.getName() + "), this will throw an error in a future release!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,4 +27,8 @@ public class TextureArgParser implements LookupArgParser {
|
||||
@NotNull final ItemMeta meta) {
|
||||
return null;
|
||||
}
|
||||
|
||||
static {
|
||||
Bukkit.getLogger().severe("Referencing a class marked for removal! (" + TextureArgParser.class.getName() + "), this will throw an error in a future release!");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user