Skip to content

Commit

Permalink
Remove deprecation warnings supression
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAHuman-xD committed Sep 6, 2023
1 parent 9b86c76 commit ae0fb01
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public void onExecute(CommandSender sender, String[] args) {
return;
}

@SuppressWarnings("deprecation")
OfflinePlayer backpackOwner = Bukkit.getOfflinePlayer(args[1]);
if (!(backpackOwner instanceof Player) && !backpackOwner.hasPlayedBefore()) {
Slimefun.getLocalization().sendMessage(sender, "commands.backpack.player-never-joined");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public void onExecute(CommandSender sender, String[] args) {
return;
}

@SuppressWarnings("deprecation")
OfflinePlayer targetPlayer = Bukkit.getOfflinePlayer(args[1]);
if (targetPlayer.getName() == null) {
Slimefun.getLocalization().sendMessage(sender, "messages.unknown-player", msg -> msg.replace("%player%", args[1]));
Expand Down

0 comments on commit ae0fb01

Please sign in to comment.