mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-23 01:27:40 +01:00
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:
parent
5579d197ab
commit
764d258ed0
@ -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");
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -145,6 +145,7 @@ public interface WorldGuardPlatform {
|
||||
*
|
||||
* @param localPlayer The player
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
void stackPlayerInventory(LocalPlayer localPlayer);
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user