Skip to content

Commit

Permalink
Fixes a missing "API" method in Likes addon.
Browse files Browse the repository at this point in the history
  • Loading branch information
BONNe committed Apr 25, 2022
1 parent e98c98e commit 470d740
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main/java/world/bentobox/visit/managers/VisitAddonManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,20 @@ else if (this.addon.getVaultHook() != null && this.addon.getVaultHook().hook())
* @param island Island where user need to be teleported.
* @return {@code true} if teleportation can be performed, {@code false} otherwise.
*/
public boolean preprocessTeleportation(User user, Island island)
{
return this.preprocessTeleportation(user, island, false);
}


/**
* This method checks if teleportation can be performed.
*
* @param user Targeted user who need to be teleported.
* @param island Island where user need to be teleported.
* @param silent Should the message be sent to the player why teleportation is not possible.
* @return {@code true} if teleportation can be performed, {@code false} otherwise.
*/
public boolean preprocessTeleportation(User user, Island island, boolean silent)
{
double payment = this.getTaxAmount() + this.getIslandEarnings(island);
Expand Down

0 comments on commit 470d740

Please sign in to comment.