Bracket style fix.

Dieser Commit ist enthalten in:
Leandro 2021-07-03 13:54:55 -03:00
Ursprung 7a9b974c77
Commit 85544634b8
2 geänderte Dateien mit 2 neuen und 5 gelöschten Zeilen

Datei anzeigen

@ -31,8 +31,7 @@ public class HeadDB extends JavaPlugin {
config = LightningBuilder.fromPath("config.yml", "plugins/HeadDB").createConfig().addDefaultsFromInputStream(); config = LightningBuilder.fromPath("config.yml", "plugins/HeadDB").createConfig().addDefaultsFromInputStream();
playerdata = LightningBuilder.fromPath("playerdata.json", "plugins/HeadDB").createJson(); playerdata = LightningBuilder.fromPath("playerdata.json", "plugins/HeadDB").createJson();
if (config.getBoolean("economy.enable")) if (config.getBoolean("economy.enable")) {
{
Log.debug("Starting economy..."); Log.debug("Starting economy...");
this.economy = this.setupEconomy(); this.economy = this.setupEconomy();
if (this.economy == null) { if (this.economy == null) {

Datei anzeigen

@ -226,9 +226,7 @@ public class InventoryUtils {
player.sendMessage(String.format("You do not have enough %s to purchase %d x %s.", economy.currencyNamePlural(), amount, description)); player.sendMessage(String.format("You do not have enough %s to purchase %d x %s.", economy.currencyNamePlural(), amount, description));
return; return;
} }
} } else {
else
{
player.sendMessage(String.format("You purchased %d x %s for free!", amount, description)); player.sendMessage(String.format("You purchased %d x %s for free!", amount, description));
} }
} }