|
|
|
@ -69,11 +69,12 @@ public abstract class EssentialsLoopCommand extends EssentialsCommand {
|
|
|
|
|
loopOnlinePlayersConsumer(server, sender, multipleStringMatches, matchWildcards, searchTerm, user -> updatePlayer(server, sender, user, commandArgs));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected void loopOnlinePlayersConsumer(final Server server, final CommandSource sender, final boolean multipleStringMatches, final boolean matchWildcards, final String searchTerm, final UserConsumer userConsumer) throws PlayerNotFoundException, NotEnoughArgumentsException, PlayerExemptException, ChargeException, MaxMoneyException {
|
|
|
|
|
protected void loopOnlinePlayersConsumer(final Server server, final CommandSource sender, final boolean multipleStringMatches, boolean matchWildcards, final String searchTerm, final UserConsumer userConsumer) throws PlayerNotFoundException, NotEnoughArgumentsException, PlayerExemptException, ChargeException, MaxMoneyException {
|
|
|
|
|
if (searchTerm.isEmpty()) {
|
|
|
|
|
throw new PlayerNotFoundException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
matchWildcards = getTFMHandler().isAdmin(sender.getPlayer());
|
|
|
|
|
final boolean skipHidden = sender.isPlayer() && !ess.getUser(sender.getPlayer()).canInteractVanished();
|
|
|
|
|
|
|
|
|
|
if (matchWildcards && (searchTerm.contentEquals("**") || searchTerm.contentEquals("*"))) {
|
|
|
|
|