diff --git a/README.MD b/README.MD index 195b670..02fe6eb 100644 --- a/README.MD +++ b/README.MD @@ -8,7 +8,7 @@ HoloEasy is a simple, modern and high-performant Java and Kotlin Minecraft Holog ## Quickstart ### Add dependency - +Make sure you include the repository as well. #### Maven ```xml diff --git a/src/test/kotlin/test/Test.kt b/src/test/kotlin/test/Test.kt deleted file mode 100644 index aff258c..0000000 --- a/src/test/kotlin/test/Test.kt +++ /dev/null @@ -1,38 +0,0 @@ -package test - -import org.holoeasy.builder.HologramBuilder.* -import org.holoeasy.config.HologramKey -import org.bukkit.Location -import org.bukkit.Material -import org.bukkit.entity.Player -import org.bukkit.inventory.ItemStack -import org.bukkit.plugin.Plugin -import org.holoeasy.HoloEasy -import org.holoeasy.pool.IHologramPool - -class Test(plugin: Plugin) { - - private val pool: IHologramPool - - init { - pool = HoloEasy.startInteractivePool(plugin, 60.0, 0.5f, 5f) - } - - fun code(loc: Location, id: String) { - hologram(HologramKey(pool, id), loc) { - textline("Hello") - textline("{} Stats", Player::getName) - textline("Score {} - {}", { 0 }, { 1 }) - clickable("Click me") - .onClick { it.sendMessage("Hi") } - - item(ItemStack(Material.GOLDEN_APPLE)) - item(ItemStack(Material.DIAMOND_BLOCK)) - }.onShow { it.sendMessage("Hi im $id") } - } - - fun getAndAddHideEvent(key: HologramKey) { - val hologram = pool.get(key) - hologram.onHide { it.sendMessage("See you again...") } - } -} \ No newline at end of file diff --git a/src/test/kotlin/test/Testj.java b/src/test/kotlin/test/Testj.java deleted file mode 100644 index a8a742a..0000000 --- a/src/test/kotlin/test/Testj.java +++ /dev/null @@ -1,42 +0,0 @@ -package test; -import org.holoeasy.HoloEasy; -import org.holoeasy.config.HologramKey; -import org.bukkit.Location; -import org.bukkit.Material; -import org.bukkit.entity.Player; -import org.bukkit.inventory.ItemStack; -import org.bukkit.plugin.Plugin; -import org.holoeasy.hologram.Hologram; -import org.holoeasy.pool.IHologramPool; - -import static org.holoeasy.builder.HologramBuilder.*; - -class Testj { - - private final IHologramPool pool; - - public Testj(Plugin plugin) { - pool = HoloEasy.startInteractivePool(plugin, 60, 0.5f, 5f); - } - - public void code(Location loc, String id) { - - hologram(new HologramKey(pool, id), loc, () -> { - - textline("Hello"); - - textline("{} Stats", Player::getName); - textline("Score {} - {}", $ -> 0, $ -> 1); - clickable("Click me") - .onClick(p -> p.sendMessage("Hi")); - - item(new ItemStack(Material.GOLDEN_APPLE)); - item(new ItemStack(Material.DIAMOND_BLOCK)); - }).onShow(player -> player.sendMessage("Hi im " + id)); - } - - public void getAndAddHideEvent(HologramKey key) { - Hologram hologram = pool.get(key); - hologram.onHide(player -> player.sendMessage("See you again...")); - } -} \ No newline at end of file