1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-09-26 06:09:15 +02:00

Changes to /sell /give and /item

Material.getMaxStackSize() will now be used in /give and /item
The config option default-stack-size has been removed
New config option oversized-stacksize and permission essentials.oversizedstacks
Fixes bug giving out too many items on /give and /item when a stacksize > 64 is given.
Fixes bug in /sell that ignores enchantments
/sell now uses Material.getMaxStackSize() for /sell egg 2s (will sell 32 instead of 128 now)
This commit is contained in:
snowleo
2011-11-28 19:55:51 +01:00
parent 0354b8d019
commit 9acc7db06f
8 changed files with 33 additions and 18 deletions

View File

@@ -82,9 +82,9 @@ public class Settings implements ISettings
}
@Override
public int getDefaultStackSize()
public int getOversizedStackSize()
{
return config.getInt("default-stack-size", 64);
return config.getInt("oversized-stacksize", 64);
}
@Override