Refactor experience events into separate packages.

Level events are now in one package, and XP events are now in a second
package.
This commit is contained in:
GJ 2013-10-21 09:38:39 -04:00 committed by TfT_02
parent d0a1d44fa2
commit badabeb8e4
8 changed files with 15 additions and 13 deletions

View File

@ -1,8 +1,9 @@
package com.gmail.nossr50.events.experience; package com.gmail.nossr50.events.experience.levels;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import com.gmail.nossr50.datatypes.skills.SkillType; import com.gmail.nossr50.datatypes.skills.SkillType;
import com.gmail.nossr50.events.experience.McMMOPlayerExperienceEvent;
/** /**
* Called when a user levels change * Called when a user levels change

View File

@ -1,4 +1,4 @@
package com.gmail.nossr50.events.experience; package com.gmail.nossr50.events.experience.levels;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;

View File

@ -1,4 +1,4 @@
package com.gmail.nossr50.events.experience; package com.gmail.nossr50.events.experience.levels;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;

View File

@ -1,8 +1,9 @@
package com.gmail.nossr50.events.experience; package com.gmail.nossr50.events.experience.xp;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import com.gmail.nossr50.datatypes.skills.SkillType; import com.gmail.nossr50.datatypes.skills.SkillType;
import com.gmail.nossr50.events.experience.McMMOPlayerExperienceEvent;
public abstract class McMMOPlayerXpChangeEvent extends McMMOPlayerExperienceEvent { public abstract class McMMOPlayerXpChangeEvent extends McMMOPlayerExperienceEvent {
public McMMOPlayerXpChangeEvent(Player player, SkillType skill) { public McMMOPlayerXpChangeEvent(Player player, SkillType skill) {

View File

@ -1,4 +1,4 @@
package com.gmail.nossr50.events.experience; package com.gmail.nossr50.events.experience.xp;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;

View File

@ -1,4 +1,4 @@
package com.gmail.nossr50.events.experience; package com.gmail.nossr50.events.experience.xp;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;

View File

@ -5,7 +5,7 @@ import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener; import org.bukkit.event.Listener;
import com.gmail.nossr50.config.Config; import com.gmail.nossr50.config.Config;
import com.gmail.nossr50.events.experience.McMMOPlayerLevelUpEvent; import com.gmail.nossr50.events.experience.levels.McMMOPlayerLevelUpEvent;
public class SelfListener implements Listener { public class SelfListener implements Listener {
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)

View File

@ -15,12 +15,12 @@ import com.gmail.nossr50.datatypes.player.McMMOPlayer;
import com.gmail.nossr50.datatypes.player.PlayerProfile; import com.gmail.nossr50.datatypes.player.PlayerProfile;
import com.gmail.nossr50.datatypes.skills.AbilityType; import com.gmail.nossr50.datatypes.skills.AbilityType;
import com.gmail.nossr50.datatypes.skills.SkillType; import com.gmail.nossr50.datatypes.skills.SkillType;
import com.gmail.nossr50.events.experience.McMMOPlayerLevelChangeEvent; import com.gmail.nossr50.events.experience.levels.McMMOPlayerLevelChangeEvent;
import com.gmail.nossr50.events.experience.McMMOPlayerLevelDownEvent; import com.gmail.nossr50.events.experience.levels.McMMOPlayerLevelDownEvent;
import com.gmail.nossr50.events.experience.McMMOPlayerLevelUpEvent; import com.gmail.nossr50.events.experience.levels.McMMOPlayerLevelUpEvent;
import com.gmail.nossr50.events.experience.McMMOPlayerXpChangeEvent; import com.gmail.nossr50.events.experience.xp.McMMOPlayerXpChangeEvent;
import com.gmail.nossr50.events.experience.McMMOPlayerXpGainEvent; import com.gmail.nossr50.events.experience.xp.McMMOPlayerXpGainEvent;
import com.gmail.nossr50.events.experience.McMMOPlayerXpLossEvent; import com.gmail.nossr50.events.experience.xp.McMMOPlayerXpLossEvent;
import com.gmail.nossr50.events.fake.FakeBlockBreakEvent; import com.gmail.nossr50.events.fake.FakeBlockBreakEvent;
import com.gmail.nossr50.events.fake.FakeBlockDamageEvent; import com.gmail.nossr50.events.fake.FakeBlockDamageEvent;
import com.gmail.nossr50.events.fake.FakePlayerAnimationEvent; import com.gmail.nossr50.events.fake.FakePlayerAnimationEvent;