mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-17 05:31:19 +01:00
Show correct bonus/penalty
This commit is contained in:
parent
f7c4afc8dc
commit
4d1b78c99d
@ -405,11 +405,7 @@ public class Jobs extends JavaPlugin {
|
||||
* Get the Data Access Object
|
||||
* @return the DAO
|
||||
*/
|
||||
static int ii = 0;
|
||||
|
||||
public static JobsDAO getJobsDAO() {
|
||||
ii++;
|
||||
Debug.D("db access " + ii);
|
||||
return dao;
|
||||
}
|
||||
|
||||
|
@ -42,9 +42,9 @@ public class browse implements Cmd {
|
||||
|
||||
if (Jobs.getGCManager().useDynamicPayment && Jobs.getGCManager().ShowPenaltyBonus)
|
||||
if (job.getBonus() < 0)
|
||||
builder.append(Jobs.getLanguage().getMessage("command.browse.output.penalty", "[amount]", (int) (job.getBonus() * 100) / 100.0 * -1));
|
||||
builder.append(Jobs.getLanguage().getMessage("command.browse.output.penalty", "[amount]", (int) (job.getBonus() * 100) * -1));
|
||||
else
|
||||
builder.append(Jobs.getLanguage().getMessage("command.browse.output.bonus", "[amount]", (int) (job.getBonus() * 100) / 100.0));
|
||||
builder.append(Jobs.getLanguage().getMessage("command.browse.output.bonus", "[amount]", (int) (job.getBonus() * 100)));
|
||||
|
||||
lines.add(builder.toString());
|
||||
if (!job.getDescription().isEmpty()) {
|
||||
@ -72,7 +72,6 @@ public class browse implements Cmd {
|
||||
|
||||
((Player) sender).openInventory(inv);
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (Jobs.getGCManager().JobsGUIShowChatBrowse) {
|
||||
|
Loading…
Reference in New Issue
Block a user