First commit, converted to a truely maven project and switching over to my own repository for better management.
This commit is contained in:
32
src/main/java/com/graywolf336/jail/beans/Prisoner.java
Normal file
32
src/main/java/com/graywolf336/jail/beans/Prisoner.java
Normal file
@ -0,0 +1,32 @@
|
||||
package com.graywolf336.jail.beans;
|
||||
|
||||
/**
|
||||
* Represents a Prisoner, player who is jailed, and contains all the information about him/her.
|
||||
*
|
||||
* @author graywolf336
|
||||
* @since 2.x.x
|
||||
* @version 2.0.0
|
||||
*/
|
||||
public class Prisoner {
|
||||
private String name;
|
||||
private boolean muted;
|
||||
|
||||
/**
|
||||
* Creates a new prisoner with a name and whether they are muted or not.
|
||||
*
|
||||
* @param name
|
||||
* @param muted
|
||||
*/
|
||||
public Prisoner(String name, boolean muted) {
|
||||
this.name = name;
|
||||
this.muted = muted;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public boolean isMuted() {
|
||||
return this.muted;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user