Fixing player.playSound in 1.12 #70
@ -26,7 +26,6 @@ import de.steamwar.comms.handlers.InventoryHandler;
|
||||
import de.steamwar.sql.SteamwarUser;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Sound;
|
||||
import org.bukkit.SoundCategory;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.messaging.PluginMessageListener;
|
||||
|
||||
@ -47,7 +46,7 @@ public class BungeeReceiver implements PluginMessageListener {
|
||||
UUID uuid = SteamwarUser.get(byteArrayDataInput.readInt()).getUUID();
|
||||
if(Bukkit.getPlayer(uuid).isOnline()) {
|
||||
Player player = Bukkit.getPlayer(uuid);
|
||||
player.playSound(player.getLocation(), Sound.ENTITY_EXPERIENCE_ORB_PICKUP, SoundCategory.MASTER, 1, 1);
|
||||
player.playSound(player.getLocation(), Sound.ENTITY_EXPERIENCE_ORB_PICKUP, 1, 1);
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren
Das fixt das Issue nicht, das Issue ist auch "ENTITY_EXPERIENCE_ORB_PICKUP". Stell doch mal in der SpigotCore_Main/pom.xml testweise auf Spigot 1.8 um und schau mal, was deine IDE dann zu diesem Codeschnipsel sagt.