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 Details

    • enableStrings

      public static final ArrayList<String> enableStrings
      A list including the strings that are recognized as arguments for /pvp to allow PVP
    • disableStrings

      public static final ArrayList<String> disableStrings
      A list including the strings that are recognized as arguments for /pvp to disallow PVP
  • Constructor Details

  • 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