Class TransferResult
java.lang.Object
me.internalizable.numdrassl.api.player.TransferResult
Result of a player transfer attempt.
-
Method Summary
Modifier and TypeMethodDescriptionstatic TransferResultCreate a failed transfer result.Get the result message.booleanCheck if the transfer was successful.static TransferResultsuccess()Create a successful transfer result.static TransferResultCreate a successful transfer result with a message.
-
Method Details
-
isSuccess
public boolean isSuccess()Check if the transfer was successful.- Returns:
- true if successful
-
getMessage
Get the result message.- Returns:
- the message describing the result
-
success
Create a successful transfer result.- Returns:
- a success result
-
success
Create a successful transfer result with a message.- Parameters:
message- the success message- Returns:
- a success result
-
failure
Create a failed transfer result.- Parameters:
reason- the reason for failure- Returns:
- a failure result
-