mirror of
https://github.com/asofold/CompatNoCheatPlus.git
synced 2025-01-19 21:01:35 +01:00
Use public visibility for event handler methods.
This commit is contained in:
parent
7a4a8b0490
commit
bd5bc5a5bd
@ -55,13 +55,13 @@ public class HookBlockBreak extends ClassExemptionHook implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.LOWEST)
|
||||
@RegisterMethodWithOrder(tag = CompatNoCheatPlus.tagEarlyFeature, beforeTag = CompatNoCheatPlus.beforeTagEarlyFeature)
|
||||
final void onBlockBreakLowest(final BlockBreakEvent event){
|
||||
public final void onBlockBreakLowest(final BlockBreakEvent event){
|
||||
checkExempt(event.getPlayer(), event.getClass(), CheckType.BLOCKBREAK);
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
@RegisterMethodWithOrder(tag = CompatNoCheatPlus.tagLateFeature, afterTag = CompatNoCheatPlus.afterTagLateFeature)
|
||||
final void onBlockBreakMonitor(final BlockBreakEvent event){
|
||||
public final void onBlockBreakMonitor(final BlockBreakEvent event){
|
||||
checkUnexempt(event.getPlayer(), event.getClass(), CheckType.BLOCKBREAK);
|
||||
}
|
||||
|
||||
|
@ -53,13 +53,13 @@ public class HookBlockPlace extends ClassExemptionHook implements Listener{
|
||||
|
||||
@EventHandler(priority = EventPriority.LOWEST)
|
||||
@RegisterMethodWithOrder(tag = CompatNoCheatPlus.tagEarlyFeature, beforeTag = CompatNoCheatPlus.beforeTagEarlyFeature)
|
||||
final void onBlockPlaceLowest(final BlockPlaceEvent event){
|
||||
public final void onBlockPlaceLowest(final BlockPlaceEvent event){
|
||||
checkExempt(event.getPlayer(), event.getClass(), CheckType.BLOCKPLACE);
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
@RegisterMethodWithOrder(tag = CompatNoCheatPlus.tagLateFeature, afterTag = CompatNoCheatPlus.afterTagLateFeature)
|
||||
final void onBlockPlaceMonitor(final BlockPlaceEvent event){
|
||||
public final void onBlockPlaceMonitor(final BlockPlaceEvent event){
|
||||
checkUnexempt(event.getPlayer(), event.getClass(), CheckType.BLOCKPLACE);
|
||||
}
|
||||
|
||||
|
@ -51,7 +51,7 @@ Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.LOWEST)
|
||||
@RegisterMethodWithOrder(tag = CompatNoCheatPlus.tagEarlyFeature, beforeTag = CompatNoCheatPlus.beforeTagEarlyFeature)
|
||||
final void onDamageLowest(final EntityDamageByEntityEvent event) {
|
||||
public final void onDamageLowest(final EntityDamageByEntityEvent event) {
|
||||
final Entity damager = event.getDamager();
|
||||
if (damager instanceof Player) {
|
||||
checkExempt((Player) damager, event.getClass(), CheckType.FIGHT);
|
||||
@ -60,7 +60,7 @@ Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
@RegisterMethodWithOrder(tag = CompatNoCheatPlus.tagLateFeature, afterTag = CompatNoCheatPlus.afterTagLateFeature)
|
||||
final void onDamageMonitor(final EntityDamageByEntityEvent event) {
|
||||
public final void onDamageMonitor(final EntityDamageByEntityEvent event) {
|
||||
final Entity damager = event.getDamager();
|
||||
if (damager instanceof Player) {
|
||||
checkUnexempt((Player) damager, event.getClass(), CheckType.FIGHT);
|
||||
|
@ -49,13 +49,13 @@ public class HookPlayerInteract extends ClassExemptionHook implements Listener{
|
||||
|
||||
@EventHandler(priority = EventPriority.LOWEST)
|
||||
@RegisterMethodWithOrder(tag = CompatNoCheatPlus.tagEarlyFeature, beforeTag = CompatNoCheatPlus.beforeTagEarlyFeature)
|
||||
final void onPlayerInteractLowest(final PlayerInteractEvent event){
|
||||
public final void onPlayerInteractLowest(final PlayerInteractEvent event){
|
||||
checkExempt(event.getPlayer(), event.getClass(), CheckType.BLOCKINTERACT);
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
@RegisterMethodWithOrder(tag = CompatNoCheatPlus.tagLateFeature, afterTag = CompatNoCheatPlus.afterTagLateFeature)
|
||||
final void onPlayerInteractMonitor(final PlayerInteractEvent event){
|
||||
public final void onPlayerInteractMonitor(final PlayerInteractEvent event){
|
||||
checkUnexempt(event.getPlayer(), event.getClass(), CheckType.BLOCKINTERACT);
|
||||
}
|
||||
|
||||
|
@ -109,7 +109,7 @@ public final class HookmcMMO extends AbstractHook implements Listener, Configura
|
||||
|
||||
@EventHandler(priority=EventPriority.LOWEST)
|
||||
@RegisterMethodWithOrder(tag = CompatNoCheatPlus.tagEarlyFeature, beforeTag = CompatNoCheatPlus.beforeTagEarlyFeature)
|
||||
final void onDamageLowest(final FakeEntityDamageByEntityEvent event){
|
||||
public final void onDamageLowest(final FakeEntityDamageByEntityEvent event){
|
||||
final Entity entity = event.getDamager();
|
||||
if (entity instanceof Player)
|
||||
ncpHook.damageLowest((Player) entity);
|
||||
@ -117,7 +117,7 @@ public final class HookmcMMO extends AbstractHook implements Listener, Configura
|
||||
|
||||
@EventHandler(priority=EventPriority.MONITOR)
|
||||
@RegisterMethodWithOrder(tag = CompatNoCheatPlus.tagLateFeature, afterTag = CompatNoCheatPlus.afterTagLateFeature)
|
||||
final void onDamageMonitor(final FakeEntityDamageByEntityEvent event){
|
||||
public final void onDamageMonitor(final FakeEntityDamageByEntityEvent event){
|
||||
final Entity entity = event.getDamager();
|
||||
if (entity instanceof Player)
|
||||
ncpHook.damageMonitor((Player) entity);
|
||||
@ -129,13 +129,13 @@ public final class HookmcMMO extends AbstractHook implements Listener, Configura
|
||||
|
||||
@EventHandler(priority=EventPriority.LOWEST)
|
||||
@RegisterMethodWithOrder(tag = CompatNoCheatPlus.tagEarlyFeature, beforeTag = CompatNoCheatPlus.beforeTagEarlyFeature)
|
||||
final void onBlockDamageLowest(final FakeBlockDamageEvent event){
|
||||
public final void onBlockDamageLowest(final FakeBlockDamageEvent event){
|
||||
ncpHook.blockDamageLowest(event.getPlayer());
|
||||
}
|
||||
|
||||
@EventHandler(priority=EventPriority.LOWEST)
|
||||
@RegisterMethodWithOrder(tag = CompatNoCheatPlus.tagEarlyFeature, beforeTag = CompatNoCheatPlus.beforeTagEarlyFeature)
|
||||
final void onBlockDamageMonitor(final FakeBlockDamageEvent event){
|
||||
public final void onBlockDamageMonitor(final FakeBlockDamageEvent event){
|
||||
ncpHook.blockDamageMonitor(event.getPlayer());
|
||||
}
|
||||
|
||||
@ -145,7 +145,7 @@ public final class HookmcMMO extends AbstractHook implements Listener, Configura
|
||||
|
||||
@EventHandler(priority=EventPriority.LOWEST)
|
||||
@RegisterMethodWithOrder(tag = CompatNoCheatPlus.tagEarlyFeature, beforeTag = CompatNoCheatPlus.beforeTagEarlyFeature)
|
||||
final void onBlockBreakLowest(final FakeBlockBreakEvent event){
|
||||
public final void onBlockBreakLowest(final FakeBlockBreakEvent event){
|
||||
if (ncpHook.blockBreakLowest(event.getPlayer())){
|
||||
event.setCancelled(true);
|
||||
// System.out.println("Cancelled for frequency.");
|
||||
@ -154,7 +154,7 @@ public final class HookmcMMO extends AbstractHook implements Listener, Configura
|
||||
|
||||
@EventHandler(priority=EventPriority.MONITOR)
|
||||
@RegisterMethodWithOrder(tag = CompatNoCheatPlus.tagLateFeature, afterTag = CompatNoCheatPlus.afterTagLateFeature)
|
||||
final void onBlockBreakLMonitor(final FakeBlockBreakEvent event){
|
||||
public final void onBlockBreakLMonitor(final FakeBlockBreakEvent event){
|
||||
ncpHook.blockBreakMontitor(event.getPlayer());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user