mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 02:04:44 +02:00
Change Changelog to + = ! - system
Cleanup some unneded SuppressWarnings Monitor is where events that we don't cancel go, also we ignore cancelled events
This commit is contained in:
@ -3,7 +3,6 @@ package com.gmail.nossr50.events;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class FakeEntityDamageByEntityEvent extends EntityDamageByEntityEvent {
|
||||
public FakeEntityDamageByEntityEvent(Entity damager, Entity damagee, DamageCause cause, int damage) {
|
||||
super(damager, damagee, cause, damage);
|
||||
|
@ -25,7 +25,6 @@ import org.bukkit.inventory.ItemStack;
|
||||
/**
|
||||
* Called when mcMMO is preparing to drop an item
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class McMMOItemSpawnEvent extends Event implements Cancellable {
|
||||
private Location location;
|
||||
private ItemStack itemStack;
|
||||
|
@ -25,7 +25,6 @@ import com.gmail.nossr50.datatypes.SkillType;
|
||||
/**
|
||||
* Called when a user levels up in a skill
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class McMMOPlayerLevelUpEvent extends Event {
|
||||
private Player player;
|
||||
private SkillType skill;
|
||||
|
@ -22,7 +22,6 @@ import org.bukkit.event.HandlerList;
|
||||
|
||||
import com.gmail.nossr50.datatypes.SkillType;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class McMMOPlayerXpGainEvent extends Event {
|
||||
private Player player;
|
||||
private SkillType skill;
|
||||
|
@ -79,7 +79,7 @@ public class mcPlayerListener implements Listener
|
||||
plugin = instance;
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||
public void onPlayerWorldChangeEvent(PlayerChangedWorldEvent event)
|
||||
{
|
||||
Player player = event.getPlayer();
|
||||
|
Reference in New Issue
Block a user