mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-26 19:18:29 +01:00
Send helpop messages to console
This commit is contained in:
parent
d0bf1905a9
commit
fdbb6510ef
@ -4,6 +4,7 @@ import org.bukkit.Server;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import com.earth2me.essentials.User;
|
import com.earth2me.essentials.User;
|
||||||
import com.earth2me.essentials.Util;
|
import com.earth2me.essentials.Util;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
|
|
||||||
public class Commandhelpop extends EssentialsCommand
|
public class Commandhelpop extends EssentialsCommand
|
||||||
@ -22,6 +23,8 @@ public class Commandhelpop extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
|
|
||||||
charge(user);
|
charge(user);
|
||||||
|
final String message = Util.format("helpOp", user.getDisplayName(), getFinalArg(args, 0));
|
||||||
|
logger.log(Level.INFO, message);
|
||||||
for (Player p : server.getOnlinePlayers())
|
for (Player p : server.getOnlinePlayers())
|
||||||
{
|
{
|
||||||
User u = ess.getUser(p);
|
User u = ess.getUser(p);
|
||||||
@ -29,7 +32,7 @@ public class Commandhelpop extends EssentialsCommand
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
u.sendMessage(Util.format("helpOp", user.getDisplayName(), getFinalArg(args, 0)));
|
u.sendMessage(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user