<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>
<divclass="type-signature"><spanclass="modifiers">public class </span><spanclass="element-name type-name-label">DataUtils</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="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><ahref="#getPlayer(java.lang.String)"class="member-name-link">getPlayer</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> username)</code></div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <ahref="../player/PlexPlayer.html"title="class in dev.plex.player">PlexPlayer</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><ahref="#getPlayer(java.util.UUID)"class="member-name-link">getPlayer</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)</code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <ahref="../player/PlexPlayer.html"title="class in dev.plex.player">PlexPlayer</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><ahref="#getPlayerByIP(java.lang.String)"class="member-name-link">getPlayerByIP</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> ip)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><ahref="#hasPlayedBefore(java.lang.String)"class="member-name-link">hasPlayedBefore</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> username)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><ahref="#hasPlayedBefore(java.util.UUID)"class="member-name-link">hasPlayedBefore</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)</code></div>
<divclass="block">Updates a player's information in the database</div>
</div>
</div>
</div>
</div>
<divclass="inherited-list">
<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>
<divclass="member-signature"><spanclass="modifiers">public static</span> <spanclass="return-type">boolean</span> <spanclass="element-name">hasPlayedBefore</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)</span></div>
<divclass="block">Checks if the player has been on the server before</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>uuid</code> - The unique ID of the player</dd>
<dt>Returns:</dt>
<dd>true if the player is registered in the database</dd>
<divclass="member-signature"><spanclass="modifiers">public static</span> <spanclass="return-type">boolean</span> <spanclass="element-name">hasPlayedBefore</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> username)</span></div>
<divclass="member-signature"><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="../player/PlexPlayer.html"title="class in dev.plex.player">PlexPlayer</a></span> <spanclass="element-name">getPlayer</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)</span></div>
<divclass="block">Gets a player from cache or from the database</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>uuid</code> - The unique ID of the player</dd>
<dt>Returns:</dt>
<dd>a PlexPlayer object</dd>
<dt>See Also:</dt>
<dd>
<ulclass="see-list">
<li><ahref="../player/PlexPlayer.html"title="class in dev.plex.player"><code>PlexPlayer</code></a></li>
<divclass="member-signature"><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="../player/PlexPlayer.html"title="class in dev.plex.player">PlexPlayer</a></span> <spanclass="element-name">getPlayer</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> username)</span></div>
<divclass="member-signature"><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="../player/PlexPlayer.html"title="class in dev.plex.player">PlexPlayer</a></span> <spanclass="element-name">getPlayerByIP</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> ip)</span></div>
<divclass="member-signature"><spanclass="modifiers">public static</span> <spanclass="return-type">void</span> <spanclass="element-name">update</span><wbr><spanclass="parameters">(<ahref="../player/PlexPlayer.html"title="class in dev.plex.player">PlexPlayer</a> plexPlayer)</span></div>
<divclass="block">Updates a player's information in the database</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>plexPlayer</code> - The PlexPlayer to update</dd>
<dt>See Also:</dt>
<dd>
<ulclass="see-list">
<li><ahref="../player/PlexPlayer.html"title="class in dev.plex.player"><code>PlexPlayer</code></a></li>
<divclass="member-signature"><spanclass="modifiers">public static</span> <spanclass="return-type">void</span> <spanclass="element-name">insert</span><wbr><spanclass="parameters">(<ahref="../player/PlexPlayer.html"title="class in dev.plex.player">PlexPlayer</a> plexPlayer)</span></div>
<divclass="block">Inserts a player's information in the database</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>plexPlayer</code> - The PlexPlayer to insert</dd>
<dt>See Also:</dt>
<dd>
<ulclass="see-list">
<li><ahref="../player/PlexPlayer.html"title="class in dev.plex.player"><code>PlexPlayer</code></a></li>