diff --git a/src/me/libraryaddict/disguise/DisguiseAPI.java b/src/me/libraryaddict/disguise/DisguiseAPI.java index b7a3f9ef..af080acb 100644 --- a/src/me/libraryaddict/disguise/DisguiseAPI.java +++ b/src/me/libraryaddict/disguise/DisguiseAPI.java @@ -14,8 +14,8 @@ import me.libraryaddict.disguise.DisguiseTypes.DisguiseSound; import me.libraryaddict.disguise.DisguiseTypes.DisguiseSound.SoundType; import me.libraryaddict.disguise.DisguiseTypes.DisguiseType; import me.libraryaddict.disguise.DisguiseTypes.MobDisguise; -import me.libraryaddict.disguise.Events.DisguisedEvent; -import me.libraryaddict.disguise.Events.UndisguisedEvent; +import me.libraryaddict.disguise.Events.DisguiseEvent; +import me.libraryaddict.disguise.Events.UndisguiseEvent; import net.minecraft.server.v1_6_R2.AttributeMapServer; import net.minecraft.server.v1_6_R2.Block; import net.minecraft.server.v1_6_R2.EntityHuman; @@ -96,7 +96,7 @@ public class DisguiseAPI { if (entity == null || disguise == null) return; Disguise oldDisguise = getDisguise(entity); - DisguisedEvent event = new DisguisedEvent(entity, disguise); + DisguiseEvent event = new DisguiseEvent(entity, disguise); Bukkit.getPluginManager().callEvent(event); if (event.isCancelled()) { return; @@ -600,7 +600,7 @@ public class DisguiseAPI { Disguise disguise = getDisguise(entity); if (disguise == null) return; - UndisguisedEvent event = new UndisguisedEvent(entity, disguise); + UndisguiseEvent event = new UndisguiseEvent(entity, disguise); Bukkit.getPluginManager().callEvent(event); if (event.isCancelled()) return; diff --git a/src/me/libraryaddict/disguise/Events/DisguisedEvent.java b/src/me/libraryaddict/disguise/Events/DisguiseEvent.java similarity index 84% rename from src/me/libraryaddict/disguise/Events/DisguisedEvent.java rename to src/me/libraryaddict/disguise/Events/DisguiseEvent.java index 40a0e753..ad75e50b 100644 --- a/src/me/libraryaddict/disguise/Events/DisguisedEvent.java +++ b/src/me/libraryaddict/disguise/Events/DisguiseEvent.java @@ -7,7 +7,7 @@ import org.bukkit.event.Cancellable; import org.bukkit.event.Event; import org.bukkit.event.HandlerList; -public class DisguisedEvent extends Event implements Cancellable { +public class DisguiseEvent extends Event implements Cancellable { private static final HandlerList handlers = new HandlerList(); public static HandlerList getHandlerList() { @@ -19,7 +19,7 @@ public class DisguisedEvent extends Event implements Cancellable { private boolean isCancelled; - public DisguisedEvent(Entity entity, Disguise disguise) { + public DisguiseEvent(Entity entity, Disguise disguise) { this.disguised = entity; this.disguise = disguise; } @@ -28,7 +28,7 @@ public class DisguisedEvent extends Event implements Cancellable { return disguise; } - public Entity getDisguised() { + public Entity getEntity() { return disguised; } diff --git a/src/me/libraryaddict/disguise/Events/UndisguisedEvent.java b/src/me/libraryaddict/disguise/Events/UndisguiseEvent.java similarity index 84% rename from src/me/libraryaddict/disguise/Events/UndisguisedEvent.java rename to src/me/libraryaddict/disguise/Events/UndisguiseEvent.java index 8e37834c..1edbb560 100644 --- a/src/me/libraryaddict/disguise/Events/UndisguisedEvent.java +++ b/src/me/libraryaddict/disguise/Events/UndisguiseEvent.java @@ -7,7 +7,7 @@ import org.bukkit.event.Cancellable; import org.bukkit.event.Event; import org.bukkit.event.HandlerList; -public class UndisguisedEvent extends Event implements Cancellable { +public class UndisguiseEvent extends Event implements Cancellable { private static final HandlerList handlers = new HandlerList(); public static HandlerList getHandlerList() { @@ -19,7 +19,7 @@ public class UndisguisedEvent extends Event implements Cancellable { private boolean isCancelled; - public UndisguisedEvent(Entity entity, Disguise disguise) { + public UndisguiseEvent(Entity entity, Disguise disguise) { this.disguised = entity; this.disguise = disguise; } @@ -28,7 +28,7 @@ public class UndisguisedEvent extends Event implements Cancellable { return disguise; } - public Entity getDisguised() { + public Entity getEntity() { return disguised; }