From 150fe730bdfd5df9885aa818e5550c73e1cbbf74 Mon Sep 17 00:00:00 2001 From: GJ Date: Thu, 18 Apr 2013 09:19:48 -0400 Subject: [PATCH] No point in having a class & method for one line of code. --- .../nossr50/util/spout/SpoutSoundUtils.java | 17 ----------------- .../gmail/nossr50/util/spout/SpoutUtils.java | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 src/main/java/com/gmail/nossr50/util/spout/SpoutSoundUtils.java diff --git a/src/main/java/com/gmail/nossr50/util/spout/SpoutSoundUtils.java b/src/main/java/com/gmail/nossr50/util/spout/SpoutSoundUtils.java deleted file mode 100644 index ea5b34be5..000000000 --- a/src/main/java/com/gmail/nossr50/util/spout/SpoutSoundUtils.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.gmail.nossr50.util.spout; - -import org.bukkit.entity.Player; -import org.getspout.spoutapi.SpoutManager; - -import com.gmail.nossr50.mcMMO; - -public class SpoutSoundUtils { - /** - * Play noise on level-up. - * - * @param player The player who leveled up - */ - protected static void playLevelUpNoise(Player player, mcMMO plugin) { - SpoutManager.getSoundManager().playCustomSoundEffect(plugin, SpoutManager.getPlayer(player), "level.wav", false); - } -} diff --git a/src/main/java/com/gmail/nossr50/util/spout/SpoutUtils.java b/src/main/java/com/gmail/nossr50/util/spout/SpoutUtils.java index 5d0ea19c2..1f780b87f 100644 --- a/src/main/java/com/gmail/nossr50/util/spout/SpoutUtils.java +++ b/src/main/java/com/gmail/nossr50/util/spout/SpoutUtils.java @@ -533,7 +533,7 @@ public class SpoutUtils { } spoutPlayer.sendNotification(LocaleLoader.getString("Spout.LevelUp.1"), LocaleLoader.getString("Spout.LevelUp.2", SkillUtils.getSkillName(skillType), profile.getSkillLevel(skillType)), mat); - SpoutSoundUtils.playLevelUpNoise(spoutPlayer, plugin); + SpoutManager.getSoundManager().playCustomSoundEffect(plugin, spoutPlayer, "level.wav", false); } /**