Add isJailedForever to the prisoner & use it in pay
This commit is contained in:
@ -15,7 +15,7 @@ import com.graywolf336.jail.enums.Lang;
|
||||
*
|
||||
* @author graywolf336
|
||||
* @since 2.x.x
|
||||
* @version 3.1.0
|
||||
* @version 3.1.1
|
||||
*/
|
||||
public class Prisoner {
|
||||
private String uuid, name, jailer, reason, inventory, armor;
|
||||
@ -226,6 +226,11 @@ public class Prisoner {
|
||||
this.muted = muted;
|
||||
this.changed = true;
|
||||
}
|
||||
|
||||
/** Gets whether the prisoner is jailed forever or not. */
|
||||
public boolean isJailedForever() {
|
||||
return this.time == -1;
|
||||
}
|
||||
|
||||
/** Gets the remaining time the prisoner has. */
|
||||
public long getRemainingTime() {
|
||||
|
Reference in New Issue
Block a user