Replace Guava Iterables (#158)

Goes under #120

After this, only MultiMaps remain.
This commit is contained in:
Mark Vainomaa
2018-08-03 16:57:38 +03:00
committed by Daniel Ennis
parent 8fda944311
commit 65ff5a5500
4 changed files with 16 additions and 8 deletions
@@ -1,6 +1,5 @@
package co.aikar.commands;
import com.google.common.collect.Iterables;
import org.spongepowered.api.Sponge;
import org.spongepowered.api.command.CommandSource;
import org.spongepowered.api.entity.living.player.Player;
@@ -45,7 +44,7 @@ public class ACFSpongeUtil {
"{search}", name);
return null;
} else {
Player player = Iterables.getOnlyElement(confirmList);
Player player = ACFUtil.getFirstElement(confirmList);
issuer.sendInfo(MinecraftMessageKeys.PLAYER_IS_VANISHED_CONFIRM, "{vanished}", player.getName());
return null;
}