Skip to content

Commit 764d258

Browse files
committed
Fix deprecations on stack methods.
Also this was supposed to be on a branch but I just realized I forgot.
1 parent 5579d19 commit 764d258

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/BukkitWorldGuardPlatform.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ public Path getConfigDir() {
171171
return WorldGuardPlugin.inst().getDataFolder().toPath();
172172
}
173173

174+
@SuppressWarnings("removal")
174175
@Override
175-
@Deprecated(forRemoval = true)
176176
public void stackPlayerInventory(LocalPlayer localPlayer) {
177177
boolean ignoreMax = false; // localPlayer.hasPermission("worldguard.stack.illegitimate");
178178

worldguard-core/src/main/java/com/sk89q/worldguard/commands/GeneralCommands.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ public void locate(CommandContext args, Actor sender) throws CommandException {
229229
}
230230
}
231231

232+
@SuppressWarnings("removal")
232233
@Command(aliases = {"stack", ";"}, usage = "", desc = "Stack items", max = 0)
233234
@CommandPermissions({"worldguard.stack"})
234235
public void stack(CommandContext args, Actor sender) throws CommandException {

worldguard-core/src/main/java/com/sk89q/worldguard/internal/platform/WorldGuardPlatform.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ public interface WorldGuardPlatform {
145145
*
146146
* @param localPlayer The player
147147
*/
148+
@Deprecated(forRemoval = true)
148149
void stackPlayerInventory(LocalPlayer localPlayer);
149150

150151
/**

0 commit comments

Comments
 (0)