mirror of
https://github.com/aikar/commands.git
synced 2026-05-31 06:11:55 +00:00
Replace Guava Iterables (#158)
Goes under #120 After this, only MultiMaps remain.
This commit is contained in:
committed by
Daniel Ennis
parent
8fda944311
commit
65ff5a5500
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user