Add the reason the prisoner was jailed to the events.
This commit is contained in:
		@@ -99,6 +99,20 @@ public class PrePrisonerJailedEvent extends Event implements Cancellable {
 | 
			
		||||
        this.jailer = jailer;
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    /** Gets the reason the player was jailed for. */
 | 
			
		||||
    public String getReason() {
 | 
			
		||||
        return this.prisoner.getReason();
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    /**
 | 
			
		||||
     * Sets the reason the prisoner was jailed for.
 | 
			
		||||
     * 
 | 
			
		||||
     * @param reason the prisoner was jailed for.
 | 
			
		||||
     */
 | 
			
		||||
    public void setReason(String reason) {
 | 
			
		||||
        this.prisoner.setReason(reason);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /** Checks whether this event is cancelled or not. */
 | 
			
		||||
    public boolean isCancelled() {
 | 
			
		||||
        return this.cancelled;
 | 
			
		||||
 
 | 
			
		||||
@@ -73,6 +73,11 @@ public class PrisonerJailedEvent extends Event {
 | 
			
		||||
        return this.prisoner.getJailer();
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    /** Gets the reason the prisoner was jailed. */
 | 
			
		||||
    public String getReason() {
 | 
			
		||||
        return this.prisoner.getReason();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static HandlerList getHandlerList() {
 | 
			
		||||
        return handlers;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user