Skip to content

Commit

Permalink
add strong deprecation on fake_player
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Feb 10, 2024
1 parent fd5b1d2 commit 0d41e76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Expand Up @@ -117,6 +117,9 @@ public class BukkitImplDeprecations {
// Added 2021/05/05, made current 2022/12/31, made strong 2024/01/02.
public static Warning locationDistanceTag = new StrongWarning("locationDistanceTag", "locationtag.tree_distance is deprecated in favor of location.material.distance");

// Added 2024/02/10.
public static Warning fakePlayer = new StrongWarning("fakePlayer", "The 'fake_player' entity was an experiment that was always redundant due to the availability of Citizens NPCs. If you use 'fake_player' please let us know on Discord ASAP.");

// ==================== Normal deprecations ====================
// These show up every time, and should get the server owner's attention quickly if they check their logs.

Expand Down
Expand Up @@ -11,6 +11,7 @@
import com.denizenscript.denizen.nms.v1_20.impl.entities.EntityFakeArrowImpl;
import com.denizenscript.denizen.nms.v1_20.impl.entities.EntityFakePlayerImpl;
import com.denizenscript.denizen.nms.v1_20.impl.entities.EntityItemProjectileImpl;
import com.denizenscript.denizen.utilities.BukkitImplDeprecations;
import com.denizenscript.denizencore.utilities.CoreUtilities;
import com.denizenscript.denizencore.utilities.debugging.Debug;
import com.mojang.authlib.GameProfile;
Expand Down Expand Up @@ -47,6 +48,7 @@ public ItemProjectile spawnItemProjectile(Location location, ItemStack itemStack
}

public FakePlayer spawnFakePlayer(Location location, String name, String skin, String blob, boolean doAdd) throws IllegalArgumentException {
BukkitImplDeprecations.fakePlayer.warn();
String fullName = name;
String prefix = null;
String suffix = null;
Expand Down

0 comments on commit 0d41e76

Please sign in to comment.