cn.nukkit.event.HandlerList Java Examples

The following examples show how to use cn.nukkit.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: PluginManager.java    From Jupiter with GNU General Public License v3.0 6 votes vote down vote up
public void disablePlugin(Plugin plugin) {
    if (plugin.isEnabled()) {
        try {
            plugin.getPluginLoader().disablePlugin(plugin);
        } catch (Exception e) {
            MainLogger logger = this.server.getLogger();
            if (logger != null) {
                logger.logException(e);
            }
        }

        this.server.getScheduler().cancelTask(plugin);
        HandlerList.unregisterAll(plugin);
        for (Permission permission : plugin.getDescription().getPermissions()) {
            this.removePermission(permission);
        }
    }
}
 
Example #2
Source File: PlayerQuitEvent.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #3
Source File: PlayerKickEvent.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #4
Source File: PlayerToggleGlideEvent.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #5
Source File: ProjectileLaunchEvent.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #6
Source File: PlayerAnimationEvent.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #7
Source File: PlayerJoinEvent.java    From Jupiter with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #8
Source File: EntityBlockChangeEvent.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #9
Source File: PlayerCommandPreprocessEvent.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #10
Source File: PlayerCreationEvent.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #11
Source File: PlayerInvalidMoveEvent.java    From Jupiter with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #12
Source File: PlayerAchievementAwardedEvent.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #13
Source File: PlayerToggleSneakEvent.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #14
Source File: BlockRedstoneEvent.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #15
Source File: ThunderChangeEvent.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #16
Source File: PlayerModalFormResponseEvent.java    From Jupiter with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #17
Source File: EntitySpawnEvent.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #18
Source File: VehicleCreateEvent.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #19
Source File: WeatherChangeEvent.java    From Jupiter with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #20
Source File: PlayerBedLeaveEvent.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #21
Source File: EntityLevelChangeEvent.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #22
Source File: EntityDamageEvent.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #23
Source File: PlayerLoginEvent.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #24
Source File: SynapsePlayerConnectEvent.java    From SynapseAPI with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #25
Source File: EntityTeleportEvent.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #26
Source File: PlayerSettingsRespondedEvent.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #27
Source File: EntityCombustEvent.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #28
Source File: VehicleDamageEvent.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #29
Source File: SignChangeEvent.java    From Jupiter with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}
 
Example #30
Source File: ProjectileLaunchEvent.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public static HandlerList getHandlers() {
    return handlers;
}