Ver código fonte

No point in having a class & method for one line of code.

GJ 12 anos atrás
pai
commit
150fe730bd

+ 0 - 17
src/main/java/com/gmail/nossr50/util/spout/SpoutSoundUtils.java

@@ -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);
-    }
-}

+ 1 - 1
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);
     }
 
     /**