Class PlayerUtils

java.lang.Object
me.despical.commons.miscellaneous.PlayerUtils

public class PlayerUtils extends Object
Since:
1.1.9

Created at 03.11.2020

Author:
Despical
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    hidePlayer(org.bukkit.entity.Player to, org.bukkit.entity.Player p, org.bukkit.plugin.java.JavaPlugin plugin)
    Hides given player to given other player to avoid using deprecated methods.
    static void
    showPlayer(org.bukkit.entity.Player to, org.bukkit.entity.Player p, org.bukkit.plugin.java.JavaPlugin plugin)
    Shows given player to given other player to avoid using deprecated methods.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • hidePlayer

      public static void hidePlayer(org.bukkit.entity.Player to, org.bukkit.entity.Player p, org.bukkit.plugin.java.JavaPlugin plugin)
      Hides given player to given other player to avoid using deprecated methods.
      Parameters:
      to - player to hide
      p - player to be hidden
      plugin - instance for method to avoid deprecation
    • showPlayer

      public static void showPlayer(org.bukkit.entity.Player to, org.bukkit.entity.Player p, org.bukkit.plugin.java.JavaPlugin plugin)
      Shows given player to given other player to avoid using deprecated methods.
      Parameters:
      to - player to show
      p - player to be shown
      plugin - instance for method to avoid deprecation