Class Restrictions


  • public class Restrictions
    extends Object
    Handles checking if a player is banned, muted, vanished, etc.
    • Constructor Detail

      • Restrictions

        public Restrictions()
    • Method Detail

      • isMuted

        public static boolean isMuted​(org.bukkit.entity.Player player)
        Check if a player is muted by any of our hooked plugins
        Parameters:
        player - the player to check
        Returns:
        true if muted
      • isBanned

        public static boolean isBanned​(org.bukkit.entity.Player player)
        Check if a player is banned by any of our hooked plugins or by vanilla command
        Parameters:
        player - the player to check
        Returns:
        true if banned
      • isVanished

        public static boolean isVanished​(org.bukkit.entity.Player player)
        Check if a player is vanished
        Parameters:
        player - the player to check
        Returns:
        true if vanished
      • containsCensoredWord

        public static boolean containsCensoredWord​(String string)