Fix deprecations on stack methods.

Also this was supposed to be on a branch but I just realized I forgot.
This commit is contained in:
wizjany 2024-10-28 08:49:59 -04:00
parent 5579d197ab
commit 764d258ed0
No known key found for this signature in database
GPG Key ID: 1DB5861C03B76B5E
3 changed files with 3 additions and 1 deletions

View File

@ -171,8 +171,8 @@ public Path getConfigDir() {
return WorldGuardPlugin.inst().getDataFolder().toPath();
}
@SuppressWarnings("removal")
@Override
@Deprecated(forRemoval = true)
public void stackPlayerInventory(LocalPlayer localPlayer) {
boolean ignoreMax = false; // localPlayer.hasPermission("worldguard.stack.illegitimate");

View File

@ -229,6 +229,7 @@ public void locate(CommandContext args, Actor sender) throws CommandException {
}
}
@SuppressWarnings("removal")
@Command(aliases = {"stack", ";"}, usage = "", desc = "Stack items", max = 0)
@CommandPermissions({"worldguard.stack"})
public void stack(CommandContext args, Actor sender) throws CommandException {

View File

@ -145,6 +145,7 @@ public interface WorldGuardPlatform {
*
* @param localPlayer The player
*/
@Deprecated(forRemoval = true)
void stackPlayerInventory(LocalPlayer localPlayer);
/**