mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-25 20:25:19 +01:00
Fix for commands with multiple preconditions
This commit is contained in:
parent
dbd9cdf1f1
commit
c3791d162f
@ -300,8 +300,9 @@ public class CommandTrait extends Trait {
|
||||
}
|
||||
}
|
||||
runCommand(player, command);
|
||||
if (executionMode == ExecutionMode.SEQUENTIAL) {
|
||||
playerTracking.get(player.getUniqueId()).lastUsedHand = hand;
|
||||
if (executionMode == ExecutionMode.SEQUENTIAL
|
||||
&& (info = playerTracking.get(player.getUniqueId())) != null) {
|
||||
info.lastUsedHand = hand;
|
||||
}
|
||||
if (executionMode == ExecutionMode.SEQUENTIAL || (charged != null && !charged))
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user