1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-17 20:11:21 +02:00

/eco offline players

This commit is contained in:
ementalo
2011-07-08 10:37:40 +01:00
parent 10b7f19f05
commit 799cb318f8

View File

@@ -2,7 +2,6 @@ package com.earth2me.essentials.commands;
import org.bukkit.Server; import org.bukkit.Server;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import com.earth2me.essentials.Essentials;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import com.earth2me.essentials.User; import com.earth2me.essentials.User;
@@ -56,9 +55,11 @@ public class Commandeco extends EssentialsCommand
} }
else else
{ {
for (Player p : server.matchPlayer(args[1])) User u = ess.getUser(args[1]);
if (u == null)
{ {
User u = ess.getUser(p); u = ess.getOfflineUser(args[0]);
}
switch (cmd) switch (cmd)
{ {
case GIVE: case GIVE:
@@ -75,8 +76,6 @@ public class Commandeco extends EssentialsCommand
} }
} }
} }
}
private enum EcoCommands private enum EcoCommands
{ {