mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-12-02 07:03:29 +01:00
Merge branch 'development'
This commit is contained in:
commit
91e6fba149
@ -4,7 +4,7 @@ stages:
|
|||||||
variables:
|
variables:
|
||||||
name: "UltimateKits"
|
name: "UltimateKits"
|
||||||
path: "/builds/$CI_PROJECT_PATH"
|
path: "/builds/$CI_PROJECT_PATH"
|
||||||
version: "2.4.10"
|
version: "2.4.11"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
|
@ -136,14 +136,15 @@ public class Kit {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.delay > 0) {
|
if (this.delay > 0) {
|
||||||
if (getNextUse(player) == -1) {
|
if (getNextUse(player) != 0) {
|
||||||
plugin.getLocale().getMessage("event.claim.nottwice").sendPrefixedMessage(player);
|
|
||||||
} else if (getNextUse(player) != 0) {
|
|
||||||
plugin.getLocale().getMessage("event.claim.delay")
|
plugin.getLocale().getMessage("event.claim.delay")
|
||||||
.processPlaceholder("time", Methods.makeReadable(this.getNextUse(player)))
|
.processPlaceholder("time", Methods.makeReadable(this.getNextUse(player)))
|
||||||
.sendPrefixedMessage(player);
|
.sendPrefixedMessage(player);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
} else if (getNextUse(player) == -1) {
|
||||||
|
plugin.getLocale().getMessage("event.claim.nottwice").sendPrefixedMessage(player);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if (giveKit(player)) {
|
if (giveKit(player)) {
|
||||||
EconomyManager.withdrawBalance(player, price);
|
EconomyManager.withdrawBalance(player, price);
|
||||||
@ -153,7 +154,6 @@ public class Kit {
|
|||||||
plugin.getLocale().getMessage("event.claim.purchasesuccess")
|
plugin.getLocale().getMessage("event.claim.purchasesuccess")
|
||||||
.processPlaceholder("kit", showableName).sendPrefixedMessage(player);
|
.processPlaceholder("kit", showableName).sendPrefixedMessage(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void processGenericUse(Player player, boolean forced) {
|
public void processGenericUse(Player player, boolean forced) {
|
||||||
|
Loading…
Reference in New Issue
Block a user