mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Networking rework, further refactoring
This commit is contained in:
1 parent
1cebdac9b8
commit
4c90e5498c
88 files changed
+1116
-1364
No files matched your search
@@ -1,7 +1,7 @@
|
||||
package net.william278.huskhomes.hook;
|
||||
|
||||
import net.william278.huskhomes.HuskHomes;
|
||||
import net.william278.huskhomes.player.OnlineUser;
|
||||
import net.william278.huskhomes.user.OnlineUser;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
@@ -37,4 +37,26 @@ public abstract class EconomyHook extends PluginHook {
|
||||
*/
|
||||
public abstract String formatCurrency(final double amount);
|
||||
|
||||
/**
|
||||
* Identifies actions that incur an economic cost if economy is enabled
|
||||
*/
|
||||
public enum EconomyAction {
|
||||
ADDITIONAL_HOME_SLOT(100.00, "economy_action_additional_home_slot"),
|
||||
MAKE_HOME_PUBLIC(50.00, "economy_action_make_home_public"),
|
||||
RANDOM_TELEPORT(25.00, "economy_action_random_teleport"),
|
||||
BACK_COMMAND(0.00, "economy_action_back_command");
|
||||
|
||||
private final double defaultCost;
|
||||
@NotNull
|
||||
public final String confirmationLocaleId;
|
||||
|
||||
EconomyAction(final double defaultCost, @NotNull String confirmationLocaleId) {
|
||||
this.defaultCost = defaultCost;
|
||||
this.confirmationLocaleId = confirmationLocaleId;
|
||||
}
|
||||
|
||||
public double getDefaultCost() {
|
||||
return defaultCost;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user