mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-09-07 13:08:19 +02:00
Packages has been moved in Spigot 1.8, don't rely on them.
This commit is contained in:
parent
22c51f04b3
commit
2f1a8bde28
@ -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]
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user