Package com.griefdefender.api.event
Interface RemoveClaimEvent
- All Superinterfaces:
net.kyori.event.Cancellable,ClaimEvent,Event
- All Known Subinterfaces:
RemoveClaimEvent.Abandon,RemoveClaimEvent.Delete,RemoveClaimEvent.Expire
An event that is fired after a
Claim has been removed.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceFired when a claim is abandoned.static interfaceFired when a claim is deleted.static interfaceFired when a claim has expired. -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether this claim will restore on removal.voidshouldRestore(boolean restore) Whether this claim should restore back to original state on removal.
Note: This setting will be ignored if auto-restore functionality is disabled.
If nature restore is enabled, this will restore claim back to world gen state.
If schematic restore is enabled, this will restore claim back to claim creationClaimSchematic.Methods inherited from interface net.kyori.event.Cancellable
cancelled, cancelledMethods inherited from interface com.griefdefender.api.event.ClaimEvent
getClaim, getClaims, getMessage, getSource, getSourceUser, setMessage
-
Method Details
-
isRestoring
boolean isRestoring()Whether this claim will restore on removal.- Returns:
- Whether this claim will restore on removal.
-
shouldRestore
void shouldRestore(boolean restore) Whether this claim should restore back to original state on removal.
Note: This setting will be ignored if auto-restore functionality is disabled.
If nature restore is enabled, this will restore claim back to world gen state.
If schematic restore is enabled, this will restore claim back to claim creationClaimSchematic.- Parameters:
shouldRestore- Whether this claim should restore back to original state
-