diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index 3229ee50fc..cda7cb3e22 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -532,15 +532,6 @@ public interface World { */ public List getPopulators(); - /** - * Plays an effect to just one player. - * - * @param player the player to play the effect for - * @param effect the {@link Effect} - * @param data a data bit needed for the RECORD_PLAY, SMOKE, and STEP_SOUND sounds - */ - public void playEffect(Player player, Effect effect, int data); - /** * Plays an effect to all players within a default radius around a given location. * diff --git a/paper-api/src/main/java/org/bukkit/entity/Player.java b/paper-api/src/main/java/org/bukkit/entity/Player.java index d2304386e6..ddfd0ed7a1 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Player.java +++ b/paper-api/src/main/java/org/bukkit/entity/Player.java @@ -2,6 +2,7 @@ package org.bukkit.entity; import java.net.InetSocketAddress; import org.bukkit.Achievement; +import org.bukkit.Effect; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.Statistic; @@ -141,6 +142,15 @@ public interface Player extends HumanEntity, CommandSender { * @return */ public void playNote(Location loc, byte instrument, byte note); + + /** + * Plays an effect to just this player. + * + * @param loc the player to play the effect for + * @param effect the {@link Effect} + * @param data a data bit needed for the RECORD_PLAY, SMOKE, and STEP_SOUND sounds + */ + public void playEffect(Location loc, Effect effect, int data); /** * Send a block change. This fakes a block change packet for a user at