mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-10 12:30:29 +01:00
fix imports for new PowerLossEvent
This commit is contained in:
parent
0948800678
commit
657305a5fe
@ -1,7 +1,14 @@
|
|||||||
package com.massivecraft.factions.event;
|
package com.massivecraft.factions.event;
|
||||||
|
|
||||||
import src.com.massivecraft.factions.FPlayer;
|
import org.bukkit.event.Cancellable;
|
||||||
import src.com.massivecraft.factions.Faction;
|
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
|
public class PowerLossEvent extends Event implements Cancellable
|
||||||
{
|
{
|
||||||
|
@ -46,7 +46,6 @@ import com.massivecraft.factions.FPlayers;
|
|||||||
import com.massivecraft.factions.Faction;
|
import com.massivecraft.factions.Faction;
|
||||||
import com.massivecraft.factions.P;
|
import com.massivecraft.factions.P;
|
||||||
import com.massivecraft.factions.event.PowerLossEvent;
|
import com.massivecraft.factions.event.PowerLossEvent;
|
||||||
import com.massivecraft.factions.listeners.FactionsBlockListener;
|
|
||||||
import com.massivecraft.factions.struct.FFlag;
|
import com.massivecraft.factions.struct.FFlag;
|
||||||
import com.massivecraft.factions.struct.Rel;
|
import com.massivecraft.factions.struct.Rel;
|
||||||
import com.massivecraft.factions.util.MiscUtil;
|
import com.massivecraft.factions.util.MiscUtil;
|
||||||
@ -86,6 +85,7 @@ public class FactionsEntityListener implements Listener
|
|||||||
else {
|
else {
|
||||||
powerLossEvent.setMessage("<i>Your power is now <h>%d / %d");
|
powerLossEvent.setMessage("<i>Your power is now <h>%d / %d");
|
||||||
}
|
}
|
||||||
|
|
||||||
// call Event
|
// call Event
|
||||||
Bukkit.getPluginManager().callEvent(powerLossEvent);
|
Bukkit.getPluginManager().callEvent(powerLossEvent);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user