summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorementalo <ementalodev@gmx.co.uk>2012-10-28 20:09:25 +0000
committerementalo <ementalodev@gmx.co.uk>2012-10-28 20:09:25 +0000
commit8d64c7c81b51a3b82bf02b44e38144775bc055b3 (patch)
treead0d69be775e00e5d98f6c801fb81f41280524d4
parentf0e29552bc46ff6bbde1d87bb1e26caf603ee36f (diff)
downloadEssentials-8d64c7c81b51a3b82bf02b44e38144775bc055b3.tar
Essentials-8d64c7c81b51a3b82bf02b44e38144775bc055b3.tar.gz
Essentials-8d64c7c81b51a3b82bf02b44e38144775bc055b3.tar.lz
Essentials-8d64c7c81b51a3b82bf02b44e38144775bc055b3.tar.xz
Essentials-8d64c7c81b51a3b82bf02b44e38144775bc055b3.zip
Fix mailstable-2.9.5
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandmail.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandmail.java b/Essentials/src/com/earth2me/essentials/commands/Commandmail.java
index 66d8ced17..049673036 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandmail.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandmail.java
@@ -6,7 +6,6 @@ import com.earth2me.essentials.Util;
import java.util.List;
import org.bukkit.Server;
import org.bukkit.command.CommandSender;
-import org.bukkit.entity.Player;
public class Commandmail extends EssentialsCommand
@@ -45,7 +44,7 @@ public class Commandmail extends EssentialsCommand
throw new Exception(_("noPerm", "essentials.mail.send"));
}
- User u = ess.getUser(args[0]);
+ User u = ess.getUser(args[1]);
if (u == null)
{
throw new Exception(_("playerNeverOnServer", args[1]));
@@ -104,7 +103,7 @@ public class Commandmail extends EssentialsCommand
}
else if (args.length >= 3 && "send".equalsIgnoreCase(args[0]))
{
- User u = ess.getUser(args[0]);
+ User u = ess.getUser(args[1]);
if (u == null)
{
throw new Exception(_("playerNeverOnServer", args[1]));