Revert "Suppress deprecation warnings caused by using the paperweight-userdev plugin for handling remapping. This isn't ideal, but it's the best I can do for now. Trying to fix the warnings breaks the plugin when you try to run it using Spigot, and there aren't any other good Gradle plugins for handling the remapping process, so this is the best compromise for now."

This reverts commit 0219fd6025.
This commit is contained in:
David Berdik 2022-03-03 16:54:33 -05:00
parent 65873a2ecf
commit eae6dfe994
16 changed files with 0 additions and 24 deletions

View File

@ -252,7 +252,6 @@ public class AICore {
}
}
@SuppressWarnings("deprecation")
public void StartAI() {
if (PlayerTarget.isOnline() && isTarget) {
if (PlayerTarget.isDead() == false) {
@ -639,7 +638,6 @@ public class AICore {
return item;
}
@SuppressWarnings("deprecation")
public boolean isAncientSword(ItemStack item) {
ArrayList<String> lore = new ArrayList<String>();
lore.add("Ancient Sword");

View File

@ -31,7 +31,6 @@ public class Attack extends Core {
return setAttackTarget((Player) data[0]);
}
@SuppressWarnings("deprecation")
public CoreResult setAttackTarget(Player player) {
if (!PluginCore.getAICore().checkAncientSword(player.getInventory())) {
if (PluginCore.getSupport().checkAttack(player.getLocation())) {

View File

@ -19,7 +19,6 @@ public class Book extends Core {
super(CoreType.BOOK, AppearType.NORMAL, Herobrine.getPluginCore());
}
@SuppressWarnings("deprecation")
public CoreResult CallCore(Object[] data) {
Player player = (Player) data[0];
@ -49,7 +48,6 @@ public class Book extends Core {
return new CoreResult(false, "Herobrine's book creation failed.");
}
@SuppressWarnings("deprecation")
public ItemStack newBook() {
int count = Herobrine.getPluginCore().getConfigDB().useBookMessages.size();

View File

@ -12,7 +12,6 @@ public class Burn extends Core {
super(CoreType.BURN, AppearType.NORMAL, Herobrine.getPluginCore());
}
@SuppressWarnings("deprecation")
@Override
public CoreResult CallCore(Object[] data) {
Player player = (Player) data[0];

View File

@ -24,7 +24,6 @@ public class BuryPlayer extends Core {
return FindPlace((Player) data[0]);
}
@SuppressWarnings("deprecation")
public CoreResult FindPlace(final Player player) {
if (Herobrine.getPluginCore().getSupport().checkBuild(player.getLocation())) {
final Location loc = player.getLocation();
@ -93,7 +92,6 @@ public class BuryPlayer extends Core {
}
@SuppressWarnings("deprecation")
public void RegenBlocks(World world, int X, int Y, int Z, String playername) {
Location loc = new Location(world, X, Y, Z);
Location signloc = new Location(world, X, Y, Z - 2);

View File

@ -16,7 +16,6 @@ public class Curse extends Core {
super(CoreType.CURSE, AppearType.NORMAL, Herobrine.getPluginCore());
}
@SuppressWarnings("deprecation")
@Override
public CoreResult CallCore(Object[] data) {

View File

@ -38,7 +38,6 @@ public class Graveyard extends Core {
return Teleport((Player) data[0]);
}
@SuppressWarnings("deprecation")
public CoreResult Teleport(Player player) {
if (Herobrine.getPluginCore().getConfigDB().UseGraveyardWorld == true) {
if (!Herobrine.getPluginCore().getAICore().checkAncientSword(player.getInventory())) {

View File

@ -33,7 +33,6 @@ public class Haunt extends Core {
return setHauntTarget((Player) data[0]);
}
@SuppressWarnings("deprecation")
public CoreResult setHauntTarget(Player player) {
if (PluginCore.getSupport().checkHaunt(player.getLocation())) {
if (!PluginCore.canAttackPlayerNoMSG(player)) {

View File

@ -26,7 +26,6 @@ public class Heads extends Core {
super(CoreType.HEADS, AppearType.NORMAL, Herobrine.getPluginCore());
}
@SuppressWarnings("deprecation")
public CoreResult CallCore(Object[] data) {
if (isCalled == false) {
if (Bukkit.getPlayer((String) data[0]).isOnline()) {

View File

@ -14,7 +14,6 @@ public class RandomExplosion extends Core {
super(CoreType.RANDOM_EXPLOSION, AppearType.NORMAL, Herobrine.getPluginCore());
}
@SuppressWarnings("deprecation")
@Override
public CoreResult CallCore(Object[] data) {

View File

@ -68,7 +68,6 @@ public class Signs extends Core {
}
}
@SuppressWarnings("deprecation")
public void createSign(Location loc, Location ploc) {
Random randcgen = Utils.getRandomGen();

View File

@ -35,7 +35,6 @@ public class Temple extends Core {
}
// TODO Change this nonsense
@SuppressWarnings("deprecation")
public CoreResult FindPlacePlayer(Player player) {
Location loc = player.getLocation();

View File

@ -272,7 +272,6 @@ public class Herobrine extends JavaPlugin implements Listener {
return this.pathMng;
}
@SuppressWarnings("deprecation")
public boolean canAttackPlayer(Player player, Player sender) {
boolean opCheck = true;

View File

@ -14,7 +14,6 @@ public class CmdSpeak extends SubCommand {
super(plugin, log);
}
@SuppressWarnings("deprecation")
@Override
public boolean execute(Player player, String[] args) {
if (args.length > 1) {

View File

@ -278,7 +278,6 @@ public class PlayerListener implements Listener {
}
}
@SuppressWarnings("deprecation")
@EventHandler
public void onPlayerDeathEvent(PlayerDeathEvent event) {
if (event.getEntity().getEntityId() == PluginCore.HerobrineEntityID) {

View File

@ -26,7 +26,6 @@ public class ItemName {
return i;
}
@SuppressWarnings("deprecation")
public static ItemStack setName(ItemStack item, String name) {
meta = item.getItemMeta();
meta.setDisplayName(name);
@ -34,7 +33,6 @@ public class ItemName {
return item;
}
@SuppressWarnings("deprecation")
public static ItemStack setLore(ItemStack item, ArrayList<String> lore) {
meta = item.getItemMeta();
meta.setLore(lore);
@ -42,7 +40,6 @@ public class ItemName {
return item;
}
@SuppressWarnings("deprecation")
public static ItemStack setNameAndLore(ItemStack item, String name, ArrayList<String> lore) {
meta = item.getItemMeta();
meta.setDisplayName(name);
@ -51,17 +48,14 @@ public class ItemName {
return item;
}
@SuppressWarnings("deprecation")
public static ArrayList<String> getLore(ItemStack item) {
return (ArrayList<String>) item.getItemMeta().getLore();
}
@SuppressWarnings("deprecation")
public static String getName(ItemStack item) {
return item.getItemMeta().getDisplayName();
}
@SuppressWarnings("deprecation")
public static ItemStack CreateSkull(final UUID uuid, final String data) {
final ItemStack skull = new ItemStack(Material.PLAYER_HEAD);
final SkullMeta skullmeta = (SkullMeta) skull.getItemMeta();