org.bukkit.event.HandlerList Java Examples

The following examples show how to use org.bukkit.event.HandlerList. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RedProtect.java    From RedProtect with GNU General Public License v3.0 6 votes vote down vote up
private void shutDown() {
    // Unload messages listener
    modListener.unload();

    // Unregister commands
    cmdHandler.unregisterAll();

    // Save and unload all regions
    rm.saveAll(true);
    rm.unloadAll();

    // Cancel tasks from bukkit scheduler and save logs
    Bukkit.getScheduler().cancelTasks(this);
    logger.saveLogs();

    // Unregister listeners
    logger.info("Unregistering listeners...");
    HandlerList.unregisterAll(this);

    getServer().getScheduler().cancelTasks(this);

    logger.info(getDescription().getFullName() + " turned off...");
}
 
Example #2
Source File: FurnaceSmeltEvent.java    From Kettle with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlerList() {
    return handlers;
}
 
Example #3
Source File: EditPlayerEditEvent.java    From DungeonsXL with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlerList() {
    return handlers;
}
 
Example #4
Source File: MulticraftEvent.java    From ProRecipes with GNU General Public License v2.0 4 votes vote down vote up
public static HandlerList getHandlerList() {
    return handlers;
}
 
Example #5
Source File: PlayerShowEvent.java    From SuperVanish with Mozilla Public License 2.0 4 votes vote down vote up
public static HandlerList getHandlerList() {
    return handlers;
}
 
Example #6
Source File: ControllableEntityDeathEvent.java    From EntityAPI with GNU Lesser General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlerList() {
    return handlers;
}
 
Example #7
Source File: BedwarsGameEndingEvent.java    From BedWars with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public HandlerList getHandlers() {
	return BedwarsGameEndingEvent.handlers;
}
 
Example #8
Source File: GuildRegionLeaveEvent.java    From FunnyGuilds with Apache License 2.0 4 votes vote down vote up
@NotNull
@Override
public HandlerList getHandlers() {
    return HANDLERS;
}
 
Example #9
Source File: Scorebox.java    From CardinalPGM with MIT License 4 votes vote down vote up
@Override
public void unload() {
    HandlerList.unregisterAll(this);
}
 
Example #10
Source File: BedwarsUpgradeBoughtEvent.java    From BedWars with GNU Lesser General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlerList() {
    return BedwarsUpgradeBoughtEvent.handlers;
}
 
Example #11
Source File: BlockPistonRetractEvent.java    From Kettle with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlerList() {
    return handlers;
}
 
Example #12
Source File: EntityDeathEvent.java    From Kettle with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlerList() {
    return handlers;
}
 
Example #13
Source File: PlayerEnterRegionEvent.java    From NovaGuilds with GNU General Public License v3.0 4 votes vote down vote up
@Override
public HandlerList getHandlers() {
	return handlers;
}
 
Example #14
Source File: PlayerQuitEvent.java    From Kettle with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlerList() {
    return handlers;
}
 
Example #15
Source File: BlockSpreadEvent.java    From Kettle with GNU General Public License v3.0 4 votes vote down vote up
@Override
public HandlerList getHandlers() {
    return handlers;
}
 
Example #16
Source File: GroupCreateEvent.java    From DungeonsXL with GNU General Public License v3.0 4 votes vote down vote up
@Override
public HandlerList getHandlers() {
    return handlers;
}
 
Example #17
Source File: GuildCreateEvent.java    From FunnyGuilds with Apache License 2.0 4 votes vote down vote up
@Override
public HandlerList getHandlers() {
    return handlers;
}
 
Example #18
Source File: WorthListener.java    From factions-top with MIT License 4 votes vote down vote up
@Override
public void terminate() {
    HandlerList.unregisterAll(this);
    cancel();
}
 
Example #19
Source File: CompetitorScoreChangeEvent.java    From PGM with GNU Affero General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlerList() {
  return handlers;
}
 
Example #20
Source File: CoreBlockBreakEvent.java    From PGM with GNU Affero General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlerList() {
  return handlers;
}
 
Example #21
Source File: PlayerNaturallySpawnCreaturesEvent.java    From Kettle with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlerList() {
    return handlers;
}
 
Example #22
Source File: SkinLoadedEvent.java    From NickNamer with MIT License 4 votes vote down vote up
public static HandlerList getHandlerList() {
	return handlerList;
}
 
Example #23
Source File: BedwarsPlayerKilledEvent.java    From BedwarsRel with GNU General Public License v3.0 4 votes vote down vote up
@Override
public HandlerList getHandlers() {
  return BedwarsPlayerKilledEvent.handlers;
}
 
Example #24
Source File: SubStoppedEvent.java    From SubServers-2 with Apache License 2.0 4 votes vote down vote up
@Override
public HandlerList getHandlers() {
    return handlers;
}
 
Example #25
Source File: MapInteractEvent.java    From MapManager with MIT License 4 votes vote down vote up
public static HandlerList getHandlerList() {
	return handlerList;
}
 
Example #26
Source File: PrefixChangeEvent.java    From PGM with GNU Affero General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlerList() {
  return handlers;
}
 
Example #27
Source File: SubCreateEvent.java    From SubServers-2 with Apache License 2.0 4 votes vote down vote up
@Override
public HandlerList getHandlers() {
    return handlers;
}
 
Example #28
Source File: BedwarsPlayerJoinEvent.java    From BedwarsRel with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlerList() {
  return BedwarsPlayerJoinEvent.handlers;
}
 
Example #29
Source File: TeamLeaveEvent.java    From askyblock with GNU General Public License v2.0 4 votes vote down vote up
public static HandlerList getHandlerList() {
    return handlers;
}
 
Example #30
Source File: BukkitFastLoginPreLoginEvent.java    From FastLogin with MIT License 4 votes vote down vote up
public static HandlerList getHandlerList() {
    return handlers;
}