Class Strikes

java.lang.Object
de.maxbossing.streamervarocore.UTils.Strikes

public class Strikes extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    decrementStrikes(UUID uuid, int decrement)
    Decrements the targeted Players strikes by thr specified amount
    static int
    Returns the maximum allowed Strikes
    static int
    Get number of Strikes from Player
    static boolean
    Checks id a Player has Strikes
    static boolean
    incrementStrikes(UUID uuid, int increment)
    Increments the targeted Players strikes by the specified amount
    static boolean
    setMaxStrikes(int maxStrikes)
    Sets the Maximum allowed Strikes to the specified amount
    static boolean
    setStrikes(UUID uuid, int newstrikes)
    Set the Strikes of a Player to an Arbitrary number

    Methods inherited from class java.lang.Object

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

    • Strikes

      public Strikes()
  • Method Details

    • hasStrikes

      public static boolean hasStrikes(UUID uuid)
      Checks id a Player has Strikes
      Parameters:
      uuid - The uuid of the targeted Player
      Returns:
      true if the Player has strikes, false if the Player has no strikes
    • getStrikes

      public static int getStrikes(UUID uuid)
      Get number of Strikes from Player
      Parameters:
      uuid - The uuid of the targeted Player
      Returns:
      the amount of Strikes the Player has
    • setStrikes

      public static boolean setStrikes(UUID uuid, int newstrikes)
      Set the Strikes of a Player to an Arbitrary number
      Parameters:
      uuid - The uuid of the targeted Player
      newstrikes - the amount of strikes the Player strikes will be set to
      Returns:
      true if successfull, false if not successfull
    • incrementStrikes

      public static boolean incrementStrikes(UUID uuid, int increment)
      Increments the targeted Players strikes by the specified amount
      Parameters:
      uuid - The uuid of the targeted Player
      increment - The amount of strikes the Players should be incremented by
      Returns:
      true if successfull, false if not successfull
    • decrementStrikes

      public static boolean decrementStrikes(UUID uuid, int decrement)
      Decrements the targeted Players strikes by thr specified amount
      Parameters:
      uuid - The uuid of the targeted Player
      decrement - The amount of strikes the Players should be decremented by
      Returns:
      true if successfull, false if not successfull
    • getMaxStrikes

      public static int getMaxStrikes()
      Returns the maximum allowed Strikes
      Returns:
      The Maximum allowed Strikes
    • setMaxStrikes

      public static boolean setMaxStrikes(int maxStrikes)
      Sets the Maximum allowed Strikes to the specified amount
      Parameters:
      maxStrikes - The new Maximum allowed Strikes
      Returns:
      true if successfull, false if not successfull