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