From 2f1a8bde2809d4bae9cfa75046130f7a2d15e84f Mon Sep 17 00:00:00 2001 From: filoghost Date: Sun, 30 Nov 2014 17:00:00 +0100 Subject: [PATCH] Packages has been moved in Spigot 1.8, don't rely on them. --- HolographicDisplays/plugin.yml | 2 +- .../holograms/api/HolographicDisplaysAPI.java | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/HolographicDisplays/plugin.yml b/HolographicDisplays/plugin.yml index 6f4f55b9..68b9a92b 100644 --- a/HolographicDisplays/plugin.yml +++ b/HolographicDisplays/plugin.yml @@ -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] diff --git a/HolographicDisplays/src/com/gmail/filoghost/holograms/api/HolographicDisplaysAPI.java b/HolographicDisplays/src/com/gmail/filoghost/holograms/api/HolographicDisplaysAPI.java index 8c5a6b22..eca3d159 100644 --- a/HolographicDisplays/src/com/gmail/filoghost/holograms/api/HolographicDisplaysAPI.java +++ b/HolographicDisplays/src/com/gmail/filoghost/holograms/api/HolographicDisplaysAPI.java @@ -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 whoCanSeeList = new ArrayList(); + 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 whoCanSeeList = new ArrayList(); + whoCanSeeList.add(whoCanSee); + return createIndividualFloatingItem(plugin, source, whoCanSeeList, itemstack); } /**