Package de.kiridevs.kiricore.managers
Class PvpManager
java.lang.Object
de.kiridevs.kiricore.managers.PvpManager
public class PvpManager extends Object
A static class used to manage the current state of PVP
(enabled or disabled)
-
Field Summary
Fields Modifier and Type Field Description static ArrayList<String>disableStringsA list including the strings that are recognized as arguments for /pvp to disallow PVPstatic ArrayList<String>enableStringsA list including the strings that are recognized as arguments for /pvp to allow PVP -
Constructor Summary
Constructors Constructor Description PvpManager() -
Method Summary
Modifier and Type Method Description static booleangetAllowPvp()Allows checking for the current state of PVPstatic voidsetAllowPvp(boolean doAllowPvp)Allows changing of the current PVP status.
-
Field Details
-
enableStrings
A list including the strings that are recognized as arguments for /pvp to allow PVP -
disableStrings
A list including the strings that are recognized as arguments for /pvp to disallow PVP
-
-
Constructor Details
-
PvpManager
public PvpManager()
-
-
Method Details
-
getAllowPvp
public static boolean getAllowPvp()Allows checking for the current state of PVP- Returns:
- The current state of whether PVP is allowed or not.
-
setAllowPvp
public static void setAllowPvp(boolean doAllowPvp)Allows changing of the current PVP status. Also fires a ChangeAllowPvpStatusEvent- Parameters:
doAllowPvp- The new state to set PVP to
-