Skip to content

Commit 5579d19

Browse files
committed
Remove stack size bypassing perm.
Entire command should eventually be removed.
1 parent 3b9ab47 commit 5579d19

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,9 @@ public Path getConfigDir() {
172172
}
173173

174174
@Override
175+
@Deprecated(forRemoval = true)
175176
public void stackPlayerInventory(LocalPlayer localPlayer) {
176-
boolean ignoreMax = localPlayer.hasPermission("worldguard.stack.illegitimate");
177+
boolean ignoreMax = false; // localPlayer.hasPermission("worldguard.stack.illegitimate");
177178

178179
Player player = ((BukkitPlayer) localPlayer).getPlayer();
179180

@@ -191,7 +192,7 @@ public void stackPlayerInventory(LocalPlayer localPlayer) {
191192
continue;
192193
}
193194

194-
int max = ignoreMax ? 64 : item.getMaxStackSize();
195+
int max = /*ignoreMax ? 64 :*/ item.getMaxStackSize();
195196

196197
if (item.getAmount() < max) {
197198
int needed = max - item.getAmount(); // Number of needed items until max

0 commit comments

Comments
 (0)