summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-12-07 00:46:13 +0000
committerKHobbits <rob@khobbits.co.uk>2012-12-07 00:46:13 +0000
commitbbc306970f8326f6d7b152da0113f06f928fca09 (patch)
tree04e1136be4f9b8959233f183580e48cee6c3f7e6
parent7b997634ef8abbe1ca6e735b778d6003bcf70b32 (diff)
downloadEssentials-bbc306970f8326f6d7b152da0113f06f928fca09.tar
Essentials-bbc306970f8326f6d7b152da0113f06f928fca09.tar.gz
Essentials-bbc306970f8326f6d7b152da0113f06f928fca09.tar.lz
Essentials-bbc306970f8326f6d7b152da0113f06f928fca09.tar.xz
Essentials-bbc306970f8326f6d7b152da0113f06f928fca09.zip
Throw error when using /more on full stack
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandmore.java2
-rw-r--r--Essentials/src/messages.properties1
-rw-r--r--Essentials/src/messages_cs.properties1
-rw-r--r--Essentials/src/messages_da.properties1
-rw-r--r--Essentials/src/messages_de.properties1
-rw-r--r--Essentials/src/messages_en.properties1
-rw-r--r--Essentials/src/messages_es.properties1
-rw-r--r--Essentials/src/messages_fi.properties1
-rw-r--r--Essentials/src/messages_fr.properties1
-rw-r--r--Essentials/src/messages_it.properties1
-rw-r--r--Essentials/src/messages_nl.properties1
-rw-r--r--Essentials/src/messages_pl.properties1
-rw-r--r--Essentials/src/messages_pt.properties1
-rw-r--r--Essentials/src/messages_se.properties1
14 files changed, 14 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandmore.java b/Essentials/src/com/earth2me/essentials/commands/Commandmore.java
index 3fce3110c..e50e21e45 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandmore.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandmore.java
@@ -25,7 +25,7 @@ public class Commandmore extends EssentialsCommand
if (stack.getAmount() >= ((user.isAuthorized("essentials.oversizedstacks"))
? ess.getSettings().getOversizedStackSize() : stack.getMaxStackSize()))
{
- throw new NoChargeException();
+ throw new Exception(_("fullStack"));
}
final String itemname = stack.getType().toString().toLowerCase(Locale.ENGLISH).replace("_", "");
if (ess.getSettings().permissionBasedItemSpawn()
diff --git a/Essentials/src/messages.properties b/Essentials/src/messages.properties
index cb645e6b1..044f69581 100644
--- a/Essentials/src/messages.properties
+++ b/Essentials/src/messages.properties
@@ -465,3 +465,4 @@ userUnknown=\u00a74Warning: The user '\u00a7c{0}\u00a74' has never joined this s
teleportationEnabledFor=\u00a76Teleportation enabled for {0}
teleportationDisabledFor=\u00a76Teleportation disabled for {0}
kitOnce=\u00a74You can't use that kit again.
+fullStack=\u00a74You already have a full stack
diff --git a/Essentials/src/messages_cs.properties b/Essentials/src/messages_cs.properties
index c2b9bf277..5cc095f15 100644
--- a/Essentials/src/messages_cs.properties
+++ b/Essentials/src/messages_cs.properties
@@ -468,3 +468,4 @@ userUnknown=\u00a74Warning: The user '\u00a7c{0}\u00a74' has never joined this s
teleportationEnabledFor=\u00a76Teleportation enabled for {0}
teleportationDisabledFor=\u00a76Teleportation disabled for {0}
kitOnce=\u00a74You can't use that kit again.
+fullStack=\u00a74You already have a full stack
diff --git a/Essentials/src/messages_da.properties b/Essentials/src/messages_da.properties
index 2eac0635e..6beff781a 100644
--- a/Essentials/src/messages_da.properties
+++ b/Essentials/src/messages_da.properties
@@ -465,3 +465,4 @@ userUnknown=\u00a74Warning: The user '\u00a7c{0}\u00a74' has never joined this s
teleportationEnabledFor=\u00a76Teleportation enabled for {0}
teleportationDisabledFor=\u00a76Teleportation disabled for {0}
kitOnce=\u00a74You can't use that kit again.
+fullStack=\u00a74You already have a full stack
diff --git a/Essentials/src/messages_de.properties b/Essentials/src/messages_de.properties
index faf77fe04..4db624c6a 100644
--- a/Essentials/src/messages_de.properties
+++ b/Essentials/src/messages_de.properties
@@ -465,3 +465,4 @@ userUnknown=\u00a74Warning: The user '\u00a7c{0}\u00a74' has never joined this s
teleportationEnabledFor=\u00a76Teleportation enabled for {0}
teleportationDisabledFor=\u00a76Teleportation disabled for {0}
kitOnce=\u00a74You can't use that kit again.
+fullStack=\u00a74You already have a full stack
diff --git a/Essentials/src/messages_en.properties b/Essentials/src/messages_en.properties
index cb645e6b1..044f69581 100644
--- a/Essentials/src/messages_en.properties
+++ b/Essentials/src/messages_en.properties
@@ -465,3 +465,4 @@ userUnknown=\u00a74Warning: The user '\u00a7c{0}\u00a74' has never joined this s
teleportationEnabledFor=\u00a76Teleportation enabled for {0}
teleportationDisabledFor=\u00a76Teleportation disabled for {0}
kitOnce=\u00a74You can't use that kit again.
+fullStack=\u00a74You already have a full stack
diff --git a/Essentials/src/messages_es.properties b/Essentials/src/messages_es.properties
index 8b8fd2e53..8d0ad7892 100644
--- a/Essentials/src/messages_es.properties
+++ b/Essentials/src/messages_es.properties
@@ -465,3 +465,4 @@ userUnknown=\u00a74Peligro: El jugador '\u00a7c{0}\u00a74' Nunca a ingresado a e
teleportationEnabledFor=\u00a76Teleportation enabled for {0}
teleportationDisabledFor=\u00a76Teleportation disabled for {0}
kitOnce=\u00a74You can't use that kit again.
+fullStack=\u00a74You already have a full stack
diff --git a/Essentials/src/messages_fi.properties b/Essentials/src/messages_fi.properties
index 5569be590..fef0aeb78 100644
--- a/Essentials/src/messages_fi.properties
+++ b/Essentials/src/messages_fi.properties
@@ -465,3 +465,4 @@ userUnknown=\u00a74Warning: The user '\u00a7c{0}\u00a74' has never joined this s
teleportationEnabledFor=\u00a76Teleportation enabled for {0}
teleportationDisabledFor=\u00a76Teleportation disabled for {0}
kitOnce=\u00a74You can't use that kit again.
+fullStack=\u00a74You already have a full stack
diff --git a/Essentials/src/messages_fr.properties b/Essentials/src/messages_fr.properties
index 066b9f98c..e5cfd4975 100644
--- a/Essentials/src/messages_fr.properties
+++ b/Essentials/src/messages_fr.properties
@@ -465,3 +465,4 @@ userUnknown=\u00a74Attention : Le joueur '\u00a7c{0}\u00a74' n'est jamais venu s
teleportationEnabledFor=\u00a76Teleportation enabled for {0}
teleportationDisabledFor=\u00a76Teleportation disabled for {0}
kitOnce=\u00a74You can't use that kit again.
+fullStack=\u00a74You already have a full stack
diff --git a/Essentials/src/messages_it.properties b/Essentials/src/messages_it.properties
index 847ac38b9..f24899599 100644
--- a/Essentials/src/messages_it.properties
+++ b/Essentials/src/messages_it.properties
@@ -465,3 +465,4 @@ userUnknown=\u00a74Warning: The user '\u00a7c{0}\u00a74' has never joined this s
teleportationEnabledFor=\u00a76Teleportation enabled for {0}
teleportationDisabledFor=\u00a76Teleportation disabled for {0}
kitOnce=\u00a74You can't use that kit again.
+fullStack=\u00a74You already have a full stack
diff --git a/Essentials/src/messages_nl.properties b/Essentials/src/messages_nl.properties
index 2532089d7..0c4fd2cd0 100644
--- a/Essentials/src/messages_nl.properties
+++ b/Essentials/src/messages_nl.properties
@@ -465,3 +465,4 @@ userUnknown=\u00a74Warning: The user '\u00a7c{0}\u00a74' has never joined this s
teleportationEnabledFor=\u00a76Teleportation enabled for {0}
teleportationDisabledFor=\u00a76Teleportation disabled for {0}
kitOnce=\u00a74You can't use that kit again.
+fullStack=\u00a74You already have a full stack
diff --git a/Essentials/src/messages_pl.properties b/Essentials/src/messages_pl.properties
index 75cde8eac..804784f19 100644
--- a/Essentials/src/messages_pl.properties
+++ b/Essentials/src/messages_pl.properties
@@ -465,3 +465,4 @@ userUnknown=\u00a74Warning: The user '\u00a7c{0}\u00a74' has never joined this s
teleportationEnabledFor=\u00a76Teleportation enabled for {0}
teleportationDisabledFor=\u00a76Teleportation disabled for {0}
kitOnce=\u00a74You can't use that kit again.
+fullStack=\u00a74You already have a full stack
diff --git a/Essentials/src/messages_pt.properties b/Essentials/src/messages_pt.properties
index e859b8fcf..4c039bc1c 100644
--- a/Essentials/src/messages_pt.properties
+++ b/Essentials/src/messages_pt.properties
@@ -465,3 +465,4 @@ userUnknown=\u00a74Warning: The user '\u00a7c{0}\u00a74' has never joined this s
teleportationEnabledFor=\u00a76Teleportation enabled for {0}
teleportationDisabledFor=\u00a76Teleportation disabled for {0}
kitOnce=\u00a74You can't use that kit again.
+fullStack=\u00a74You already have a full stack
diff --git a/Essentials/src/messages_se.properties b/Essentials/src/messages_se.properties
index 73532afbd..b6017786b 100644
--- a/Essentials/src/messages_se.properties
+++ b/Essentials/src/messages_se.properties
@@ -465,3 +465,4 @@ userUnknown=\u00a74Warning: The user '\u00a7c{0}\u00a74' has never joined this s
teleportationEnabledFor=\u00a76Teleportation enabled for {0}
teleportationDisabledFor=\u00a76Teleportation disabled for {0}
kitOnce=\u00a74You can't use that kit again.
+fullStack=\u00a74You already have a full stack