From 3b2a9ca988ee23fe1a56f0090b65c9655357f80d Mon Sep 17 00:00:00 2001 From: TheBukor Date: Sun, 13 Mar 2016 16:22:24 -0300 Subject: [PATCH] Nvm just register %event-entity% anyways, just don't use it in a message --- src/me/TheBukor/SkStuff/SkStuff.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/me/TheBukor/SkStuff/SkStuff.java b/src/me/TheBukor/SkStuff/SkStuff.java index 281f22f..1371938 100644 --- a/src/me/TheBukor/SkStuff/SkStuff.java +++ b/src/me/TheBukor/SkStuff/SkStuff.java @@ -5,6 +5,7 @@ import javax.annotation.Nullable; import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.block.Block; +import org.bukkit.entity.Entity; import org.bukkit.entity.Player; import org.bukkit.event.entity.EntityToggleGlideEvent; import org.bukkit.inventory.Inventory; @@ -106,7 +107,7 @@ public class SkStuff extends JavaPlugin { getLogger().info("WOW! You're using Minecraft 1.9! Lemme register some cool stuff right away!"); Skript.registerEvent("Elytra glide toggle", SimpleEvent.class, EntityToggleGlideEvent.class, "[entity] elytra (fl(y|ight)|glid(e|ing)) toggl(e|ing)", "[entity] toggle elytra (fl(y|ight)|glid(e|ing))"); Skript.registerExpression(ExprGlideState.class, Boolean.class, ExpressionType.PROPERTY, "elytra (fl(y|ight)|glid(e|ing)) state of %player%", "%player%'s elytra (fl(y|ight)|glid(e|ing)) state"); - /* Don't register it yet, Spigot isn't doing it properly as of now. + EventValues.registerEventValue(EntityToggleGlideEvent.class, Entity.class, new Getter() { @Override @Nullable @@ -114,7 +115,7 @@ public class SkStuff extends JavaPlugin { return e.getEntity(); } }, 0); - */ + evtAmount += 1; exprAmount += 1; }