From 657305a5fe741b610b2fc512847b90088f74cde2 Mon Sep 17 00:00:00 2001 From: Brettflan Date: Wed, 19 Dec 2012 06:15:31 -0600 Subject: [PATCH] fix imports for new PowerLossEvent --- .../massivecraft/factions/event/PowerLossEvent.java | 11 +++++++++-- .../factions/listeners/FactionsEntityListener.java | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/com/massivecraft/factions/event/PowerLossEvent.java b/src/com/massivecraft/factions/event/PowerLossEvent.java index 3012beaf..76eeb8d1 100644 --- a/src/com/massivecraft/factions/event/PowerLossEvent.java +++ b/src/com/massivecraft/factions/event/PowerLossEvent.java @@ -1,7 +1,14 @@ package com.massivecraft.factions.event; -import src.com.massivecraft.factions.FPlayer; -import src.com.massivecraft.factions.Faction; +import org.bukkit.event.Cancellable; +import org.bukkit.event.Event; +import org.bukkit.event.HandlerList; + +import com.massivecraft.factions.FPlayer; +import com.massivecraft.factions.Faction; + +import org.bukkit.entity.Player; + public class PowerLossEvent extends Event implements Cancellable { diff --git a/src/com/massivecraft/factions/listeners/FactionsEntityListener.java b/src/com/massivecraft/factions/listeners/FactionsEntityListener.java index 0cb77c36..59dd4b5b 100644 --- a/src/com/massivecraft/factions/listeners/FactionsEntityListener.java +++ b/src/com/massivecraft/factions/listeners/FactionsEntityListener.java @@ -46,7 +46,6 @@ import com.massivecraft.factions.FPlayers; import com.massivecraft.factions.Faction; import com.massivecraft.factions.P; import com.massivecraft.factions.event.PowerLossEvent; -import com.massivecraft.factions.listeners.FactionsBlockListener; import com.massivecraft.factions.struct.FFlag; import com.massivecraft.factions.struct.Rel; import com.massivecraft.factions.util.MiscUtil; @@ -86,6 +85,7 @@ public class FactionsEntityListener implements Listener else { powerLossEvent.setMessage("Your power is now %d / %d"); } + // call Event Bukkit.getPluginManager().callEvent(powerLossEvent);