mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-28 12:07:38 +01:00
Fix mail
This commit is contained in:
parent
618d115233
commit
bea3583192
@ -6,7 +6,6 @@ import com.earth2me.essentials.Util;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.bukkit.Server;
|
import org.bukkit.Server;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
|
||||||
|
|
||||||
|
|
||||||
public class Commandmail extends EssentialsCommand
|
public class Commandmail extends EssentialsCommand
|
||||||
@ -45,7 +44,7 @@ public class Commandmail extends EssentialsCommand
|
|||||||
throw new Exception(_("noPerm", "essentials.mail.send"));
|
throw new Exception(_("noPerm", "essentials.mail.send"));
|
||||||
}
|
}
|
||||||
|
|
||||||
User u = ess.getUser(args[0]);
|
User u = ess.getUser(args[1]);
|
||||||
if (u == null)
|
if (u == null)
|
||||||
{
|
{
|
||||||
throw new Exception(_("playerNeverOnServer", args[1]));
|
throw new Exception(_("playerNeverOnServer", args[1]));
|
||||||
@ -104,7 +103,7 @@ public class Commandmail extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
else if (args.length >= 3 && "send".equalsIgnoreCase(args[0]))
|
else if (args.length >= 3 && "send".equalsIgnoreCase(args[0]))
|
||||||
{
|
{
|
||||||
User u = ess.getUser(args[0]);
|
User u = ess.getUser(args[1]);
|
||||||
if (u == null)
|
if (u == null)
|
||||||
{
|
{
|
||||||
throw new Exception(_("playerNeverOnServer", args[1]));
|
throw new Exception(_("playerNeverOnServer", args[1]));
|
||||||
|
Loading…
Reference in New Issue
Block a user