Class Strikes
java.lang.Object
de.maxbossing.streamervarocore.UTils.Strikes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleandecrementStrikes(UUID uuid, int decrement) Decrements the targeted Players strikes by thr specified amountstatic intReturns the maximum allowed Strikesstatic intgetStrikes(UUID uuid) Get number of Strikes from Playerstatic booleanhasStrikes(UUID uuid) Checks id a Player has Strikesstatic booleanincrementStrikes(UUID uuid, int increment) Increments the targeted Players strikes by the specified amountstatic booleansetMaxStrikes(int maxStrikes) Sets the Maximum allowed Strikes to the specified amountstatic booleansetStrikes(UUID uuid, int newstrikes) Set the Strikes of a Player to an Arbitrary number
-
Constructor Details
-
Strikes
public Strikes()
-
-
Method Details
-
hasStrikes
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
Get number of Strikes from Player- Parameters:
uuid- The uuid of the targeted Player- Returns:
- the amount of Strikes the Player has
-
setStrikes
Set the Strikes of a Player to an Arbitrary number- Parameters:
uuid- The uuid of the targeted Playernewstrikes- the amount of strikes the Player strikes will be set to- Returns:
- true if successfull, false if not successfull
-
incrementStrikes
Increments the targeted Players strikes by the specified amount- Parameters:
uuid- The uuid of the targeted Playerincrement- The amount of strikes the Players should be incremented by- Returns:
- true if successfull, false if not successfull
-
decrementStrikes
Decrements the targeted Players strikes by thr specified amount- Parameters:
uuid- The uuid of the targeted Playerdecrement- 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
-