<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">java.lang.Object</a>
</span><spanclass="modifiers">public class </span><spanclass="element-name type-name-label">Ban</span>
<spanclass="extends-implements">extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></span></div>
<divclass="block">The ban object</div>
<dlclass="notes">
<dt>See Also:</dt>
<dd>
<ulclass="see-list">
<li><ahref="BanManager.html"title="class in dev.plex.banning"><code>BanManager</code></a></li>
</ul>
</dd>
</dl>
</section>
<sectionclass="summary">
<ulclass="summary-list">
<!-- =========== FIELD SUMMARY =========== -->
<li>
<sectionclass="field-summary"id="field-summary">
<h2>Field Summary</h2>
<divclass="caption"><span>Fields</span></div>
<divclass="summary-table three-column-summary">
<divclass="table-header col-first">Modifier and Type</div>
<divclass="block">Whether the ban is active or not</div>
</div>
<divclass="col-first odd-row-color"><code>private <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html"title="class or interface in java.util"class="external-link">UUID</a></code></div>
<divclass="block">The unique ID of the person who banned the player (can be null)</div>
</div>
<divclass="col-first even-row-color"><code>private <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/LocalDateTime.html"title="class or interface in java.time"class="external-link">LocalDateTime</a></code></div>
<divclass="col-first odd-row-color"><code>private <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="block">Gets the id of the ban (first 8 characters of a UUID + random 6 letters)</div>
</div>
<divclass="col-first even-row-color"><code>private <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="block">The IP of the banned player</div>
</div>
<divclass="col-first odd-row-color"><code>private <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="col-first even-row-color"><code>private <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html"title="class or interface in java.util"class="external-link">UUID</a></code></div>
<divclass="col-constructor-name odd-row-color"><code><ahref="#%3Cinit%3E(java.lang.String,java.util.UUID,java.util.UUID,java.lang.String,java.lang.String,java.time.LocalDateTime)"class="member-name-link">Ban</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> id,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html"title="class or interface in java.util"class="external-link">UUID</a> uuid,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html"title="class or interface in java.util"class="external-link">UUID</a> banner,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> ip,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> reason,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/LocalDateTime.html"title="class or interface in java.time"class="external-link">LocalDateTime</a> endDate)</code></div>
<divclass="col-constructor-name even-row-color"><code><ahref="#%3Cinit%3E(java.util.UUID,java.util.UUID,java.lang.String,java.lang.String,java.time.LocalDateTime)"class="member-name-link">Ban</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html"title="class or interface in java.util"class="external-link">UUID</a> uuid,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html"title="class or interface in java.util"class="external-link">UUID</a> banner,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> ip,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> reason,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/LocalDateTime.html"title="class or interface in java.time"class="external-link">LocalDateTime</a> endDate)</code></div>
<h3id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()"title="class or interface in java.lang"class="external-link">clone</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"title="class or interface in java.lang"class="external-link">equals</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()"title="class or interface in java.lang"class="external-link">finalize</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()"title="class or interface in java.lang"class="external-link">getClass</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()"title="class or interface in java.lang"class="external-link">hashCode</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()"title="class or interface in java.lang"class="external-link">notify</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()"title="class or interface in java.lang"class="external-link">notifyAll</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString()"title="class or interface in java.lang"class="external-link">toString</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)"title="class or interface in java.lang"class="external-link">wait</a></code></div>
</span><spanclass="modifiers">private</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">id</span></div>
<divclass="block">Gets the id of the ban (first 8 characters of a UUID + random 6 letters)</div>
</span><spanclass="modifiers">private</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html"title="class or interface in java.util"class="external-link">UUID</a></span> <spanclass="element-name">uuid</span></div>
<divclass="block">The unique ID of the player who was banned</div>
</span><spanclass="modifiers">private</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html"title="class or interface in java.util"class="external-link">UUID</a></span> <spanclass="element-name">banner</span></div>
<divclass="block">The unique ID of the person who banned the player (can be null)</div>
</section>
</li>
<li>
<sectionclass="detail"id="ip">
<h3>ip</h3>
<divclass="member-signature"><spanclass="modifiers">private</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">ip</span></div>
<divclass="block">The IP of the banned player</div>
</section>
</li>
<li>
<sectionclass="detail"id="reason">
<h3>reason</h3>
<divclass="member-signature"><spanclass="modifiers">private</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">reason</span></div>
<divclass="block">The reason for the ban</div>
</section>
</li>
<li>
<sectionclass="detail"id="endDate">
<h3>endDate</h3>
<divclass="member-signature"><spanclass="modifiers">private</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/LocalDateTime.html"title="class or interface in java.time"class="external-link">LocalDateTime</a></span> <spanclass="element-name">endDate</span></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">Ban</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html"title="class or interface in java.util"class="external-link">UUID</a> uuid,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html"title="class or interface in java.util"class="external-link">UUID</a> banner,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> ip,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> reason,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/LocalDateTime.html"title="class or interface in java.time"class="external-link">LocalDateTime</a> endDate)</span></div>
<divclass="block">Creates a ban object</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>uuid</code> - The unique ID of the player being banned</dd>
<dd><code>banner</code> - The unique ID of the sender banning the player</dd>
<dd><code>ip</code> - The IP of the player being banned</dd>
<dd><code>reason</code> - The reason for the ban</dd>
<dd><code>endDate</code> - When the ban will expire</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">Ban</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> id,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html"title="class or interface in java.util"class="external-link">UUID</a> uuid,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html"title="class or interface in java.util"class="external-link">UUID</a> banner,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> ip,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> reason,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/LocalDateTime.html"title="class or interface in java.time"class="external-link">LocalDateTime</a> endDate)</span></div>
<divclass="block">Creates a ban object</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>id</code> - The custom ID of the ban</dd>
<dd><code>uuid</code> - The unique ID of the player being banned</dd>
<dd><code>banner</code> - The unique ID of the sender banning the player</dd>
<dd><code>ip</code> - The IP of the player being banned</dd>
<dd><code>reason</code> - The reason for the ban</dd>
<dd><code>endDate</code> - When the ban will expire</dd>