Package dev.majek.pc.data
Class Restrictions
- java.lang.Object
-
- dev.majek.pc.data.Restrictions
-
public class Restrictions extends Object
Handles checking if a player is banned, muted, vanished, etc.
-
-
Constructor Summary
Constructors Constructor Description Restrictions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
containsCensoredWord(String string)
static boolean
isBanned(org.bukkit.entity.Player player)
Check if a player is banned by any of our hooked plugins or by vanilla commandstatic boolean
isMuted(org.bukkit.entity.Player player)
Check if a player is muted by any of our hooked pluginsstatic boolean
isVanished(org.bukkit.entity.Player player)
Check if a player is vanished
-
-
-
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)
-
-