Also tweaks to deprecation for development purposes.
This commit is contained in:
MattBDev
2016-06-03 10:57:25 -04:00
parent 0147690eba
commit b4707c94c4
4 changed files with 30 additions and 8 deletions

View File

@ -9,6 +9,7 @@ import com.intellectualcrafters.plot.util.UUIDHandler;
import com.plotsquared.bukkit.util.BukkitUtil;
import org.bukkit.Effect;
import org.bukkit.GameMode;
import org.bukkit.Material;
import org.bukkit.WeatherType;
import org.bukkit.entity.Player;
import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause;
@ -180,7 +181,7 @@ public class BukkitPlayer extends PlotPlayer {
@Override
public void playMusic(Location location, int id) {
this.player.playEffect(BukkitUtil.getLocation(location), Effect.RECORD_PLAY, id);
this.player.playEffect(BukkitUtil.getLocation(location), Effect.RECORD_PLAY, Material.getMaterial(id));
}
@Override