mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Close #18 - Added option to charge per use of /back command
This commit is contained in:
1 parent
4f7b4a7e18
commit
da30aa9076
11 files changed
+62
-9
No files matched your search
@@ -51,6 +51,7 @@ public class Settings {
|
||||
private double setHomeCost;
|
||||
private double publicHomeCost;
|
||||
private double rtpCost;
|
||||
private double backCost;
|
||||
|
||||
// Vanished player checks
|
||||
private boolean checkVanishedPlayers;
|
||||
@@ -154,6 +155,7 @@ public class Settings {
|
||||
this.setHomeCost = config.getDouble("economy_integration.costs.additional_home_slot");
|
||||
this.publicHomeCost = config.getDouble("economy_integration.costs.make_home_public");
|
||||
this.rtpCost = config.getDouble("economy_integration.costs.random_teleport");
|
||||
this.backCost = config.getDouble("economy_integration.costs.back");
|
||||
|
||||
// Retrieve sounds used in plugin; if invalid, use defaults.
|
||||
try {
|
||||
@@ -321,6 +323,10 @@ public class Settings {
|
||||
return setHomeCost;
|
||||
}
|
||||
|
||||
public double getBackCost() {
|
||||
return backCost;
|
||||
}
|
||||
|
||||
public double getPublicHomeCost() {
|
||||
return publicHomeCost;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user