mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-02 05:21:47 +01:00
Fixes for /npc command sequential
This commit is contained in:
parent
1fd6ccbad9
commit
244496dca3
@ -125,11 +125,12 @@ public class CommandTrait extends Trait {
|
||||
for (NPCCommand command : commandList) {
|
||||
if (sequential) {
|
||||
PlayerNPCCommand info = cooldowns.get(player.getUniqueId().toString());
|
||||
if (info != null && command.id < info.lastUsedId) {
|
||||
if (info != null && command.id <= info.lastUsedId) {
|
||||
if (info.lastUsedId == max) {
|
||||
info.lastUsedId = -1;
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
Runnable runnable = new Runnable() {
|
||||
|
Loading…
Reference in New Issue
Block a user