mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 22:17:17 +00:00
Sethome and home implementation
This commit is contained in:
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;
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user