geforkt von Mirrors/HeadDB
fix messages
Dieser Commit ist enthalten in:
Ursprung
a90023a26a
Commit
d82d368e77
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>tsp.headdb</groupId>
|
||||
<artifactId>HeadDB</artifactId>
|
||||
<version>4.4.0</version>
|
||||
<version>4.4.1</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<properties>
|
||||
|
@ -337,15 +337,14 @@ public class InventoryUtils {
|
||||
Utils.sendMessage(player, String.format(localization.getMessage("purchasedHead"), amount, description, cost));
|
||||
Utils.playSound(player, "paid");
|
||||
result.accept(true);
|
||||
return;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
Utils.sendMessage(player, String.format(localization.getMessage("notEnoughMoney"), amount, description));
|
||||
Utils.playSound(player, "unavailable");
|
||||
result.accept(false);
|
||||
}
|
||||
});
|
||||
|
||||
Utils.sendMessage(player, String.format(localization.getMessage("notEnoughMoney"), amount, description));
|
||||
Utils.playSound(player, "unavailable");
|
||||
result.accept(false);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -379,12 +378,8 @@ public class InventoryUtils {
|
||||
}
|
||||
|
||||
private static void runPurchaseCommands() {
|
||||
// Backwards compatability
|
||||
if (!config.contains("commands.purchase")) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (String cmd : config.getStringList("commands.purchase")) {
|
||||
if (cmd.isEmpty()) continue;
|
||||
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), cmd);
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren