Package com.zetaplugins.lifestealz.api
Class LifeStealZAPIImpl
java.lang.Object
com.zetaplugins.lifestealz.api.LifeStealZAPIImpl
- All Implemented Interfaces:
LifeStealZAPI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEliminate a player.getCustomItem(String customItemID) Get a custom LifeStealZ item by its ID.getCustomItemData(String customItemID) Get the custom data for a custom LifeStealZ item.getCustomItemID(ItemStack item) Get the custom item ID of an item.Get a list of all custom LifeStealZ item IDs.Get the default heart item.getPlayerData(UUID uuid) Get the player data for a player.Get the current version of the LifeStealZ plugin.booleanisBypassActive(Player player) Returns whether the bypass permission is active for the player.booleanisEliminated(UUID uuid) Get if a player is eliminated.booleanRevive a player.voidsavePlayerData(PlayerData playerData) Save the player data for a player.
-
Constructor Details
-
LifeStealZAPIImpl
-
-
Method Details
-
getVersion
Description copied from interface:LifeStealZAPIGet the current version of the LifeStealZ plugin.- Specified by:
getVersionin interfaceLifeStealZAPI- Returns:
- The current version of the LifeStealZ plugin.
-
getPlayerData
Description copied from interface:LifeStealZAPIGet the player data for a player.- Specified by:
getPlayerDatain interfaceLifeStealZAPI- Parameters:
uuid- The UUID of the player to get the data for.- Returns:
- The player data for the player.
-
savePlayerData
Description copied from interface:LifeStealZAPISave the player data for a player.- Specified by:
savePlayerDatain interfaceLifeStealZAPI- Parameters:
playerData- The player data to save.
-
isEliminated
Description copied from interface:LifeStealZAPIGet if a player is eliminated.- Specified by:
isEliminatedin interfaceLifeStealZAPI- Parameters:
uuid- The UUID of the player to check.- Returns:
- True if the player is eliminated, false otherwise.
-
eliminate
Description copied from interface:LifeStealZAPIEliminate a player.- Specified by:
eliminatein interfaceLifeStealZAPI- Parameters:
uuid- The UUID of the player to eliminate.- Returns:
- True if the player was successfully eliminated, false otherwise.
-
revive
Description copied from interface:LifeStealZAPIRevive a player.- Specified by:
revivein interfaceLifeStealZAPI- Parameters:
uuid- The UUID of the player to revive.- Returns:
- True if the player was successfully revived, false otherwise.
-
getCustomItem
Description copied from interface:LifeStealZAPIGet a custom LifeStealZ item by its ID.- Specified by:
getCustomItemin interfaceLifeStealZAPI- Returns:
- The custom LifeStealZ item with the given ID.
-
getCustomItemData
Description copied from interface:LifeStealZAPIGet the custom data for a custom LifeStealZ item.- Specified by:
getCustomItemDatain interfaceLifeStealZAPI- Returns:
- The custom data for the custom LifeStealZ item.
-
getCustomItemIDs
Description copied from interface:LifeStealZAPIGet a list of all custom LifeStealZ item IDs.- Specified by:
getCustomItemIDsin interfaceLifeStealZAPI- Returns:
- A list of all custom LifeStealZ item IDs.
-
getDefaultHeart
Description copied from interface:LifeStealZAPIGet the default heart item.- Specified by:
getDefaultHeartin interfaceLifeStealZAPI- Returns:
- The default heart item.
-
getCustomItemID
Description copied from interface:LifeStealZAPIGet the custom item ID of an item.- Specified by:
getCustomItemIDin interfaceLifeStealZAPI- Parameters:
item- The item to get the ID from.- Returns:
- The custom item ID of the item.
-
isBypassActive
Description copied from interface:LifeStealZAPIReturns whether the bypass permission is active for the player. When active, deaths will not cause heart loss, heart drops, or killer rewards.- Specified by:
isBypassActivein interfaceLifeStealZAPI
-