Packages has been moved in Spigot 1.8, don't rely on them.

This commit is contained in:
filoghost 2014-11-30 17:00:00 +01:00
parent 22c51f04b3
commit 2f1a8bde28
2 changed files with 8 additions and 5 deletions

View File

@ -1,6 +1,6 @@
name: HolographicDisplays
main: com.gmail.filoghost.holograms.HolographicDisplays
version: 1.8.10
version: 1.8.11
softdepend: [Multiverse-Core, MultiWorld, My Worlds, My_Worlds, ProtocolLib]

View File

@ -2,10 +2,9 @@ package com.gmail.filoghost.holograms.api;
import static com.gmail.filoghost.holograms.HolographicDisplays.nmsManager;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.util.com.google.common.collect.Lists;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.entity.Entity;
@ -81,7 +80,9 @@ public class HolographicDisplaysAPI {
* @return the new hologram created.
*/
public static Hologram createIndividualHologram(Plugin plugin, Location source, Player whoCanSee, String... lines) {
return createIndividualHologram(plugin, source, Lists.newArrayList(whoCanSee), lines);
List<Player> whoCanSeeList = new ArrayList<Player>();
whoCanSeeList.add(whoCanSee);
return createIndividualHologram(plugin, source, whoCanSeeList, lines);
}
/**
@ -132,7 +133,9 @@ public class HolographicDisplaysAPI {
* @return the new hologram created.
*/
public static FloatingItem createIndividualFloatingItem(Plugin plugin, Location source, Player whoCanSee, ItemStack itemstack) {
return createIndividualFloatingItem(plugin, source, Lists.newArrayList(whoCanSee), itemstack);
List<Player> whoCanSeeList = new ArrayList<Player>();
whoCanSeeList.add(whoCanSee);
return createIndividualFloatingItem(plugin, source, whoCanSeeList, itemstack);
}
/**