Package com.griefdefender.api.claim
Enum Class ClaimResultType
- All Implemented Interfaces:
Serializable,Comparable<ClaimResultType>,Constable
Used to provide more information to a plugin when a claim
action is successful or cancelled.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReturned if a claim's y level goes above a player'sPlayerData.getMaxClaimLevel().Returned if a claim's y level goes below a player'sPlayerData.getMinClaimLevel().Returned if a claim's x size goes below a player'sPlayerData.getMinClaimX(ClaimType).Returned if a claim's y size goes below a player'sPlayerData.getMinClaimY(ClaimType).Returned if a claim's z size goes below a player'sPlayerData.getMinClaimZ(ClaimType).Returned if a claim already exists.Returns one or more claims that were cancelled.Returned if a claim is not found.Returned if claims are not enabled in a world.Returned if acould not be located.invalid reference
ClanReturned if no economy account was found.Returned if required claim funds could not be deposited into an.invalid reference
AccountReturned if a land purchase is made without enough funds.Returned if required claim funds could not be withdrawn from an.invalid reference
AccountReturned if a player attempts to create a claim past their.invalid reference
PlayerData#getCreateClaimLimit()Returned if a player attempts to create or resize a claim past theirPlayerData.getMaxClaimableBlocks().Returned if a claim's x size exceeds a player'sPlayerData.getMaxClaimX(ClaimType).Returned if a claim's y size exceeds a player'sPlayerData.getMaxClaimY(ClaimType).Returned if a claim's z size exceeds a player'sPlayerData.getMaxClaimZ(ClaimType).Returned if a claim action did not complete successfully.Returned if a player doesn't have enough claim blocks to perform a claim action.Returned if a player doesn't have enough funds to perform an economy action.Returned if a claim is resized or created outside the world border.Returns a list of overlapping claims.Returned if a renter attempts to modify a claim such as resize or delete.Returned if a claim is requested for deletion with a rent balance.Returned if a claim action requires an owner's permission.Returns successful claim in result.Returned if a world could not be loaded by uuid.Returned if an attempted claim action uses wrongClaimType. -
Method Summary
Modifier and TypeMethodDescriptionstatic ClaimResultTypeReturns the enum constant of this class with the specified name.static ClaimResultType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLAIM_ALREADY_EXISTS
Returned if a claim already exists. -
CLAIM_NOT_FOUND
Returned if a claim is not found. -
CLAIMS_DISABLED
Returned if claims are not enabled in a world. -
ABOVE_MAX_LEVEL
Returned if a claim's y level goes above a player'sPlayerData.getMaxClaimLevel(). -
BELOW_MIN_LEVEL
Returned if a claim's y level goes below a player'sPlayerData.getMinClaimLevel(). -
BELOW_MIN_SIZE_X
Returned if a claim's x size goes below a player'sPlayerData.getMinClaimX(ClaimType). -
BELOW_MIN_SIZE_Y
Returned if a claim's y size goes below a player'sPlayerData.getMinClaimY(ClaimType). -
BELOW_MIN_SIZE_Z
Returned if a claim's z size goes below a player'sPlayerData.getMinClaimZ(ClaimType). -
CLAN_NOT_FOUND
Returned if acould not be located.invalid reference
Clan -
ECONOMY_ACCOUNT_NOT_FOUND
Returned if no economy account was found. -
ECONOMY_NOT_ENOUGH_FUNDS
Returned if a land purchase is made without enough funds. -
ECONOMY_DEPOSIT_FAIL
Returned if required claim funds could not be deposited into an.invalid reference
Account -
ECONOMY_WITHDRAW_FAIL
Returned if required claim funds could not be withdrawn from an.invalid reference
Account -
EXCEEDS_MAX_CLAIMABLE_BLOCKS
Returned if a player attempts to create or resize a claim past theirPlayerData.getMaxClaimableBlocks(). -
EXCEEDS_MAX_CLAIM_LIMIT
Returned if a player attempts to create a claim past their.invalid reference
PlayerData#getCreateClaimLimit() -
EXCEEDS_MAX_SIZE_X
Returned if a claim's x size exceeds a player'sPlayerData.getMaxClaimX(ClaimType). -
EXCEEDS_MAX_SIZE_Y
Returned if a claim's y size exceeds a player'sPlayerData.getMaxClaimY(ClaimType). -
EXCEEDS_MAX_SIZE_Z
Returned if a claim's z size exceeds a player'sPlayerData.getMaxClaimZ(ClaimType). -
FAILURE
Returned if a claim action did not complete successfully. -
INSUFFICIENT_CLAIM_BLOCKS
Returned if a player doesn't have enough claim blocks to perform a claim action. -
NOT_ENOUGH_FUNDS
Returned if a player doesn't have enough funds to perform an economy action. -
OUTSIDE_WORLD_BORDER
Returned if a claim is resized or created outside the world border. -
RENT_CLAIM_MODIFY
Returned if a renter attempts to modify a claim such as resize or delete. -
RENT_UNPAID_BALANCE
Returned if a claim is requested for deletion with a rent balance. -
REQUIRES_OWNER
Returned if a claim action requires an owner's permission. -
WORLD_NOT_FOUND
Returned if a world could not be loaded by uuid. -
WRONG_CLAIM_TYPE
Returned if an attempted claim action uses wrongClaimType. -
OVERLAPPING_CLAIM
Returns a list of overlapping claims. SeeClaimResult.getClaims() -
CLAIM_EVENT_CANCELLED
Returns one or more claims that were cancelled. Note: If deleting a claim with child claims, this may return a list of one or more claims in result that could not be deleted due to event cancellations. -
SUCCESS
Returns successful claim in result.Examples of results:
- Created claim
- Deleted claim
- Resized claim
- Transferred claim
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-