mirror of
https://github.com/Zrips/Jobs.git
synced 2025-02-18 05:11:32 +01:00
Change accumulated point amount with editpoints take command
This commit is contained in:
parent
7d9f90647e
commit
3022d7cfa5
@ -170,10 +170,8 @@ public class PermissionManager {
|
||||
|
||||
if (force || getDelay(perm) + permInfo.getTime() < System.currentTimeMillis()) {
|
||||
|
||||
CMIDebug.c("get", force, getDelay(perm) + permInfo.getTime() < System.currentTimeMillis(), getDelay(perm), permInfo.getTime(), perm);
|
||||
|
||||
Map<String, Boolean> perms = getAll(player, perm);
|
||||
for (Map.Entry<String, Boolean> permission : perms.entrySet()) {
|
||||
for (Map.Entry<String, Boolean> permission : perms.entrySet()) {
|
||||
if (!permission.getKey().startsWith(perm) || !permission.getValue())
|
||||
continue;
|
||||
try {
|
||||
|
@ -118,7 +118,7 @@ public class skipquest implements Cmd {
|
||||
20 * Jobs.getGCManager().ConfirmExpiryTime);
|
||||
|
||||
Language.sendMessage(sender, "command.skipquest.confirmationNeed", "[questName]",
|
||||
job.getDisplayName(), "[time]", Jobs.getGCManager().ConfirmExpiryTime);
|
||||
old.getQuestName(), "[time]", Jobs.getGCManager().ConfirmExpiryTime);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -26,6 +26,7 @@ public class PlayerPoints {
|
||||
|
||||
public void takePoints(double points) {
|
||||
current -= points;
|
||||
total -= points;
|
||||
}
|
||||
|
||||
public boolean havePoints(double points) {
|
||||
|
@ -130,6 +130,7 @@ import net.Zrips.CMILib.Entities.CMIEntityType;
|
||||
import net.Zrips.CMILib.Items.CMIItemStack;
|
||||
import net.Zrips.CMILib.Items.CMIMaterial;
|
||||
import net.Zrips.CMILib.Locale.LC;
|
||||
import net.Zrips.CMILib.Logs.CMIDebug;
|
||||
import net.Zrips.CMILib.Messages.CMIMessages;
|
||||
import net.Zrips.CMILib.Version.Version;
|
||||
|
||||
@ -447,6 +448,7 @@ public final class JobsPaymentListener implements Listener {
|
||||
Jobs.perform(fp.getPlayer(), fp.getInfo(), fp.getPayment(), fp.getJob(), block, null, null);
|
||||
return;
|
||||
}
|
||||
|
||||
Jobs.FASTPAYMENT.remove(player.getUniqueId());
|
||||
}
|
||||
if (!payForItemDurabilityLoss(player))
|
||||
|
Loading…
Reference in New Issue
Block a user