Sethome and home implementation

This commit is contained in:
William committed 2022-05-28 00:01:09 +01:00
1 parent bafd3837dd
commit ace4e48827
12 files changed
+413 -73

No files matched your search

@@ -3,7 +3,9 @@ package net.william278.huskhomes.player;
import de.themoep.minedown.MineDown;
import net.william278.huskhomes.position.Location;
import net.william278.huskhomes.position.Position;
import net.william278.huskhomes.position.Server;
import net.william278.huskhomes.teleport.TeleportResult;
import net.william278.huskhomes.util.EconomyUnsupportedException;
import org.jetbrains.annotations.NotNull;
import java.util.UUID;
@@ -85,4 +87,20 @@ public interface Player {
*/
CompletableFuture<Integer> getFreeHomes();
/**
* Get this player's economy balance
*
* @return the player's economy balance
* @throws EconomyUnsupportedException if the economy integration is not enabled
*/
double getEconomyBalance() throws EconomyUnsupportedException;
/**
* Deduct money from this player's economy balance
*
* @throws EconomyUnsupportedException if the economy integration is not enabled
*/
void deductEconomyBalance() throws EconomyUnsupportedException;
}