mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-18 09:51:17 +02:00
Add Action.executesAlways .
This commit is contained in:
parent
6f41bad624
commit
eed05511a6
@ -65,4 +65,14 @@ public abstract class Action {
|
|||||||
public boolean needsParameters(){
|
public boolean needsParameters(){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Indicates that the action will be executed in any case (delay, repeat).
|
||||||
|
* executed at all.
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public boolean executesAlways() {
|
||||||
|
return delay == 0 && repeat == 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user