mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-23 04:47:34 +01:00
TrHologram comp updated
This commit is contained in:
parent
08d0a22843
commit
8562895b89
Binary file not shown.
@ -1,23 +1,24 @@
|
|||||||
package net.Indyuce.mmoitems.comp.holograms;
|
package net.Indyuce.mmoitems.comp.holograms;
|
||||||
|
|
||||||
import java.util.UUID;
|
import me.arasple.mc.trhologram.api.TrHologramAPI;
|
||||||
|
import me.arasple.mc.trhologram.module.display.Hologram;
|
||||||
|
import net.Indyuce.mmoitems.MMOItems;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import me.arasple.mc.trhologram.api.TrHologramAPI;
|
/**
|
||||||
import me.arasple.mc.trhologram.hologram.Hologram;
|
*
|
||||||
import net.Indyuce.mmoitems.MMOItems;
|
* updated comp provided through discord
|
||||||
|
* @author TUCAOEVER
|
||||||
public class TrHologramPlugin extends HologramSupport {
|
*/
|
||||||
public TrHologramPlugin() {
|
public class TrHologramPlugin extends HologramSupport
|
||||||
super();
|
{
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void displayIndicator(Location loc, String format, Player player) {
|
public void displayIndicator(final Location loc, final String format, final Player player) {
|
||||||
Hologram hologram = TrHologramAPI.createHologram(MMOItems.plugin, "mmoitems-" + UUID.randomUUID().toString(), loc, format);
|
Hologram hologram = TrHologramAPI.builder(loc)
|
||||||
Bukkit.getScheduler().scheduleSyncDelayedTask(MMOItems.plugin, hologram::delete, 20);
|
.append(format)
|
||||||
|
.build();
|
||||||
|
Bukkit.getScheduler().scheduleSyncDelayedTask(MMOItems.plugin, hologram::destroy, 20L);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user