use of org.bukkit.craftbukkit.v1_16_R3.CraftRaid in project LoliServer by Loli-Server.
the class CraftEventFactory method callRaidTriggerEvent.
/**
* Raid events
*/
public static boolean callRaidTriggerEvent(Raid raid, ServerPlayerEntity player) {
RaidTriggerEvent event = new RaidTriggerEvent(new CraftRaid(raid), raid.getLevel().getWorld(), player.getBukkitEntity());
Bukkit.getPluginManager().callEvent(event);
return !event.isCancelled();
}
use of org.bukkit.craftbukkit.v1_16_R3.CraftRaid in project LoliServer by Loli-Server.
the class CraftEventFactory method callRaidStopEvent.
public static void callRaidStopEvent(Raid raid, RaidStopEvent.Reason reason) {
RaidStopEvent event = new RaidStopEvent(new CraftRaid(raid), raid.getLevel().getWorld(), reason);
Bukkit.getPluginManager().callEvent(event);
}
use of org.bukkit.craftbukkit.v1_16_R3.CraftRaid in project LoliServer by Loli-Server.
the class CraftEventFactory method callRaidFinishEvent.
public static void callRaidFinishEvent(Raid raid, List<Player> players) {
RaidFinishEvent event = new RaidFinishEvent(new CraftRaid(raid), raid.getLevel().getWorld(), players);
Bukkit.getPluginManager().callEvent(event);
}
Aggregations