mirror of
https://github.com/ME1312/SubServers-2.git
synced 2024-11-22 02:08:27 +01:00
Lang API Rewrite // Add TabCompletes to Sync
This commit is contained in:
parent
b3a40311a1
commit
562072df3f
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -460,20 +460,8 @@
|
||||
</a>
|
||||
<h2 class="title">E</h2>
|
||||
<dl>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/External/ExternalHost.html#edit-java.util.UUID-net.ME1312.SubServers.Bungee.Library.Config.YAMLSection-">edit(UUID, YAMLSection)</a></span> - Method in class net.ME1312.SubServers.Bungee.Host.External.<a href="net/ME1312/SubServers/Bungee/Host/External/ExternalHost.html" title="class in net.ME1312.SubServers.Bungee.Host.External">ExternalHost</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/External/ExternalSubServer.html#edit-java.util.UUID-net.ME1312.SubServers.Bungee.Library.Config.YAMLSection-">edit(UUID, YAMLSection)</a></span> - Method in class net.ME1312.SubServers.Bungee.Host.External.<a href="net/ME1312/SubServers/Bungee/Host/External/ExternalSubServer.html" title="class in net.ME1312.SubServers.Bungee.Host.External">ExternalSubServer</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/Host.html#edit-java.util.UUID-net.ME1312.SubServers.Bungee.Library.Config.YAMLSection-">edit(UUID, YAMLSection)</a></span> - Method in class net.ME1312.SubServers.Bungee.Host.<a href="net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a></dt>
|
||||
<dd>
|
||||
<div class="block">Edits the Host</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/Host.html#edit-net.ME1312.SubServers.Bungee.Library.Config.YAMLSection-">edit(YAMLSection)</a></span> - Method in class net.ME1312.SubServers.Bungee.Host.<a href="net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a></dt>
|
||||
<dd>
|
||||
<div class="block">Edits the Host</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/Internal/InternalHost.html#edit-java.util.UUID-net.ME1312.SubServers.Bungee.Library.Config.YAMLSection-">edit(UUID, YAMLSection)</a></span> - Method in class net.ME1312.SubServers.Bungee.Host.Internal.<a href="net/ME1312/SubServers/Bungee/Host/Internal/InternalHost.html" title="class in net.ME1312.SubServers.Bungee.Host.Internal">InternalHost</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/Internal/InternalSubServer.html#edit-java.util.UUID-net.ME1312.SubServers.Bungee.Library.Config.YAMLSection-">edit(UUID, YAMLSection)</a></span> - Method in class net.ME1312.SubServers.Bungee.Host.Internal.<a href="net/ME1312/SubServers/Bungee/Host/Internal/InternalSubServer.html" title="class in net.ME1312.SubServers.Bungee.Host.Internal">InternalSubServer</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/SubServer.html#edit-java.util.UUID-net.ME1312.SubServers.Bungee.Library.Config.YAMLSection-">edit(UUID, YAMLSection)</a></span> - Method in interface net.ME1312.SubServers.Bungee.Host.<a href="net/ME1312/SubServers/Bungee/Host/SubServer.html" title="interface in net.ME1312.SubServers.Bungee.Host">SubServer</a></dt>
|
||||
@ -616,8 +604,6 @@
|
||||
<dd>
|
||||
<div class="block">Load /sub in console</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/SubPlugin.html#exLang">exLang</a></span> - Variable in class net.ME1312.SubServers.Bungee.<a href="net/ME1312/SubServers/Bungee/SubPlugin.html" title="class in net.ME1312.SubServers.Bungee">SubPlugin</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/SubPlugin.html#exServers">exServers</a></span> - Variable in class net.ME1312.SubServers.Bungee.<a href="net/ME1312/SubServers/Bungee/SubPlugin.html" title="class in net.ME1312.SubServers.Bungee">SubPlugin</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><a href="net/ME1312/SubServers/Bungee/Host/External/ExternalHost.html" title="class in net.ME1312.SubServers.Bungee.Host.External"><span class="typeNameLink">ExternalHost</span></a> - Class in <a href="net/ME1312/SubServers/Bungee/Host/External/package-summary.html">net.ME1312.SubServers.Bungee.Host.External</a></dt>
|
||||
@ -1158,14 +1144,18 @@
|
||||
<dd>
|
||||
<div class="block">Get the Keys</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/SubAPI.html#getLang-java.lang.String-">getLang(String)</a></span> - Method in class net.ME1312.SubServers.Bungee.<a href="net/ME1312/SubServers/Bungee/SubAPI.html" title="class in net.ME1312.SubServers.Bungee">SubAPI</a></dt>
|
||||
<dd>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/SubAPI.html#getLang--">getLang()</a></span> - Method in class net.ME1312.SubServers.Bungee.<a href="net/ME1312/SubServers/Bungee/SubAPI.html" title="class in net.ME1312.SubServers.Bungee">SubAPI</a></dt>
|
||||
<dd>
|
||||
<div class="block">Gets the SubServers Lang</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/SubAPI.html#getLang-java.lang.String-">getLang(String)</a></span> - Method in class net.ME1312.SubServers.Bungee.<a href="net/ME1312/SubServers/Bungee/SubAPI.html" title="class in net.ME1312.SubServers.Bungee">SubAPI</a></dt>
|
||||
<dd>
|
||||
<div class="block">Gets values from the SubServers Lang</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/SubAPI.html#getLang-java.lang.String-java.lang.String-">getLang(String, String)</a></span> - Method in class net.ME1312.SubServers.Bungee.<a href="net/ME1312/SubServers/Bungee/SubAPI.html" title="class in net.ME1312.SubServers.Bungee">SubAPI</a></dt>
|
||||
<dd>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html#getLevel--">getLevel()</a></span> - Method in class net.ME1312.SubServers.Bungee.Host.<a href="net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html" title="class in net.ME1312.SubServers.Bungee.Host">SubLogger.LogMessage</a></dt>
|
||||
<dd>
|
||||
<div class="block">Get the level this message was logged on</div>
|
||||
@ -2032,7 +2022,7 @@
|
||||
</a>
|
||||
<h2 class="title">L</h2>
|
||||
<dl>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/SubPlugin.html#lang">lang</a></span> - Variable in class net.ME1312.SubServers.Bungee.<a href="net/ME1312/SubServers/Bungee/SubPlugin.html" title="class in net.ME1312.SubServers.Bungee">SubPlugin</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/SubPlugin.html#langconfig">langconfig</a></span> - Variable in class net.ME1312.SubServers.Bungee.<a href="net/ME1312/SubServers/Bungee/SubPlugin.html" title="class in net.ME1312.SubServers.Bungee">SubPlugin</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><a href="net/ME1312/SubServers/Bungee/Launch.html" title="class in net.ME1312.SubServers.Bungee"><span class="typeNameLink">Launch</span></a> - Class in <a href="net/ME1312/SubServers/Bungee/package-summary.html">net.ME1312.SubServers.Bungee</a></dt>
|
||||
<dd>
|
||||
@ -2800,9 +2790,9 @@
|
||||
<dd>
|
||||
<div class="block">Set the Item Icon for this Template</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/SubAPI.html#setLang-java.lang.String-java.lang.String-">setLang(String, String)</a></span> - Method in class net.ME1312.SubServers.Bungee.<a href="net/ME1312/SubServers/Bungee/SubAPI.html" title="class in net.ME1312.SubServers.Bungee">SubAPI</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/SubAPI.html#setLang-java.lang.String-java.lang.String-java.lang.String-">setLang(String, String, String)</a></span> - Method in class net.ME1312.SubServers.Bungee.<a href="net/ME1312/SubServers/Bungee/SubAPI.html" title="class in net.ME1312.SubServers.Bungee">SubAPI</a></dt>
|
||||
<dd>
|
||||
<div class="block">Adds to the Language Map</div>
|
||||
<div class="block">Adds to the SubServers Lang</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/External/ExternalSubServer.html#setLogging-boolean-">setLogging(boolean)</a></span> - Method in class net.ME1312.SubServers.Bungee.Host.External.<a href="net/ME1312/SubServers/Bungee/Host/External/ExternalSubServer.html" title="class in net.ME1312.SubServers.Bungee.Host.External">ExternalSubServer</a></dt>
|
||||
<dd> </dd>
|
||||
|
@ -17,7 +17,7 @@
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10};
|
||||
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10};
|
||||
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
||||
var altColor = "altColor";
|
||||
var rowColor = "rowColor";
|
||||
@ -189,88 +189,81 @@ implements <a href="../../../../../../net/ME1312/SubServers/Bungee/Network/Clien
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i2" class="altColor">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/External/ExternalHost.html#edit-java.util.UUID-net.ME1312.SubServers.Bungee.Library.Config.YAMLSection-">edit</a></span>(java.util.UUID player,
|
||||
<a href="../../../../../../net/ME1312/SubServers/Bungee/Library/Config/YAMLSection.html" title="class in net.ME1312.SubServers.Bungee.Library.Config">YAMLSection</a> edit)</code>
|
||||
<div class="block">Edits the Host</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i3" class="rowColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/External/ExternalHost.html#forceDeleteSubServer-java.util.UUID-java.lang.String-">forceDeleteSubServer</a></span>(java.util.UUID player,
|
||||
java.lang.String name)</code>
|
||||
<div class="block">Forces the Deletion of a SubServer</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i4" class="altColor">
|
||||
<tr id="i3" class="rowColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/External/ExternalHost.html#forceRemoveSubServer-java.util.UUID-java.lang.String-">forceRemoveSubServer</a></span>(java.util.UUID player,
|
||||
java.lang.String name)</code>
|
||||
<div class="block">Forces the Removal of a SubServer</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i5" class="rowColor">
|
||||
<tr id="i4" class="altColor">
|
||||
<td class="colFirst"><code>java.net.InetAddress</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/External/ExternalHost.html#getAddress--">getAddress</a></span>()</code>
|
||||
<div class="block">Get the Address of this Host</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i6" class="altColor">
|
||||
<tr id="i5" class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubCreator.html" title="class in net.ME1312.SubServers.Bungee.Host">SubCreator</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/External/ExternalHost.html#getCreator--">getCreator</a></span>()</code>
|
||||
<div class="block">Gets the SubCreator Instance for this Host</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i7" class="rowColor">
|
||||
<tr id="i6" class="altColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/External/ExternalHost.html#getName--">getName</a></span>()</code>
|
||||
<div class="block">Get the Name of this Host</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i8" class="altColor">
|
||||
<tr id="i7" class="rowColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/External/ExternalHost.html#getPath--">getPath</a></span>()</code>
|
||||
<div class="block">Get the host Directory Path</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i9" class="rowColor">
|
||||
<tr id="i8" class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../../../net/ME1312/SubServers/Bungee/Network/Client.html" title="class in net.ME1312.SubServers.Bungee.Network">Client</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/External/ExternalHost.html#getSubData--">getSubData</a></span>()</code>
|
||||
<div class="block">Gets the SubData Client</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i10" class="altColor">
|
||||
<tr id="i9" class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubServer.html" title="interface in net.ME1312.SubServers.Bungee.Host">SubServer</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/External/ExternalHost.html#getSubServer-java.lang.String-">getSubServer</a></span>(java.lang.String name)</code>
|
||||
<div class="block">Gets a SubServer</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i11" class="rowColor">
|
||||
<tr id="i10" class="altColor">
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,? extends <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubServer.html" title="interface in net.ME1312.SubServers.Bungee.Host">SubServer</a>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/External/ExternalHost.html#getSubServers--">getSubServers</a></span>()</code>
|
||||
<div class="block">Gets the SubServers on this Host</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i12" class="altColor">
|
||||
<tr id="i11" class="rowColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/External/ExternalHost.html#isEnabled--">isEnabled</a></span>()</code>
|
||||
<div class="block">Is this Host Enabled?</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i13" class="rowColor">
|
||||
<tr id="i12" class="altColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/External/ExternalHost.html#removeSubServer-java.util.UUID-java.lang.String-">removeSubServer</a></span>(java.util.UUID player,
|
||||
java.lang.String name)</code>
|
||||
<div class="block">Removes a SubServer</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i14" class="altColor">
|
||||
<tr id="i13" class="rowColor">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/External/ExternalHost.html#setEnabled-boolean-">setEnabled</a></span>(boolean value)</code>
|
||||
<div class="block">Set if this Host is Enabled</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i15" class="rowColor">
|
||||
<tr id="i14" class="altColor">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/External/ExternalHost.html#setSubData-net.ME1312.SubServers.Bungee.Network.Client-">setSubData</a></span>(<a href="../../../../../../net/ME1312/SubServers/Bungee/Network/Client.html" title="class in net.ME1312.SubServers.Bungee.Network">Client</a> client)</code>
|
||||
<div class="block">Link a SubData Client to this Object</div>
|
||||
@ -282,7 +275,7 @@ implements <a href="../../../../../../net/ME1312/SubServers/Bungee/Network/Clien
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Methods inherited from class net.ME1312.SubServers.Bungee.Host.<a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a></h3>
|
||||
<code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#addExtra-java.lang.String-java.lang.Object-">addExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#addSubServer-java.lang.String-boolean-int-java.lang.String-boolean-java.lang.String-net.ME1312.SubServers.Bungee.Host.Executable-java.lang.String-boolean-boolean-boolean-boolean-boolean-">addSubServer</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#command-java.lang.String-java.lang.String...-">command</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#command-java.util.UUID-java.lang.String-java.lang.String...-">command</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#deleteSubServer-java.lang.String-">deleteSubServer</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#edit-net.ME1312.SubServers.Bungee.Library.Config.YAMLSection-">edit</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#forceDeleteSubServer-java.lang.String-">forceDeleteSubServer</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#forceRemoveSubServer-java.lang.String-">forceRemoveSubServer</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getDisplayName--">getDisplayName</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getExtra--">getExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getExtra-java.lang.String-">getExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getSignature--">getSignature</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#hasExtra-java.lang.String-">hasExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#removeExtra-java.lang.String-">removeExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#removeSubServer-java.lang.String-">removeSubServer</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#setDisplayName-java.lang.String-">setDisplayName</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#start-java.lang.String...-">start</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#start-java.util.UUID-java.lang.String...-">start</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#stop-java.lang.String...-">stop</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#stop-java.util.UUID-java.lang.String...-">stop</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#terminate-java.lang.String...-">terminate</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#terminate-java.util.UUID-java.lang.String...-">terminate</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#toString--">toString</a></code></li>
|
||||
<code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#addExtra-java.lang.String-java.lang.Object-">addExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#addSubServer-java.lang.String-boolean-int-java.lang.String-boolean-java.lang.String-net.ME1312.SubServers.Bungee.Host.Executable-java.lang.String-boolean-boolean-boolean-boolean-boolean-">addSubServer</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#command-java.lang.String-java.lang.String...-">command</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#command-java.util.UUID-java.lang.String-java.lang.String...-">command</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#deleteSubServer-java.lang.String-">deleteSubServer</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#forceDeleteSubServer-java.lang.String-">forceDeleteSubServer</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#forceRemoveSubServer-java.lang.String-">forceRemoveSubServer</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getDisplayName--">getDisplayName</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getExtra--">getExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getExtra-java.lang.String-">getExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getSignature--">getSignature</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#hasExtra-java.lang.String-">hasExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#removeExtra-java.lang.String-">removeExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#removeSubServer-java.lang.String-">removeSubServer</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#setDisplayName-java.lang.String-">setDisplayName</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#start-java.lang.String...-">start</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#start-java.util.UUID-java.lang.String...-">start</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#stop-java.lang.String...-">stop</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#stop-java.util.UUID-java.lang.String...-">stop</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#terminate-java.lang.String...-">terminate</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#terminate-java.util.UUID-java.lang.String...-">terminate</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#toString--">toString</a></code></li>
|
||||
</ul>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
||||
@ -458,27 +451,6 @@ implements <a href="../../../../../../net/ME1312/SubServers/Bungee/Network/Clien
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="edit-java.util.UUID-net.ME1312.SubServers.Bungee.Library.Config.YAMLSection-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>edit</h4>
|
||||
<pre>public int edit(java.util.UUID player,
|
||||
<a href="../../../../../../net/ME1312/SubServers/Bungee/Library/Config/YAMLSection.html" title="class in net.ME1312.SubServers.Bungee.Library.Config">YAMLSection</a> edit)</pre>
|
||||
<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#edit-java.util.UUID-net.ME1312.SubServers.Bungee.Library.Config.YAMLSection-">Host</a></code></span></div>
|
||||
<div class="block">Edits the Host</div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||||
<dd><code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#edit-java.util.UUID-net.ME1312.SubServers.Bungee.Library.Config.YAMLSection-">edit</a></code> in class <code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a></code></dd>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>player</code> - Player Editing</dd>
|
||||
<dd><code>edit</code> - Edits</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Success Status</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getCreator--">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
@ -17,7 +17,7 @@
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
var methods = {"i0":10,"i1":10,"i2":6,"i3":10,"i4":10,"i5":10,"i6":6,"i7":6,"i8":10,"i9":10,"i10":6,"i11":10,"i12":6,"i13":6,"i14":6,"i15":10,"i16":10,"i17":10,"i18":6,"i19":6,"i20":10,"i21":6,"i22":6,"i23":10,"i24":6,"i25":10,"i26":10,"i27":6,"i28":10,"i29":6,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10};
|
||||
var methods = {"i0":10,"i1":10,"i2":6,"i3":10,"i4":10,"i5":10,"i6":6,"i7":10,"i8":6,"i9":10,"i10":6,"i11":6,"i12":6,"i13":10,"i14":10,"i15":10,"i16":6,"i17":6,"i18":10,"i19":6,"i20":6,"i21":10,"i22":6,"i23":10,"i24":10,"i25":6,"i26":10,"i27":6,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10};
|
||||
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]};
|
||||
var altColor = "altColor";
|
||||
var rowColor = "rowColor";
|
||||
@ -234,187 +234,174 @@ implements <a href="../../../../../net/ME1312/SubServers/Bungee/Library/ExtraDat
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i7" class="rowColor">
|
||||
<td class="colFirst"><code>abstract int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#edit-java.util.UUID-net.ME1312.SubServers.Bungee.Library.Config.YAMLSection-">edit</a></span>(java.util.UUID player,
|
||||
<a href="../../../../../net/ME1312/SubServers/Bungee/Library/Config/YAMLSection.html" title="class in net.ME1312.SubServers.Bungee.Library.Config">YAMLSection</a> edit)</code>
|
||||
<div class="block">Edits the Host</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i8" class="altColor">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#edit-net.ME1312.SubServers.Bungee.Library.Config.YAMLSection-">edit</a></span>(<a href="../../../../../net/ME1312/SubServers/Bungee/Library/Config/YAMLSection.html" title="class in net.ME1312.SubServers.Bungee.Library.Config">YAMLSection</a> edit)</code>
|
||||
<div class="block">Edits the Host</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i9" class="rowColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#forceDeleteSubServer-java.lang.String-">forceDeleteSubServer</a></span>(java.lang.String name)</code>
|
||||
<div class="block">Forced the Deletion of a SubServer</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i10" class="altColor">
|
||||
<tr id="i8" class="altColor">
|
||||
<td class="colFirst"><code>abstract boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#forceDeleteSubServer-java.util.UUID-java.lang.String-">forceDeleteSubServer</a></span>(java.util.UUID player,
|
||||
java.lang.String name)</code>
|
||||
<div class="block">Forces the Deletion of a SubServer</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i11" class="rowColor">
|
||||
<tr id="i9" class="rowColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#forceRemoveSubServer-java.lang.String-">forceRemoveSubServer</a></span>(java.lang.String name)</code>
|
||||
<div class="block">Forces the Removal of a SubServer</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i12" class="altColor">
|
||||
<tr id="i10" class="altColor">
|
||||
<td class="colFirst"><code>abstract boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#forceRemoveSubServer-java.util.UUID-java.lang.String-">forceRemoveSubServer</a></span>(java.util.UUID player,
|
||||
java.lang.String name)</code>
|
||||
<div class="block">Forces the Removal of a SubServer</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i13" class="rowColor">
|
||||
<tr id="i11" class="rowColor">
|
||||
<td class="colFirst"><code>abstract java.net.InetAddress</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getAddress--">getAddress</a></span>()</code>
|
||||
<div class="block">Get the Address of this Host</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i14" class="altColor">
|
||||
<tr id="i12" class="altColor">
|
||||
<td class="colFirst"><code>abstract <a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubCreator.html" title="class in net.ME1312.SubServers.Bungee.Host">SubCreator</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getCreator--">getCreator</a></span>()</code>
|
||||
<div class="block">Gets the SubCreator Instance for this Host</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i15" class="rowColor">
|
||||
<tr id="i13" class="rowColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getDisplayName--">getDisplayName</a></span>()</code>
|
||||
<div class="block">Get the Display Name of this Host</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i16" class="altColor">
|
||||
<tr id="i14" class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../../net/ME1312/SubServers/Bungee/Library/Config/YAMLSection.html" title="class in net.ME1312.SubServers.Bungee.Library.Config">YAMLSection</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getExtra--">getExtra</a></span>()</code>
|
||||
<div class="block">Get the extra value section</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i17" class="rowColor">
|
||||
<tr id="i15" class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../../net/ME1312/SubServers/Bungee/Library/Config/YAMLValue.html" title="class in net.ME1312.SubServers.Bungee.Library.Config">YAMLValue</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getExtra-java.lang.String-">getExtra</a></span>(java.lang.String handle)</code>
|
||||
<div class="block">Get an extra value</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i18" class="altColor">
|
||||
<tr id="i16" class="altColor">
|
||||
<td class="colFirst"><code>abstract java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getName--">getName</a></span>()</code>
|
||||
<div class="block">Get the Name of this Host</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i19" class="rowColor">
|
||||
<tr id="i17" class="rowColor">
|
||||
<td class="colFirst"><code>abstract java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getPath--">getPath</a></span>()</code>
|
||||
<div class="block">Get the host Directory Path</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i20" class="altColor">
|
||||
<tr id="i18" class="altColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getSignature--">getSignature</a></span>()</code>
|
||||
<div class="block">Get the Signature of this Object</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i21" class="rowColor">
|
||||
<tr id="i19" class="rowColor">
|
||||
<td class="colFirst"><code>abstract <a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubServer.html" title="interface in net.ME1312.SubServers.Bungee.Host">SubServer</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getSubServer-java.lang.String-">getSubServer</a></span>(java.lang.String name)</code>
|
||||
<div class="block">Gets a SubServer</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i22" class="altColor">
|
||||
<tr id="i20" class="altColor">
|
||||
<td class="colFirst"><code>abstract java.util.Map<java.lang.String,? extends <a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubServer.html" title="interface in net.ME1312.SubServers.Bungee.Host">SubServer</a>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getSubServers--">getSubServers</a></span>()</code>
|
||||
<div class="block">Gets the SubServers on this Host</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i23" class="rowColor">
|
||||
<tr id="i21" class="rowColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#hasExtra-java.lang.String-">hasExtra</a></span>(java.lang.String handle)</code>
|
||||
<div class="block">Determine if an extra value exists</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i24" class="altColor">
|
||||
<tr id="i22" class="altColor">
|
||||
<td class="colFirst"><code>abstract boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#isEnabled--">isEnabled</a></span>()</code>
|
||||
<div class="block">Is this Host Enabled?</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i25" class="rowColor">
|
||||
<tr id="i23" class="rowColor">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#removeExtra-java.lang.String-">removeExtra</a></span>(java.lang.String handle)</code>
|
||||
<div class="block">Remove an extra value from this Server</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i26" class="altColor">
|
||||
<tr id="i24" class="altColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#removeSubServer-java.lang.String-">removeSubServer</a></span>(java.lang.String name)</code>
|
||||
<div class="block">Removes a SubServer</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i27" class="rowColor">
|
||||
<tr id="i25" class="rowColor">
|
||||
<td class="colFirst"><code>abstract boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#removeSubServer-java.util.UUID-java.lang.String-">removeSubServer</a></span>(java.util.UUID player,
|
||||
java.lang.String name)</code>
|
||||
<div class="block">Removes a SubServer</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i28" class="altColor">
|
||||
<tr id="i26" class="altColor">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#setDisplayName-java.lang.String-">setDisplayName</a></span>(java.lang.String value)</code>
|
||||
<div class="block">Sets the Display Name for this Host</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i29" class="rowColor">
|
||||
<tr id="i27" class="rowColor">
|
||||
<td class="colFirst"><code>abstract void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#setEnabled-boolean-">setEnabled</a></span>(boolean value)</code>
|
||||
<div class="block">Set if this Host is Enabled</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i30" class="altColor">
|
||||
<tr id="i28" class="altColor">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#start-java.lang.String...-">start</a></span>(java.lang.String... servers)</code>
|
||||
<div class="block">Starts the Servers Specified</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i31" class="rowColor">
|
||||
<tr id="i29" class="rowColor">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#start-java.util.UUID-java.lang.String...-">start</a></span>(java.util.UUID player,
|
||||
java.lang.String... servers)</code>
|
||||
<div class="block">Starts the Servers Specified</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i32" class="altColor">
|
||||
<tr id="i30" class="altColor">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#stop-java.lang.String...-">stop</a></span>(java.lang.String... servers)</code>
|
||||
<div class="block">Stops the Servers Specified</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i33" class="rowColor">
|
||||
<tr id="i31" class="rowColor">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#stop-java.util.UUID-java.lang.String...-">stop</a></span>(java.util.UUID player,
|
||||
java.lang.String... servers)</code>
|
||||
<div class="block">Stops the Servers Specified</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i34" class="altColor">
|
||||
<tr id="i32" class="altColor">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#terminate-java.lang.String...-">terminate</a></span>(java.lang.String... servers)</code>
|
||||
<div class="block">Terminates the Servers Specified</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i35" class="rowColor">
|
||||
<tr id="i33" class="rowColor">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#terminate-java.util.UUID-java.lang.String...-">terminate</a></span>(java.util.UUID player,
|
||||
java.lang.String... servers)</code>
|
||||
<div class="block">Terminates the Servers Specified</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i36" class="altColor">
|
||||
<tr id="i34" class="altColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#toString--">toString</a></span>()</code> </td>
|
||||
</tr>
|
||||
@ -710,40 +697,6 @@ implements <a href="../../../../../net/ME1312/SubServers/Bungee/Library/ExtraDat
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="edit-java.util.UUID-net.ME1312.SubServers.Bungee.Library.Config.YAMLSection-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>edit</h4>
|
||||
<pre>public abstract int edit(java.util.UUID player,
|
||||
<a href="../../../../../net/ME1312/SubServers/Bungee/Library/Config/YAMLSection.html" title="class in net.ME1312.SubServers.Bungee.Library.Config">YAMLSection</a> edit)</pre>
|
||||
<div class="block">Edits the Host</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>player</code> - Player Editing</dd>
|
||||
<dd><code>edit</code> - Edits</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Success Status</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="edit-net.ME1312.SubServers.Bungee.Library.Config.YAMLSection-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>edit</h4>
|
||||
<pre>public int edit(<a href="../../../../../net/ME1312/SubServers/Bungee/Library/Config/YAMLSection.html" title="class in net.ME1312.SubServers.Bungee.Library.Config">YAMLSection</a> edit)</pre>
|
||||
<div class="block">Edits the Host</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>edit</code> - Edits</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Success Status</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getCreator--">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
@ -17,7 +17,7 @@
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10};
|
||||
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10};
|
||||
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
||||
var altColor = "altColor";
|
||||
var rowColor = "rowColor";
|
||||
@ -188,76 +188,69 @@ extends <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html"
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i2" class="altColor">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Internal/InternalHost.html#edit-java.util.UUID-net.ME1312.SubServers.Bungee.Library.Config.YAMLSection-">edit</a></span>(java.util.UUID player,
|
||||
<a href="../../../../../../net/ME1312/SubServers/Bungee/Library/Config/YAMLSection.html" title="class in net.ME1312.SubServers.Bungee.Library.Config">YAMLSection</a> edit)</code>
|
||||
<div class="block">Edits the Host</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i3" class="rowColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Internal/InternalHost.html#forceDeleteSubServer-java.util.UUID-java.lang.String-">forceDeleteSubServer</a></span>(java.util.UUID player,
|
||||
java.lang.String name)</code>
|
||||
<div class="block">Forces the Deletion of a SubServer</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i4" class="altColor">
|
||||
<tr id="i3" class="rowColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Internal/InternalHost.html#forceRemoveSubServer-java.util.UUID-java.lang.String-">forceRemoveSubServer</a></span>(java.util.UUID player,
|
||||
java.lang.String name)</code>
|
||||
<div class="block">Forces the Removal of a SubServer</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i5" class="rowColor">
|
||||
<tr id="i4" class="altColor">
|
||||
<td class="colFirst"><code>java.net.InetAddress</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Internal/InternalHost.html#getAddress--">getAddress</a></span>()</code>
|
||||
<div class="block">Get the Address of this Host</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i6" class="altColor">
|
||||
<tr id="i5" class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubCreator.html" title="class in net.ME1312.SubServers.Bungee.Host">SubCreator</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Internal/InternalHost.html#getCreator--">getCreator</a></span>()</code>
|
||||
<div class="block">Gets the SubCreator Instance for this Host</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i7" class="rowColor">
|
||||
<tr id="i6" class="altColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Internal/InternalHost.html#getName--">getName</a></span>()</code>
|
||||
<div class="block">Get the Name of this Host</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i8" class="altColor">
|
||||
<tr id="i7" class="rowColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Internal/InternalHost.html#getPath--">getPath</a></span>()</code>
|
||||
<div class="block">Get the host Directory Path</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i9" class="rowColor">
|
||||
<tr id="i8" class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubServer.html" title="interface in net.ME1312.SubServers.Bungee.Host">SubServer</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Internal/InternalHost.html#getSubServer-java.lang.String-">getSubServer</a></span>(java.lang.String name)</code>
|
||||
<div class="block">Gets a SubServer</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i10" class="altColor">
|
||||
<tr id="i9" class="rowColor">
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,? extends <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubServer.html" title="interface in net.ME1312.SubServers.Bungee.Host">SubServer</a>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Internal/InternalHost.html#getSubServers--">getSubServers</a></span>()</code>
|
||||
<div class="block">Gets the SubServers on this Host</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i11" class="rowColor">
|
||||
<tr id="i10" class="altColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Internal/InternalHost.html#isEnabled--">isEnabled</a></span>()</code>
|
||||
<div class="block">Is this Host Enabled?</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i12" class="altColor">
|
||||
<tr id="i11" class="rowColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Internal/InternalHost.html#removeSubServer-java.util.UUID-java.lang.String-">removeSubServer</a></span>(java.util.UUID player,
|
||||
java.lang.String name)</code>
|
||||
<div class="block">Removes a SubServer</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i13" class="rowColor">
|
||||
<tr id="i12" class="altColor">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Internal/InternalHost.html#setEnabled-boolean-">setEnabled</a></span>(boolean value)</code>
|
||||
<div class="block">Set if this Host is Enabled</div>
|
||||
@ -269,7 +262,7 @@ extends <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html"
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Methods inherited from class net.ME1312.SubServers.Bungee.Host.<a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a></h3>
|
||||
<code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#addExtra-java.lang.String-java.lang.Object-">addExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#addSubServer-java.lang.String-boolean-int-java.lang.String-boolean-java.lang.String-net.ME1312.SubServers.Bungee.Host.Executable-java.lang.String-boolean-boolean-boolean-boolean-boolean-">addSubServer</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#command-java.lang.String-java.lang.String...-">command</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#command-java.util.UUID-java.lang.String-java.lang.String...-">command</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#deleteSubServer-java.lang.String-">deleteSubServer</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#edit-net.ME1312.SubServers.Bungee.Library.Config.YAMLSection-">edit</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#forceDeleteSubServer-java.lang.String-">forceDeleteSubServer</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#forceRemoveSubServer-java.lang.String-">forceRemoveSubServer</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getDisplayName--">getDisplayName</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getExtra--">getExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getExtra-java.lang.String-">getExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getSignature--">getSignature</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#hasExtra-java.lang.String-">hasExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#removeExtra-java.lang.String-">removeExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#removeSubServer-java.lang.String-">removeSubServer</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#setDisplayName-java.lang.String-">setDisplayName</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#start-java.lang.String...-">start</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#start-java.util.UUID-java.lang.String...-">start</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#stop-java.lang.String...-">stop</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#stop-java.util.UUID-java.lang.String...-">stop</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#terminate-java.lang.String...-">terminate</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#terminate-java.util.UUID-java.lang.String...-">terminate</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#toString--">toString</a></code></li>
|
||||
<code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#addExtra-java.lang.String-java.lang.Object-">addExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#addSubServer-java.lang.String-boolean-int-java.lang.String-boolean-java.lang.String-net.ME1312.SubServers.Bungee.Host.Executable-java.lang.String-boolean-boolean-boolean-boolean-boolean-">addSubServer</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#command-java.lang.String-java.lang.String...-">command</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#command-java.util.UUID-java.lang.String-java.lang.String...-">command</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#deleteSubServer-java.lang.String-">deleteSubServer</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#forceDeleteSubServer-java.lang.String-">forceDeleteSubServer</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#forceRemoveSubServer-java.lang.String-">forceRemoveSubServer</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getDisplayName--">getDisplayName</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getExtra--">getExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getExtra-java.lang.String-">getExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#getSignature--">getSignature</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#hasExtra-java.lang.String-">hasExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#removeExtra-java.lang.String-">removeExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#removeSubServer-java.lang.String-">removeSubServer</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#setDisplayName-java.lang.String-">setDisplayName</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#start-java.lang.String...-">start</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#start-java.util.UUID-java.lang.String...-">start</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#stop-java.lang.String...-">stop</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#stop-java.util.UUID-java.lang.String...-">stop</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#terminate-java.lang.String...-">terminate</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#terminate-java.util.UUID-java.lang.String...-">terminate</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#toString--">toString</a></code></li>
|
||||
</ul>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
||||
@ -409,27 +402,6 @@ extends <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html"
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="edit-java.util.UUID-net.ME1312.SubServers.Bungee.Library.Config.YAMLSection-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>edit</h4>
|
||||
<pre>public int edit(java.util.UUID player,
|
||||
<a href="../../../../../../net/ME1312/SubServers/Bungee/Library/Config/YAMLSection.html" title="class in net.ME1312.SubServers.Bungee.Library.Config">YAMLSection</a> edit)</pre>
|
||||
<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#edit-java.util.UUID-net.ME1312.SubServers.Bungee.Library.Config.YAMLSection-">Host</a></code></span></div>
|
||||
<div class="block">Edits the Host</div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||||
<dd><code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html#edit-java.util.UUID-net.ME1312.SubServers.Bungee.Library.Config.YAMLSection-">edit</a></code> in class <code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a></code></dd>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>player</code> - Player Editing</dd>
|
||||
<dd><code>edit</code> - Edits</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Success Status</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getCreator--">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
@ -17,7 +17,7 @@
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":9,"i24":42,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10};
|
||||
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":9,"i24":42,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10};
|
||||
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
|
||||
var altColor = "altColor";
|
||||
var rowColor = "rowColor";
|
||||
@ -321,123 +321,131 @@ extends java.lang.Object</pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i25" class="rowColor">
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,java.lang.String></code></td>
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getLang--">getLang</a></span>()</code>
|
||||
<div class="block">Gets the SubServers Lang</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i26" class="altColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getLang-java.lang.String-">getLang</a></span>(java.lang.String key)</code>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,java.lang.String></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getLang-java.lang.String-">getLang</a></span>(java.lang.String channel)</code>
|
||||
<div class="block">Gets values from the SubServers Lang</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i27" class="rowColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getLang-java.lang.String-java.lang.String-">getLang</a></span>(java.lang.String channel,
|
||||
java.lang.String key)</code>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i28" class="altColor">
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,java.util.List<<a href="../../../../net/ME1312/SubServers/Bungee/Host/Server.html" title="interface in net.ME1312.SubServers.Bungee.Host">Server</a>>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getLowercaseGroups--">getLowercaseGroups</a></span>()</code>
|
||||
<div class="block">Gets the Server Groups (Group names are all lowercase here)</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i28" class="altColor">
|
||||
<tr id="i29" class="rowColor">
|
||||
<td class="colFirst"><code><R> R</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getObjectBySignature-java.lang.String-">getObjectBySignature</a></span>(java.lang.String signature)</code>
|
||||
<div class="block">Get an Object by it's Signature</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i29" class="rowColor">
|
||||
<tr id="i30" class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Library/Version/Version.html" title="class in net.ME1312.SubServers.Bungee.Library.Version">Version</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getProxyVersion--">getProxyVersion</a></span>()</code>
|
||||
<div class="block">Gets the BungeeCord Version</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i30" class="altColor">
|
||||
<tr id="i31" class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Library/UniversalFile.html" title="class in net.ME1312.SubServers.Bungee.Library">UniversalFile</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getRuntimeDirectory--">getRuntimeDirectory</a></span>()</code>
|
||||
<div class="block">Gets the Runtime Directory</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i31" class="rowColor">
|
||||
<tr id="i32" class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Host/Server.html" title="interface in net.ME1312.SubServers.Bungee.Host">Server</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getServer-java.lang.String-">getServer</a></span>(java.lang.String name)</code>
|
||||
<div class="block">Gets a Server</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i32" class="altColor">
|
||||
<tr id="i33" class="rowColor">
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,<a href="../../../../net/ME1312/SubServers/Bungee/Host/Server.html" title="interface in net.ME1312.SubServers.Bungee.Host">Server</a>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getServers--">getServers</a></span>()</code>
|
||||
<div class="block">Gets the Servers (including SubServers)</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i33" class="rowColor">
|
||||
<tr id="i34" class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Network/SubDataServer.html" title="class in net.ME1312.SubServers.Bungee.Network">SubDataServer</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getSubDataNetwork--">getSubDataNetwork</a></span>()</code>
|
||||
<div class="block">Gets the SubData Network Manager</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i34" class="altColor">
|
||||
<tr id="i35" class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Host/SubServer.html" title="interface in net.ME1312.SubServers.Bungee.Host">SubServer</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getSubServer-java.lang.String-">getSubServer</a></span>(java.lang.String name)</code>
|
||||
<div class="block">Gets a SubServer</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i35" class="rowColor">
|
||||
<tr id="i36" class="altColor">
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,<a href="../../../../net/ME1312/SubServers/Bungee/Host/SubServer.html" title="interface in net.ME1312.SubServers.Bungee.Host">SubServer</a>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getSubServers--">getSubServers</a></span>()</code>
|
||||
<div class="block">Gets the SubServers</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i36" class="altColor">
|
||||
<tr id="i37" class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Library/Version/Version.html" title="class in net.ME1312.SubServers.Bungee.Library.Version">Version</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getWrapperVersion--">getWrapperVersion</a></span>()</code>
|
||||
<div class="block">Gets the SubServers Version</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i37" class="rowColor">
|
||||
<tr id="i38" class="altColor">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#invalidateObjectSignature-java.lang.String-">invalidateObjectSignature</a></span>(java.lang.String signature)</code>
|
||||
<div class="block">Invalidate an Object Signature.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i38" class="altColor">
|
||||
<tr id="i39" class="rowColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#removeHost-java.lang.String-">removeHost</a></span>(java.lang.String name)</code>
|
||||
<div class="block">Remove a Host from the Network</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i39" class="rowColor">
|
||||
<tr id="i40" class="altColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#removeHost-java.util.UUID-java.lang.String-">removeHost</a></span>(java.util.UUID player,
|
||||
java.lang.String name)</code>
|
||||
<div class="block">Remove a Host from the Network</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i40" class="altColor">
|
||||
<tr id="i41" class="rowColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#removeServer-java.lang.String-">removeServer</a></span>(java.lang.String name)</code>
|
||||
<div class="block">Remove a Server from the Network</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i41" class="rowColor">
|
||||
<tr id="i42" class="altColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#removeServer-java.util.UUID-java.lang.String-">removeServer</a></span>(java.util.UUID player,
|
||||
java.lang.String name)</code>
|
||||
<div class="block">Remove a Server from the Network</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i42" class="altColor">
|
||||
<tr id="i43" class="rowColor">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#setLang-java.lang.String-java.lang.String-">setLang</a></span>(java.lang.String key,
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#setLang-java.lang.String-java.lang.String-java.lang.String-">setLang</a></span>(java.lang.String channel,
|
||||
java.lang.String key,
|
||||
java.lang.String value)</code>
|
||||
<div class="block">Adds to the Language Map</div>
|
||||
<div class="block">Adds to the SubServers Lang</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i43" class="rowColor">
|
||||
<tr id="i44" class="altColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#signAnonymousObject--">signAnonymousObject</a></span>()</code>
|
||||
<div class="block">Get an Object Signature without linking the Signature to any object</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i44" class="altColor">
|
||||
<tr id="i45" class="rowColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#signObject-java.lang.Object-">signObject</a></span>(java.lang.Object object)</code>
|
||||
<div class="block">Signs an Object</div>
|
||||
@ -1089,45 +1097,31 @@ public <a href="../../../../net/ME1312/SubServers/Bungee/SubPlugin.html" ti
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="setLang-java.lang.String-java.lang.String-">
|
||||
<a name="setLang-java.lang.String-java.lang.String-java.lang.String-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>setLang</h4>
|
||||
<pre>public void setLang(java.lang.String key,
|
||||
<pre>public void setLang(java.lang.String channel,
|
||||
java.lang.String key,
|
||||
java.lang.String value)</pre>
|
||||
<div class="block">Adds to the Language Map</div>
|
||||
<div class="block">Adds to the SubServers Lang</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>channel</code> - Lang Channel</dd>
|
||||
<dd><code>key</code> - Key</dd>
|
||||
<dd><code>value</code> - Lang Value</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getLang-java.lang.String-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getLang</h4>
|
||||
<pre>public java.lang.String getLang(java.lang.String key)</pre>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>key</code> - Key</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Lang Value</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getLang--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getLang</h4>
|
||||
<pre>public java.util.Map<java.lang.String,java.lang.String> getLang()</pre>
|
||||
<pre>public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getLang()</pre>
|
||||
<div class="block">Gets the SubServers Lang</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
@ -1135,6 +1129,40 @@ public <a href="../../../../net/ME1312/SubServers/Bungee/SubPlugin.html" ti
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getLang-java.lang.String-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getLang</h4>
|
||||
<pre>public java.util.Map<java.lang.String,java.lang.String> getLang(java.lang.String channel)</pre>
|
||||
<div class="block">Gets values from the SubServers Lang</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>channel</code> - Lang Channel</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Lang Value</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getLang-java.lang.String-java.lang.String-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getLang</h4>
|
||||
<pre>public java.lang.String getLang(java.lang.String channel,
|
||||
java.lang.String key)</pre>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>channel</code> - Lang Channel</dd>
|
||||
<dd><code>key</code> - Key</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Lang Values</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="signAnonymousObject--">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
@ -160,42 +160,38 @@ implements net.md_5.bungee.api.plugin.Listener</pre>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubPlugin.html#dir">dir</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>java.util.HashMap<java.lang.String,java.lang.String></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubPlugin.html#exLang">exLang</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>java.util.HashMap<java.lang.String,<a href="../../../../net/ME1312/SubServers/Bungee/Host/Server.html" title="interface in net.ME1312.SubServers.Bungee.Host">Server</a>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubPlugin.html#exServers">exServers</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>java.util.HashMap<java.lang.String,<a href="../../../../net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubPlugin.html#hosts">hosts</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Library/Config/YAMLConfig.html" title="class in net.ME1312.SubServers.Bungee.Library.Config">YAMLConfig</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubPlugin.html#lang">lang</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Library/Config/YAMLConfig.html" title="class in net.ME1312.SubServers.Bungee.Library.Config">YAMLConfig</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubPlugin.html#langconfig">langconfig</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>java.io.PrintStream</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubPlugin.html#out">out</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubPlugin.html#redis">redis</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>long</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubPlugin.html#resetDate">resetDate</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Network/SubDataServer.html" title="class in net.ME1312.SubServers.Bungee.Network">SubDataServer</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubPlugin.html#subdata">subdata</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Host/SubServer.html" title="interface in net.ME1312.SubServers.Bungee.Host">SubServer</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubPlugin.html#sudo">sudo</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Library/Version/Version.html" title="class in net.ME1312.SubServers.Bungee.Library.Version">Version</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubPlugin.html#version">version</a></span></code> </td>
|
||||
</tr>
|
||||
@ -359,22 +355,13 @@ implements net.md_5.bungee.api.plugin.Listener</pre>
|
||||
<pre>public <a href="../../../../net/ME1312/SubServers/Bungee/Library/Config/YAMLConfig.html" title="class in net.ME1312.SubServers.Bungee.Library.Config">YAMLConfig</a> config</pre>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="lang">
|
||||
<a name="langconfig">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>lang</h4>
|
||||
<pre>public <a href="../../../../net/ME1312/SubServers/Bungee/Library/Config/YAMLConfig.html" title="class in net.ME1312.SubServers.Bungee.Library.Config">YAMLConfig</a> lang</pre>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="exLang">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>exLang</h4>
|
||||
<pre>public java.util.HashMap<java.lang.String,java.lang.String> exLang</pre>
|
||||
<h4>langconfig</h4>
|
||||
<pre>public <a href="../../../../net/ME1312/SubServers/Bungee/Library/Config/YAMLConfig.html" title="class in net.ME1312.SubServers.Bungee.Library.Config">YAMLConfig</a> langconfig</pre>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="api">
|
||||
|
Binary file not shown.
@ -67,7 +67,7 @@
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="contentContainer"><a href="#I:A">A</a> <a href="#I:B">B</a> <a href="#I:C">C</a> <a href="#I:D">D</a> <a href="#I:E">E</a> <a href="#I:F">F</a> <a href="#I:G">G</a> <a href="#I:H">H</a> <a href="#I:I">I</a> <a href="#I:J">J</a> <a href="#I:L">L</a> <a href="#I:N">N</a> <a href="#I:O">O</a> <a href="#I:P">P</a> <a href="#I:R">R</a> <a href="#I:S">S</a> <a href="#I:T">T</a> <a href="#I:U">U</a> <a href="#I:V">V</a> <a href="#I:Y">Y</a> <a name="I:A">
|
||||
<div class="contentContainer"><a href="#I:A">A</a> <a href="#I:B">B</a> <a href="#I:C">C</a> <a href="#I:D">D</a> <a href="#I:E">E</a> <a href="#I:F">F</a> <a href="#I:G">G</a> <a href="#I:H">H</a> <a href="#I:I">I</a> <a href="#I:J">J</a> <a href="#I:N">N</a> <a href="#I:O">O</a> <a href="#I:P">P</a> <a href="#I:R">R</a> <a href="#I:S">S</a> <a href="#I:T">T</a> <a href="#I:U">U</a> <a href="#I:V">V</a> <a href="#I:Y">Y</a> <a name="I:A">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">A</h2>
|
||||
@ -675,14 +675,18 @@
|
||||
<dd>
|
||||
<div class="block">Get the Keys</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Client/Bukkit/SubAPI.html#getLang-java.lang.String-">getLang(String)</a></span> - Method in class net.ME1312.SubServers.Client.Bukkit.<a href="net/ME1312/SubServers/Client/Bukkit/SubAPI.html" title="class in net.ME1312.SubServers.Client.Bukkit">SubAPI</a></dt>
|
||||
<dd>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Client/Bukkit/SubAPI.html#getLang--">getLang()</a></span> - Method in class net.ME1312.SubServers.Client.Bukkit.<a href="net/ME1312/SubServers/Client/Bukkit/SubAPI.html" title="class in net.ME1312.SubServers.Client.Bukkit">SubAPI</a></dt>
|
||||
<dd>
|
||||
<div class="block">Gets the SubServers Lang</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Client/Bukkit/SubAPI.html#getLang-java.lang.String-">getLang(String)</a></span> - Method in class net.ME1312.SubServers.Client.Bukkit.<a href="net/ME1312/SubServers/Client/Bukkit/SubAPI.html" title="class in net.ME1312.SubServers.Client.Bukkit">SubAPI</a></dt>
|
||||
<dd>
|
||||
<div class="block">Gets values from the SubServers Lang</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Client/Bukkit/SubAPI.html#getLang-java.lang.String-java.lang.String-">getLang(String, String)</a></span> - Method in class net.ME1312.SubServers.Client.Bukkit.<a href="net/ME1312/SubServers/Client/Bukkit/SubAPI.html" title="class in net.ME1312.SubServers.Client.Bukkit">SubAPI</a></dt>
|
||||
<dd>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Client/Bukkit/Library/Config/YAMLSection.html#getList-java.lang.String-">getList(String)</a></span> - Method in class net.ME1312.SubServers.Client.Bukkit.Library.Config.<a href="net/ME1312/SubServers/Client/Bukkit/Library/Config/YAMLSection.html" title="class in net.ME1312.SubServers.Client.Bukkit.Library.Config">YAMLSection</a></dt>
|
||||
<dd>
|
||||
<div class="block">Get a List by Handle</div>
|
||||
@ -1188,14 +1192,6 @@
|
||||
<div class="block">JSON Callback Class</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<a name="I:L">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">L</h2>
|
||||
<dl>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Client/Bukkit/SubPlugin.html#lang">lang</a></span> - Variable in class net.ME1312.SubServers.Client.Bukkit.<a href="net/ME1312/SubServers/Client/Bukkit/SubPlugin.html" title="class in net.ME1312.SubServers.Client.Bukkit">SubPlugin</a></dt>
|
||||
<dd> </dd>
|
||||
</dl>
|
||||
<a name="I:N">
|
||||
<!-- -->
|
||||
</a>
|
||||
@ -1313,11 +1309,11 @@
|
||||
<dd>
|
||||
<div class="block">Download Lang Packet</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Client/Bukkit/Network/Packet/PacketDownloadLang.html#PacketDownloadLang--">PacketDownloadLang()</a></span> - Constructor for class net.ME1312.SubServers.Client.Bukkit.Network.Packet.<a href="net/ME1312/SubServers/Client/Bukkit/Network/Packet/PacketDownloadLang.html" title="class in net.ME1312.SubServers.Client.Bukkit.Network.Packet">PacketDownloadLang</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Client/Bukkit/Network/Packet/PacketDownloadLang.html#PacketDownloadLang-net.ME1312.SubServers.Client.Bukkit.SubPlugin-">PacketDownloadLang(SubPlugin)</a></span> - Constructor for class net.ME1312.SubServers.Client.Bukkit.Network.Packet.<a href="net/ME1312/SubServers/Client/Bukkit/Network/Packet/PacketDownloadLang.html" title="class in net.ME1312.SubServers.Client.Bukkit.Network.Packet">PacketDownloadLang</a></dt>
|
||||
<dd>
|
||||
<div class="block">New PacketDownloadLang (In)</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Client/Bukkit/Network/Packet/PacketDownloadLang.html#PacketDownloadLang-net.ME1312.SubServers.Client.Bukkit.SubPlugin-">PacketDownloadLang(SubPlugin)</a></span> - Constructor for class net.ME1312.SubServers.Client.Bukkit.Network.Packet.<a href="net/ME1312/SubServers/Client/Bukkit/Network/Packet/PacketDownloadLang.html" title="class in net.ME1312.SubServers.Client.Bukkit.Network.Packet">PacketDownloadLang</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Client/Bukkit/Network/Packet/PacketDownloadLang.html#PacketDownloadLang--">PacketDownloadLang()</a></span> - Constructor for class net.ME1312.SubServers.Client.Bukkit.Network.Packet.<a href="net/ME1312/SubServers/Client/Bukkit/Network/Packet/PacketDownloadLang.html" title="class in net.ME1312.SubServers.Client.Bukkit.Network.Packet">PacketDownloadLang</a></dt>
|
||||
<dd>
|
||||
<div class="block">New PacketDownloadLang (Out)</div>
|
||||
</dd>
|
||||
@ -1935,7 +1931,7 @@ the order they are declared.</div>
|
||||
<div class="block">YAML Value Class</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<a href="#I:A">A</a> <a href="#I:B">B</a> <a href="#I:C">C</a> <a href="#I:D">D</a> <a href="#I:E">E</a> <a href="#I:F">F</a> <a href="#I:G">G</a> <a href="#I:H">H</a> <a href="#I:I">I</a> <a href="#I:J">J</a> <a href="#I:L">L</a> <a href="#I:N">N</a> <a href="#I:O">O</a> <a href="#I:P">P</a> <a href="#I:R">R</a> <a href="#I:S">S</a> <a href="#I:T">T</a> <a href="#I:U">U</a> <a href="#I:V">V</a> <a href="#I:Y">Y</a> </div>
|
||||
<a href="#I:A">A</a> <a href="#I:B">B</a> <a href="#I:C">C</a> <a href="#I:D">D</a> <a href="#I:E">E</a> <a href="#I:F">F</a> <a href="#I:G">G</a> <a href="#I:H">H</a> <a href="#I:I">I</a> <a href="#I:J">J</a> <a href="#I:N">N</a> <a href="#I:O">O</a> <a href="#I:P">P</a> <a href="#I:R">R</a> <a href="#I:S">S</a> <a href="#I:T">T</a> <a href="#I:U">U</a> <a href="#I:V">V</a> <a href="#I:Y">Y</a> </div>
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
|
@ -134,12 +134,12 @@ implements <a href="../../../../../../../net/ME1312/SubServers/Client/Bukkit/Net
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../../net/ME1312/SubServers/Client/Bukkit/Network/Packet/PacketDownloadLang.html#PacketDownloadLang--">PacketDownloadLang</a></span>()</code>
|
||||
<div class="block">New PacketDownloadLang (In)</div>
|
||||
<div class="block">New PacketDownloadLang (Out)</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../../net/ME1312/SubServers/Client/Bukkit/Network/Packet/PacketDownloadLang.html#PacketDownloadLang-net.ME1312.SubServers.Client.Bukkit.SubPlugin-">PacketDownloadLang</a></span>(<a href="../../../../../../../net/ME1312/SubServers/Client/Bukkit/SubPlugin.html" title="class in net.ME1312.SubServers.Client.Bukkit">SubPlugin</a> plugin)</code>
|
||||
<div class="block">New PacketDownloadLang (Out)</div>
|
||||
<div class="block">New PacketDownloadLang (In)</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -197,28 +197,28 @@ implements <a href="../../../../../../../net/ME1312/SubServers/Client/Bukkit/Net
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Constructor Detail</h3>
|
||||
<a name="PacketDownloadLang--">
|
||||
<a name="PacketDownloadLang-net.ME1312.SubServers.Client.Bukkit.SubPlugin-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>PacketDownloadLang</h4>
|
||||
<pre>public PacketDownloadLang()</pre>
|
||||
<pre>public PacketDownloadLang(<a href="../../../../../../../net/ME1312/SubServers/Client/Bukkit/SubPlugin.html" title="class in net.ME1312.SubServers.Client.Bukkit">SubPlugin</a> plugin)</pre>
|
||||
<div class="block">New PacketDownloadLang (In)</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>plugin</code> - SubServers.Client</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="PacketDownloadLang-net.ME1312.SubServers.Client.Bukkit.SubPlugin-">
|
||||
<a name="PacketDownloadLang--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>PacketDownloadLang</h4>
|
||||
<pre>public PacketDownloadLang(<a href="../../../../../../../net/ME1312/SubServers/Client/Bukkit/SubPlugin.html" title="class in net.ME1312.SubServers.Client.Bukkit">SubPlugin</a> plugin)</pre>
|
||||
<pre>public PacketDownloadLang()</pre>
|
||||
<div class="block">New PacketDownloadLang (Out)</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>plugin</code> - SubServers.Client</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
@ -17,7 +17,7 @@
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":9,"i5":42,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10};
|
||||
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":9,"i5":42,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10};
|
||||
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
|
||||
var altColor = "altColor";
|
||||
var rowColor = "rowColor";
|
||||
@ -167,36 +167,43 @@ extends java.lang.Object</pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i6" class="altColor">
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,java.lang.String></code></td>
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Client/Bukkit/SubAPI.html#getLang--">getLang</a></span>()</code>
|
||||
<div class="block">Gets the SubServers Lang</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i7" class="rowColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Client/Bukkit/SubAPI.html#getLang-java.lang.String-">getLang</a></span>(java.lang.String key)</code>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,java.lang.String></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Client/Bukkit/SubAPI.html#getLang-java.lang.String-">getLang</a></span>(java.lang.String channel)</code>
|
||||
<div class="block">Gets values from the SubServers Lang</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i8" class="altColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Client/Bukkit/SubAPI.html#getLang-java.lang.String-java.lang.String-">getLang</a></span>(java.lang.String channel,
|
||||
java.lang.String key)</code>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i9" class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../../net/ME1312/SubServers/Client/Bukkit/Library/Version/Version.html" title="class in net.ME1312.SubServers.Client.Bukkit.Library.Version">Version</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Client/Bukkit/SubAPI.html#getPluginVersion--">getPluginVersion</a></span>()</code>
|
||||
<div class="block">Gets the SubServers Version</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i9" class="rowColor">
|
||||
<tr id="i10" class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../../net/ME1312/SubServers/Client/Bukkit/Library/Version/Version.html" title="class in net.ME1312.SubServers.Client.Bukkit.Library.Version">Version</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Client/Bukkit/SubAPI.html#getServerVersion--">getServerVersion</a></span>()</code>
|
||||
<div class="block">Gets the Server Version</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i10" class="altColor">
|
||||
<tr id="i11" class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../../net/ME1312/SubServers/Client/Bukkit/Network/SubDataClient.html" title="class in net.ME1312.SubServers.Client.Bukkit.Network">SubDataClient</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Client/Bukkit/SubAPI.html#getSubDataNetwork--">getSubDataNetwork</a></span>()</code>
|
||||
<div class="block">Gets the SubData Network Manager</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i11" class="rowColor">
|
||||
<tr id="i12" class="altColor">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Client/Bukkit/SubAPI.html#setGraphicHandler-net.ME1312.SubServers.Client.Bukkit.Graphic.UIHandler-">setGraphicHandler</a></span>(<a href="../../../../../net/ME1312/SubServers/Client/Bukkit/Graphic/UIHandler.html" title="interface in net.ME1312.SubServers.Client.Bukkit.Graphic">UIHandler</a> graphics)</code>
|
||||
<div class="block">Sets the Graphics Handler for SubServers to use</div>
|
||||
@ -282,29 +289,13 @@ public <a href="../../../../../net/ME1312/SubServers/Client/Bukkit/SubPlugi
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getLang-java.lang.String-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getLang</h4>
|
||||
<pre>public java.lang.String getLang(java.lang.String key)</pre>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>key</code> - Key</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Lang Value</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getLang--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getLang</h4>
|
||||
<pre>public java.util.Map<java.lang.String,java.lang.String> getLang()</pre>
|
||||
<pre>public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getLang()</pre>
|
||||
<div class="block">Gets the SubServers Lang</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
@ -312,6 +303,40 @@ public <a href="../../../../../net/ME1312/SubServers/Client/Bukkit/SubPlugi
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getLang-java.lang.String-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getLang</h4>
|
||||
<pre>public java.util.Map<java.lang.String,java.lang.String> getLang(java.lang.String channel)</pre>
|
||||
<div class="block">Gets values from the SubServers Lang</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>channel</code> - Lang Channel</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Lang Values</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getLang-java.lang.String-java.lang.String-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getLang</h4>
|
||||
<pre>public java.lang.String getLang(java.lang.String channel,
|
||||
java.lang.String key)</pre>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>channel</code> - Lang Channel</dd>
|
||||
<dd><code>key</code> - Key</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Lang Value</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getGraphicHandler--">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
@ -159,14 +159,10 @@ extends org.bukkit.plugin.java.JavaPlugin</pre>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Client/Bukkit/SubPlugin.html#gui">gui</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../../net/ME1312/SubServers/Client/Bukkit/Library/Config/YAMLSection.html" title="class in net.ME1312.SubServers.Client.Bukkit.Library.Config">YAMLSection</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Client/Bukkit/SubPlugin.html#lang">lang</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../../net/ME1312/SubServers/Client/Bukkit/Network/SubDataClient.html" title="class in net.ME1312.SubServers.Client.Bukkit.Network">SubDataClient</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Client/Bukkit/SubPlugin.html#subdata">subdata</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../../net/ME1312/SubServers/Client/Bukkit/Library/Version/Version.html" title="class in net.ME1312.SubServers.Client.Bukkit.Library.Version">Version</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Client/Bukkit/SubPlugin.html#version">version</a></span></code> </td>
|
||||
</tr>
|
||||
@ -263,15 +259,6 @@ extends org.bukkit.plugin.java.JavaPlugin</pre>
|
||||
<pre>public <a href="../../../../../net/ME1312/SubServers/Client/Bukkit/Library/Config/YAMLConfig.html" title="class in net.ME1312.SubServers.Client.Bukkit.Library.Config">YAMLConfig</a> config</pre>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="lang">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>lang</h4>
|
||||
<pre>public <a href="../../../../../net/ME1312/SubServers/Client/Bukkit/Library/Config/YAMLSection.html" title="class in net.ME1312.SubServers.Client.Bukkit.Library.Config">YAMLSection</a> lang</pre>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="subdata">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
Binary file not shown.
@ -775,14 +775,18 @@
|
||||
<dd>
|
||||
<div class="block">Get the Keys</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/SubAPI.html#getLang-java.lang.String-">getLang(String)</a></span> - Method in class net.ME1312.SubServers.Host.<a href="net/ME1312/SubServers/Host/SubAPI.html" title="class in net.ME1312.SubServers.Host">SubAPI</a></dt>
|
||||
<dd>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/SubAPI.html#getLang--">getLang()</a></span> - Method in class net.ME1312.SubServers.Host.<a href="net/ME1312/SubServers/Host/SubAPI.html" title="class in net.ME1312.SubServers.Host">SubAPI</a></dt>
|
||||
<dd>
|
||||
<div class="block">Gets the SubServers Lang</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/SubAPI.html#getLang-java.lang.String-">getLang(String)</a></span> - Method in class net.ME1312.SubServers.Host.<a href="net/ME1312/SubServers/Host/SubAPI.html" title="class in net.ME1312.SubServers.Host">SubAPI</a></dt>
|
||||
<dd>
|
||||
<div class="block">Gets values from the SubServers Lang</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/SubAPI.html#getLang-java.lang.String-java.lang.String-">getLang(String, String)</a></span> - Method in class net.ME1312.SubServers.Host.<a href="net/ME1312/SubServers/Host/SubAPI.html" title="class in net.ME1312.SubServers.Host">SubAPI</a></dt>
|
||||
<dd>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/Library/Config/YAMLSection.html#getList-java.lang.String-">getList(String)</a></span> - Method in class net.ME1312.SubServers.Host.Library.Config.<a href="net/ME1312/SubServers/Host/Library/Config/YAMLSection.html" title="class in net.ME1312.SubServers.Host.Library.Config">YAMLSection</a></dt>
|
||||
<dd>
|
||||
<div class="block">Get a List by Handle</div>
|
||||
@ -1353,8 +1357,6 @@
|
||||
</a>
|
||||
<h2 class="title">L</h2>
|
||||
<dl>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/ExHost.html#lang">lang</a></span> - Variable in class net.ME1312.SubServers.Host.<a href="net/ME1312/SubServers/Host/ExHost.html" title="class in net.ME1312.SubServers.Host">ExHost</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html#LAST">LAST</a></span> - Static variable in class net.ME1312.SubServers.Host.Library.Event.<a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html" title="class in net.ME1312.SubServers.Host.Library.Event">EventOrder</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html#LATE">LATE</a></span> - Static variable in class net.ME1312.SubServers.Host.Library.Event.<a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html" title="class in net.ME1312.SubServers.Host.Library.Event">EventOrder</a></dt>
|
||||
@ -1553,7 +1555,7 @@
|
||||
<dd>
|
||||
<div class="block">New PacketDownloadServerList (In)</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/Network/Packet/PacketDownloadServerList.html#PacketDownloadServerList-java.lang.String-net.ME1312.SubServers.Host.Library.JSONCallback...-">PacketDownloadServerList(String, JSONCallback...)</a></span> - Constructor for class net.ME1312.SubServers.Host.Network.Packet.<a href="net/ME1312/SubServers/Host/Network/Packet/PacketDownloadServerList.html" title="class in net.ME1312.SubServers.Host.Network.Packet">PacketDownloadServerList</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/Network/Packet/PacketDownloadServerList.html#PacketDownloadServerList-java.lang.String-java.lang.String-net.ME1312.SubServers.Host.Library.JSONCallback...-">PacketDownloadServerList(String, String, JSONCallback...)</a></span> - Constructor for class net.ME1312.SubServers.Host.Network.Packet.<a href="net/ME1312/SubServers/Host/Network/Packet/PacketDownloadServerList.html" title="class in net.ME1312.SubServers.Host.Network.Packet">PacketDownloadServerList</a></dt>
|
||||
<dd>
|
||||
<div class="block">New PacketDownloadServerList (Out)</div>
|
||||
</dd>
|
||||
|
@ -153,30 +153,26 @@ extends java.lang.Object</pre>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/ExHost.html#host">host</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Host/Library/Config/YAMLSection.html" title="class in net.ME1312.SubServers.Host.Library.Config">YAMLSection</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/ExHost.html#lang">lang</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Host/Library/Log/Logger.html" title="class in net.ME1312.SubServers.Host.Library.Log">Logger</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/ExHost.html#log">log</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Host/Library/UniversalFile.html" title="class in net.ME1312.SubServers.Host.Library">UniversalFile</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/ExHost.html#runtime">runtime</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>java.util.HashMap<java.lang.String,<a href="../../../../net/ME1312/SubServers/Host/Executable/SubServer.html" title="class in net.ME1312.SubServers.Host.Executable">SubServer</a>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/ExHost.html#servers">servers</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Host/Network/SubDataClient.html" title="class in net.ME1312.SubServers.Host.Network">SubDataClient</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/ExHost.html#subdata">subdata</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>java.util.HashMap<java.lang.String,<a href="../../../../net/ME1312/SubServers/Host/Executable/SubCreator.ServerTemplate.html" title="class in net.ME1312.SubServers.Host.Executable">SubCreator.ServerTemplate</a>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/ExHost.html#templates">templates</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Host/Library/Version/Version.html" title="class in net.ME1312.SubServers.Host.Library.Version">Version</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/ExHost.html#version">version</a></span></code> </td>
|
||||
</tr>
|
||||
@ -305,15 +301,6 @@ extends java.lang.Object</pre>
|
||||
<pre>public <a href="../../../../net/ME1312/SubServers/Host/Library/Config/YAMLSection.html" title="class in net.ME1312.SubServers.Host.Library.Config">YAMLSection</a> host</pre>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="lang">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>lang</h4>
|
||||
<pre>public <a href="../../../../net/ME1312/SubServers/Host/Library/Config/YAMLSection.html" title="class in net.ME1312.SubServers.Host.Library.Config">YAMLSection</a> lang</pre>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="subdata">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
@ -138,7 +138,8 @@ implements <a href="../../../../../../net/ME1312/SubServers/Host/Network/PacketI
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Host/Network/Packet/PacketDownloadServerList.html#PacketDownloadServerList-java.lang.String-net.ME1312.SubServers.Host.Library.JSONCallback...-">PacketDownloadServerList</a></span>(java.lang.String host,
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Host/Network/Packet/PacketDownloadServerList.html#PacketDownloadServerList-java.lang.String-java.lang.String-net.ME1312.SubServers.Host.Library.JSONCallback...-">PacketDownloadServerList</a></span>(java.lang.String host,
|
||||
java.lang.String group,
|
||||
<a href="../../../../../../net/ME1312/SubServers/Host/Library/JSONCallback.html" title="interface in net.ME1312.SubServers.Host.Library">JSONCallback</a>... callback)</code>
|
||||
<div class="block">New PacketDownloadServerList (Out)</div>
|
||||
</td>
|
||||
@ -208,18 +209,20 @@ implements <a href="../../../../../../net/ME1312/SubServers/Host/Network/PacketI
|
||||
<div class="block">New PacketDownloadServerList (In)</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="PacketDownloadServerList-java.lang.String-net.ME1312.SubServers.Host.Library.JSONCallback...-">
|
||||
<a name="PacketDownloadServerList-java.lang.String-java.lang.String-net.ME1312.SubServers.Host.Library.JSONCallback...-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>PacketDownloadServerList</h4>
|
||||
<pre>public PacketDownloadServerList(java.lang.String host,
|
||||
java.lang.String group,
|
||||
<a href="../../../../../../net/ME1312/SubServers/Host/Library/JSONCallback.html" title="interface in net.ME1312.SubServers.Host.Library">JSONCallback</a>... callback)</pre>
|
||||
<div class="block">New PacketDownloadServerList (Out)</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>host</code> - Host name (or null for all)</dd>
|
||||
<dd><code>group</code> - Group name (or null for all)</dd>
|
||||
<dd><code>callback</code> - Callbacks</dd>
|
||||
</dl>
|
||||
</li>
|
||||
|
@ -17,7 +17,7 @@
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":9,"i6":42,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10};
|
||||
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":9,"i6":42,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10};
|
||||
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
|
||||
var altColor = "altColor";
|
||||
var rowColor = "rowColor";
|
||||
@ -174,62 +174,69 @@ extends java.lang.Object</pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i7" class="rowColor">
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,java.lang.String></code></td>
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/SubAPI.html#getLang--">getLang</a></span>()</code>
|
||||
<div class="block">Gets the SubServers Lang</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i8" class="altColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/SubAPI.html#getLang-java.lang.String-">getLang</a></span>(java.lang.String key)</code>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,java.lang.String></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/SubAPI.html#getLang-java.lang.String-">getLang</a></span>(java.lang.String channel)</code>
|
||||
<div class="block">Gets values from the SubServers Lang</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i9" class="rowColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/SubAPI.html#getLang-java.lang.String-java.lang.String-">getLang</a></span>(java.lang.String channel,
|
||||
java.lang.String key)</code>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i10" class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Host/API/SubPluginInfo.html" title="class in net.ME1312.SubServers.Host.API">SubPluginInfo</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/SubAPI.html#getPlugin-java.lang.String-">getPlugin</a></span>(java.lang.String plugin)</code>
|
||||
<div class="block">Gets a Plugin</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i10" class="altColor">
|
||||
<tr id="i11" class="rowColor">
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,<a href="../../../../net/ME1312/SubServers/Host/API/SubPluginInfo.html" title="class in net.ME1312.SubServers.Host.API">SubPluginInfo</a>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/SubAPI.html#getPlugins--">getPlugins</a></span>()</code>
|
||||
<div class="block">Get a map of the Plugins</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i11" class="rowColor">
|
||||
<tr id="i12" class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Host/Library/UniversalFile.html" title="class in net.ME1312.SubServers.Host.Library">UniversalFile</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/SubAPI.html#getRuntimeDirectory--">getRuntimeDirectory</a></span>()</code>
|
||||
<div class="block">Gets the Runtime Directory</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i12" class="altColor">
|
||||
<tr id="i13" class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Host/Network/SubDataClient.html" title="class in net.ME1312.SubServers.Host.Network">SubDataClient</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/SubAPI.html#getSubDataNetwork--">getSubDataNetwork</a></span>()</code>
|
||||
<div class="block">Gets the SubData Network Manager</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i13" class="rowColor">
|
||||
<tr id="i14" class="altColor">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/SubAPI.html#removeCommand-java.lang.String...-">removeCommand</a></span>(java.lang.String... handles)</code>
|
||||
<div class="block">Unregisters a Command</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i14" class="altColor">
|
||||
<tr id="i15" class="rowColor">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/SubAPI.html#removeListener-net.ME1312.SubServers.Host.API.SubPluginInfo-java.lang.Object...-">removeListener</a></span>(<a href="../../../../net/ME1312/SubServers/Host/API/SubPluginInfo.html" title="class in net.ME1312.SubServers.Host.API">SubPluginInfo</a> plugin,
|
||||
java.lang.Object... listeners)</code>
|
||||
<div class="block">Unregister SubEvent Listeners</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i15" class="rowColor">
|
||||
<tr id="i16" class="altColor">
|
||||
<td class="colFirst"><code>java.util.UUID</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/SubAPI.html#schedule-net.ME1312.SubServers.Host.API.SubPluginInfo-java.lang.Runnable-">schedule</a></span>(<a href="../../../../net/ME1312/SubServers/Host/API/SubPluginInfo.html" title="class in net.ME1312.SubServers.Host.API">SubPluginInfo</a> plugin,
|
||||
java.lang.Runnable run)</code>
|
||||
<div class="block">Schedule a task</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i16" class="altColor">
|
||||
<tr id="i17" class="rowColor">
|
||||
<td class="colFirst"><code>java.util.UUID</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/SubAPI.html#schedule-net.ME1312.SubServers.Host.API.SubPluginInfo-java.lang.Runnable-long-">schedule</a></span>(<a href="../../../../net/ME1312/SubServers/Host/API/SubPluginInfo.html" title="class in net.ME1312.SubServers.Host.API">SubPluginInfo</a> plugin,
|
||||
java.lang.Runnable run,
|
||||
@ -237,7 +244,7 @@ extends java.lang.Object</pre>
|
||||
<div class="block">Schedule a task</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i17" class="rowColor">
|
||||
<tr id="i18" class="altColor">
|
||||
<td class="colFirst"><code>java.util.UUID</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/SubAPI.html#schedule-net.ME1312.SubServers.Host.API.SubPluginInfo-java.lang.Runnable-long-long-">schedule</a></span>(<a href="../../../../net/ME1312/SubServers/Host/API/SubPluginInfo.html" title="class in net.ME1312.SubServers.Host.API">SubPluginInfo</a> plugin,
|
||||
java.lang.Runnable run,
|
||||
@ -246,7 +253,7 @@ extends java.lang.Object</pre>
|
||||
<div class="block">Schedule a task</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i18" class="altColor">
|
||||
<tr id="i19" class="rowColor">
|
||||
<td class="colFirst"><code>java.util.UUID</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/SubAPI.html#schedule-net.ME1312.SubServers.Host.API.SubPluginInfo-java.lang.Runnable-java.util.concurrent.TimeUnit-long-long-">schedule</a></span>(<a href="../../../../net/ME1312/SubServers/Host/API/SubPluginInfo.html" title="class in net.ME1312.SubServers.Host.API">SubPluginInfo</a> plugin,
|
||||
java.lang.Runnable run,
|
||||
@ -256,7 +263,7 @@ extends java.lang.Object</pre>
|
||||
<div class="block">Schedule a task</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i19" class="rowColor">
|
||||
<tr id="i20" class="altColor">
|
||||
<td class="colFirst"><code>java.util.UUID</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/SubAPI.html#schedule-net.ME1312.SubServers.Host.API.SubTask-">schedule</a></span>(<a href="../../../../net/ME1312/SubServers/Host/API/SubTask.html" title="class in net.ME1312.SubServers.Host.API">SubTask</a> builder)</code>
|
||||
<div class="block">Schedule a task</div>
|
||||
@ -532,29 +539,13 @@ public <a href="../../../../net/ME1312/SubServers/Host/ExHost.html" title="
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getLang-java.lang.String-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getLang</h4>
|
||||
<pre>public java.lang.String getLang(java.lang.String key)</pre>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>key</code> - Key</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Lang Value</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getLang--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getLang</h4>
|
||||
<pre>public java.util.Map<java.lang.String,java.lang.String> getLang()</pre>
|
||||
<pre>public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getLang()</pre>
|
||||
<div class="block">Gets the SubServers Lang</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
@ -562,6 +553,40 @@ public <a href="../../../../net/ME1312/SubServers/Host/ExHost.html" title="
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getLang-java.lang.String-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getLang</h4>
|
||||
<pre>public java.util.Map<java.lang.String,java.lang.String> getLang(java.lang.String channel)</pre>
|
||||
<div class="block">Gets values from the SubServers Lang</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>channel</code> - Lang Channel</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Lang Values</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getLang-java.lang.String-java.lang.String-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getLang</h4>
|
||||
<pre>public java.lang.String getLang(java.lang.String channel,
|
||||
java.lang.String key)</pre>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>channel</code> - Lang Channel</dd>
|
||||
<dd><code>key</code> - Key</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Lang Value</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getRuntimeDirectory--">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
Binary file not shown.
@ -16,6 +16,8 @@
|
||||
<li><a href="net/ME1312/SubServers/Sync/Network/AES.InvalidKeyLengthException.html" title="class in net.ME1312.SubServers.Sync.Network" target="classFrame">AES.InvalidKeyLengthException</a></li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Network/AES.InvalidPasswordException.html" title="class in net.ME1312.SubServers.Sync.Network" target="classFrame">AES.InvalidPasswordException</a></li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Network/AES.StrongEncryptionNotAvailableException.html" title="class in net.ME1312.SubServers.Sync.Network" target="classFrame">AES.StrongEncryptionNotAvailableException</a></li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility" target="classFrame">CommandX</a></li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility.v1_13" target="classFrame">CommandX</a></li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Library/Container.html" title="class in net.ME1312.SubServers.Sync.Library" target="classFrame">Container</a></li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Library/ExtraDataHandler.html" title="interface in net.ME1312.SubServers.Sync.Library" target="classFrame"><span class="interfaceName">ExtraDataHandler</span></a></li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Library/Exception/IllegalPacketException.html" title="class in net.ME1312.SubServers.Sync.Library.Exception" target="classFrame">IllegalPacketException</a></li>
|
||||
|
@ -16,6 +16,8 @@
|
||||
<li><a href="net/ME1312/SubServers/Sync/Network/AES.InvalidKeyLengthException.html" title="class in net.ME1312.SubServers.Sync.Network">AES.InvalidKeyLengthException</a></li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Network/AES.InvalidPasswordException.html" title="class in net.ME1312.SubServers.Sync.Network">AES.InvalidPasswordException</a></li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Network/AES.StrongEncryptionNotAvailableException.html" title="class in net.ME1312.SubServers.Sync.Network">AES.StrongEncryptionNotAvailableException</a></li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility">CommandX</a></li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility.v1_13">CommandX</a></li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Library/Container.html" title="class in net.ME1312.SubServers.Sync.Library">Container</a></li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Library/ExtraDataHandler.html" title="interface in net.ME1312.SubServers.Sync.Library"><span class="interfaceName">ExtraDataHandler</span></a></li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Library/Exception/IllegalPacketException.html" title="class in net.ME1312.SubServers.Sync.Library.Exception">IllegalPacketException</a></li>
|
||||
|
@ -233,6 +233,28 @@
|
||||
<dd>
|
||||
<div class="block">Clone this YAML Section</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html#command">command</a></span> - Variable in class net.ME1312.SubServers.Sync.Library.Compatibility.v1_13.<a href="net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility.v1_13">CommandX</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><a href="net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility"><span class="typeNameLink">CommandX</span></a> - Class in <a href="net/ME1312/SubServers/Sync/Library/Compatibility/package-summary.html">net.ME1312.SubServers.Sync.Library.Compatibility</a></dt>
|
||||
<dd>
|
||||
<div class="block">Command Layout Class that implements all possible features (Base Version)</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html#CommandX-java.lang.String-">CommandX(String)</a></span> - Constructor for class net.ME1312.SubServers.Sync.Library.Compatibility.<a href="net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility">CommandX</a></dt>
|
||||
<dd>
|
||||
<div class="block">Create a Command</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html#CommandX-java.lang.String-java.lang.String-java.lang.String...-">CommandX(String, String, String...)</a></span> - Constructor for class net.ME1312.SubServers.Sync.Library.Compatibility.<a href="net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility">CommandX</a></dt>
|
||||
<dd>
|
||||
<div class="block">Create a Command</div>
|
||||
</dd>
|
||||
<dt><a href="net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility.v1_13"><span class="typeNameLink">CommandX</span></a> - Class in <a href="net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/package-summary.html">net.ME1312.SubServers.Sync.Library.Compatibility.v1_13</a></dt>
|
||||
<dd>
|
||||
<div class="block">Command Layout Class that implements all possible features (1.13 Version)</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html#CommandX-net.ME1312.SubServers.Sync.Library.Compatibility.CommandX-">CommandX(CommandX)</a></span> - Constructor for class net.ME1312.SubServers.Sync.Library.Compatibility.v1_13.<a href="net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility.v1_13">CommandX</a></dt>
|
||||
<dd>
|
||||
<div class="block">Create a Command</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/Library/Version/Version.html#compare-net.ME1312.SubServers.Sync.Library.Version.Version-net.ME1312.SubServers.Sync.Library.Version.Version-">compare(Version, Version)</a></span> - Static method in class net.ME1312.SubServers.Sync.Library.Version.<a href="net/ME1312/SubServers/Sync/Library/Version/Version.html" title="class in net.ME1312.SubServers.Sync.Library.Version">Version</a></dt>
|
||||
<dd>
|
||||
<div class="block">Compare Versions</div>
|
||||
@ -307,6 +329,10 @@
|
||||
<dd>
|
||||
<div class="block">See if Versions are Equal</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html#execute-net.md_5.bungee.api.CommandSender-java.lang.String:A-">execute(CommandSender, String[])</a></span> - Method in class net.ME1312.SubServers.Sync.Library.Compatibility.v1_13.<a href="net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility.v1_13">CommandX</a></dt>
|
||||
<dd>
|
||||
<div class="block">Override BungeeCord Method for the previously used one</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/Network/Packet/PacketAuthorization.html#execute-org.json.JSONObject-">execute(JSONObject)</a></span> - Method in class net.ME1312.SubServers.Sync.Network.Packet.<a href="net/ME1312/SubServers/Sync/Network/Packet/PacketAuthorization.html" title="class in net.ME1312.SubServers.Sync.Network.Packet">PacketAuthorization</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/Network/Packet/PacketCommandServer.html#execute-org.json.JSONObject-">execute(JSONObject)</a></span> - Method in class net.ME1312.SubServers.Sync.Network.Packet.<a href="net/ME1312/SubServers/Sync/Network/Packet/PacketCommandServer.html" title="class in net.ME1312.SubServers.Sync.Network.Packet">PacketCommandServer</a></dt>
|
||||
@ -583,14 +609,18 @@
|
||||
<dd>
|
||||
<div class="block">Get the Keys</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/SubAPI.html#getLang-java.lang.String-">getLang(String)</a></span> - Method in class net.ME1312.SubServers.Sync.<a href="net/ME1312/SubServers/Sync/SubAPI.html" title="class in net.ME1312.SubServers.Sync">SubAPI</a></dt>
|
||||
<dd>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/SubAPI.html#getLang--">getLang()</a></span> - Method in class net.ME1312.SubServers.Sync.<a href="net/ME1312/SubServers/Sync/SubAPI.html" title="class in net.ME1312.SubServers.Sync">SubAPI</a></dt>
|
||||
<dd>
|
||||
<div class="block">Gets the SubServers Lang</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/SubAPI.html#getLang-java.lang.String-">getLang(String)</a></span> - Method in class net.ME1312.SubServers.Sync.<a href="net/ME1312/SubServers/Sync/SubAPI.html" title="class in net.ME1312.SubServers.Sync">SubAPI</a></dt>
|
||||
<dd>
|
||||
<div class="block">Gets values from the SubServers Lang</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/SubAPI.html#getLang-java.lang.String-java.lang.String-">getLang(String, String)</a></span> - Method in class net.ME1312.SubServers.Sync.<a href="net/ME1312/SubServers/Sync/SubAPI.html" title="class in net.ME1312.SubServers.Sync">SubAPI</a></dt>
|
||||
<dd>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/Library/Config/YAMLSection.html#getList-java.lang.String-">getList(String)</a></span> - Method in class net.ME1312.SubServers.Sync.Library.Config.<a href="net/ME1312/SubServers/Sync/Library/Config/YAMLSection.html" title="class in net.ME1312.SubServers.Sync.Library.Config">YAMLSection</a></dt>
|
||||
<dd>
|
||||
<div class="block">Get a List by Handle</div>
|
||||
@ -1041,8 +1071,6 @@
|
||||
</a>
|
||||
<h2 class="title">L</h2>
|
||||
<dl>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/SubPlugin.html#lang">lang</a></span> - Variable in class net.ME1312.SubServers.Sync.<a href="net/ME1312/SubServers/Sync/SubPlugin.html" title="class in net.ME1312.SubServers.Sync">SubPlugin</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/SubPlugin.html#lastReload">lastReload</a></span> - Variable in class net.ME1312.SubServers.Sync.<a href="net/ME1312/SubServers/Sync/SubPlugin.html" title="class in net.ME1312.SubServers.Sync">SubPlugin</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><a href="net/ME1312/SubServers/Sync/Launch.html" title="class in net.ME1312.SubServers.Sync"><span class="typeNameLink">Launch</span></a> - Class in <a href="net/ME1312/SubServers/Sync/package-summary.html">net.ME1312.SubServers.Sync</a></dt>
|
||||
@ -1097,6 +1125,10 @@
|
||||
<dd> </dd>
|
||||
<dt><a href="net/ME1312/SubServers/Sync/Library/package-summary.html">net.ME1312.SubServers.Sync.Library</a> - package net.ME1312.SubServers.Sync.Library</dt>
|
||||
<dd> </dd>
|
||||
<dt><a href="net/ME1312/SubServers/Sync/Library/Compatibility/package-summary.html">net.ME1312.SubServers.Sync.Library.Compatibility</a> - package net.ME1312.SubServers.Sync.Library.Compatibility</dt>
|
||||
<dd> </dd>
|
||||
<dt><a href="net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/package-summary.html">net.ME1312.SubServers.Sync.Library.Compatibility.v1_13</a> - package net.ME1312.SubServers.Sync.Library.Compatibility.v1_13</dt>
|
||||
<dd> </dd>
|
||||
<dt><a href="net/ME1312/SubServers/Sync/Library/Config/package-summary.html">net.ME1312.SubServers.Sync.Library.Config</a> - package net.ME1312.SubServers.Sync.Library.Config</dt>
|
||||
<dd> </dd>
|
||||
<dt><a href="net/ME1312/SubServers/Sync/Library/Exception/package-summary.html">net.ME1312.SubServers.Sync.Library.Exception</a> - package net.ME1312.SubServers.Sync.Library.Exception</dt>
|
||||
@ -1115,9 +1147,9 @@
|
||||
</a>
|
||||
<h2 class="title">O</h2>
|
||||
<dl>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/SubCommand.BungeeServer.html#onTabComplete-net.md_5.bungee.api.CommandSender-java.lang.String:A-">onTabComplete(CommandSender, String[])</a></span> - Method in class net.ME1312.SubServers.Sync.<a href="net/ME1312/SubServers/Sync/SubCommand.BungeeServer.html" title="class in net.ME1312.SubServers.Sync">SubCommand.BungeeServer</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html#onTabComplete-net.md_5.bungee.api.CommandSender-java.lang.String:A-">onTabComplete(CommandSender, String[])</a></span> - Method in class net.ME1312.SubServers.Sync.Library.Compatibility.<a href="net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility">CommandX</a></dt>
|
||||
<dd>
|
||||
<div class="block">Tab completer</div>
|
||||
<div class="block">Override the BungeeCord Method of <a href="net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html#suggestArguments-net.md_5.bungee.api.CommandSender-java.lang.String:A-"><code>CommandX.suggestArguments(CommandSender, String[])</code></a></div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/SubPlugin.html#out">out</a></span> - Variable in class net.ME1312.SubServers.Sync.<a href="net/ME1312/SubServers/Sync/SubPlugin.html" title="class in net.ME1312.SubServers.Sync">SubPlugin</a></dt>
|
||||
<dd> </dd>
|
||||
@ -1231,7 +1263,7 @@
|
||||
<dd>
|
||||
<div class="block">New PacketDownloadServerList (In)</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/Network/Packet/PacketDownloadServerList.html#PacketDownloadServerList-java.lang.String-net.ME1312.SubServers.Sync.Library.JSONCallback...-">PacketDownloadServerList(String, JSONCallback...)</a></span> - Constructor for class net.ME1312.SubServers.Sync.Network.Packet.<a href="net/ME1312/SubServers/Sync/Network/Packet/PacketDownloadServerList.html" title="class in net.ME1312.SubServers.Sync.Network.Packet">PacketDownloadServerList</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/Network/Packet/PacketDownloadServerList.html#PacketDownloadServerList-java.lang.String-java.lang.String-net.ME1312.SubServers.Sync.Library.JSONCallback...-">PacketDownloadServerList(String, String, JSONCallback...)</a></span> - Constructor for class net.ME1312.SubServers.Sync.Network.Packet.<a href="net/ME1312/SubServers/Sync/Network/Packet/PacketDownloadServerList.html" title="class in net.ME1312.SubServers.Sync.Network.Packet">PacketDownloadServerList</a></dt>
|
||||
<dd>
|
||||
<div class="block">New PacketDownloadServerList (Out)</div>
|
||||
</dd>
|
||||
@ -1465,8 +1497,6 @@
|
||||
</dd>
|
||||
<dt><a href="net/ME1312/SubServers/Sync/SubCommand.html" title="class in net.ME1312.SubServers.Sync"><span class="typeNameLink">SubCommand</span></a> - Class in <a href="net/ME1312/SubServers/Sync/package-summary.html">net.ME1312.SubServers.Sync</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/SubCommand.html#SubCommand-net.ME1312.SubServers.Sync.SubPlugin-java.lang.String-">SubCommand(SubPlugin, String)</a></span> - Constructor for class net.ME1312.SubServers.Sync.<a href="net/ME1312/SubServers/Sync/SubCommand.html" title="class in net.ME1312.SubServers.Sync">SubCommand</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><a href="net/ME1312/SubServers/Sync/SubCommand.BungeeList.html" title="class in net.ME1312.SubServers.Sync"><span class="typeNameLink">SubCommand.BungeeList</span></a> - Class in <a href="net/ME1312/SubServers/Sync/package-summary.html">net.ME1312.SubServers.Sync</a></dt>
|
||||
<dd>
|
||||
<div class="block">BungeeCord /glist</div>
|
||||
@ -1579,6 +1609,20 @@
|
||||
<dd>
|
||||
<div class="block">Server Shell Exit Event</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html#suggestArguments-net.md_5.bungee.api.CommandSender-java.lang.String:A-">suggestArguments(CommandSender, String[])</a></span> - Method in class net.ME1312.SubServers.Sync.Library.Compatibility.<a href="net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility">CommandX</a></dt>
|
||||
<dd>
|
||||
<div class="block">Suggest Arguments</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html#suggestArguments-net.md_5.bungee.api.CommandSender-java.lang.String:A-">suggestArguments(CommandSender, String[])</a></span> - Method in class net.ME1312.SubServers.Sync.Library.Compatibility.v1_13.<a href="net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility.v1_13">CommandX</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/SubCommand.BungeeServer.html#suggestArguments-net.md_5.bungee.api.CommandSender-java.lang.String:A-">suggestArguments(CommandSender, String[])</a></span> - Method in class net.ME1312.SubServers.Sync.<a href="net/ME1312/SubServers/Sync/SubCommand.BungeeServer.html" title="class in net.ME1312.SubServers.Sync">SubCommand.BungeeServer</a></dt>
|
||||
<dd>
|
||||
<div class="block">Suggest command arguments</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/SubCommand.html#suggestArguments-net.md_5.bungee.api.CommandSender-java.lang.String:A-">suggestArguments(CommandSender, String[])</a></span> - Method in class net.ME1312.SubServers.Sync.<a href="net/ME1312/SubServers/Sync/SubCommand.html" title="class in net.ME1312.SubServers.Sync">SubCommand</a></dt>
|
||||
<dd>
|
||||
<div class="block">Suggest command arguments</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/Library/Config/YAMLSection.html#superSection--">superSection()</a></span> - Method in class net.ME1312.SubServers.Sync.Library.Config.<a href="net/ME1312/SubServers/Sync/Library/Config/YAMLSection.html" title="class in net.ME1312.SubServers.Sync.Library.Config">YAMLSection</a></dt>
|
||||
<dd>
|
||||
<div class="block">Go up a level in the config (or null if this is the top layer)</div>
|
||||
@ -1661,6 +1705,10 @@
|
||||
</a>
|
||||
<h2 class="title">V</h2>
|
||||
<dl>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html#validateCommand-net.md_5.bungee.api.CommandSender-java.lang.String-">validateCommand(CommandSender, String)</a></span> - Method in class net.ME1312.SubServers.Sync.Library.Compatibility.v1_13.<a href="net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility.v1_13">CommandX</a></dt>
|
||||
<dd>
|
||||
<div class="block">Validate a Command (Override for custom)</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/Network/SubDataClient.Encryption.html#valueOf-java.lang.String-">valueOf(String)</a></span> - Static method in enum net.ME1312.SubServers.Sync.Network.<a href="net/ME1312/SubServers/Sync/Network/SubDataClient.Encryption.html" title="enum in net.ME1312.SubServers.Sync.Network">SubDataClient.Encryption</a></dt>
|
||||
<dd>
|
||||
<div class="block">Returns the enum constant of this type with the specified name.</div>
|
||||
|
@ -0,0 +1,361 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!-- NewPage -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>CommandX (SubServers.Sync)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../../script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="CommandX (SubServers.Sync)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
var methods = {"i0":10,"i1":6};
|
||||
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]};
|
||||
var altColor = "altColor";
|
||||
var rowColor = "rowColor";
|
||||
var tableTab = "tableTab";
|
||||
var activeTableTab = "activeTableTab";
|
||||
</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="topNav"><a name="navbar.top">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.top.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li class="navBarCell1Rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="../../../../../../index-all.html">Index</a></li>
|
||||
<li><a href="../../../../../../help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li>Prev Class</li>
|
||||
<li>Next Class</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../index.html?net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" target="_top">Frames</a></li>
|
||||
<li><a href="CommandX.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_top">
|
||||
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<div>
|
||||
<ul class="subNavList">
|
||||
<li>Summary: </li>
|
||||
<li>Nested | </li>
|
||||
<li>Field | </li>
|
||||
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||
<li><a href="#method.summary">Method</a></li>
|
||||
</ul>
|
||||
<ul class="subNavList">
|
||||
<li>Detail: </li>
|
||||
<li>Field | </li>
|
||||
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||
<li><a href="#method.detail">Method</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<a name="skip.navbar.top">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<div class="subTitle">net.ME1312.SubServers.Sync.Library.Compatibility</div>
|
||||
<h2 title="Class CommandX" class="title">Class CommandX</h2>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Object</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>net.md_5.bungee.api.plugin.Command</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>net.ME1312.SubServers.Sync.Library.Compatibility.CommandX</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<dl>
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd>net.md_5.bungee.api.plugin.TabExecutor</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>Direct Known Subclasses:</dt>
|
||||
<dd><a href="../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility.v1_13">CommandX</a>, <a href="../../../../../../net/ME1312/SubServers/Sync/SubCommand.html" title="class in net.ME1312.SubServers.Sync">SubCommand</a>, <a href="../../../../../../net/ME1312/SubServers/Sync/SubCommand.BungeeServer.html" title="class in net.ME1312.SubServers.Sync">SubCommand.BungeeServer</a></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public abstract class <span class="typeNameLabel">CommandX</span>
|
||||
extends net.md_5.bungee.api.plugin.Command
|
||||
implements net.md_5.bungee.api.plugin.TabExecutor</pre>
|
||||
<div class="block">Command Layout Class that implements all possible features (Base Version)</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="summary">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="constructor.summary">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Constructor Summary</h3>
|
||||
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
||||
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
||||
<tr>
|
||||
<th class="colOne" scope="col">Constructor and Description</th>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html#CommandX-java.lang.String-">CommandX</a></span>(java.lang.String name)</code>
|
||||
<div class="block">Create a Command</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html#CommandX-java.lang.String-java.lang.String-java.lang.String...-">CommandX</a></span>(java.lang.String name,
|
||||
java.lang.String permission,
|
||||
java.lang.String... aliases)</code>
|
||||
<div class="block">Create a Command</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method.summary">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Method Summary</h3>
|
||||
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
||||
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Modifier and Type</th>
|
||||
<th class="colLast" scope="col">Method and Description</th>
|
||||
</tr>
|
||||
<tr id="i0" class="altColor">
|
||||
<td class="colFirst"><code>java.lang.Iterable<java.lang.String></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html#onTabComplete-net.md_5.bungee.api.CommandSender-java.lang.String:A-">onTabComplete</a></span>(net.md_5.bungee.api.CommandSender sender,
|
||||
java.lang.String[] args)</code>
|
||||
<div class="block">Override the BungeeCord Method of <a href="../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html#suggestArguments-net.md_5.bungee.api.CommandSender-java.lang.String:A-"><code>suggestArguments(CommandSender, String[])</code></a></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i1" class="rowColor">
|
||||
<td class="colFirst"><code>abstract <a href="../../../../../../net/ME1312/SubServers/Sync/Library/NamedContainer.html" title="class in net.ME1312.SubServers.Sync.Library">NamedContainer</a><java.lang.String,java.util.List<java.lang.String>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html#suggestArguments-net.md_5.bungee.api.CommandSender-java.lang.String:A-">suggestArguments</a></span>(net.md_5.bungee.api.CommandSender sender,
|
||||
java.lang.String[] args)</code>
|
||||
<div class="block">Suggest Arguments</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="methods.inherited.from.class.net.md_5.bungee.api.plugin.Command">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Methods inherited from class net.md_5.bungee.api.plugin.Command</h3>
|
||||
<code>equals, execute, getAliases, getName, getPermission, hashCode, toString</code></li>
|
||||
</ul>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Methods inherited from class java.lang.Object</h3>
|
||||
<code>getClass, notify, notifyAll, wait, wait, wait</code></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="details">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="constructor.detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Constructor Detail</h3>
|
||||
<a name="CommandX-java.lang.String-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>CommandX</h4>
|
||||
<pre>public CommandX(java.lang.String name)</pre>
|
||||
<div class="block">Create a Command</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>name</code> - Command Name</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="CommandX-java.lang.String-java.lang.String-java.lang.String...-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>CommandX</h4>
|
||||
<pre>public CommandX(java.lang.String name,
|
||||
java.lang.String permission,
|
||||
java.lang.String... aliases)</pre>
|
||||
<div class="block">Create a Command</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>name</code> - Command Name</dd>
|
||||
<dd><code>permission</code> - Command Permission</dd>
|
||||
<dd><code>aliases</code> - Command Aliases</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method.detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Method Detail</h3>
|
||||
<a name="suggestArguments-net.md_5.bungee.api.CommandSender-java.lang.String:A-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>suggestArguments</h4>
|
||||
<pre>public abstract <a href="../../../../../../net/ME1312/SubServers/Sync/Library/NamedContainer.html" title="class in net.ME1312.SubServers.Sync.Library">NamedContainer</a><java.lang.String,java.util.List<java.lang.String>> suggestArguments(net.md_5.bungee.api.CommandSender sender,
|
||||
java.lang.String[] args)</pre>
|
||||
<div class="block">Suggest Arguments</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>sender</code> - Sender</dd>
|
||||
<dd><code>args</code> - Arguments (including the final unfinished one)</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>An Error Message (if there was one, otherwise null) and a List of Suggestions</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="onTabComplete-net.md_5.bungee.api.CommandSender-java.lang.String:A-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>onTabComplete</h4>
|
||||
<pre>public java.lang.Iterable<java.lang.String> onTabComplete(net.md_5.bungee.api.CommandSender sender,
|
||||
java.lang.String[] args)</pre>
|
||||
<div class="block">Override the BungeeCord Method of <a href="../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html#suggestArguments-net.md_5.bungee.api.CommandSender-java.lang.String:A-"><code>suggestArguments(CommandSender, String[])</code></a></div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||||
<dd><code>onTabComplete</code> in interface <code>net.md_5.bungee.api.plugin.TabExecutor</code></dd>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>sender</code> - Sender</dd>
|
||||
<dd><code>args</code> - Arguments (including the final unfinished one)</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>A Collection of Suggestions</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.bottom.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li class="navBarCell1Rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="../../../../../../index-all.html">Index</a></li>
|
||||
<li><a href="../../../../../../help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li>Prev Class</li>
|
||||
<li>Next Class</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../index.html?net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" target="_top">Frames</a></li>
|
||||
<li><a href="CommandX.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_bottom">
|
||||
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<div>
|
||||
<ul class="subNavList">
|
||||
<li>Summary: </li>
|
||||
<li>Nested | </li>
|
||||
<li>Field | </li>
|
||||
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||
<li><a href="#method.summary">Method</a></li>
|
||||
</ul>
|
||||
<ul class="subNavList">
|
||||
<li>Detail: </li>
|
||||
<li>Field | </li>
|
||||
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||
<li><a href="#method.detail">Method</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<a name="skip.navbar.bottom">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,19 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!-- NewPage -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>net.ME1312.SubServers.Sync.Library.Compatibility (SubServers.Sync)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../../script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 class="bar"><a href="../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/package-summary.html" target="classFrame">net.ME1312.SubServers.Sync.Library.Compatibility</a></h1>
|
||||
<div class="indexContainer">
|
||||
<h2 title="Classes">Classes</h2>
|
||||
<ul title="Classes">
|
||||
<li><a href="CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility" target="classFrame">CommandX</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,141 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!-- NewPage -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>net.ME1312.SubServers.Sync.Library.Compatibility (SubServers.Sync)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../../script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="net.ME1312.SubServers.Sync.Library.Compatibility (SubServers.Sync)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="topNav"><a name="navbar.top">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.top.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
|
||||
<li class="navBarCell1Rev">Package</li>
|
||||
<li>Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="../../../../../../index-all.html">Index</a></li>
|
||||
<li><a href="../../../../../../help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../net/ME1312/SubServers/Sync/Library/package-summary.html">Prev Package</a></li>
|
||||
<li><a href="../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/package-summary.html">Next Package</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../index.html?net/ME1312/SubServers/Sync/Library/Compatibility/package-summary.html" target="_top">Frames</a></li>
|
||||
<li><a href="package-summary.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_top">
|
||||
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.top">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="header">
|
||||
<h1 title="Package" class="title">Package net.ME1312.SubServers.Sync.Library.Compatibility</h1>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation">
|
||||
<caption><span>Class Summary</span><span class="tabEnd"> </span></caption>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Class</th>
|
||||
<th class="colLast" scope="col">Description</th>
|
||||
</tr>
|
||||
<tbody>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><a href="../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility">CommandX</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">Command Layout Class that implements all possible features (Base Version)</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.bottom.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
|
||||
<li class="navBarCell1Rev">Package</li>
|
||||
<li>Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="../../../../../../index-all.html">Index</a></li>
|
||||
<li><a href="../../../../../../help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../net/ME1312/SubServers/Sync/Library/package-summary.html">Prev Package</a></li>
|
||||
<li><a href="../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/package-summary.html">Next Package</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../index.html?net/ME1312/SubServers/Sync/Library/Compatibility/package-summary.html" target="_top">Frames</a></li>
|
||||
<li><a href="package-summary.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_bottom">
|
||||
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.bottom">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,138 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!-- NewPage -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>net.ME1312.SubServers.Sync.Library.Compatibility Class Hierarchy (SubServers.Sync)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../../script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="net.ME1312.SubServers.Sync.Library.Compatibility Class Hierarchy (SubServers.Sync)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="topNav"><a name="navbar.top">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.top.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li>Class</li>
|
||||
<li class="navBarCell1Rev">Tree</li>
|
||||
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="../../../../../../index-all.html">Index</a></li>
|
||||
<li><a href="../../../../../../help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../net/ME1312/SubServers/Sync/Library/package-tree.html">Prev</a></li>
|
||||
<li><a href="../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/package-tree.html">Next</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../index.html?net/ME1312/SubServers/Sync/Library/Compatibility/package-tree.html" target="_top">Frames</a></li>
|
||||
<li><a href="package-tree.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_top">
|
||||
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.top">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="header">
|
||||
<h1 class="title">Hierarchy For Package net.ME1312.SubServers.Sync.Library.Compatibility</h1>
|
||||
<span class="packageHierarchyLabel">Package Hierarchies:</span>
|
||||
<ul class="horizontal">
|
||||
<li><a href="../../../../../../overview-tree.html">All Packages</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<h2 title="Class Hierarchy">Class Hierarchy</h2>
|
||||
<ul>
|
||||
<li type="circle">java.lang.Object
|
||||
<ul>
|
||||
<li type="circle">net.md_5.bungee.api.plugin.Command
|
||||
<ul>
|
||||
<li type="circle">net.ME1312.SubServers.Sync.Library.Compatibility.<a href="../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility"><span class="typeNameLink">CommandX</span></a> (implements net.md_5.bungee.api.plugin.TabExecutor)</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.bottom.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li>Class</li>
|
||||
<li class="navBarCell1Rev">Tree</li>
|
||||
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="../../../../../../index-all.html">Index</a></li>
|
||||
<li><a href="../../../../../../help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../net/ME1312/SubServers/Sync/Library/package-tree.html">Prev</a></li>
|
||||
<li><a href="../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/package-tree.html">Next</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../index.html?net/ME1312/SubServers/Sync/Library/Compatibility/package-tree.html" target="_top">Frames</a></li>
|
||||
<li><a href="package-tree.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_bottom">
|
||||
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.bottom">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,405 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!-- NewPage -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>CommandX (SubServers.Sync)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../../../script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="CommandX (SubServers.Sync)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
var methods = {"i0":10,"i1":10,"i2":10};
|
||||
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
||||
var altColor = "altColor";
|
||||
var rowColor = "rowColor";
|
||||
var tableTab = "tableTab";
|
||||
var activeTableTab = "activeTableTab";
|
||||
</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="topNav"><a name="navbar.top">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.top.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li class="navBarCell1Rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="../../../../../../../index-all.html">Index</a></li>
|
||||
<li><a href="../../../../../../../help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li>Prev Class</li>
|
||||
<li>Next Class</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../../index.html?net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html" target="_top">Frames</a></li>
|
||||
<li><a href="CommandX.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_top">
|
||||
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<div>
|
||||
<ul class="subNavList">
|
||||
<li>Summary: </li>
|
||||
<li>Nested | </li>
|
||||
<li><a href="#field.summary">Field</a> | </li>
|
||||
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||
<li><a href="#method.summary">Method</a></li>
|
||||
</ul>
|
||||
<ul class="subNavList">
|
||||
<li>Detail: </li>
|
||||
<li><a href="#field.detail">Field</a> | </li>
|
||||
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||
<li><a href="#method.detail">Method</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<a name="skip.navbar.top">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<div class="subTitle">net.ME1312.SubServers.Sync.Library.Compatibility.v1_13</div>
|
||||
<h2 title="Class CommandX" class="title">Class CommandX</h2>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Object</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>net.md_5.bungee.api.plugin.Command</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li><a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility">net.ME1312.SubServers.Sync.Library.Compatibility.CommandX</a></li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>net.ME1312.SubServers.Sync.Library.Compatibility.v1_13.CommandX</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<dl>
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd>net.md_5.bungee.api.plugin.TabExecutor</dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public class <span class="typeNameLabel">CommandX</span>
|
||||
extends <a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility">CommandX</a></pre>
|
||||
<div class="block">Command Layout Class that implements all possible features (1.13 Version)</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="summary">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="field.summary">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Field Summary</h3>
|
||||
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
|
||||
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Modifier and Type</th>
|
||||
<th class="colLast" scope="col">Field and Description</th>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility">CommandX</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html#command">command</a></span></code> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="constructor.summary">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Constructor Summary</h3>
|
||||
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
||||
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
||||
<tr>
|
||||
<th class="colOne" scope="col">Constructor and Description</th>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html#CommandX-net.ME1312.SubServers.Sync.Library.Compatibility.CommandX-">CommandX</a></span>(<a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility">CommandX</a> other)</code>
|
||||
<div class="block">Create a Command</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method.summary">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Method Summary</h3>
|
||||
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
||||
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Modifier and Type</th>
|
||||
<th class="colLast" scope="col">Method and Description</th>
|
||||
</tr>
|
||||
<tr id="i0" class="altColor">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html#execute-net.md_5.bungee.api.CommandSender-java.lang.String:A-">execute</a></span>(net.md_5.bungee.api.CommandSender sender,
|
||||
java.lang.String[] args)</code>
|
||||
<div class="block">Override BungeeCord Method for the previously used one</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i1" class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../../../../net/ME1312/SubServers/Sync/Library/NamedContainer.html" title="class in net.ME1312.SubServers.Sync.Library">NamedContainer</a><java.lang.String,java.util.List<java.lang.String>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html#suggestArguments-net.md_5.bungee.api.CommandSender-java.lang.String:A-">suggestArguments</a></span>(net.md_5.bungee.api.CommandSender sender,
|
||||
java.lang.String[] args)</code>
|
||||
<div class="block">Suggest Arguments</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i2" class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../../../../net/ME1312/SubServers/Sync/Library/NamedContainer.html" title="class in net.ME1312.SubServers.Sync.Library">NamedContainer</a><java.lang.String,java.lang.Integer></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html#validateCommand-net.md_5.bungee.api.CommandSender-java.lang.String-">validateCommand</a></span>(net.md_5.bungee.api.CommandSender sender,
|
||||
java.lang.String command)</code>
|
||||
<div class="block">Validate a Command (Override for custom)</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="methods.inherited.from.class.net.ME1312.SubServers.Sync.Library.Compatibility.CommandX">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Methods inherited from class net.ME1312.SubServers.Sync.Library.Compatibility.<a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility">CommandX</a></h3>
|
||||
<code><a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html#onTabComplete-net.md_5.bungee.api.CommandSender-java.lang.String:A-">onTabComplete</a></code></li>
|
||||
</ul>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="methods.inherited.from.class.net.md_5.bungee.api.plugin.Command">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Methods inherited from class net.md_5.bungee.api.plugin.Command</h3>
|
||||
<code>equals, getAliases, getName, getPermission, hashCode, toString</code></li>
|
||||
</ul>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Methods inherited from class java.lang.Object</h3>
|
||||
<code>getClass, notify, notifyAll, wait, wait, wait</code></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="details">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- ============ FIELD DETAIL =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="field.detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Field Detail</h3>
|
||||
<a name="command">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>command</h4>
|
||||
<pre>public final <a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility">CommandX</a> command</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="constructor.detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Constructor Detail</h3>
|
||||
<a name="CommandX-net.ME1312.SubServers.Sync.Library.Compatibility.CommandX-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>CommandX</h4>
|
||||
<pre>public CommandX(<a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility">CommandX</a> other)</pre>
|
||||
<div class="block">Create a Command</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>other</code> - CommandX from previous version</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method.detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Method Detail</h3>
|
||||
<a name="execute-net.md_5.bungee.api.CommandSender-java.lang.String:A-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>execute</h4>
|
||||
<pre>public void execute(net.md_5.bungee.api.CommandSender sender,
|
||||
java.lang.String[] args)</pre>
|
||||
<div class="block">Override BungeeCord Method for the previously used one</div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||||
<dd><code>execute</code> in class <code>net.md_5.bungee.api.plugin.Command</code></dd>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>sender</code> - Sender</dd>
|
||||
<dd><code>args</code> - Arguments</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="suggestArguments-net.md_5.bungee.api.CommandSender-java.lang.String:A-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>suggestArguments</h4>
|
||||
<pre>public <a href="../../../../../../../net/ME1312/SubServers/Sync/Library/NamedContainer.html" title="class in net.ME1312.SubServers.Sync.Library">NamedContainer</a><java.lang.String,java.util.List<java.lang.String>> suggestArguments(net.md_5.bungee.api.CommandSender sender,
|
||||
java.lang.String[] args)</pre>
|
||||
<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html#suggestArguments-net.md_5.bungee.api.CommandSender-java.lang.String:A-">CommandX</a></code></span></div>
|
||||
<div class="block">Suggest Arguments</div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||||
<dd><code><a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html#suggestArguments-net.md_5.bungee.api.CommandSender-java.lang.String:A-">suggestArguments</a></code> in class <code><a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility">CommandX</a></code></dd>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>sender</code> - Sender</dd>
|
||||
<dd><code>args</code> - Arguments (including the final unfinished one)</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>An Error Message (if there was one, otherwise null) and a List of Suggestions</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="validateCommand-net.md_5.bungee.api.CommandSender-java.lang.String-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>validateCommand</h4>
|
||||
<pre>public <a href="../../../../../../../net/ME1312/SubServers/Sync/Library/NamedContainer.html" title="class in net.ME1312.SubServers.Sync.Library">NamedContainer</a><java.lang.String,java.lang.Integer> validateCommand(net.md_5.bungee.api.CommandSender sender,
|
||||
java.lang.String command)</pre>
|
||||
<div class="block">Validate a Command (Override for custom)</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>sender</code> - Sender</dd>
|
||||
<dd><code>command</code> - Command to validate</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>NamedContainer with a String error message and a Integer that represents where the command was deemed invalid</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.bottom.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li class="navBarCell1Rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="../../../../../../../index-all.html">Index</a></li>
|
||||
<li><a href="../../../../../../../help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li>Prev Class</li>
|
||||
<li>Next Class</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../../index.html?net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html" target="_top">Frames</a></li>
|
||||
<li><a href="CommandX.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_bottom">
|
||||
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<div>
|
||||
<ul class="subNavList">
|
||||
<li>Summary: </li>
|
||||
<li>Nested | </li>
|
||||
<li><a href="#field.summary">Field</a> | </li>
|
||||
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||
<li><a href="#method.summary">Method</a></li>
|
||||
</ul>
|
||||
<ul class="subNavList">
|
||||
<li>Detail: </li>
|
||||
<li><a href="#field.detail">Field</a> | </li>
|
||||
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||
<li><a href="#method.detail">Method</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<a name="skip.navbar.bottom">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,19 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!-- NewPage -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>net.ME1312.SubServers.Sync.Library.Compatibility.v1_13 (SubServers.Sync)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../../../script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 class="bar"><a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/package-summary.html" target="classFrame">net.ME1312.SubServers.Sync.Library.Compatibility.v1_13</a></h1>
|
||||
<div class="indexContainer">
|
||||
<h2 title="Classes">Classes</h2>
|
||||
<ul title="Classes">
|
||||
<li><a href="CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility.v1_13" target="classFrame">CommandX</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,141 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!-- NewPage -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>net.ME1312.SubServers.Sync.Library.Compatibility.v1_13 (SubServers.Sync)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../../../script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="net.ME1312.SubServers.Sync.Library.Compatibility.v1_13 (SubServers.Sync)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="topNav"><a name="navbar.top">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.top.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
|
||||
<li class="navBarCell1Rev">Package</li>
|
||||
<li>Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="../../../../../../../index-all.html">Index</a></li>
|
||||
<li><a href="../../../../../../../help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/package-summary.html">Prev Package</a></li>
|
||||
<li><a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Config/package-summary.html">Next Package</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../../index.html?net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/package-summary.html" target="_top">Frames</a></li>
|
||||
<li><a href="package-summary.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_top">
|
||||
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.top">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="header">
|
||||
<h1 title="Package" class="title">Package net.ME1312.SubServers.Sync.Library.Compatibility.v1_13</h1>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation">
|
||||
<caption><span>Class Summary</span><span class="tabEnd"> </span></caption>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Class</th>
|
||||
<th class="colLast" scope="col">Description</th>
|
||||
</tr>
|
||||
<tbody>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility.v1_13">CommandX</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">Command Layout Class that implements all possible features (1.13 Version)</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.bottom.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
|
||||
<li class="navBarCell1Rev">Package</li>
|
||||
<li>Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="../../../../../../../index-all.html">Index</a></li>
|
||||
<li><a href="../../../../../../../help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/package-summary.html">Prev Package</a></li>
|
||||
<li><a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Config/package-summary.html">Next Package</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../../index.html?net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/package-summary.html" target="_top">Frames</a></li>
|
||||
<li><a href="package-summary.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_bottom">
|
||||
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.bottom">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,142 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!-- NewPage -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>net.ME1312.SubServers.Sync.Library.Compatibility.v1_13 Class Hierarchy (SubServers.Sync)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../../../../script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="net.ME1312.SubServers.Sync.Library.Compatibility.v1_13 Class Hierarchy (SubServers.Sync)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="topNav"><a name="navbar.top">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.top.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li>Class</li>
|
||||
<li class="navBarCell1Rev">Tree</li>
|
||||
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="../../../../../../../index-all.html">Index</a></li>
|
||||
<li><a href="../../../../../../../help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/package-tree.html">Prev</a></li>
|
||||
<li><a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Config/package-tree.html">Next</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../../index.html?net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/package-tree.html" target="_top">Frames</a></li>
|
||||
<li><a href="package-tree.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_top">
|
||||
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.top">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="header">
|
||||
<h1 class="title">Hierarchy For Package net.ME1312.SubServers.Sync.Library.Compatibility.v1_13</h1>
|
||||
<span class="packageHierarchyLabel">Package Hierarchies:</span>
|
||||
<ul class="horizontal">
|
||||
<li><a href="../../../../../../../overview-tree.html">All Packages</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<h2 title="Class Hierarchy">Class Hierarchy</h2>
|
||||
<ul>
|
||||
<li type="circle">java.lang.Object
|
||||
<ul>
|
||||
<li type="circle">net.md_5.bungee.api.plugin.Command
|
||||
<ul>
|
||||
<li type="circle">net.ME1312.SubServers.Sync.Library.Compatibility.<a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility"><span class="typeNameLink">CommandX</span></a> (implements net.md_5.bungee.api.plugin.TabExecutor)
|
||||
<ul>
|
||||
<li type="circle">net.ME1312.SubServers.Sync.Library.Compatibility.v1_13.<a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility.v1_13"><span class="typeNameLink">CommandX</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.bottom.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li>Class</li>
|
||||
<li class="navBarCell1Rev">Tree</li>
|
||||
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="../../../../../../../index-all.html">Index</a></li>
|
||||
<li><a href="../../../../../../../help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/package-tree.html">Prev</a></li>
|
||||
<li><a href="../../../../../../../net/ME1312/SubServers/Sync/Library/Config/package-tree.html">Next</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../../index.html?net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/package-tree.html" target="_top">Frames</a></li>
|
||||
<li><a href="package-tree.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_bottom">
|
||||
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.bottom">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</body>
|
||||
</html>
|
@ -41,7 +41,7 @@
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../net/ME1312/SubServers/Sync/Library/package-summary.html">Prev Package</a></li>
|
||||
<li><a href="../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/package-summary.html">Prev Package</a></li>
|
||||
<li><a href="../../../../../../net/ME1312/SubServers/Sync/Library/Exception/package-summary.html">Next Package</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
@ -123,7 +123,7 @@
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../net/ME1312/SubServers/Sync/Library/package-summary.html">Prev Package</a></li>
|
||||
<li><a href="../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/package-summary.html">Prev Package</a></li>
|
||||
<li><a href="../../../../../../net/ME1312/SubServers/Sync/Library/Exception/package-summary.html">Next Package</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
|
@ -41,7 +41,7 @@
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../net/ME1312/SubServers/Sync/Library/package-tree.html">Prev</a></li>
|
||||
<li><a href="../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/package-tree.html">Prev</a></li>
|
||||
<li><a href="../../../../../../net/ME1312/SubServers/Sync/Library/Exception/package-tree.html">Next</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
@ -106,7 +106,7 @@
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../../net/ME1312/SubServers/Sync/Library/package-tree.html">Prev</a></li>
|
||||
<li><a href="../../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/package-tree.html">Prev</a></li>
|
||||
<li><a href="../../../../../../net/ME1312/SubServers/Sync/Library/Exception/package-tree.html">Next</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
|
@ -42,7 +42,7 @@
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../net/ME1312/SubServers/Sync/Event/package-summary.html">Prev Package</a></li>
|
||||
<li><a href="../../../../../net/ME1312/SubServers/Sync/Library/Config/package-summary.html">Next Package</a></li>
|
||||
<li><a href="../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/package-summary.html">Next Package</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../index.html?net/ME1312/SubServers/Sync/Library/package-summary.html" target="_top">Frames</a></li>
|
||||
@ -173,7 +173,7 @@
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../net/ME1312/SubServers/Sync/Event/package-summary.html">Prev Package</a></li>
|
||||
<li><a href="../../../../../net/ME1312/SubServers/Sync/Library/Config/package-summary.html">Next Package</a></li>
|
||||
<li><a href="../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/package-summary.html">Next Package</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../index.html?net/ME1312/SubServers/Sync/Library/package-summary.html" target="_top">Frames</a></li>
|
||||
|
@ -42,7 +42,7 @@
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../net/ME1312/SubServers/Sync/Event/package-tree.html">Prev</a></li>
|
||||
<li><a href="../../../../../net/ME1312/SubServers/Sync/Library/Config/package-tree.html">Next</a></li>
|
||||
<li><a href="../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/package-tree.html">Next</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../index.html?net/ME1312/SubServers/Sync/Library/package-tree.html" target="_top">Frames</a></li>
|
||||
@ -124,7 +124,7 @@
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../net/ME1312/SubServers/Sync/Event/package-tree.html">Prev</a></li>
|
||||
<li><a href="../../../../../net/ME1312/SubServers/Sync/Library/Config/package-tree.html">Next</a></li>
|
||||
<li><a href="../../../../../net/ME1312/SubServers/Sync/Library/Compatibility/package-tree.html">Next</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../../index.html?net/ME1312/SubServers/Sync/Library/package-tree.html" target="_top">Frames</a></li>
|
||||
|
@ -138,7 +138,8 @@ implements <a href="../../../../../../net/ME1312/SubServers/Sync/Network/PacketI
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Sync/Network/Packet/PacketDownloadServerList.html#PacketDownloadServerList-java.lang.String-net.ME1312.SubServers.Sync.Library.JSONCallback...-">PacketDownloadServerList</a></span>(java.lang.String host,
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Sync/Network/Packet/PacketDownloadServerList.html#PacketDownloadServerList-java.lang.String-java.lang.String-net.ME1312.SubServers.Sync.Library.JSONCallback...-">PacketDownloadServerList</a></span>(java.lang.String host,
|
||||
java.lang.String group,
|
||||
<a href="../../../../../../net/ME1312/SubServers/Sync/Library/JSONCallback.html" title="interface in net.ME1312.SubServers.Sync.Library">JSONCallback</a>... callback)</code>
|
||||
<div class="block">New PacketDownloadServerList (Out)</div>
|
||||
</td>
|
||||
@ -208,18 +209,20 @@ implements <a href="../../../../../../net/ME1312/SubServers/Sync/Network/PacketI
|
||||
<div class="block">New PacketDownloadServerList (In)</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="PacketDownloadServerList-java.lang.String-net.ME1312.SubServers.Sync.Library.JSONCallback...-">
|
||||
<a name="PacketDownloadServerList-java.lang.String-java.lang.String-net.ME1312.SubServers.Sync.Library.JSONCallback...-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>PacketDownloadServerList</h4>
|
||||
<pre>public PacketDownloadServerList(java.lang.String host,
|
||||
java.lang.String group,
|
||||
<a href="../../../../../../net/ME1312/SubServers/Sync/Library/JSONCallback.html" title="interface in net.ME1312.SubServers.Sync.Library">JSONCallback</a>... callback)</pre>
|
||||
<div class="block">New PacketDownloadServerList (Out)</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>host</code> - Host name (or null for all)</dd>
|
||||
<dd><code>group</code> - Group name (or null for all)</dd>
|
||||
<dd><code>callback</code> - Callbacks</dd>
|
||||
</dl>
|
||||
</li>
|
||||
|
@ -17,7 +17,7 @@
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
var methods = {"i0":10,"i1":10,"i2":10,"i3":9,"i4":42,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10};
|
||||
var methods = {"i0":10,"i1":10,"i2":10,"i3":9,"i4":42,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10};
|
||||
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
|
||||
var altColor = "altColor";
|
||||
var rowColor = "rowColor";
|
||||
@ -162,48 +162,55 @@ extends java.lang.Object</pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i5" class="rowColor">
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,java.lang.String></code></td>
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubAPI.html#getLang--">getLang</a></span>()</code>
|
||||
<div class="block">Gets the SubServers Lang</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i6" class="altColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubAPI.html#getLang-java.lang.String-">getLang</a></span>(java.lang.String key)</code>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,java.lang.String></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubAPI.html#getLang-java.lang.String-">getLang</a></span>(java.lang.String channel)</code>
|
||||
<div class="block">Gets values from the SubServers Lang</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i7" class="rowColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubAPI.html#getLang-java.lang.String-java.lang.String-">getLang</a></span>(java.lang.String channel,
|
||||
java.lang.String key)</code>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i8" class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Sync/Library/Version/Version.html" title="class in net.ME1312.SubServers.Sync.Library.Version">Version</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubAPI.html#getProxyVersion--">getProxyVersion</a></span>()</code>
|
||||
<div class="block">Gets the BungeeCord Version</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i8" class="altColor">
|
||||
<tr id="i9" class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Sync/Library/UniversalFile.html" title="class in net.ME1312.SubServers.Sync.Library">UniversalFile</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubAPI.html#getRuntimeDirectory--">getRuntimeDirectory</a></span>()</code>
|
||||
<div class="block">Gets the Runtime Directory</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i9" class="rowColor">
|
||||
<tr id="i10" class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Sync/Server/Server.html" title="class in net.ME1312.SubServers.Sync.Server">Server</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubAPI.html#getServer-java.lang.String-">getServer</a></span>(java.lang.String name)</code>
|
||||
<div class="block">Gets a Server</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i10" class="altColor">
|
||||
<tr id="i11" class="rowColor">
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,<a href="../../../../net/ME1312/SubServers/Sync/Server/Server.html" title="class in net.ME1312.SubServers.Sync.Server">Server</a>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubAPI.html#getServers--">getServers</a></span>()</code>
|
||||
<div class="block">Gets the Servers (including SubServers)</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i11" class="rowColor">
|
||||
<tr id="i12" class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Sync/Network/SubDataClient.html" title="class in net.ME1312.SubServers.Sync.Network">SubDataClient</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubAPI.html#getSubDataNetwork--">getSubDataNetwork</a></span>()</code>
|
||||
<div class="block">Gets the SubData Network Manager</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i12" class="altColor">
|
||||
<tr id="i13" class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Sync/Library/Version/Version.html" title="class in net.ME1312.SubServers.Sync.Library.Version">Version</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubAPI.html#getWrapperVersion--">getWrapperVersion</a></span>()</code>
|
||||
<div class="block">Gets the SubServers.Sync Version</div>
|
||||
@ -321,29 +328,13 @@ public <a href="../../../../net/ME1312/SubServers/Sync/SubPlugin.html" titl
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getLang-java.lang.String-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getLang</h4>
|
||||
<pre>public java.lang.String getLang(java.lang.String key)</pre>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>key</code> - Key</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Lang Value</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getLang--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getLang</h4>
|
||||
<pre>public java.util.Map<java.lang.String,java.lang.String> getLang()</pre>
|
||||
<pre>public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getLang()</pre>
|
||||
<div class="block">Gets the SubServers Lang</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
@ -351,6 +342,40 @@ public <a href="../../../../net/ME1312/SubServers/Sync/SubPlugin.html" titl
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getLang-java.lang.String-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getLang</h4>
|
||||
<pre>public java.util.Map<java.lang.String,java.lang.String> getLang(java.lang.String channel)</pre>
|
||||
<div class="block">Gets values from the SubServers Lang</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>channel</code> - Lang Channel</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Lang Values</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getLang-java.lang.String-java.lang.String-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getLang</h4>
|
||||
<pre>public java.lang.String getLang(java.lang.String channel,
|
||||
java.lang.String key)</pre>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>channel</code> - Lang Channel</dd>
|
||||
<dd><code>key</code> - Key</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Lang Value</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getRuntimeDirectory--">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
@ -101,12 +101,17 @@ var activeTableTab = "activeTableTab";
|
||||
<li>net.md_5.bungee.api.plugin.Command</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li><a href="../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility">net.ME1312.SubServers.Sync.Library.Compatibility.CommandX</a></li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>net.ME1312.SubServers.Sync.SubCommand.BungeeServer</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
@ -121,8 +126,7 @@ var activeTableTab = "activeTableTab";
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public static final class <span class="typeNameLabel">SubCommand.BungeeServer</span>
|
||||
extends net.md_5.bungee.api.plugin.Command
|
||||
implements net.md_5.bungee.api.plugin.TabExecutor</pre>
|
||||
extends <a href="../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility">CommandX</a></pre>
|
||||
<div class="block">BungeeCord /server</div>
|
||||
</li>
|
||||
</ul>
|
||||
@ -150,14 +154,21 @@ implements net.md_5.bungee.api.plugin.TabExecutor</pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i1" class="rowColor">
|
||||
<td class="colFirst"><code>java.lang.Iterable<java.lang.String></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubCommand.BungeeServer.html#onTabComplete-net.md_5.bungee.api.CommandSender-java.lang.String:A-">onTabComplete</a></span>(net.md_5.bungee.api.CommandSender sender,
|
||||
java.lang.String[] args)</code>
|
||||
<div class="block">Tab completer</div>
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Sync/Library/NamedContainer.html" title="class in net.ME1312.SubServers.Sync.Library">NamedContainer</a><java.lang.String,java.util.List<java.lang.String>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubCommand.BungeeServer.html#suggestArguments-net.md_5.bungee.api.CommandSender-java.lang.String:A-">suggestArguments</a></span>(net.md_5.bungee.api.CommandSender sender,
|
||||
java.lang.String[] args)</code>
|
||||
<div class="block">Suggest command arguments</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="methods.inherited.from.class.net.ME1312.SubServers.Sync.Library.Compatibility.CommandX">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Methods inherited from class net.ME1312.SubServers.Sync.Library.Compatibility.<a href="../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility">CommandX</a></h3>
|
||||
<code><a href="../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html#onTabComplete-net.md_5.bungee.api.CommandSender-java.lang.String:A-">onTabComplete</a></code></li>
|
||||
</ul>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="methods.inherited.from.class.net.md_5.bungee.api.plugin.Command">
|
||||
<!-- -->
|
||||
</a>
|
||||
@ -203,23 +214,23 @@ implements net.md_5.bungee.api.plugin.TabExecutor</pre>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="onTabComplete-net.md_5.bungee.api.CommandSender-java.lang.String:A-">
|
||||
<a name="suggestArguments-net.md_5.bungee.api.CommandSender-java.lang.String:A-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>onTabComplete</h4>
|
||||
<pre>public java.lang.Iterable<java.lang.String> onTabComplete(net.md_5.bungee.api.CommandSender sender,
|
||||
java.lang.String[] args)</pre>
|
||||
<div class="block">Tab completer</div>
|
||||
<h4>suggestArguments</h4>
|
||||
<pre>public <a href="../../../../net/ME1312/SubServers/Sync/Library/NamedContainer.html" title="class in net.ME1312.SubServers.Sync.Library">NamedContainer</a><java.lang.String,java.util.List<java.lang.String>> suggestArguments(net.md_5.bungee.api.CommandSender sender,
|
||||
java.lang.String[] args)</pre>
|
||||
<div class="block">Suggest command arguments</div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||||
<dd><code>onTabComplete</code> in interface <code>net.md_5.bungee.api.plugin.TabExecutor</code></dd>
|
||||
<dd><code><a href="../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html#suggestArguments-net.md_5.bungee.api.CommandSender-java.lang.String:A-">suggestArguments</a></code> in class <code><a href="../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility">CommandX</a></code></dd>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>sender</code> - Sender</dd>
|
||||
<dd><code>args</code> - Arguments</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Tab completes</dd>
|
||||
<dd>The validator's response and list of possible arguments</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -17,7 +17,7 @@
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
var methods = {"i0":10};
|
||||
var methods = {"i0":10,"i1":10};
|
||||
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
||||
var altColor = "altColor";
|
||||
var rowColor = "rowColor";
|
||||
@ -74,13 +74,13 @@ var activeTableTab = "activeTableTab";
|
||||
<li>Summary: </li>
|
||||
<li><a href="#nested.class.summary">Nested</a> | </li>
|
||||
<li>Field | </li>
|
||||
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||
<li>Constr | </li>
|
||||
<li><a href="#method.summary">Method</a></li>
|
||||
</ul>
|
||||
<ul class="subNavList">
|
||||
<li>Detail: </li>
|
||||
<li>Field | </li>
|
||||
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||
<li>Constr | </li>
|
||||
<li><a href="#method.detail">Method</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -101,19 +101,28 @@ var activeTableTab = "activeTableTab";
|
||||
<li>net.md_5.bungee.api.plugin.Command</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li><a href="../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility">net.ME1312.SubServers.Sync.Library.Compatibility.CommandX</a></li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>net.ME1312.SubServers.Sync.SubCommand</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<dl>
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd>net.md_5.bungee.api.plugin.TabExecutor</dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public final class <span class="typeNameLabel">SubCommand</span>
|
||||
extends net.md_5.bungee.api.plugin.Command</pre>
|
||||
extends <a href="../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility">CommandX</a></pre>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -147,24 +156,6 @@ extends net.md_5.bungee.api.plugin.Command</pre>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="constructor.summary">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Constructor Summary</h3>
|
||||
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
||||
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
||||
<tr>
|
||||
<th class="colOne" scope="col">Constructor and Description</th>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubCommand.html#SubCommand-net.ME1312.SubServers.Sync.SubPlugin-java.lang.String-">SubCommand</a></span>(<a href="../../../../net/ME1312/SubServers/Sync/SubPlugin.html" title="class in net.ME1312.SubServers.Sync">SubPlugin</a> plugin,
|
||||
java.lang.String label)</code> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method.summary">
|
||||
@ -182,8 +173,22 @@ extends net.md_5.bungee.api.plugin.Command</pre>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubCommand.html#execute-net.md_5.bungee.api.CommandSender-java.lang.String:A-">execute</a></span>(net.md_5.bungee.api.CommandSender sender,
|
||||
java.lang.String[] args)</code> </td>
|
||||
</tr>
|
||||
<tr id="i1" class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Sync/Library/NamedContainer.html" title="class in net.ME1312.SubServers.Sync.Library">NamedContainer</a><java.lang.String,java.util.List<java.lang.String>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubCommand.html#suggestArguments-net.md_5.bungee.api.CommandSender-java.lang.String:A-">suggestArguments</a></span>(net.md_5.bungee.api.CommandSender sender,
|
||||
java.lang.String[] args)</code>
|
||||
<div class="block">Suggest command arguments</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="methods.inherited.from.class.net.ME1312.SubServers.Sync.Library.Compatibility.CommandX">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Methods inherited from class net.ME1312.SubServers.Sync.Library.Compatibility.<a href="../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility">CommandX</a></h3>
|
||||
<code><a href="../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html#onTabComplete-net.md_5.bungee.api.CommandSender-java.lang.String:A-">onTabComplete</a></code></li>
|
||||
</ul>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="methods.inherited.from.class.net.md_5.bungee.api.plugin.Command">
|
||||
<!-- -->
|
||||
</a>
|
||||
@ -205,24 +210,6 @@ extends net.md_5.bungee.api.plugin.Command</pre>
|
||||
<div class="details">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="constructor.detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Constructor Detail</h3>
|
||||
<a name="SubCommand-net.ME1312.SubServers.Sync.SubPlugin-java.lang.String-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>SubCommand</h4>
|
||||
<pre>public SubCommand(<a href="../../../../net/ME1312/SubServers/Sync/SubPlugin.html" title="class in net.ME1312.SubServers.Sync">SubPlugin</a> plugin,
|
||||
java.lang.String label)</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method.detail">
|
||||
@ -232,7 +219,7 @@ extends net.md_5.bungee.api.plugin.Command</pre>
|
||||
<a name="execute-net.md_5.bungee.api.CommandSender-java.lang.String:A-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>execute</h4>
|
||||
<pre>public void execute(net.md_5.bungee.api.CommandSender sender,
|
||||
@ -243,6 +230,26 @@ extends net.md_5.bungee.api.plugin.Command</pre>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="suggestArguments-net.md_5.bungee.api.CommandSender-java.lang.String:A-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>suggestArguments</h4>
|
||||
<pre>public <a href="../../../../net/ME1312/SubServers/Sync/Library/NamedContainer.html" title="class in net.ME1312.SubServers.Sync.Library">NamedContainer</a><java.lang.String,java.util.List<java.lang.String>> suggestArguments(net.md_5.bungee.api.CommandSender sender,
|
||||
java.lang.String[] args)</pre>
|
||||
<div class="block">Suggest command arguments</div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||||
<dd><code><a href="../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html#suggestArguments-net.md_5.bungee.api.CommandSender-java.lang.String:A-">suggestArguments</a></code> in class <code><a href="../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility">CommandX</a></code></dd>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>sender</code> - Sender</dd>
|
||||
<dd><code>args</code> - Arguments</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The validator's response and list of possible arguments</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
@ -297,13 +304,13 @@ extends net.md_5.bungee.api.plugin.Command</pre>
|
||||
<li>Summary: </li>
|
||||
<li><a href="#nested.class.summary">Nested</a> | </li>
|
||||
<li>Field | </li>
|
||||
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||
<li>Constr | </li>
|
||||
<li><a href="#method.summary">Method</a></li>
|
||||
</ul>
|
||||
<ul class="subNavList">
|
||||
<li>Detail: </li>
|
||||
<li>Field | </li>
|
||||
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||
<li>Constr | </li>
|
||||
<li><a href="#method.detail">Method</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -160,30 +160,26 @@ implements net.md_5.bungee.api.plugin.Listener</pre>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubPlugin.html#dir">dir</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Sync/Library/Config/YAMLSection.html" title="class in net.ME1312.SubServers.Sync.Library.Config">YAMLSection</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubPlugin.html#lang">lang</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>long</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubPlugin.html#lastReload">lastReload</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>java.io.PrintStream</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubPlugin.html#out">out</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubPlugin.html#redis">redis</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,<a href="../../../../net/ME1312/SubServers/Sync/Server/Server.html" title="class in net.ME1312.SubServers.Sync.Server">Server</a>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubPlugin.html#servers">servers</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Sync/Network/SubDataClient.html" title="class in net.ME1312.SubServers.Sync.Network">SubDataClient</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubPlugin.html#subdata">subdata</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Sync/Library/Version/Version.html" title="class in net.ME1312.SubServers.Sync.Library.Version">Version</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubPlugin.html#version">version</a></span></code> </td>
|
||||
</tr>
|
||||
@ -348,15 +344,6 @@ implements net.md_5.bungee.api.plugin.Listener</pre>
|
||||
<pre>public <a href="../../../../net/ME1312/SubServers/Sync/Library/Config/YAMLConfig.html" title="class in net.ME1312.SubServers.Sync.Library.Config">YAMLConfig</a> config</pre>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="lang">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>lang</h4>
|
||||
<pre>public <a href="../../../../net/ME1312/SubServers/Sync/Library/Config/YAMLSection.html" title="class in net.ME1312.SubServers.Sync.Library.Config">YAMLSection</a> lang</pre>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="redis">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
@ -81,9 +81,13 @@
|
||||
<ul>
|
||||
<li type="circle">net.md_5.bungee.api.plugin.Command
|
||||
<ul>
|
||||
<li type="circle">net.ME1312.SubServers.Sync.Library.Compatibility.<a href="../../../../net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility"><span class="typeNameLink">CommandX</span></a> (implements net.md_5.bungee.api.plugin.TabExecutor)
|
||||
<ul>
|
||||
<li type="circle">net.ME1312.SubServers.Sync.<a href="../../../../net/ME1312/SubServers/Sync/SubCommand.html" title="class in net.ME1312.SubServers.Sync"><span class="typeNameLink">SubCommand</span></a></li>
|
||||
<li type="circle">net.ME1312.SubServers.Sync.<a href="../../../../net/ME1312/SubServers/Sync/SubCommand.BungeeServer.html" title="class in net.ME1312.SubServers.Sync"><span class="typeNameLink">SubCommand.BungeeServer</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li type="circle">net.ME1312.SubServers.Sync.<a href="../../../../net/ME1312/SubServers/Sync/SubCommand.BungeeList.html" title="class in net.ME1312.SubServers.Sync"><span class="typeNameLink">SubCommand.BungeeList</span></a></li>
|
||||
<li type="circle">net.ME1312.SubServers.Sync.<a href="../../../../net/ME1312/SubServers/Sync/SubCommand.BungeeServer.html" title="class in net.ME1312.SubServers.Sync"><span class="typeNameLink">SubCommand.BungeeServer</span></a> (implements net.md_5.bungee.api.plugin.TabExecutor)</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li type="circle">net.ME1312.SubServers.Sync.<a href="../../../../net/ME1312/SubServers/Sync/Launch.html" title="class in net.ME1312.SubServers.Sync"><span class="typeNameLink">Launch</span></a></li>
|
||||
|
@ -15,6 +15,8 @@
|
||||
<li><a href="net/ME1312/SubServers/Sync/package-frame.html" target="packageFrame">net.ME1312.SubServers.Sync</a></li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Event/package-frame.html" target="packageFrame">net.ME1312.SubServers.Sync.Event</a></li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Library/package-frame.html" target="packageFrame">net.ME1312.SubServers.Sync.Library</a></li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Library/Compatibility/package-frame.html" target="packageFrame">net.ME1312.SubServers.Sync.Library.Compatibility</a></li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/package-frame.html" target="packageFrame">net.ME1312.SubServers.Sync.Library.Compatibility.v1_13</a></li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Library/Config/package-frame.html" target="packageFrame">net.ME1312.SubServers.Sync.Library.Config</a></li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Library/Exception/package-frame.html" target="packageFrame">net.ME1312.SubServers.Sync.Library.Exception</a></li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Library/Version/package-frame.html" target="packageFrame">net.ME1312.SubServers.Sync.Library.Version</a></li>
|
||||
|
@ -91,6 +91,14 @@
|
||||
<td class="colLast"> </td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><a href="net/ME1312/SubServers/Sync/Library/Compatibility/package-summary.html">net.ME1312.SubServers.Sync.Library.Compatibility</a></td>
|
||||
<td class="colLast"> </td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><a href="net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/package-summary.html">net.ME1312.SubServers.Sync.Library.Compatibility.v1_13</a></td>
|
||||
<td class="colLast"> </td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><a href="net/ME1312/SubServers/Sync/Library/Config/package-summary.html">net.ME1312.SubServers.Sync.Library.Config</a></td>
|
||||
<td class="colLast"> </td>
|
||||
</tr>
|
||||
|
@ -74,6 +74,8 @@
|
||||
<li><a href="net/ME1312/SubServers/Sync/package-tree.html">net.ME1312.SubServers.Sync</a>, </li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Event/package-tree.html">net.ME1312.SubServers.Sync.Event</a>, </li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Library/package-tree.html">net.ME1312.SubServers.Sync.Library</a>, </li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Library/Compatibility/package-tree.html">net.ME1312.SubServers.Sync.Library.Compatibility</a>, </li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/package-tree.html">net.ME1312.SubServers.Sync.Library.Compatibility.v1_13</a>, </li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Library/Config/package-tree.html">net.ME1312.SubServers.Sync.Library.Config</a>, </li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Library/Exception/package-tree.html">net.ME1312.SubServers.Sync.Library.Exception</a>, </li>
|
||||
<li><a href="net/ME1312/SubServers/Sync/Library/Version/package-tree.html">net.ME1312.SubServers.Sync.Library.Version</a>, </li>
|
||||
@ -99,9 +101,14 @@
|
||||
</li>
|
||||
<li type="circle">net.md_5.bungee.api.plugin.Command
|
||||
<ul>
|
||||
<li type="circle">net.ME1312.SubServers.Sync.Library.Compatibility.<a href="net/ME1312/SubServers/Sync/Library/Compatibility/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility"><span class="typeNameLink">CommandX</span></a> (implements net.md_5.bungee.api.plugin.TabExecutor)
|
||||
<ul>
|
||||
<li type="circle">net.ME1312.SubServers.Sync.Library.Compatibility.v1_13.<a href="net/ME1312/SubServers/Sync/Library/Compatibility/v1_13/CommandX.html" title="class in net.ME1312.SubServers.Sync.Library.Compatibility.v1_13"><span class="typeNameLink">CommandX</span></a></li>
|
||||
<li type="circle">net.ME1312.SubServers.Sync.<a href="net/ME1312/SubServers/Sync/SubCommand.html" title="class in net.ME1312.SubServers.Sync"><span class="typeNameLink">SubCommand</span></a></li>
|
||||
<li type="circle">net.ME1312.SubServers.Sync.<a href="net/ME1312/SubServers/Sync/SubCommand.BungeeServer.html" title="class in net.ME1312.SubServers.Sync"><span class="typeNameLink">SubCommand.BungeeServer</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li type="circle">net.ME1312.SubServers.Sync.<a href="net/ME1312/SubServers/Sync/SubCommand.BungeeList.html" title="class in net.ME1312.SubServers.Sync"><span class="typeNameLink">SubCommand.BungeeList</span></a></li>
|
||||
<li type="circle">net.ME1312.SubServers.Sync.<a href="net/ME1312/SubServers/Sync/SubCommand.BungeeServer.html" title="class in net.ME1312.SubServers.Sync"><span class="typeNameLink">SubCommand.BungeeServer</span></a> (implements net.md_5.bungee.api.plugin.TabExecutor)</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li type="circle">net.ME1312.SubServers.Sync.Library.<a href="net/ME1312/SubServers/Sync/Library/Container.html" title="class in net.ME1312.SubServers.Sync.Library"><span class="typeNameLink">Container</span></a><V>
|
||||
|
@ -1,6 +1,8 @@
|
||||
net.ME1312.SubServers.Sync
|
||||
net.ME1312.SubServers.Sync.Event
|
||||
net.ME1312.SubServers.Sync.Library
|
||||
net.ME1312.SubServers.Sync.Library.Compatibility
|
||||
net.ME1312.SubServers.Sync.Library.Compatibility.v1_13
|
||||
net.ME1312.SubServers.Sync.Library.Config
|
||||
net.ME1312.SubServers.Sync.Library.Exception
|
||||
net.ME1312.SubServers.Sync.Library.Version
|
||||
|
88
SubServers.Bungee/module_subservers.bungee.xml
Normal file
88
SubServers.Bungee/module_subservers.bungee.xml
Normal file
@ -0,0 +1,88 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="module_subservers.bungee" default="compile.module.subservers.bungee">
|
||||
<dirname property="module.subservers.bungee.basedir" file="${ant.file.module_subservers.bungee}"/>
|
||||
|
||||
<property name="module.jdk.home.subservers.bungee" value="${project.jdk.home}"/>
|
||||
<property name="module.jdk.bin.subservers.bungee" value="${project.jdk.bin}"/>
|
||||
<property name="module.jdk.classpath.subservers.bungee" value="${project.jdk.classpath}"/>
|
||||
|
||||
<property name="compiler.args.subservers.bungee" value="-encoding UTF-8 -source 1.8 -target 1.8 ${compiler.args}"/>
|
||||
|
||||
<property name="subservers.bungee.output.dir" value="${module.subservers.bungee.basedir}/../out/compile/production/SubServers.Bungee"/>
|
||||
<property name="subservers.bungee.testoutput.dir" value="${module.subservers.bungee.basedir}/../out/compile/test/SubServers.Bungee"/>
|
||||
|
||||
<path id="subservers.bungee.module.bootclasspath">
|
||||
<!-- Paths to be included in compilation bootclasspath -->
|
||||
</path>
|
||||
|
||||
<path id="subservers.bungee.module.production.classpath">
|
||||
<path refid="${module.jdk.classpath.subservers.bungee}"/>
|
||||
<pathelement location="${basedir}/../~lib/json.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/BungeeCord-1.8.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/RedisBungee.jar"/>
|
||||
</path>
|
||||
|
||||
<path id="subservers.bungee.runtime.production.module.classpath">
|
||||
<pathelement location="${subservers.bungee.output.dir}"/>
|
||||
<pathelement location="${basedir}/../~lib/json.jar"/>
|
||||
</path>
|
||||
|
||||
<path id="subservers.bungee.module.classpath">
|
||||
<path refid="${module.jdk.classpath.subservers.bungee}"/>
|
||||
<pathelement location="${subservers.bungee.output.dir}"/>
|
||||
<pathelement location="${basedir}/../~lib/json.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/BungeeCord-1.8.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/RedisBungee.jar"/>
|
||||
</path>
|
||||
|
||||
<path id="subservers.bungee.runtime.module.classpath">
|
||||
<pathelement location="${subservers.bungee.testoutput.dir}"/>
|
||||
<pathelement location="${subservers.bungee.output.dir}"/>
|
||||
<pathelement location="${basedir}/../~lib/json.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/BungeeCord-1.8.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/RedisBungee.jar"/>
|
||||
</path>
|
||||
|
||||
|
||||
<patternset id="excluded.from.module.subservers.bungee">
|
||||
<patternset refid="ignored.files"/>
|
||||
</patternset>
|
||||
|
||||
<patternset id="excluded.from.compilation.subservers.bungee">
|
||||
<patternset refid="excluded.from.module.subservers.bungee"/>
|
||||
</patternset>
|
||||
|
||||
<path id="subservers.bungee.module.sourcepath">
|
||||
<dirset dir="${module.subservers.bungee.basedir}">
|
||||
<include name="src"/>
|
||||
</dirset>
|
||||
</path>
|
||||
|
||||
|
||||
<target name="compile.module.subservers.bungee" depends="compile.module.subservers.bungee.production,compile.module.subservers.bungee.tests" description="Compile module SubServers.Bungee"/>
|
||||
|
||||
<target name="compile.module.subservers.bungee.production" depends="register.custom.compilers" description="Compile module SubServers.Bungee; production classes">
|
||||
<mkdir dir="${subservers.bungee.output.dir}"/>
|
||||
<javac2 destdir="${subservers.bungee.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.subservers.bungee}/javac">
|
||||
<compilerarg line="${compiler.args.subservers.bungee}"/>
|
||||
<bootclasspath refid="subservers.bungee.module.bootclasspath"/>
|
||||
<classpath refid="subservers.bungee.module.production.classpath"/>
|
||||
<src refid="subservers.bungee.module.sourcepath"/>
|
||||
<patternset refid="excluded.from.compilation.subservers.bungee"/>
|
||||
</javac2>
|
||||
|
||||
<copy todir="${subservers.bungee.output.dir}">
|
||||
<fileset dir="${module.subservers.bungee.basedir}/src">
|
||||
<patternset refid="compiler.resources"/>
|
||||
<type type="file"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="compile.module.subservers.bungee.tests" depends="register.custom.compilers,compile.module.subservers.bungee.production" description="compile module SubServers.Bungee; test classes" unless="skip.tests"/>
|
||||
|
||||
<target name="clean.module.subservers.bungee" description="cleanup module">
|
||||
<delete dir="${subservers.bungee.output.dir}"/>
|
||||
<delete dir="${subservers.bungee.testoutput.dir}"/>
|
||||
</target>
|
||||
</project>
|
Binary file not shown.
@ -120,11 +120,6 @@ public class ExternalHost extends Host implements ClientHandler {
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int edit(UUID player, YAMLSection edit) {
|
||||
return 0; // TODO
|
||||
}
|
||||
|
||||
@Override
|
||||
public SubCreator getCreator() {
|
||||
return creator;
|
||||
|
@ -199,25 +199,6 @@ public abstract class Host implements ExtraDataHandler {
|
||||
return i;
|
||||
}
|
||||
|
||||
/**
|
||||
* Edits the Host
|
||||
*
|
||||
* @param player Player Editing
|
||||
* @param edit Edits
|
||||
* @return Success Status
|
||||
*/
|
||||
public abstract int edit(UUID player, YAMLSection edit);
|
||||
|
||||
/**
|
||||
* Edits the Host
|
||||
*
|
||||
* @param edit Edits
|
||||
* @return Success Status
|
||||
*/
|
||||
public int edit(YAMLSection edit) {
|
||||
return edit(null, edit);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the SubCreator Instance for this Host
|
||||
*
|
||||
|
@ -77,11 +77,6 @@ public class InternalHost extends Host {
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int edit(UUID player, YAMLSection edit) {
|
||||
return 0; // TODO
|
||||
}
|
||||
|
||||
@Override
|
||||
public SubCreator getCreator() {
|
||||
return creator;
|
||||
|
@ -8,6 +8,7 @@ import net.ME1312.SubServers.Bungee.Host.Server;
|
||||
import net.ME1312.SubServers.Bungee.Host.Host;
|
||||
import net.ME1312.SubServers.Bungee.Host.ServerContainer;
|
||||
import net.ME1312.SubServers.Bungee.Host.SubServer;
|
||||
import net.ME1312.SubServers.Bungee.Library.Config.YAMLSection;
|
||||
import net.ME1312.SubServers.Bungee.Library.Exception.InvalidHostException;
|
||||
import net.ME1312.SubServers.Bungee.Library.NamedContainer;
|
||||
import net.ME1312.SubServers.Bungee.Library.UniversalFile;
|
||||
@ -529,25 +530,17 @@ public final class SubAPI {
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds to the Language Map
|
||||
* Adds to the SubServers Lang
|
||||
*
|
||||
* @param channel Lang Channel
|
||||
* @param key Key
|
||||
* @param value Lang Value
|
||||
*/
|
||||
public void setLang(String key, String value) {
|
||||
if (Util.isNull(key, value)) throw new NullPointerException();
|
||||
plugin.exLang.put(key, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a value from the SubServers Lang
|
||||
*
|
||||
* @param key Key
|
||||
* @return Lang Value
|
||||
*/
|
||||
public String getLang(String key) {
|
||||
if (Util.isNull(key)) throw new NullPointerException();
|
||||
return getLang().get(key);
|
||||
public void setLang(String channel, String key, String value) {
|
||||
if (Util.isNull(channel, key, value)) throw new NullPointerException();
|
||||
LinkedHashMap<String, String> map = (plugin.lang.keySet().contains(channel.toLowerCase()))?plugin.lang.get(channel.toLowerCase()):new LinkedHashMap<String, String>();
|
||||
map.put(key, value);
|
||||
plugin.lang.put(channel.toLowerCase(), map);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -555,13 +548,31 @@ public final class SubAPI {
|
||||
*
|
||||
* @return SubServers Lang
|
||||
*/
|
||||
public Map<String, String> getLang() {
|
||||
HashMap<String, String> lang = new HashMap<String, String>();
|
||||
for (String key : plugin.lang.get().getSection("Lang").getKeys()) {
|
||||
if (plugin.lang.get().getSection("Lang").isString(key)) lang.put(key, plugin.lang.get().getSection("Lang").getString(key));
|
||||
}
|
||||
lang.putAll(plugin.exLang);
|
||||
return lang;
|
||||
public Map<String, Map<String, String>> getLang() {
|
||||
return new LinkedHashMap<>(plugin.lang);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets values from the SubServers Lang
|
||||
*
|
||||
* @param channel Lang Channel
|
||||
* @return Lang Value
|
||||
*/
|
||||
public Map<String, String> getLang(String channel) {
|
||||
if (Util.isNull(channel)) throw new NullPointerException();
|
||||
return getLang().get(channel.toLowerCase());
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a value from the SubServers Lang
|
||||
*
|
||||
* @param channel Lang Channel
|
||||
* @param key Key
|
||||
* @return Lang Values
|
||||
*/
|
||||
public String getLang(String channel, String key) {
|
||||
if (Util.isNull(channel, key)) throw new NullPointerException();
|
||||
return getLang(channel).get(key);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -432,7 +432,7 @@ public final class SubCommand extends CommandX {
|
||||
for (String cmd : cmds) {
|
||||
if (cmd.startsWith(last)) list.add(last + cmd.substring(last.length()));
|
||||
}
|
||||
return new NamedContainer<>((list.size() <= 0)?plugin.lang.get().getSection("Lang").getColoredString("Command.Generic.Invalid-Subcommand", '&').replace("$str$", args[0]):null, list);
|
||||
return new NamedContainer<>((list.size() <= 0)?plugin.api.getLang("SubServers", "Command.Generic.Invalid-Subcommand").replace("$str$", args[0]):null, list);
|
||||
}
|
||||
} else {
|
||||
if (args[0].equals("info") || args[0].equals("status") ||
|
||||
@ -449,7 +449,7 @@ public final class SubCommand extends CommandX {
|
||||
list.add(last + server.getName().substring(last.length()));
|
||||
}
|
||||
}
|
||||
return new NamedContainer<>((list.size() <= 0)?plugin.lang.get().getSection("Lang").getColoredString("Command.Generic.Unknown-SubServer", '&').replace("$str$", args[0]):null, list);
|
||||
return new NamedContainer<>((list.size() <= 0)?plugin.api.getLang("SubServers", "Command.Generic.Unknown-SubServer").replace("$str$", args[0]):null, list);
|
||||
} else {
|
||||
return new NamedContainer<>(null, Collections.emptyList());
|
||||
}
|
||||
@ -463,7 +463,7 @@ public final class SubCommand extends CommandX {
|
||||
if (server.getName().toLowerCase().startsWith(last)) list.add(last + server.getName().substring(last.length()));
|
||||
}
|
||||
}
|
||||
return new NamedContainer<>((list.size() <= 0)?plugin.lang.get().getSection("Lang").getColoredString("Command.Generic.Unknown-SubServer", '&').replace("$str$", args[0]):null, list);
|
||||
return new NamedContainer<>((list.size() <= 0)?plugin.api.getLang("SubServers", "Command.Generic.Unknown-SubServer").replace("$str$", args[0]):null, list);
|
||||
} else if (args.length == 3) {
|
||||
return new NamedContainer<>(null, Collections.singletonList("<Command>"));
|
||||
} else {
|
||||
@ -481,29 +481,31 @@ public final class SubCommand extends CommandX {
|
||||
if (host.getName().toLowerCase().startsWith(last)) list.add(last + host.getName().substring(last.length()));
|
||||
}
|
||||
}
|
||||
return new NamedContainer<>((list.size() <= 0)?plugin.lang.get().getSection("Lang").getColoredString("Command.Generic.Unknown-Host", '&').replace("$str$", args[0]):null, list);
|
||||
return new NamedContainer<>((list.size() <= 0)?plugin.api.getLang("SubServers", "Command.Generic.Unknown-Host").replace("$str$", args[0]):null, list);
|
||||
} else if (args.length == 4) {
|
||||
List<String> list = new ArrayList<String>();
|
||||
Map<String, Host> hosts = plugin.api.getHosts();
|
||||
if (last.length() == 0) {
|
||||
for (SubCreator.ServerTemplate template : hosts.get(args[2].toLowerCase()).getCreator().getTemplates().values()) list.add(template.toString());
|
||||
if (!hosts.keySet().contains(args[2].toLowerCase())) {
|
||||
list.add("<Template>");
|
||||
} else if (last.length() == 0) {
|
||||
for (SubCreator.ServerTemplate template : hosts.get(args[2].toLowerCase()).getCreator().getTemplates().values()) list.add(template.getName());
|
||||
} else {
|
||||
for (SubCreator.ServerTemplate template : hosts.get(args[2].toLowerCase()).getCreator().getTemplates().values()) {
|
||||
if (template.toString().toLowerCase().startsWith(last)) list.add(last + template.toString().substring(last.length()));
|
||||
if (template.getName().toLowerCase().startsWith(last)) list.add(last + template.getName().substring(last.length()));
|
||||
}
|
||||
}
|
||||
return new NamedContainer<>((list.size() <= 0)?plugin.lang.get().getSection("Lang").getColoredString("Command.Creator.Invalid-Template", '&').replace("$str$", args[0]):null, list);
|
||||
return new NamedContainer<>((list.size() <= 0)?plugin.api.getLang("SubServers", "Command.Creator.Invalid-Template").replace("$str$", args[0]):null, list);
|
||||
} else if (args.length == 5) {
|
||||
if (last.length() > 0) {
|
||||
if (new Version("1.8").compareTo(new Version(last)) > 0) {
|
||||
return new NamedContainer<>(plugin.lang.get().getSection("Lang").getColoredString("Command.Creator.Invalid-Version", '&'), Collections.emptyList());
|
||||
return new NamedContainer<>(plugin.api.getLang("SubServers", "Command.Creator.Invalid-Version"), Collections.emptyList());
|
||||
}
|
||||
}
|
||||
return new NamedContainer<>(null, Collections.singletonList("<Version>"));
|
||||
} else if (args.length == 6) {
|
||||
if (last.length() > 0) {
|
||||
if (Util.isException(() -> Integer.parseInt(last)) || Integer.parseInt(last) <= 0 || Integer.parseInt(last) > 65535) {
|
||||
return new NamedContainer<>(plugin.lang.get().getSection("Lang").getColoredString("Command.Creator.Invalid-Port", '&'), Collections.emptyList());
|
||||
return new NamedContainer<>(plugin.api.getLang("SubServers", "Command.Creator.Invalid-Port"), Collections.emptyList());
|
||||
}
|
||||
}
|
||||
return new NamedContainer<>(null, Collections.singletonList("<Port>"));
|
||||
@ -511,7 +513,7 @@ public final class SubCommand extends CommandX {
|
||||
return new NamedContainer<>(null, Collections.emptyList());
|
||||
}
|
||||
} else {
|
||||
return new NamedContainer<>(plugin.lang.get().getSection("Lang").getColoredString("Command.Generic.Invalid-Subcommand", '&').replace("$str$", args[0]), Collections.emptyList());
|
||||
return new NamedContainer<>(plugin.api.getLang("SubServers", "Command.Generic.Invalid-Subcommand").replace("$str$", args[0]), Collections.emptyList());
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -551,18 +553,18 @@ public final class SubCommand extends CommandX {
|
||||
if (servers.keySet().contains(args[0].toLowerCase())) {
|
||||
((ProxiedPlayer) sender).connect(servers.get(args[0].toLowerCase()));
|
||||
} else {
|
||||
sender.sendMessage(plugin.lang.get().getSection("Lang").getColoredString("Bungee.Server.Invalid", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Bungee.Server.Invalid"));
|
||||
}
|
||||
} else {
|
||||
int i = 0;
|
||||
TextComponent serverm = new TextComponent(ChatColor.RESET.toString());
|
||||
TextComponent div = new TextComponent(plugin.lang.get().getSection("Lang").getColoredString("Bungee.Server.Divider", '&'));
|
||||
TextComponent div = new TextComponent(plugin.api.getLang("SubServers", "Bungee.Server.Divider"));
|
||||
for (Server server : plugin.api.getServers().values()) {
|
||||
if (!server.isHidden() && (!(server instanceof SubServer) || ((SubServer) server).isRunning())) {
|
||||
if (i != 0) serverm.addExtra(div);
|
||||
TextComponent message = new TextComponent(plugin.lang.get().getSection("Lang").getColoredString("Bungee.Server.List", '&').replace("$str$", server.getDisplayName()));
|
||||
TextComponent message = new TextComponent(plugin.api.getLang("SubServers", "Bungee.Server.List").replace("$str$", server.getDisplayName()));
|
||||
try {
|
||||
message.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new TextComponent[]{new TextComponent(plugin.lang.get().getSection("Lang").getColoredString("Bungee.Server.Hover", '&').replace("$int$", Integer.toString(server.getGlobalPlayers().size())))}));
|
||||
message.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new TextComponent[]{new TextComponent(plugin.api.getLang("SubServers", "Bungee.Server.Hover").replace("$int$", Integer.toString(server.getGlobalPlayers().size())))}));
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
@ -572,12 +574,12 @@ public final class SubCommand extends CommandX {
|
||||
}
|
||||
}
|
||||
sender.sendMessages(
|
||||
plugin.lang.get().getSection("Lang").getColoredString("Bungee.Server.Current", '&').replace("$str$", ((ProxiedPlayer) sender).getServer().getInfo().getName()),
|
||||
plugin.lang.get().getSection("Lang").getColoredString("Bungee.Server.Available", '&'));
|
||||
plugin.api.getLang("SubServers", "Bungee.Server.Current").replace("$str$", ((ProxiedPlayer) sender).getServer().getInfo().getName()),
|
||||
plugin.api.getLang("SubServers", "Bungee.Server.Available"));
|
||||
sender.sendMessage(serverm);
|
||||
}
|
||||
} else {
|
||||
sender.sendMessage(plugin.lang.get().getSection("Lang").getColoredString("Command.Generic.Player-Only", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Generic.Player-Only"));
|
||||
}
|
||||
}
|
||||
|
||||
@ -598,7 +600,7 @@ public final class SubCommand extends CommandX {
|
||||
for (String server : plugin.getServers().keySet()) {
|
||||
if (server.toLowerCase().startsWith(last)) list.add(server);
|
||||
}
|
||||
return new NamedContainer<>((list.size() <= 0)?plugin.lang.get().getSection("Lang").getColoredString("Bungee.Server.Invalid", '&').replace("$str$", args[0]):null, list);
|
||||
return new NamedContainer<>((list.size() <= 0)?plugin.api.getLang("SubServers", "Bungee.Server.Invalid").replace("$str$", args[0]):null, list);
|
||||
}
|
||||
} else {
|
||||
return new NamedContainer<>(null, Collections.emptyList());
|
||||
@ -635,17 +637,17 @@ public final class SubCommand extends CommandX {
|
||||
players += playerlist.size();
|
||||
if (!server.isHidden() && (!(server instanceof SubServer) || ((SubServer) server).isRunning())) {
|
||||
int i = 0;
|
||||
String message = plugin.lang.get().getSection("Lang").getColoredString("Bungee.List.Format", '&').replace("$str$", server.getDisplayName()).replace("$int$", Integer.toString(playerlist.size()));
|
||||
String message = plugin.api.getLang("SubServers", "Bungee.List.Format").replace("$str$", server.getDisplayName()).replace("$int$", Integer.toString(playerlist.size()));
|
||||
for (String player : playerlist) {
|
||||
if (i != 0) message += plugin.lang.get().getSection("Lang").getColoredString("Bungee.List.Divider", '&');
|
||||
message += plugin.lang.get().getSection("Lang").getColoredString("Bungee.List.List", '&').replace("$str$", player);
|
||||
if (i != 0) message += plugin.api.getLang("SubServers", "Bungee.List.Divider");
|
||||
message += plugin.api.getLang("SubServers", "Bungee.List.List").replace("$str$", player);
|
||||
i++;
|
||||
}
|
||||
messages.add(message);
|
||||
}
|
||||
}
|
||||
sender.sendMessages(messages.toArray(new String[messages.size()]));
|
||||
sender.sendMessage(plugin.lang.get().getSection("Lang").getColoredString("Bungee.List.Total", '&').replace("$int$", Integer.toString(players)));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Bungee.List.Total").replace("$int$", Integer.toString(players)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -41,6 +41,7 @@ import java.util.concurrent.TimeUnit;
|
||||
* Main Plugin Class
|
||||
*/
|
||||
public final class SubPlugin extends BungeeCord implements Listener {
|
||||
protected final LinkedHashMap<String, LinkedHashMap<String, String>> lang = new LinkedHashMap<String, LinkedHashMap<String, String>>();
|
||||
protected final HashMap<String, Class<? extends Host>> hostDrivers = new HashMap<String, Class<? extends Host>>();
|
||||
public final HashMap<String, Host> hosts = new HashMap<String, Host>();
|
||||
public final HashMap<String, Server> exServers = new HashMap<String, Server>();
|
||||
@ -48,10 +49,9 @@ public final class SubPlugin extends BungeeCord implements Listener {
|
||||
|
||||
public final PrintStream out;
|
||||
public final UniversalFile dir = new UniversalFile(new File(System.getProperty("user.dir")));
|
||||
private YAMLConfig bungeeconfig;
|
||||
public YAMLConfig config;
|
||||
public YAMLConfig lang;
|
||||
public HashMap<String, String> exLang = new HashMap<String, String>();
|
||||
private YAMLConfig bungeeconfig;
|
||||
public YAMLConfig langconfig;
|
||||
public final SubAPI api = new SubAPI(this);
|
||||
public SubDataServer subdata = null;
|
||||
public SubServer sudo = null;
|
||||
@ -99,7 +99,7 @@ public final class SubPlugin extends BungeeCord implements Listener {
|
||||
Util.copyFromJar(SubPlugin.class.getClassLoader(), "net/ME1312/SubServers/Bungee/Library/Files/lang.yml", new UniversalFile(dir, "lang.yml").getPath());
|
||||
System.out.println("SubServers > Updated ~/SubServers/lang.yml");
|
||||
}
|
||||
lang = new YAMLConfig(new UniversalFile(dir, "lang.yml"));
|
||||
langconfig = new YAMLConfig(new UniversalFile(dir, "lang.yml"));
|
||||
|
||||
if (!(new UniversalFile(dir, "Templates").exists())) {
|
||||
new UniversalFile(dir, "Templates").mkdirs();
|
||||
@ -177,8 +177,8 @@ public final class SubPlugin extends BungeeCord implements Listener {
|
||||
System.out.println("SubServers > Pre-Parsing Config...");
|
||||
for (String name : config.get().getSection("Servers").getKeys()) {
|
||||
try {
|
||||
if (Util.getCaseInsensitively((Map<String, ?>) config.get().getObject("Hosts"), config.get().getSection("Servers").getSection(name).getString("Host")) == null) throw new InvalidServerException("There is no host with this name: " + config.get().getSection("Servers").getSection(name).getString("Host"));
|
||||
legServers.put(name, new BungeeServerInfo(name, new InetSocketAddress(InetAddress.getByName((String) ((Map<String, ?>) Util.getCaseInsensitively((Map<String, ?>) config.get().getObject("Hosts"), config.get().getSection("Servers").getSection(name).getString("Host"))).get("Address")), config.get().getSection("Servers").getSection(name).getInt("Port")), config.get().getSection("Servers").getSection(name).getColoredString("Motd", '&'), config.get().getSection("Servers").getSection(name).getBoolean("Restricted")));
|
||||
if (Util.getCaseInsensitively(config.get().getSection("Hosts").get(), config.get().getSection("Servers").getSection(name).getString("Host")) == null) throw new InvalidServerException("There is no host with this name: " + config.get().getSection("Servers").getSection(name).getString("Host"));
|
||||
legServers.put(name, new BungeeServerInfo(name, new InetSocketAddress(InetAddress.getByName((String) ((Map<String, ?>) Util.getCaseInsensitively(config.get().getSection("Hosts").get(), config.get().getSection("Servers").getSection(name).getString("Host"))).get("Address")), config.get().getSection("Servers").getSection(name).getInt("Port")), config.get().getSection("Servers").getSection(name).getColoredString("Motd", '&'), config.get().getSection("Servers").getSection(name).getBoolean("Restricted")));
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
@ -219,7 +219,9 @@ public final class SubPlugin extends BungeeCord implements Listener {
|
||||
|
||||
YAMLSection prevconfig = config.get();
|
||||
config.reload();
|
||||
lang.reload();
|
||||
langconfig.reload();
|
||||
for (String key : langconfig.get().getSection("Lang").getKeys())
|
||||
api.setLang("SubServers", key, langconfig.get().getSection("Lang").getColoredString(key, '&'));
|
||||
|
||||
if (subdata == null || // SubData Server must be reset
|
||||
!config.get().getSection("Settings").getSection("SubData").getRawString("Address", "127.0.0.1:4391").equals(prevconfig.getSection("Settings").getSection("SubData").getRawString("Address", "127.0.0.1:4391")) ||
|
||||
|
91
SubServers.Client/Bukkit/module_subservers.client.bukkit.xml
Normal file
91
SubServers.Client/Bukkit/module_subservers.client.bukkit.xml
Normal file
@ -0,0 +1,91 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="module_subservers.client.bukkit" default="compile.module.subservers.client.bukkit">
|
||||
<dirname property="module.subservers.client.bukkit.basedir" file="${ant.file.module_subservers.client.bukkit}"/>
|
||||
|
||||
<property name="module.jdk.home.subservers.client.bukkit" value="${jdk.home.1.8}"/>
|
||||
<property name="module.jdk.bin.subservers.client.bukkit" value="${jdk.bin.1.8}"/>
|
||||
<property name="module.jdk.classpath.subservers.client.bukkit" value="jdk.classpath.1.8"/>
|
||||
|
||||
<property name="compiler.args.subservers.client.bukkit" value="-encoding UTF-8 -source 1.8 -target 1.8 ${compiler.args}"/>
|
||||
|
||||
<property name="subservers.client.bukkit.output.dir" value="${module.subservers.client.bukkit.basedir}/../../out/compile/production/SubServers.Client.Bukkit"/>
|
||||
<property name="subservers.client.bukkit.testoutput.dir" value="${module.subservers.client.bukkit.basedir}/../../out/compile/test/SubServers.Client.Bukkit"/>
|
||||
|
||||
<path id="subservers.client.bukkit.module.bootclasspath">
|
||||
<!-- Paths to be included in compilation bootclasspath -->
|
||||
</path>
|
||||
|
||||
<path id="subservers.client.bukkit.module.production.classpath">
|
||||
<path refid="${module.jdk.classpath.subservers.client.bukkit}"/>
|
||||
<pathelement location="${basedir}/../~lib/spigot-1.11.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/json.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/TitleManager-1.5.11.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/Vault.jar"/>
|
||||
</path>
|
||||
|
||||
<path id="subservers.client.bukkit.runtime.production.module.classpath">
|
||||
<pathelement location="${subservers.client.bukkit.output.dir}"/>
|
||||
<pathelement location="${basedir}/../~lib/json.jar"/>
|
||||
</path>
|
||||
|
||||
<path id="subservers.client.bukkit.module.classpath">
|
||||
<path refid="${module.jdk.classpath.subservers.client.bukkit}"/>
|
||||
<pathelement location="${subservers.client.bukkit.output.dir}"/>
|
||||
<pathelement location="${basedir}/../~lib/spigot-1.11.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/json.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/TitleManager-1.5.11.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/Vault.jar"/>
|
||||
</path>
|
||||
|
||||
<path id="subservers.client.bukkit.runtime.module.classpath">
|
||||
<pathelement location="${subservers.client.bukkit.testoutput.dir}"/>
|
||||
<pathelement location="${subservers.client.bukkit.output.dir}"/>
|
||||
<pathelement location="${basedir}/../~lib/spigot-1.11.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/json.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/TitleManager-1.5.11.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/Vault.jar"/>
|
||||
</path>
|
||||
|
||||
|
||||
<patternset id="excluded.from.module.subservers.client.bukkit">
|
||||
<patternset refid="ignored.files"/>
|
||||
</patternset>
|
||||
|
||||
<patternset id="excluded.from.compilation.subservers.client.bukkit">
|
||||
<patternset refid="excluded.from.module.subservers.client.bukkit"/>
|
||||
</patternset>
|
||||
|
||||
<path id="subservers.client.bukkit.module.sourcepath">
|
||||
<dirset dir="${module.subservers.client.bukkit.basedir}">
|
||||
<include name="src"/>
|
||||
</dirset>
|
||||
</path>
|
||||
|
||||
|
||||
<target name="compile.module.subservers.client.bukkit" depends="compile.module.subservers.client.bukkit.production,compile.module.subservers.client.bukkit.tests" description="Compile module SubServers.Client.Bukkit"/>
|
||||
|
||||
<target name="compile.module.subservers.client.bukkit.production" depends="register.custom.compilers" description="Compile module SubServers.Client.Bukkit; production classes">
|
||||
<mkdir dir="${subservers.client.bukkit.output.dir}"/>
|
||||
<javac2 destdir="${subservers.client.bukkit.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.subservers.client.bukkit}/javac">
|
||||
<compilerarg line="${compiler.args.subservers.client.bukkit}"/>
|
||||
<bootclasspath refid="subservers.client.bukkit.module.bootclasspath"/>
|
||||
<classpath refid="subservers.client.bukkit.module.production.classpath"/>
|
||||
<src refid="subservers.client.bukkit.module.sourcepath"/>
|
||||
<patternset refid="excluded.from.compilation.subservers.client.bukkit"/>
|
||||
</javac2>
|
||||
|
||||
<copy todir="${subservers.client.bukkit.output.dir}">
|
||||
<fileset dir="${module.subservers.client.bukkit.basedir}/src">
|
||||
<patternset refid="compiler.resources"/>
|
||||
<type type="file"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="compile.module.subservers.client.bukkit.tests" depends="register.custom.compilers,compile.module.subservers.client.bukkit.production" description="compile module SubServers.Client.Bukkit; test classes" unless="skip.tests"/>
|
||||
|
||||
<target name="clean.module.subservers.client.bukkit" description="cleanup module">
|
||||
<delete dir="${subservers.client.bukkit.output.dir}"/>
|
||||
<delete dir="${subservers.client.bukkit.testoutput.dir}"/>
|
||||
</target>
|
||||
</project>
|
Binary file not shown.
@ -59,25 +59,25 @@ public class InternalUIHandler implements UIHandler, Listener {
|
||||
if (gui.open && event.getClickedInventory() != null && event.getClickedInventory().getTitle() != null) {
|
||||
if (plugin.subdata == null) {
|
||||
new IllegalStateException("SubData is not connected").printStackTrace();
|
||||
} else if (plugin.lang == null) {
|
||||
} else if (Util.isException(() -> plugin.api.getLang())) {
|
||||
new IllegalStateException("There are no lang options available at this time").printStackTrace();
|
||||
} else if (event.getClickedInventory().getTitle().equals(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Menu.Title", '&'))) { // Host Menu
|
||||
} else if (event.getClickedInventory().getTitle().equals(plugin.api.getLang("SubServers", "Interface.Host-Menu.Title"))) { // Host Menu
|
||||
if (event.getCurrentItem() != null && event.getCurrentItem().getType() != Material.AIR && event.getCurrentItem().hasItemMeta()) {
|
||||
String item = event.getCurrentItem().getItemMeta().getDisplayName();
|
||||
|
||||
if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back-Arrow", '&'))) {
|
||||
if (item.equals(plugin.api.getLang("SubServers", "Interface.Generic.Back-Arrow"))) {
|
||||
player.closeInventory();
|
||||
gui.hostMenu(gui.lastPage - 1);
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Next-Arrow", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.Generic.Next-Arrow"))) {
|
||||
player.closeInventory();
|
||||
gui.hostMenu(gui.lastPage + 1);
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Menu.Group-Menu", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.Host-Menu.Group-Menu"))) {
|
||||
player.closeInventory();
|
||||
gui.groupMenu(1);
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Menu.Server-Menu", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.Host-Menu.Server-Menu"))) {
|
||||
player.closeInventory();
|
||||
gui.serverMenu(1, null, null);
|
||||
} else if (!item.equals(ChatColor.RESET.toString()) && !item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Menu.No-Hosts", '&'))) {
|
||||
} else if (!item.equals(ChatColor.RESET.toString()) && !item.equals(plugin.api.getLang("SubServers", "Interface.Host-Menu.No-Hosts"))) {
|
||||
player.closeInventory();
|
||||
String obj;
|
||||
if (event.getCurrentItem().getItemMeta().getLore() != null && event.getCurrentItem().getItemMeta().getLore().size() > 0 && event.getCurrentItem().getItemMeta().getLore().get(0).startsWith(ChatColor.GRAY.toString())) {
|
||||
@ -88,39 +88,39 @@ public class InternalUIHandler implements UIHandler, Listener {
|
||||
gui.hostAdmin(obj);
|
||||
}
|
||||
}
|
||||
} else if (event.getClickedInventory().getTitle().startsWith(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Title", '&').split("\\$str\\$")[0]) && // Host Creator
|
||||
(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Title", '&').split("\\$str\\$").length == 1 ||
|
||||
event.getClickedInventory().getTitle().endsWith(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Title", '&').split("\\$str\\$")[1]))) {
|
||||
} else if (event.getClickedInventory().getTitle().startsWith(plugin.api.getLang("SubServers", "Interface.Host-Creator.Title").split("\\$str\\$")[0]) && // Host Creator
|
||||
(plugin.api.getLang("SubServers", "Interface.Host-Creator.Title").split("\\$str\\$").length == 1 ||
|
||||
event.getClickedInventory().getTitle().endsWith(plugin.api.getLang("SubServers", "Interface.Host-Creator.Title").split("\\$str\\$")[1]))) {
|
||||
if (event.getCurrentItem() != null && event.getCurrentItem().getType() != Material.AIR && event.getCurrentItem().hasItemMeta()) {
|
||||
String item = event.getCurrentItem().getItemMeta().getDisplayName();
|
||||
if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back", '&'))) {
|
||||
if (item.equals(plugin.api.getLang("SubServers", "Interface.Generic.Back"))) {
|
||||
player.closeInventory();
|
||||
gui.back();
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Undo", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.Generic.Undo"))) {
|
||||
player.closeInventory();
|
||||
((UIRenderer.CreatorOptions) gui.lastVisitedObjects[0]).undo();
|
||||
gui.hostCreator((UIRenderer.CreatorOptions) gui.lastVisitedObjects[0]);
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Submit", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.Host-Creator.Submit"))) {
|
||||
if (player.hasPermission("subservers.host.create.*") || player.hasPermission("subservers.host.create." + ((UIRenderer.CreatorOptions) gui.lastVisitedObjects[0]).getHost().toLowerCase())) {
|
||||
player.closeInventory();
|
||||
gui.setDownloading(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Downloading.Response", '&'));
|
||||
gui.setDownloading(plugin.api.getLang("SubServers", "Interface.Generic.Downloading.Response"));
|
||||
plugin.subdata.sendPacket(new PacketCreateServer(player.getUniqueId(), ((UIRenderer.CreatorOptions) gui.lastVisitedObjects[0]), json -> {
|
||||
gui.back();
|
||||
}));
|
||||
} else {
|
||||
gui.back();
|
||||
}
|
||||
} else if (ChatColor.stripColor(item).equals(ChatColor.stripColor(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Name", '&')))) {
|
||||
} else if (ChatColor.stripColor(item).equals(ChatColor.stripColor(plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Name")))) {
|
||||
player.closeInventory();
|
||||
if (!gui.sendTitle(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Name.Title", '&'), 4 * 20))
|
||||
player.sendMessage(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Name.Message", '&'));
|
||||
if (!gui.sendTitle(plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Name.Title"), 4 * 20))
|
||||
player.sendMessage(plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Name.Message"));
|
||||
input.put(player.getUniqueId(), m -> {
|
||||
if (m.getString("message").contains(" ")) {
|
||||
if (!gui.sendTitle(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Name.Invalid-Title", '&'), 4 * 20))
|
||||
player.sendMessage(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Name.Invalid", '&'));
|
||||
if (!gui.sendTitle(plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Name.Invalid-Title"), 4 * 20))
|
||||
player.sendMessage(plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Name.Invalid"));
|
||||
Bukkit.getScheduler().runTaskLater(plugin, () -> gui.hostCreator((UIRenderer.CreatorOptions) gui.lastVisitedObjects[0]), 4 * 20);
|
||||
} else {
|
||||
gui.setDownloading(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Downloading.Response", '&'));
|
||||
gui.setDownloading(plugin.api.getLang("SubServers", "Interface.Generic.Downloading.Response"));
|
||||
plugin.subdata.sendPacket(new PacketDownloadServerList(null, null, json -> {
|
||||
boolean match = false;
|
||||
for (String tmphost : json.getJSONObject("hosts").keySet()) {
|
||||
@ -130,8 +130,8 @@ public class InternalUIHandler implements UIHandler, Listener {
|
||||
}
|
||||
if (match) {
|
||||
gui.setDownloading(null);
|
||||
if (!gui.sendTitle(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Name.Exists-Title", '&'), 4 * 20))
|
||||
player.sendMessage(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Name.Exists", '&'));
|
||||
if (!gui.sendTitle(plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Name.Exists-Title"), 4 * 20))
|
||||
player.sendMessage(plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Name.Exists"));
|
||||
Bukkit.getScheduler().runTaskLater(plugin, () -> gui.hostCreator((UIRenderer.CreatorOptions) gui.lastVisitedObjects[0]), 4 * 20);
|
||||
} else {
|
||||
((UIRenderer.CreatorOptions) gui.lastVisitedObjects[0]).setName(m.getString("message"));
|
||||
@ -140,31 +140,31 @@ public class InternalUIHandler implements UIHandler, Listener {
|
||||
}));
|
||||
}
|
||||
});
|
||||
} else if (ChatColor.stripColor(item).equals(ChatColor.stripColor(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Template", '&')))) {
|
||||
} else if (ChatColor.stripColor(item).equals(ChatColor.stripColor(plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Template")))) {
|
||||
player.closeInventory();
|
||||
gui.hostCreatorTemplates(1, (UIRenderer.CreatorOptions) gui.lastVisitedObjects[0]);
|
||||
} else if (ChatColor.stripColor(item).equals(ChatColor.stripColor(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Version", '&')))) {
|
||||
} else if (ChatColor.stripColor(item).equals(ChatColor.stripColor(plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Version")))) {
|
||||
player.closeInventory();
|
||||
if (!gui.sendTitle(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Version.Title", '&'), 4 * 20))
|
||||
player.sendMessage(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Version.Message", '&'));
|
||||
if (!gui.sendTitle(plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Version.Title"), 4 * 20))
|
||||
player.sendMessage(plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Version.Message"));
|
||||
input.put(player.getUniqueId(), m -> {
|
||||
if (new Version("1.8").compareTo(new Version(m.getString("message"))) > 0) {
|
||||
if (!gui.sendTitle(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Version.Unavailable-Title", '&'), 4 * 20))
|
||||
player.sendMessage(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Version.Unavailable", '&'));
|
||||
if (!gui.sendTitle(plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Version.Unavailable-Title"), 4 * 20))
|
||||
player.sendMessage(plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Version.Unavailable"));
|
||||
Bukkit.getScheduler().runTaskLater(plugin, () -> gui.hostCreator((UIRenderer.CreatorOptions) gui.lastVisitedObjects[0]), 4 * 20);
|
||||
} else {
|
||||
((UIRenderer.CreatorOptions) gui.lastVisitedObjects[0]).setVersion(new Version(m.getString("message")));
|
||||
gui.hostCreator((UIRenderer.CreatorOptions) gui.lastVisitedObjects[0]);
|
||||
}
|
||||
});
|
||||
} else if (ChatColor.stripColor(item).equals(ChatColor.stripColor(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Port", '&')))) {
|
||||
} else if (ChatColor.stripColor(item).equals(ChatColor.stripColor(plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Port")))) {
|
||||
player.closeInventory();
|
||||
if (!gui.sendTitle(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Port.Title", '&'), 4 * 20))
|
||||
player.sendMessage(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Port.Message", '&'));
|
||||
if (!gui.sendTitle(plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Port.Title"), 4 * 20))
|
||||
player.sendMessage(plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Port.Message"));
|
||||
input.put(player.getUniqueId(), m -> {
|
||||
if (Util.isException(() -> Integer.parseInt(m.getString("message"))) || Integer.parseInt(m.getString("message")) <= 0 || Integer.parseInt(m.getString("message")) > 65535) {
|
||||
if (!gui.sendTitle(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Port.Invalid-Title", '&'), 4 * 20))
|
||||
player.sendMessage(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Port.Invalid", '&'));
|
||||
if (!gui.sendTitle(plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Port.Invalid-Title"), 4 * 20))
|
||||
player.sendMessage(plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Port.Invalid"));
|
||||
Bukkit.getScheduler().runTaskLater(plugin, () -> gui.hostCreator((UIRenderer.CreatorOptions) gui.lastVisitedObjects[0]), 4 * 20);
|
||||
} else {
|
||||
((UIRenderer.CreatorOptions) gui.lastVisitedObjects[0]).setPort(Integer.valueOf(m.getString("message")));
|
||||
@ -173,18 +173,18 @@ public class InternalUIHandler implements UIHandler, Listener {
|
||||
});
|
||||
}
|
||||
}
|
||||
} else if (event.getClickedInventory().getTitle().startsWith(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Template.Title", '&').split("\\$str\\$")[0]) && // Host Creator Templates
|
||||
(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Template.Title", '&').split("\\$str\\$").length == 1 ||
|
||||
event.getClickedInventory().getTitle().endsWith(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Template.Title", '&').split("\\$str\\$")[1]))) {
|
||||
} else if (event.getClickedInventory().getTitle().startsWith(plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Template.Title").split("\\$str\\$")[0]) && // Host Creator Templates
|
||||
(plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Template.Title").split("\\$str\\$").length == 1 ||
|
||||
event.getClickedInventory().getTitle().endsWith(plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Template.Title").split("\\$str\\$")[1]))) {
|
||||
if (event.getCurrentItem() != null && event.getCurrentItem().getType() != Material.AIR && event.getCurrentItem().hasItemMeta()) {
|
||||
String item = event.getCurrentItem().getItemMeta().getDisplayName();
|
||||
if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back-Arrow", '&'))) {
|
||||
if (item.equals(plugin.api.getLang("SubServers", "Interface.Generic.Back-Arrow"))) {
|
||||
player.closeInventory();
|
||||
gui.hostCreatorTemplates(gui.lastPage - 1, (UIRenderer.CreatorOptions) gui.lastVisitedObjects[0]);
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Next-Arrow", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.Generic.Next-Arrow"))) {
|
||||
player.closeInventory();
|
||||
gui.hostCreatorTemplates(gui.lastPage + 1, (UIRenderer.CreatorOptions) gui.lastVisitedObjects[0]);
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.Generic.Back"))) {
|
||||
player.closeInventory();
|
||||
gui.hostCreator((UIRenderer.CreatorOptions) gui.lastVisitedObjects[0]);
|
||||
} else {
|
||||
@ -199,18 +199,18 @@ public class InternalUIHandler implements UIHandler, Listener {
|
||||
gui.hostCreator((UIRenderer.CreatorOptions) gui.lastVisitedObjects[0]);
|
||||
}
|
||||
}
|
||||
} else if (event.getClickedInventory().getTitle().startsWith(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Plugin.Title", '&').split("\\$str\\$")[0]) && // Host Plugin
|
||||
(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Plugin.Title", '&').split("\\$str\\$").length == 1 ||
|
||||
event.getClickedInventory().getTitle().endsWith(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Plugin.Title", '&').split("\\$str\\$")[1]))) {
|
||||
} else if (event.getClickedInventory().getTitle().startsWith(plugin.api.getLang("SubServers", "Interface.Host-Plugin.Title").split("\\$str\\$")[0]) && // Host Plugin
|
||||
(plugin.api.getLang("SubServers", "Interface.Host-Plugin.Title").split("\\$str\\$").length == 1 ||
|
||||
event.getClickedInventory().getTitle().endsWith(plugin.api.getLang("SubServers", "Interface.Host-Plugin.Title").split("\\$str\\$")[1]))) {
|
||||
if (event.getCurrentItem() != null && event.getCurrentItem().getType() != Material.AIR && event.getCurrentItem().hasItemMeta()) {
|
||||
String item = event.getCurrentItem().getItemMeta().getDisplayName();
|
||||
if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back-Arrow", '&'))) {
|
||||
if (item.equals(plugin.api.getLang("SubServers", "Interface.Generic.Back-Arrow"))) {
|
||||
player.closeInventory();
|
||||
gui.hostPlugin(gui.lastPage - 1, ((String) gui.lastVisitedObjects[0]));
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Next-Arrow", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.Generic.Next-Arrow"))) {
|
||||
player.closeInventory();
|
||||
gui.hostPlugin(gui.lastPage + 1, ((String) gui.lastVisitedObjects[0]));
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.Generic.Back"))) {
|
||||
player.closeInventory();
|
||||
gui.back();
|
||||
} else {
|
||||
@ -222,7 +222,7 @@ public class InternalUIHandler implements UIHandler, Listener {
|
||||
if (plugin.get() == null) {
|
||||
gui.reopen();
|
||||
} else {
|
||||
gui.setDownloading(ChatColor.stripColor(this.plugin.lang.getSection("Lang").getColoredString("Interface.Host-Plugin.Title", '&').replace("$str$", (String) gui.lastVisitedObjects[0])));
|
||||
gui.setDownloading(ChatColor.stripColor(this.plugin.api.getLang("SubServers", "Interface.Host-Plugin.Title").replace("$str$", (String) gui.lastVisitedObjects[0])));
|
||||
this.plugin.subdata.sendPacket(new PacketDownloadHostInfo((String) gui.lastVisitedObjects[0], (json) -> {
|
||||
if (json.getBoolean("valid")) {
|
||||
gui.setDownloading(null);
|
||||
@ -235,47 +235,47 @@ public class InternalUIHandler implements UIHandler, Listener {
|
||||
}
|
||||
}
|
||||
|
||||
} else if (event.getClickedInventory().getTitle().equals(plugin.lang.getSection("Lang").getColoredString("Interface.Group-Menu.Title", '&'))) { // Host Menu
|
||||
} else if (event.getClickedInventory().getTitle().equals(plugin.api.getLang("SubServers", "Interface.Group-Menu.Title"))) { // Host Menu
|
||||
if (event.getCurrentItem() != null && event.getCurrentItem().getType() != Material.AIR && event.getCurrentItem().hasItemMeta()) {
|
||||
String item = event.getCurrentItem().getItemMeta().getDisplayName();
|
||||
|
||||
if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back-Arrow", '&'))) {
|
||||
if (item.equals(plugin.api.getLang("SubServers", "Interface.Generic.Back-Arrow"))) {
|
||||
player.closeInventory();
|
||||
gui.groupMenu(gui.lastPage - 1);
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Next-Arrow", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.Generic.Next-Arrow"))) {
|
||||
player.closeInventory();
|
||||
gui.groupMenu(gui.lastPage + 1);
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Group-Menu.Server-Menu", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.Group-Menu.Server-Menu"))) {
|
||||
player.closeInventory();
|
||||
gui.serverMenu(1, null, null);
|
||||
} else if (!item.equals(ChatColor.RESET.toString()) && !item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Group-Menu.No-Groups", '&'))) {
|
||||
} else if (!item.equals(ChatColor.RESET.toString()) && !item.equals(plugin.api.getLang("SubServers", "Interface.Group-Menu.No-Groups"))) {
|
||||
player.closeInventory();
|
||||
gui.serverMenu(1, null, ChatColor.stripColor(item));
|
||||
}
|
||||
}
|
||||
} else if (event.getClickedInventory().getTitle().equals(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.Title", '&')) || // SubServer Menu
|
||||
event.getClickedInventory().getTitle().startsWith(plugin.lang.getSection("Lang").getColoredString("Interface.Host-SubServer.Title", '&').split("\\$str\\$")[0]) &&
|
||||
(plugin.lang.getSection("Lang").getColoredString("Interface.Host-SubServer.Title", '&').split("\\$str\\$").length == 1 ||
|
||||
event.getClickedInventory().getTitle().endsWith(plugin.lang.getSection("Lang").getColoredString("Interface.Host-SubServer.Title", '&').split("\\$str\\$")[1])) ||
|
||||
event.getClickedInventory().getTitle().startsWith(plugin.lang.getSection("Lang").getColoredString("Interface.Group-SubServer.Title", '&').split("\\$str\\$")[0]) &&
|
||||
(plugin.lang.getSection("Lang").getColoredString("Interface.Group-SubServer.Title", '&').split("\\$str\\$").length == 1 ||
|
||||
event.getClickedInventory().getTitle().endsWith(plugin.lang.getSection("Lang").getColoredString("Interface.Group-SubServer.Title", '&').split("\\$str\\$")[1]))) {
|
||||
} else if (event.getClickedInventory().getTitle().equals(plugin.api.getLang("SubServers", "Interface.Server-Menu.Title")) || // SubServer Menu
|
||||
event.getClickedInventory().getTitle().startsWith(plugin.api.getLang("SubServers", "Interface.Host-SubServer.Title").split("\\$str\\$")[0]) &&
|
||||
(plugin.api.getLang("SubServers", "Interface.Host-SubServer.Title").split("\\$str\\$").length == 1 ||
|
||||
event.getClickedInventory().getTitle().endsWith(plugin.api.getLang("SubServers", "Interface.Host-SubServer.Title").split("\\$str\\$")[1])) ||
|
||||
event.getClickedInventory().getTitle().startsWith(plugin.api.getLang("SubServers", "Interface.Group-SubServer.Title").split("\\$str\\$")[0]) &&
|
||||
(plugin.api.getLang("SubServers", "Interface.Group-SubServer.Title").split("\\$str\\$").length == 1 ||
|
||||
event.getClickedInventory().getTitle().endsWith(plugin.api.getLang("SubServers", "Interface.Group-SubServer.Title").split("\\$str\\$")[1]))) {
|
||||
if (event.getCurrentItem() != null && event.getCurrentItem().getType() != Material.AIR && event.getCurrentItem().hasItemMeta()) {
|
||||
String item = event.getCurrentItem().getItemMeta().getDisplayName();
|
||||
|
||||
if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back-Arrow", '&'))) {
|
||||
if (item.equals(plugin.api.getLang("SubServers", "Interface.Generic.Back-Arrow"))) {
|
||||
player.closeInventory();
|
||||
gui.serverMenu(gui.lastPage - 1, (String) gui.lastVisitedObjects[0], (String) gui.lastVisitedObjects[1]);
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Next-Arrow", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.Generic.Next-Arrow"))) {
|
||||
player.closeInventory();
|
||||
gui.serverMenu(gui.lastPage + 1, (String) gui.lastVisitedObjects[0], (String) gui.lastVisitedObjects[1]);
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.Host-Menu", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.Server-Menu.Host-Menu"))) {
|
||||
player.closeInventory();
|
||||
gui.hostMenu(1);
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.Generic.Back"))) {
|
||||
player.closeInventory();
|
||||
gui.back();
|
||||
} else if (!item.equals(ChatColor.RESET.toString()) && event.getCurrentItem().getDurability() != 0 && event.getCurrentItem().getDurability() != 8 && !item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.No-Servers", '&'))) {
|
||||
} else if (!item.equals(ChatColor.RESET.toString()) && event.getCurrentItem().getDurability() != 0 && event.getCurrentItem().getDurability() != 8 && !item.equals(plugin.api.getLang("SubServers", "Interface.Server-Menu.No-Servers"))) {
|
||||
player.closeInventory();
|
||||
String obj;
|
||||
if (event.getCurrentItem().getItemMeta().getLore() != null && event.getCurrentItem().getItemMeta().getLore().size() > 0 && event.getCurrentItem().getItemMeta().getLore().get(0).startsWith(ChatColor.GRAY.toString())) {
|
||||
@ -286,50 +286,50 @@ public class InternalUIHandler implements UIHandler, Listener {
|
||||
gui.subserverAdmin(obj);
|
||||
}
|
||||
}
|
||||
} else if (event.getClickedInventory().getTitle().startsWith(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Admin.Title", '&').split("\\$str\\$")[0]) && // Host Admin
|
||||
(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Admin.Title", '&').split("\\$str\\$").length == 1 ||
|
||||
event.getClickedInventory().getTitle().endsWith(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Admin.Title", '&').split("\\$str\\$")[1]))) {
|
||||
} else if (event.getClickedInventory().getTitle().startsWith(plugin.api.getLang("SubServers", "Interface.Host-Admin.Title").split("\\$str\\$")[0]) && // Host Admin
|
||||
(plugin.api.getLang("SubServers", "Interface.Host-Admin.Title").split("\\$str\\$").length == 1 ||
|
||||
event.getClickedInventory().getTitle().endsWith(plugin.api.getLang("SubServers", "Interface.Host-Admin.Title").split("\\$str\\$")[1]))) {
|
||||
if (event.getCurrentItem() != null && event.getCurrentItem().getType() != Material.AIR && event.getCurrentItem().hasItemMeta()) {
|
||||
String item = event.getCurrentItem().getItemMeta().getDisplayName();
|
||||
|
||||
if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back", '&'))) {
|
||||
if (item.equals(plugin.api.getLang("SubServers", "Interface.Generic.Back"))) {
|
||||
player.closeInventory();
|
||||
gui.back();
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Admin.Creator", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.Host-Admin.Creator"))) {
|
||||
player.closeInventory();
|
||||
if (player.hasPermission("subservers.host.create.*") || player.hasPermission("subservers.host.create." + ((String) gui.lastVisitedObjects[0]).toLowerCase())) {
|
||||
gui.hostCreator(new UIRenderer.CreatorOptions((String) gui.lastVisitedObjects[0]));
|
||||
} else gui.reopen();
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Admin.SubServers", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.Host-Admin.SubServers"))) {
|
||||
player.closeInventory();
|
||||
gui.serverMenu(1, (String) gui.lastVisitedObjects[0], null);
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Admin.Plugins", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.Host-Admin.Plugins"))) {
|
||||
player.closeInventory();
|
||||
gui.hostPlugin(1, (String) gui.lastVisitedObjects[0]);
|
||||
}
|
||||
}
|
||||
} else if (event.getClickedInventory().getTitle().startsWith(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Title", '&').split("\\$str\\$")[0]) && // SubServer Admin
|
||||
(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Title", '&').split("\\$str\\$").length == 1 ||
|
||||
event.getClickedInventory().getTitle().endsWith(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Title", '&').split("\\$str\\$")[1]))) {
|
||||
} else if (event.getClickedInventory().getTitle().startsWith(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Title").split("\\$str\\$")[0]) && // SubServer Admin
|
||||
(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Title").split("\\$str\\$").length == 1 ||
|
||||
event.getClickedInventory().getTitle().endsWith(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Title").split("\\$str\\$")[1]))) {
|
||||
if (event.getCurrentItem() != null && event.getCurrentItem().getType() != Material.AIR && event.getCurrentItem().hasItemMeta()) {
|
||||
String item = event.getCurrentItem().getItemMeta().getDisplayName();
|
||||
|
||||
if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back", '&'))) {
|
||||
if (item.equals(plugin.api.getLang("SubServers", "Interface.Generic.Back"))) {
|
||||
player.closeInventory();
|
||||
gui.back();
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Start", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Start"))) {
|
||||
player.closeInventory();
|
||||
if (player.hasPermission("subservers.subserver.start.*") || player.hasPermission("subservers.subserver.start." + ((String) gui.lastVisitedObjects[0]).toLowerCase())) {
|
||||
gui.setDownloading(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Downloading.Response", '&'));
|
||||
gui.setDownloading(plugin.api.getLang("SubServers", "Interface.Generic.Downloading.Response"));
|
||||
plugin.subdata.sendPacket(new PacketStartServer(player.getUniqueId(), (String) gui.lastVisitedObjects[0], json -> {
|
||||
gui.setDownloading(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Start.Title", '&'));
|
||||
gui.setDownloading(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Start.Title"));
|
||||
Bukkit.getScheduler().runTaskLater(plugin, gui::reopen, 30);
|
||||
}));
|
||||
} else gui.reopen();
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Stop", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Stop"))) {
|
||||
player.closeInventory();
|
||||
if (player.hasPermission("subservers.subserver.stop.*") || player.hasPermission("subservers.subserver.stop." + ((String) gui.lastVisitedObjects[0]).toLowerCase())) {
|
||||
gui.setDownloading(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Downloading.Response", '&'));
|
||||
gui.setDownloading(plugin.api.getLang("SubServers", "Interface.Generic.Downloading.Response"));
|
||||
final Container<Boolean> listening = new Container<Boolean>(true);
|
||||
PacketInRunEvent.callback("SubStoppedEvent", new JSONCallback() {
|
||||
@Override
|
||||
@ -347,13 +347,13 @@ public class InternalUIHandler implements UIHandler, Listener {
|
||||
if (json.getInt("r") != 0) {
|
||||
gui.reopen();
|
||||
listening.set(false);
|
||||
} else gui.setDownloading(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Stop.Title", '&').replace("$str$", (String) gui.lastVisitedObjects[0]));
|
||||
} else gui.setDownloading(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Stop.Title").replace("$str$", (String) gui.lastVisitedObjects[0]));
|
||||
}));
|
||||
} else gui.reopen();
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Terminate", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Terminate"))) {
|
||||
player.closeInventory();
|
||||
if (player.hasPermission("subservers.subserver.terminate.*") || player.hasPermission("subservers.subserver.terminate." + ((String) gui.lastVisitedObjects[0]).toLowerCase())) {
|
||||
gui.setDownloading(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Downloading.Response", '&'));
|
||||
gui.setDownloading(plugin.api.getLang("SubServers", "Interface.Generic.Downloading.Response"));
|
||||
final Container<Boolean> listening = new Container<Boolean>(true);
|
||||
PacketInRunEvent.callback("SubStoppedEvent", new JSONCallback() {
|
||||
@Override
|
||||
@ -371,38 +371,38 @@ public class InternalUIHandler implements UIHandler, Listener {
|
||||
if (json.getInt("r") != 0) {
|
||||
gui.reopen();
|
||||
listening.set(false);
|
||||
} else gui.setDownloading(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Terminate.Title", '&').replace("$str$", (String) gui.lastVisitedObjects[0]));
|
||||
} else gui.setDownloading(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Terminate.Title").replace("$str$", (String) gui.lastVisitedObjects[0]));
|
||||
}));
|
||||
} else gui.reopen();
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Command", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Command"))) {
|
||||
player.closeInventory();
|
||||
if (player.hasPermission("subservers.subserver.command.*") || player.hasPermission("subservers.subserver.command." + ((String) gui.lastVisitedObjects[0]).toLowerCase())) {
|
||||
if (!gui.sendTitle(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Command.Title", '&'), 4 * 20))
|
||||
player.sendMessage(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Command.Message", '&'));
|
||||
if (!gui.sendTitle(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Command.Title"), 4 * 20))
|
||||
player.sendMessage(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Command.Message"));
|
||||
input.put(player.getUniqueId(), m -> {
|
||||
gui.setDownloading(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Downloading.Response", '&'));
|
||||
gui.setDownloading(plugin.api.getLang("SubServers", "Interface.Generic.Downloading.Response"));
|
||||
plugin.subdata.sendPacket(new PacketCommandServer(player.getUniqueId(), (String) gui.lastVisitedObjects[0], (m.getString("message").startsWith("/"))?m.getString("message").substring(1):m.getString("message"), json -> {
|
||||
gui.reopen();
|
||||
}));
|
||||
});
|
||||
} else gui.reopen();
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Plugins", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Plugins"))) {
|
||||
player.closeInventory();
|
||||
gui.subserverPlugin(1, (String) gui.lastVisitedObjects[0]);
|
||||
}
|
||||
}
|
||||
} else if (event.getClickedInventory().getTitle().startsWith(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Plugin.Title", '&').split("\\$str\\$")[0]) && // SubServer Plugin
|
||||
(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Plugin.Title", '&').split("\\$str\\$").length == 1 ||
|
||||
event.getClickedInventory().getTitle().endsWith(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Plugin.Title", '&').split("\\$str\\$")[1]))) {
|
||||
} else if (event.getClickedInventory().getTitle().startsWith(plugin.api.getLang("SubServers", "Interface.SubServer-Plugin.Title").split("\\$str\\$")[0]) && // SubServer Plugin
|
||||
(plugin.api.getLang("SubServers", "Interface.SubServer-Plugin.Title").split("\\$str\\$").length == 1 ||
|
||||
event.getClickedInventory().getTitle().endsWith(plugin.api.getLang("SubServers", "Interface.SubServer-Plugin.Title").split("\\$str\\$")[1]))) {
|
||||
if (event.getCurrentItem() != null && event.getCurrentItem().getType() != Material.AIR && event.getCurrentItem().hasItemMeta()) {
|
||||
String item = event.getCurrentItem().getItemMeta().getDisplayName();
|
||||
if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back-Arrow", '&'))) {
|
||||
if (item.equals(plugin.api.getLang("SubServers", "Interface.Generic.Back-Arrow"))) {
|
||||
player.closeInventory();
|
||||
gui.subserverPlugin(gui.lastPage - 1, (String) gui.lastVisitedObjects[0]);
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Next-Arrow", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.Generic.Next-Arrow"))) {
|
||||
player.closeInventory();
|
||||
gui.subserverPlugin(gui.lastPage + 1, (String) gui.lastVisitedObjects[0]);
|
||||
} else if (item.equals(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back", '&'))) {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.Generic.Back"))) {
|
||||
player.closeInventory();
|
||||
gui.back();
|
||||
} else {
|
||||
@ -414,7 +414,7 @@ public class InternalUIHandler implements UIHandler, Listener {
|
||||
if (plugin.get() == null) {
|
||||
gui.reopen();
|
||||
} else {
|
||||
gui.setDownloading(ChatColor.stripColor(this.plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Plugin.Title", '&').replace("$str$", (String) gui.lastVisitedObjects[0])));
|
||||
gui.setDownloading(ChatColor.stripColor(this.plugin.api.getLang("SubServers", "Interface.SubServer-Plugin.Title").replace("$str$", (String) gui.lastVisitedObjects[0])));
|
||||
this.plugin.subdata.sendPacket(new PacketDownloadServerInfo((String) gui.lastVisitedObjects[0], json -> {
|
||||
if (json.getString("type").equals("subserver")) {
|
||||
gui.setDownloading(null);
|
||||
|
@ -76,7 +76,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
}
|
||||
|
||||
public void hostMenu(final int page) {
|
||||
setDownloading(ChatColor.stripColor(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Menu.Title", '&')));
|
||||
setDownloading(ChatColor.stripColor(plugin.api.getLang("SubServers", "Interface.Host-Menu.Title")));
|
||||
plugin.subdata.sendPacket(new PacketDownloadServerList(null, null, (json) -> {
|
||||
setDownloading(null);
|
||||
lastVisitedObjects[0] = null;
|
||||
@ -99,7 +99,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
int count = (hosts.size() == 0)?27:((hosts.size() - min >= max)?36:hosts.size() - min);
|
||||
int area = (count % 9 == 0) ? count : (int) (Math.floor(count / 9) + 1) * 9;
|
||||
|
||||
Inventory inv = Bukkit.createInventory(null, 18 + area, plugin.lang.getSection("Lang").getColoredString("Interface.Host-Menu.Title", '&'));
|
||||
Inventory inv = Bukkit.createInventory(null, 18 + area, plugin.api.getLang("SubServers", "Interface.Host-Menu.Title"));
|
||||
block = createItem("STAINED_GLASS_PANE", "GRAY_STAINED_GLASS_PANE", (short) 7);
|
||||
block.setItemMeta(divMeta);
|
||||
while (i < area) {
|
||||
@ -125,7 +125,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
LinkedList<String> lore = new LinkedList<String>();
|
||||
if (!host.equals(json.getJSONObject("hosts").getJSONObject(host).getString("display")))
|
||||
lore.add(ChatColor.GRAY + host);
|
||||
lore.add(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Menu.Host-Server-Count", '&').replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("hosts").getJSONObject(host).getJSONObject("servers").keySet().size())));
|
||||
lore.add(plugin.api.getLang("SubServers", "Interface.Host-Menu.Host-Server-Count").replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("hosts").getJSONObject(host).getJSONObject("servers").keySet().size())));
|
||||
if (plugin.config.get().getSection("Settings").getBoolean("Show-Addresses", false)) lore.add(ChatColor.WHITE + json.getJSONObject("hosts").getJSONObject(host).getString("address"));
|
||||
blockMeta.setLore(lore);
|
||||
} else {
|
||||
@ -135,7 +135,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
LinkedList<String> lore = new LinkedList<String>();
|
||||
if (!host.equals(json.getJSONObject("hosts").getJSONObject(host).getString("display")))
|
||||
lore.add(ChatColor.GRAY + host);
|
||||
lore.add(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Menu.Host-Disabled", '&'));
|
||||
lore.add(plugin.api.getLang("SubServers", "Interface.Host-Menu.Host-Disabled"));
|
||||
if (plugin.config.get().getSection("Settings").getBoolean("Show-Addresses", false)) lore.add(ChatColor.WHITE + json.getJSONObject("hosts").getJSONObject(host).getString("address"));
|
||||
blockMeta.setLore(lore);
|
||||
}
|
||||
@ -155,7 +155,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (hosts.size() == 0) {
|
||||
block = createItem("STAINED_GLASS_PANE", "RED_STAINED_GLASS_PANE", (short) 14);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Menu.No-Hosts", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Host-Menu.No-Hosts"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(12, block);
|
||||
inv.setItem(13, block);
|
||||
@ -172,7 +172,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (min != 0) {
|
||||
block = createItem("STAINED_GLASS_PANE", "YELLOW_STAINED_GLASS_PANE", (short) 4);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back-Arrow", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Generic.Back-Arrow"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(i++, block);
|
||||
inv.setItem(i++, block);
|
||||
@ -181,11 +181,11 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (json.getJSONObject("groups").length() <= 0) {
|
||||
block = createItem("STAINED_GLASS_PANE", "LIME_STAINED_GLASS_PANE", (short) 5);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Menu.Server-Menu", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Host-Menu.Server-Menu"));
|
||||
} else {
|
||||
block = createItem("STAINED_GLASS_PANE", "ORANGE_STAINED_GLASS_PANE", (short) 1);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Menu.Group-Menu", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Host-Menu.Group-Menu"));
|
||||
}
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(i++, block);
|
||||
@ -195,7 +195,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (hosts.size() - 1 > max) {
|
||||
block = createItem("STAINED_GLASS_PANE", "YELLOW_STAINED_GLASS_PANE", (short) 4);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Next-Arrow", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Generic.Next-Arrow"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(i++, block);
|
||||
inv.setItem(i, block);
|
||||
@ -207,7 +207,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
}
|
||||
|
||||
public void hostAdmin(final String host) {
|
||||
setDownloading(ChatColor.stripColor(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Admin.Title", '&').replace("$str$", host)));
|
||||
setDownloading(ChatColor.stripColor(plugin.api.getLang("SubServers", "Interface.Host-Admin.Title").replace("$str$", host)));
|
||||
plugin.subdata.sendPacket(new PacketDownloadHostInfo(host, (json) -> {
|
||||
windowHistory.add(() -> hostAdmin(host));
|
||||
if (!json.getBoolean("valid")) {
|
||||
@ -223,7 +223,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
divMeta.setDisplayName(ChatColor.RESET.toString());
|
||||
div.setItemMeta(divMeta);
|
||||
|
||||
Inventory inv = Bukkit.createInventory(null, 36, plugin.lang.getSection("Lang").getColoredString("Interface.Host-Admin.Title", '&').replace("$str$", json.getJSONObject("host").getString("display")));
|
||||
Inventory inv = Bukkit.createInventory(null, 36, plugin.api.getLang("SubServers", "Interface.Host-Admin.Title").replace("$str$", json.getJSONObject("host").getString("display")));
|
||||
|
||||
int i = 0;
|
||||
while (i < inv.getSize()) {
|
||||
@ -234,16 +234,16 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (!(Bukkit.getPlayer(player).hasPermission("subservers.host.create.*") || Bukkit.getPlayer(player).hasPermission("subservers.host.create." + host.toLowerCase()))) {
|
||||
block = createItem("STAINED_GLASS_PANE", "GRAY_STAINED_GLASS_PANE", (short) 7);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(ChatColor.GRAY+ChatColor.stripColor(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Admin.Creator", '&')));
|
||||
blockMeta.setLore(Arrays.asList(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Invalid-Permission", '&').replace("$str$", "subservers.host.create." + host.toLowerCase())));
|
||||
blockMeta.setDisplayName(ChatColor.GRAY+ChatColor.stripColor(plugin.api.getLang("SubServers", "Interface.Host-Admin.Creator")));
|
||||
blockMeta.setLore(Arrays.asList(plugin.api.getLang("SubServers", "Interface.Generic.Invalid-Permission").replace("$str$", "subservers.host.create." + host.toLowerCase())));
|
||||
} else if (!json.getJSONObject("host").getBoolean("enabled")) {
|
||||
block = createItem("STAINED_GLASS_PANE", "GRAY_STAINED_GLASS_PANE", (short) 7);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(ChatColor.GRAY+ChatColor.stripColor(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Admin.Creator", '&')));
|
||||
blockMeta.setDisplayName(ChatColor.GRAY+ChatColor.stripColor(plugin.api.getLang("SubServers", "Interface.Host-Admin.Creator")));
|
||||
} else {
|
||||
block = createItem("STAINED_GLASS_PANE", "YELLOW_STAINED_GLASS_PANE", (short) 4);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Admin.Creator", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Host-Admin.Creator"));
|
||||
}
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(1, block);
|
||||
@ -255,7 +255,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
|
||||
block = createItem("STAINED_GLASS_PANE", "LIME_STAINED_GLASS_PANE", (short) 5);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Admin.SubServers", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Host-Admin.SubServers"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(5, block);
|
||||
inv.setItem(6, block);
|
||||
@ -269,7 +269,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
} else {
|
||||
block = createItem("STAINED_GLASS_PANE", "BLUE_STAINED_GLASS_PANE", (short) 11);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Admin.Plugins", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Host-Admin.Plugins"));
|
||||
block.setItemMeta(blockMeta);
|
||||
}
|
||||
inv.setItem(27, block);
|
||||
@ -282,7 +282,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
LinkedList<String> lore = new LinkedList<String>();
|
||||
if (!host.equals(json.getJSONObject("host").getString("display")))
|
||||
lore.add(ChatColor.GRAY + host);
|
||||
lore.add(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Menu.Host-Server-Count", '&').replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("host").getJSONObject("servers").keySet().size())));
|
||||
lore.add(plugin.api.getLang("SubServers", "Interface.Host-Menu.Host-Server-Count").replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("host").getJSONObject("servers").keySet().size())));
|
||||
if (plugin.config.get().getSection("Settings").getBoolean("Show-Addresses", false)) lore.add(ChatColor.WHITE + json.getJSONObject("host").getString("address"));
|
||||
blockMeta.setLore(lore);
|
||||
} else {
|
||||
@ -292,7 +292,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
LinkedList<String> lore = new LinkedList<String>();
|
||||
if (!host.equals(json.getJSONObject("host").getString("display")))
|
||||
lore.add(ChatColor.GRAY + host);
|
||||
lore.add(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Menu.Host-Disabled", '&'));
|
||||
lore.add(plugin.api.getLang("SubServers", "Interface.Host-Menu.Host-Disabled"));
|
||||
if (plugin.config.get().getSection("Settings").getBoolean("Show-Addresses", false)) lore.add(ChatColor.WHITE + json.getJSONObject("host").getString("address"));
|
||||
blockMeta.setLore(lore);
|
||||
}
|
||||
@ -305,7 +305,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (hasHistory()) {
|
||||
block = createItem("STAINED_GLASS_PANE", "RED_STAINED_GLASS_PANE", (short) 14);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Generic.Back"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(34, block);
|
||||
inv.setItem(35, block);
|
||||
@ -318,7 +318,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
}
|
||||
|
||||
public void hostCreator(final CreatorOptions options) {
|
||||
setDownloading(ChatColor.stripColor(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Title", '&').replace("$str$", options.getHost())));
|
||||
setDownloading(ChatColor.stripColor(plugin.api.getLang("SubServers", "Interface.Host-Creator.Title").replace("$str$", options.getHost())));
|
||||
if (!options.init())
|
||||
windowHistory.add(() -> hostCreator(options));
|
||||
lastVisitedObjects[0] = options;
|
||||
@ -336,7 +336,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
divMeta.setDisplayName(ChatColor.RESET.toString());
|
||||
div.setItemMeta(divMeta);
|
||||
|
||||
Inventory inv = Bukkit.createInventory(null, 54, plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Title", '&').replace("$str$", json.getJSONObject("host").getString("display")));
|
||||
Inventory inv = Bukkit.createInventory(null, 54, plugin.api.getLang("SubServers", "Interface.Host-Creator.Title").replace("$str$", json.getJSONObject("host").getString("display")));
|
||||
|
||||
int i = 0;
|
||||
while (i < inv.getSize()) {
|
||||
@ -347,11 +347,11 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (options.getName() == null) {
|
||||
block = createItem("STAINED_GLASS_PANE", "RED_STAINED_GLASS_PANE", (short) 14);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(ChatColor.RED + plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Name", '&'));
|
||||
blockMeta.setDisplayName(ChatColor.RED + plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Name"));
|
||||
} else {
|
||||
block = createItem("STAINED_GLASS_PANE", "LIME_STAINED_GLASS_PANE", (short) 5);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(ChatColor.GREEN + plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Name", '&'));
|
||||
blockMeta.setDisplayName(ChatColor.GREEN + plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Name"));
|
||||
blockMeta.setLore(Arrays.asList(ChatColor.GRAY + options.getName()));
|
||||
}
|
||||
block.setItemMeta(blockMeta);
|
||||
@ -362,11 +362,11 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (options.getPort() <= 0) {
|
||||
block = createItem("STAINED_GLASS_PANE", "RED_STAINED_GLASS_PANE", (short) 14);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(ChatColor.RED + plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Port", '&'));
|
||||
blockMeta.setDisplayName(ChatColor.RED + plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Port"));
|
||||
} else {
|
||||
block = createItem("STAINED_GLASS_PANE", "LIME_STAINED_GLASS_PANE", (short) 5);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(ChatColor.GREEN + plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Port", '&'));
|
||||
blockMeta.setDisplayName(ChatColor.GREEN + plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Port"));
|
||||
blockMeta.setLore(Arrays.asList(ChatColor.GRAY.toString() + options.getPort()));
|
||||
}
|
||||
block.setItemMeta(blockMeta);
|
||||
@ -377,11 +377,11 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (options.getTemplate() == null) {
|
||||
block = createItem("STAINED_GLASS_PANE", "RED_STAINED_GLASS_PANE", (short) 14);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(ChatColor.RED + plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Template", '&'));
|
||||
blockMeta.setDisplayName(ChatColor.RED + plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Template"));
|
||||
} else {
|
||||
block = createItem("STAINED_GLASS_PANE", "LIME_STAINED_GLASS_PANE", (short) 5);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(ChatColor.GREEN + plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Template", '&'));
|
||||
blockMeta.setDisplayName(ChatColor.GREEN + plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Template"));
|
||||
blockMeta.setLore(Arrays.asList(ChatColor.GRAY + options.getTemplate()));
|
||||
}
|
||||
block.setItemMeta(blockMeta);
|
||||
@ -392,11 +392,11 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (options.getVersion() == null) {
|
||||
block = createItem("STAINED_GLASS_PANE", "RED_STAINED_GLASS_PANE", (short) 14);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(ChatColor.RED + plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Version", '&'));
|
||||
blockMeta.setDisplayName(ChatColor.RED + plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Version"));
|
||||
} else {
|
||||
block = createItem("STAINED_GLASS_PANE", "LIME_STAINED_GLASS_PANE", (short) 5);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(ChatColor.GREEN + plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Version", '&'));
|
||||
blockMeta.setDisplayName(ChatColor.GREEN + plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Version"));
|
||||
blockMeta.setLore(Arrays.asList(ChatColor.GRAY + "v" + options.getVersion().toString()));
|
||||
}
|
||||
block.setItemMeta(blockMeta);
|
||||
@ -407,12 +407,12 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (!options.hasHistory()) {
|
||||
block = createItem("STAINED_GLASS_PANE", "GRAY_STAINED_GLASS_PANE", (short) 7);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(ChatColor.GRAY + ChatColor.stripColor(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Undo", '&')));
|
||||
blockMeta.setDisplayName(ChatColor.GRAY + ChatColor.stripColor(plugin.api.getLang("SubServers", "Interface.Generic.Undo")));
|
||||
block.setItemMeta(blockMeta);
|
||||
} else {
|
||||
block = createItem("STAINED_GLASS_PANE", "ORANGE_STAINED_GLASS_PANE", (short) 1);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Undo", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Generic.Undo"));
|
||||
block.setItemMeta(blockMeta);
|
||||
}
|
||||
block.setItemMeta(blockMeta);
|
||||
@ -422,13 +422,13 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (options.getName() == null || options.getTemplate() == null || options.getVersion() == null || options.getPort() <= 0 && options.getMemory() < 256) {
|
||||
block = createItem("STAINED_GLASS_PANE", "GRAY_STAINED_GLASS_PANE", (short) 7);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(ChatColor.GRAY + ChatColor.stripColor(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Submit", '&')));
|
||||
blockMeta.setLore(Arrays.asList(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Form-Incomplete", '&')));
|
||||
blockMeta.setDisplayName(ChatColor.GRAY + ChatColor.stripColor(plugin.api.getLang("SubServers", "Interface.Host-Creator.Submit")));
|
||||
blockMeta.setLore(Arrays.asList(plugin.api.getLang("SubServers", "Interface.Host-Creator.Form-Incomplete")));
|
||||
block.setItemMeta(blockMeta);
|
||||
} else {
|
||||
block = createItem("STAINED_GLASS_PANE", "YELLOW_STAINED_GLASS_PANE", (short) 4);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Submit", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Host-Creator.Submit"));
|
||||
block.setItemMeta(blockMeta);
|
||||
}
|
||||
block.setItemMeta(blockMeta);
|
||||
@ -439,7 +439,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (hasHistory()) {
|
||||
block = createItem("STAINED_GLASS_PANE", "RED_STAINED_GLASS_PANE", (short) 14);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Generic.Back"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(52, block);
|
||||
inv.setItem(53, block);
|
||||
@ -452,7 +452,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
}
|
||||
|
||||
public void hostCreatorTemplates(final int page, final CreatorOptions options) {
|
||||
setDownloading(ChatColor.stripColor(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Template.Title", '&').replace("$str$", options.getHost())));
|
||||
setDownloading(ChatColor.stripColor(plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Template.Title").replace("$str$", options.getHost())));
|
||||
lastVisitedObjects[0] = options;
|
||||
if (!options.init()) lastVisitedObjects[0] = options.getHost();
|
||||
plugin.subdata.sendPacket(new PacketDownloadHostInfo(options.getHost(), (json) -> {
|
||||
@ -481,7 +481,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
int count = (templates.size() == 0)?27:((templates.size() - min >= max)?36:templates.size() - min);
|
||||
int area = (count % 9 == 0)?count: (int) (Math.floor(count / 9) + 1) * 9;
|
||||
|
||||
Inventory inv = Bukkit.createInventory(null, 18 + area, plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Template.Title", '&').replace("$str$", json.getJSONObject("host").getString("display")));
|
||||
Inventory inv = Bukkit.createInventory(null, 18 + area, plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Template.Title").replace("$str$", json.getJSONObject("host").getString("display")));
|
||||
block = createItem("STAINED_GLASS_PANE", "GRAY_STAINED_GLASS_PANE", (short) 7);
|
||||
block.setItemMeta(divMeta);
|
||||
while (i < area) {
|
||||
@ -519,7 +519,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (templates.size() == 0) {
|
||||
block = createItem("STAINED_GLASS_PANE", "RED_STAINED_GLASS_PANE", (short) 14);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Creator.Edit-Template.No-Templates", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Host-Creator.Edit-Template.No-Templates"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(12, block);
|
||||
inv.setItem(13, block);
|
||||
@ -536,7 +536,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (min != 0) {
|
||||
block = createItem("STAINED_GLASS_PANE", "YELLOW_STAINED_GLASS_PANE", (short) 4);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back-Arrow", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Generic.Back-Arrow"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(i++, block);
|
||||
inv.setItem(i++, block);
|
||||
@ -544,7 +544,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
i++;
|
||||
block = createItem("STAINED_GLASS_PANE", "RED_STAINED_GLASS_PANE", (short) 14);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Generic.Back"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(i++, block);
|
||||
inv.setItem(i++, block);
|
||||
@ -553,7 +553,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (templates.size() - 1 > max) {
|
||||
block = createItem("STAINED_GLASS_PANE", "YELLOW_STAINED_GLASS_PANE", (short) 4);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Next-Arrow", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Generic.Next-Arrow"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(i++, block);
|
||||
inv.setItem(i, block);
|
||||
@ -566,7 +566,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
}
|
||||
|
||||
public void hostPlugin(final int page, final String host) {
|
||||
setDownloading(ChatColor.stripColor(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Plugin.Title", '&').replace("$str$", host)));
|
||||
setDownloading(ChatColor.stripColor(plugin.api.getLang("SubServers", "Interface.Host-Plugin.Title").replace("$str$", host)));
|
||||
plugin.subdata.sendPacket(new PacketDownloadHostInfo(host, (json) -> {
|
||||
windowHistory.add(() -> hostPlugin(page, host));
|
||||
if (!json.getBoolean("valid")) {
|
||||
@ -594,7 +594,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
int count = (renderers.size() == 0)?27:((renderers.size() - min >= max)?36:renderers.size() - min);
|
||||
int area = (count % 9 == 0) ? count : (int) (Math.floor(count / 9) + 1) * 9;
|
||||
|
||||
Inventory inv = Bukkit.createInventory(null, 18 + area, plugin.lang.getSection("Lang").getColoredString("Interface.Host-Plugin.Title", '&').replace("$str$", json.getJSONObject("host").getString("display")));
|
||||
Inventory inv = Bukkit.createInventory(null, 18 + area, plugin.api.getLang("SubServers", "Interface.Host-Plugin.Title").replace("$str$", json.getJSONObject("host").getString("display")));
|
||||
block = createItem("STAINED_GLASS_PANE", "GRAY_STAINED_GLASS_PANE", (short) 7);
|
||||
block.setItemMeta(divMeta);
|
||||
while (i < area) {
|
||||
@ -625,7 +625,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (renderers.size() == 0) {
|
||||
block = createItem("STAINED_GLASS_PANE", "RED_STAINED_GLASS_PANE", (short) 14);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Plugin.No-Plugins", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Host-Plugin.No-Plugins"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(12, block);
|
||||
inv.setItem(13, block);
|
||||
@ -642,7 +642,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (min != 0) {
|
||||
block = createItem("STAINED_GLASS_PANE", "YELLOW_STAINED_GLASS_PANE", (short) 4);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back-Arrow", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Generic.Back-Arrow"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(i++, block);
|
||||
inv.setItem(i++, block);
|
||||
@ -651,7 +651,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (hasHistory()) {
|
||||
block = createItem("STAINED_GLASS_PANE", "RED_STAINED_GLASS_PANE", (short) 14);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Generic.Back"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(i++, block);
|
||||
inv.setItem(i++, block);
|
||||
@ -661,7 +661,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (renderers.size() - 1 > max) {
|
||||
block = createItem("STAINED_GLASS_PANE", "YELLOW_STAINED_GLASS_PANE", (short) 4);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Next-Arrow", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Generic.Next-Arrow"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(i++, block);
|
||||
inv.setItem(i, block);
|
||||
@ -674,7 +674,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
}
|
||||
|
||||
public void groupMenu(final int page) {
|
||||
setDownloading(ChatColor.stripColor(plugin.lang.getSection("Lang").getColoredString("Interface.Group-Menu.Title", '&')));
|
||||
setDownloading(ChatColor.stripColor(plugin.api.getLang("SubServers", "Interface.Group-Menu.Title")));
|
||||
plugin.subdata.sendPacket(new PacketDownloadServerList(null, null, (json) -> {
|
||||
setDownloading(null);
|
||||
lastVisitedObjects[0] = null;
|
||||
@ -697,7 +697,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
int count = (groups.size() == 0)?27:((groups.size() - min >= max)?36:groups.size() - min);
|
||||
int area = (count % 9 == 0) ? count : (int) (Math.floor(count / 9) + 1) * 9;
|
||||
|
||||
Inventory inv = Bukkit.createInventory(null, 18 + area, plugin.lang.getSection("Lang").getColoredString("Interface.Group-Menu.Title", '&'));
|
||||
Inventory inv = Bukkit.createInventory(null, 18 + area, plugin.api.getLang("SubServers", "Interface.Group-Menu.Title"));
|
||||
block = createItem("STAINED_GLASS_PANE", "GRAY_STAINED_GLASS_PANE", (short) 7);
|
||||
block.setItemMeta(divMeta);
|
||||
while (i < area) {
|
||||
@ -719,7 +719,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(ChatColor.GOLD + group);
|
||||
LinkedList<String> lore = new LinkedList<String>();
|
||||
lore.add(plugin.lang.getSection("Lang").getColoredString("Interface.Group-Menu.Group-Server-Count", '&').replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("groups").getJSONObject(group).keySet().size())));
|
||||
lore.add(plugin.api.getLang("SubServers", "Interface.Group-Menu.Group-Server-Count").replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("groups").getJSONObject(group).keySet().size())));
|
||||
blockMeta.setLore(lore);
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(i, block);
|
||||
@ -737,7 +737,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (groups.size() == 0) {
|
||||
block = createItem("STAINED_GLASS_PANE", "RED_STAINED_GLASS_PANE", (short) 14);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Group-Menu.No-Groups", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Group-Menu.No-Groups"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(12, block);
|
||||
inv.setItem(13, block);
|
||||
@ -754,7 +754,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (min != 0) {
|
||||
block = createItem("STAINED_GLASS_PANE", "YELLOW_STAINED_GLASS_PANE", (short) 4);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back-Arrow", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Generic.Back-Arrow"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(i++, block);
|
||||
inv.setItem(i++, block);
|
||||
@ -762,7 +762,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
i++;
|
||||
block = createItem("STAINED_GLASS_PANE", "LIME_STAINED_GLASS_PANE", (short) 5);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Group-Menu.Server-Menu", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Group-Menu.Server-Menu"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(i++, block);
|
||||
inv.setItem(i++, block);
|
||||
@ -771,7 +771,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (groups.size() - 1 > max) {
|
||||
block = createItem("STAINED_GLASS_PANE", "YELLOW_STAINED_GLASS_PANE", (short) 4);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Next-Arrow", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Generic.Next-Arrow"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(i++, block);
|
||||
inv.setItem(i, block);
|
||||
@ -783,7 +783,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
}
|
||||
|
||||
public void serverMenu(final int page, final String host, final String group) {
|
||||
setDownloading(ChatColor.stripColor((host == null)?((group == null)?plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.Title", '&'):plugin.lang.getSection("Lang").getColoredString("Interface.Group-SubServer.Title", '&').replace("$str$", group)):plugin.lang.getSection("Lang").getColoredString("Interface.Host-SubServer.Title", '&').replace("$str$", host)));
|
||||
setDownloading(ChatColor.stripColor((host == null)?((group == null)?plugin.api.getLang("SubServers", "Interface.Server-Menu.Title"):plugin.api.getLang("SubServers", "Interface.Group-SubServer.Title").replace("$str$", group)):plugin.api.getLang("SubServers", "Interface.Host-SubServer.Title").replace("$str$", host)));
|
||||
plugin.subdata.sendPacket(new PacketDownloadServerList(host, (host != null)?null:group, json -> {
|
||||
setDownloading(null);
|
||||
lastPage = page;
|
||||
@ -831,7 +831,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
int count = (servers.size() == 0)?27:((servers.size() - min >= max)?36:servers.size() - min);
|
||||
int area = (count % 9 == 0) ? count : (int) (Math.floor(count / 9) + 1) * 9;
|
||||
|
||||
Inventory inv = Bukkit.createInventory(null, 18 + area, (host == null)?((group == null)?plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.Title", '&'):plugin.lang.getSection("Lang").getColoredString("Interface.Group-SubServer.Title", '&').replace("$str$", group)):plugin.lang.getSection("Lang").getColoredString("Interface.Host-SubServer.Title", '&').replace("$str$", json.getJSONObject("hosts").getJSONObject(host).getString("display")));
|
||||
Inventory inv = Bukkit.createInventory(null, 18 + area, (host == null)?((group == null)?plugin.api.getLang("SubServers", "Interface.Server-Menu.Title"):plugin.api.getLang("SubServers", "Interface.Group-SubServer.Title").replace("$str$", group)):plugin.api.getLang("SubServers", "Interface.Host-SubServer.Title").replace("$str$", json.getJSONObject("hosts").getJSONObject(host).getString("display")));
|
||||
block = createItem("STAINED_GLASS_PANE", "GRAY_STAINED_GLASS_PANE", (short) 7);
|
||||
block.setItemMeta(divMeta);
|
||||
while (i < area) {
|
||||
@ -860,9 +860,9 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
LinkedList<String> lore = new LinkedList<String>();
|
||||
if (!server.equals(json.getJSONObject("servers").getJSONObject(server).getString("display")))
|
||||
lore.add(ChatColor.GRAY + server);
|
||||
lore.add(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.Server-Player-Count", '&').replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("servers").getJSONObject(server).getJSONObject("players").keySet().size())));
|
||||
lore.add(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.Server-External", '&'));
|
||||
lore.add(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.SubServer-Invalid", '&'));
|
||||
lore.add(plugin.api.getLang("SubServers", "Interface.Server-Menu.Server-Player-Count").replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("servers").getJSONObject(server).getJSONObject("players").keySet().size())));
|
||||
lore.add(plugin.api.getLang("SubServers", "Interface.Server-Menu.Server-External"));
|
||||
lore.add(plugin.api.getLang("SubServers", "Interface.Server-Menu.SubServer-Invalid"));
|
||||
lore.add(ChatColor.WHITE + ((plugin.config.get().getSection("Settings").getBoolean("Show-Addresses", false))?json.getJSONObject("servers").getJSONObject(server).getString("address"):json.getJSONObject("servers").getJSONObject(server).getString("address").split(":")[json.getJSONObject("servers").getJSONObject(server).getString("address").split(":").length - 1]));
|
||||
blockMeta.setLore(lore);
|
||||
} else if (json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getBoolean("temp")) {
|
||||
@ -872,8 +872,8 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
LinkedList<String> lore = new LinkedList<String>();
|
||||
if (!server.equals(json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getString("display")))
|
||||
lore.add(ChatColor.GRAY + server);
|
||||
lore.add(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.Server-Player-Count", '&').replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getJSONObject("players").keySet().size())));
|
||||
lore.add(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.SubServer-Temporary", '&'));
|
||||
lore.add(plugin.api.getLang("SubServers", "Interface.Server-Menu.Server-Player-Count").replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getJSONObject("players").keySet().size())));
|
||||
lore.add(plugin.api.getLang("SubServers", "Interface.Server-Menu.SubServer-Temporary"));
|
||||
lore.add(ChatColor.WHITE + ((plugin.config.get().getSection("Settings").getBoolean("Show-Addresses", false))?json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getString("address"):json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getString("address").split(":")[json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getString("address").split(":").length - 1]));
|
||||
blockMeta.setLore(lore);
|
||||
} else if (json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getBoolean("running")) {
|
||||
@ -883,7 +883,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
LinkedList<String> lore = new LinkedList<String>();
|
||||
if (!server.equals(json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getString("display")))
|
||||
lore.add(ChatColor.GRAY + server);
|
||||
lore.add(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.Server-Player-Count", '&').replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getJSONObject("players").keySet().size())));
|
||||
lore.add(plugin.api.getLang("SubServers", "Interface.Server-Menu.Server-Player-Count").replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getJSONObject("players").keySet().size())));
|
||||
lore.add(ChatColor.WHITE + ((plugin.config.get().getSection("Settings").getBoolean("Show-Addresses", false))?json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getString("address"):json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getString("address").split(":")[json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getString("address").split(":").length - 1]));
|
||||
blockMeta.setLore(lore);
|
||||
} else if (json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getBoolean("enabled") && json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getJSONArray("incompatible").length() == 0) {
|
||||
@ -893,7 +893,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
LinkedList<String> lore = new LinkedList<String>();
|
||||
if (!server.equals(json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getString("display")))
|
||||
lore.add(ChatColor.GRAY + server);
|
||||
lore.add(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.SubServer-Offline", '&'));
|
||||
lore.add(plugin.api.getLang("SubServers", "Interface.Server-Menu.SubServer-Offline"));
|
||||
lore.add(ChatColor.WHITE + ((plugin.config.get().getSection("Settings").getBoolean("Show-Addresses", false))?json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getString("address"):json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getString("address").split(":")[json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getString("address").split(":").length - 1]));
|
||||
blockMeta.setLore(lore);
|
||||
} else {
|
||||
@ -909,9 +909,9 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (list.length() != 0) list += ", ";
|
||||
list += json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getJSONArray("incompatible").getString(ii);
|
||||
}
|
||||
lore.add(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.SubServer-Incompatible", '&').replace("$str$", list));
|
||||
lore.add(plugin.api.getLang("SubServers", "Interface.Server-Menu.SubServer-Incompatible").replace("$str$", list));
|
||||
}
|
||||
if (!json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getBoolean("enabled")) lore.add(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.SubServer-Disabled", '&'));
|
||||
if (!json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getBoolean("enabled")) lore.add(plugin.api.getLang("SubServers", "Interface.Server-Menu.SubServer-Disabled"));
|
||||
lore.add(ChatColor.WHITE + ((plugin.config.get().getSection("Settings").getBoolean("Show-Addresses", false))?json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getString("address"):json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getString("address").split(":")[json.getJSONObject("hosts").getJSONObject(hosts.get(server)).getJSONObject("servers").getJSONObject(server).getString("address").split(":").length - 1]));
|
||||
blockMeta.setLore(lore);
|
||||
}
|
||||
@ -931,7 +931,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (servers.size() == 0) {
|
||||
block = createItem("STAINED_GLASS_PANE", "RED_STAINED_GLASS_PANE", (short) 14);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.No-Servers", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Server-Menu.No-Servers"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(12, block);
|
||||
inv.setItem(13, block);
|
||||
@ -948,7 +948,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (min != 0) {
|
||||
block = createItem("STAINED_GLASS_PANE", "YELLOW_STAINED_GLASS_PANE", (short) 4);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back-Arrow", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Generic.Back-Arrow"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(i++, block);
|
||||
inv.setItem(i++, block);
|
||||
@ -957,7 +957,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (host == null || group == null || hasHistory()) {
|
||||
block = createItem("STAINED_GLASS_PANE", ((host == null && group == null)?"BLUE_STAINED_GLASS_PANE":"RED_STAINED_GLASS_PANE"), (short) ((host == null && group == null)?11:14));
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName((host == null && group == null)?plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.Host-Menu", '&'):plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back", '&'));
|
||||
blockMeta.setDisplayName((host == null && group == null)?plugin.api.getLang("SubServers", "Interface.Server-Menu.Host-Menu"):plugin.api.getLang("SubServers", "Interface.Generic.Back"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(i++, block);
|
||||
inv.setItem(i++, block);
|
||||
@ -967,7 +967,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (servers.size() - 1 > max) {
|
||||
block = createItem("STAINED_GLASS_PANE", "YELLOW_STAINED_GLASS_PANE", (short) 4);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Next-Arrow", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Generic.Next-Arrow"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(i++, block);
|
||||
inv.setItem(i, block);
|
||||
@ -979,7 +979,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
}
|
||||
|
||||
public void subserverAdmin(final String subserver) {
|
||||
setDownloading(ChatColor.stripColor(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Title", '&').replace("$str$", subserver)));
|
||||
setDownloading(ChatColor.stripColor(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Title").replace("$str$", subserver)));
|
||||
plugin.subdata.sendPacket(new PacketDownloadServerInfo(subserver, json -> {
|
||||
windowHistory.add(() -> subserverAdmin(subserver));
|
||||
if (!json.getString("type").equals("subserver")) {
|
||||
@ -994,7 +994,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
divMeta.setDisplayName(ChatColor.RESET.toString());
|
||||
div.setItemMeta(divMeta);
|
||||
|
||||
Inventory inv = Bukkit.createInventory(null, 36, plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Title", '&').replace("$str$", json.getJSONObject("server").getString("display")));
|
||||
Inventory inv = Bukkit.createInventory(null, 36, plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Title").replace("$str$", json.getJSONObject("server").getString("display")));
|
||||
|
||||
int i = 0;
|
||||
while (i < inv.getSize()) {
|
||||
@ -1007,12 +1007,12 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (!(Bukkit.getPlayer(player).hasPermission("subservers.subserver.terminate.*") || Bukkit.getPlayer(player).hasPermission("subservers.subserver.terminate." + subserver.toLowerCase()))) {
|
||||
block = createItem("STAINED_GLASS_PANE", "GRAY_STAINED_GLASS_PANE", (short) 7);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(ChatColor.GRAY+ChatColor.stripColor(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Terminate", '&')));
|
||||
blockMeta.setLore(Arrays.asList(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Invalid-Permission", '&').replace("$str$", "subservers.subserver.terminate." + subserver.toLowerCase())));
|
||||
blockMeta.setDisplayName(ChatColor.GRAY+ChatColor.stripColor(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Terminate")));
|
||||
blockMeta.setLore(Arrays.asList(plugin.api.getLang("SubServers", "Interface.Generic.Invalid-Permission").replace("$str$", "subservers.subserver.terminate." + subserver.toLowerCase())));
|
||||
} else {
|
||||
block = createItem("STAINED_GLASS_PANE", "RED_STAINED_GLASS_PANE", (short) 14);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Terminate", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Terminate"));
|
||||
}
|
||||
|
||||
block.setItemMeta(blockMeta);
|
||||
@ -1022,12 +1022,12 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (!(Bukkit.getPlayer(player).hasPermission("subservers.subserver.stop.*") || Bukkit.getPlayer(player).hasPermission("subservers.subserver.stop." + subserver.toLowerCase()))) {
|
||||
block = createItem("STAINED_GLASS_PANE", "GRAY_STAINED_GLASS_PANE", (short) 7);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(ChatColor.GRAY+ChatColor.stripColor(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Stop", '&')));
|
||||
blockMeta.setLore(Arrays.asList(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Invalid-Permission", '&').replace("$str$", "subservers.subserver.stop." + subserver.toLowerCase())));
|
||||
blockMeta.setDisplayName(ChatColor.GRAY+ChatColor.stripColor(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Stop")));
|
||||
blockMeta.setLore(Arrays.asList(plugin.api.getLang("SubServers", "Interface.Generic.Invalid-Permission").replace("$str$", "subservers.subserver.stop." + subserver.toLowerCase())));
|
||||
} else {
|
||||
block = createItem("STAINED_GLASS_PANE", "MAGENTA_STAINED_GLASS_PANE", (short) 2);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Stop", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Stop"));
|
||||
}
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(2, block);
|
||||
@ -1038,12 +1038,12 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (!(Bukkit.getPlayer(player).hasPermission("subservers.subserver.command.*") || Bukkit.getPlayer(player).hasPermission("subservers.subserver.command." + subserver.toLowerCase()))) {
|
||||
block = createItem("STAINED_GLASS_PANE", "GRAY_STAINED_GLASS_PANE", (short) 7);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(ChatColor.GRAY+ChatColor.stripColor(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Command", '&')));
|
||||
blockMeta.setLore(Arrays.asList(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Invalid-Permission", '&').replace("$str$", "subservers.subserver.command." + subserver.toLowerCase())));
|
||||
blockMeta.setDisplayName(ChatColor.GRAY+ChatColor.stripColor(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Command")));
|
||||
blockMeta.setLore(Arrays.asList(plugin.api.getLang("SubServers", "Interface.Generic.Invalid-Permission").replace("$str$", "subservers.subserver.command." + subserver.toLowerCase())));
|
||||
} else {
|
||||
block = createItem("STAINED_GLASS_PANE", "YELLOW_STAINED_GLASS_PANE", (short) 4);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Command", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Command"));
|
||||
}
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(5, block);
|
||||
@ -1056,16 +1056,16 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (!(Bukkit.getPlayer(player).hasPermission("subservers.subserver.start.*") || Bukkit.getPlayer(player).hasPermission("subservers.subserver.start." + subserver.toLowerCase()))) {
|
||||
block = createItem("STAINED_GLASS_PANE", "GRAY_STAINED_GLASS_PANE", (short) 7);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(ChatColor.GRAY+ChatColor.stripColor(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Start", '&')));
|
||||
blockMeta.setLore(Arrays.asList(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Invalid-Permission", '&').replace("$str$", "subservers.subserver.start." + subserver.toLowerCase())));
|
||||
blockMeta.setDisplayName(ChatColor.GRAY+ChatColor.stripColor(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Start")));
|
||||
blockMeta.setLore(Arrays.asList(plugin.api.getLang("SubServers", "Interface.Generic.Invalid-Permission").replace("$str$", "subservers.subserver.start." + subserver.toLowerCase())));
|
||||
} else if (!json.getJSONObject("server").getBoolean("enabled") || json.getJSONObject("server").getJSONArray("incompatible").length() != 0) {
|
||||
block = createItem("STAINED_GLASS_PANE", "GRAY_STAINED_GLASS_PANE", (short) 7);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(ChatColor.GRAY+ChatColor.stripColor(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Start", '&')));
|
||||
blockMeta.setDisplayName(ChatColor.GRAY+ChatColor.stripColor(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Start")));
|
||||
} else {
|
||||
block = createItem("STAINED_GLASS_PANE", "LIME_STAINED_GLASS_PANE", (short) 5);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Start", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Start"));
|
||||
}
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(3, block);
|
||||
@ -1081,7 +1081,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
} else {
|
||||
block = createItem("STAINED_GLASS_PANE", "BLUE_STAINED_GLASS_PANE", (short) 11);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Admin.Plugins", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.SubServer-Admin.Plugins"));
|
||||
block.setItemMeta(blockMeta);
|
||||
}
|
||||
inv.setItem(27, block);
|
||||
@ -1094,8 +1094,8 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
LinkedList<String> lore = new LinkedList<String>();
|
||||
if (!subserver.equals(json.getJSONObject("server").getString("display")))
|
||||
lore.add(ChatColor.GRAY + subserver);
|
||||
lore.add(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.Server-Player-Count", '&').replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("server").getJSONObject("players").keySet().size())));
|
||||
lore.add(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.SubServer-Temporary", '&'));
|
||||
lore.add(plugin.api.getLang("SubServers", "Interface.Server-Menu.Server-Player-Count").replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("server").getJSONObject("players").keySet().size())));
|
||||
lore.add(plugin.api.getLang("SubServers", "Interface.Server-Menu.SubServer-Temporary"));
|
||||
lore.add(ChatColor.WHITE + ((plugin.config.get().getSection("Settings").getBoolean("Show-Addresses", false))?json.getJSONObject("server").getString("address"):json.getJSONObject("server").getString("address").split(":")[json.getJSONObject("server").getString("address").split(":").length - 1]));
|
||||
blockMeta.setLore(lore);
|
||||
} else if (json.getJSONObject("server").getBoolean("running")) {
|
||||
@ -1105,7 +1105,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
LinkedList<String> lore = new LinkedList<String>();
|
||||
if (!subserver.equals(json.getJSONObject("server").getString("display")))
|
||||
lore.add(ChatColor.GRAY + subserver);
|
||||
lore.add(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.Server-Player-Count", '&').replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("server").getJSONObject("players").keySet().size())));
|
||||
lore.add(plugin.api.getLang("SubServers", "Interface.Server-Menu.Server-Player-Count").replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("server").getJSONObject("players").keySet().size())));
|
||||
lore.add(ChatColor.WHITE + ((plugin.config.get().getSection("Settings").getBoolean("Show-Addresses", false))?json.getJSONObject("server").getString("address"):json.getJSONObject("server").getString("address").split(":")[json.getJSONObject("server").getString("address").split(":").length - 1]));
|
||||
blockMeta.setLore(lore);
|
||||
} else if (json.getJSONObject("server").getBoolean("enabled") && json.getJSONObject("server").getJSONArray("incompatible").length() == 0) {
|
||||
@ -1115,7 +1115,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
LinkedList<String> lore = new LinkedList<String>();
|
||||
if (!subserver.equals(json.getJSONObject("server").getString("display")))
|
||||
lore.add(ChatColor.GRAY + subserver);
|
||||
lore.add(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.SubServer-Offline", '&'));
|
||||
lore.add(plugin.api.getLang("SubServers", "Interface.Server-Menu.SubServer-Offline"));
|
||||
lore.add(ChatColor.WHITE + ((plugin.config.get().getSection("Settings").getBoolean("Show-Addresses", false))?json.getJSONObject("server").getString("address"):json.getJSONObject("server").getString("address").split(":")[json.getJSONObject("server").getString("address").split(":").length - 1]));
|
||||
blockMeta.setLore(lore);
|
||||
} else {
|
||||
@ -1131,9 +1131,9 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (list.length() != 0) list += ", ";
|
||||
list += json.getJSONObject("server").getJSONArray("incompatible").getString(ii);
|
||||
}
|
||||
lore.add(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.SubServer-Incompatible", '&').replace("$str$", list));
|
||||
lore.add(plugin.api.getLang("SubServers", "Interface.Server-Menu.SubServer-Incompatible").replace("$str$", list));
|
||||
}
|
||||
if (!json.getJSONObject("server").getBoolean("enabled")) lore.add(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.SubServer-Disabled", '&'));
|
||||
if (!json.getJSONObject("server").getBoolean("enabled")) lore.add(plugin.api.getLang("SubServers", "Interface.Server-Menu.SubServer-Disabled"));
|
||||
lore.add(ChatColor.WHITE + ((plugin.config.get().getSection("Settings").getBoolean("Show-Addresses", false))?json.getJSONObject("server").getString("address"):json.getJSONObject("server").getString("address").split(":")[json.getJSONObject("server").getString("address").split(":").length - 1]));
|
||||
blockMeta.setLore(lore);
|
||||
}
|
||||
@ -1145,7 +1145,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (hasHistory()) {
|
||||
block = createItem("STAINED_GLASS_PANE", "RED_STAINED_GLASS_PANE", (short) 14);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Generic.Back"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(34, block);
|
||||
inv.setItem(35, block);
|
||||
@ -1159,7 +1159,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
}
|
||||
|
||||
public void subserverPlugin(final int page, final String subserver) {
|
||||
setDownloading(ChatColor.stripColor(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Plugin.Title", '&').replace("$str$", subserver)));
|
||||
setDownloading(ChatColor.stripColor(plugin.api.getLang("SubServers", "Interface.SubServer-Plugin.Title").replace("$str$", subserver)));
|
||||
plugin.subdata.sendPacket(new PacketDownloadServerInfo(subserver, json -> {
|
||||
windowHistory.add(() -> subserverPlugin(page, subserver));
|
||||
if (!json.getString("type").equals("subserver")) {
|
||||
@ -1187,7 +1187,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
int count = (renderers.size() == 0)?27:((renderers.size() - min >= max)?36:renderers.size() - min);
|
||||
int area = (count % 9 == 0) ? count : (int) (Math.floor(count / 9) + 1) * 9;
|
||||
|
||||
Inventory inv = Bukkit.createInventory(null, 18 + area, plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Plugin.Title", '&').replace("$str$", json.getJSONObject("server").getString("display")));
|
||||
Inventory inv = Bukkit.createInventory(null, 18 + area, plugin.api.getLang("SubServers", "Interface.SubServer-Plugin.Title").replace("$str$", json.getJSONObject("server").getString("display")));
|
||||
block = createItem("STAINED_GLASS_PANE", "GRAY_STAINED_GLASS_PANE", (short) 7);
|
||||
block.setItemMeta(divMeta);
|
||||
while (i < area) {
|
||||
@ -1218,7 +1218,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (renderers.size() == 0) {
|
||||
block = createItem("STAINED_GLASS_PANE", "RED_STAINED_GLASS_PANE", (short) 14);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.SubServer-Plugin.No-Plugins", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.SubServer-Plugin.No-Plugins"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(12, block);
|
||||
inv.setItem(13, block);
|
||||
@ -1235,7 +1235,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (min != 0) {
|
||||
block = createItem("STAINED_GLASS_PANE", "YELLOW_STAINED_GLASS_PANE", (short) 4);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back-Arrow", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Generic.Back-Arrow"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(i++, block);
|
||||
inv.setItem(i++, block);
|
||||
@ -1244,7 +1244,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (hasHistory()) {
|
||||
block = createItem("STAINED_GLASS_PANE", "RED_STAINED_GLASS_PANE", (short) 14);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Back", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Generic.Back"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(i++, block);
|
||||
inv.setItem(i++, block);
|
||||
@ -1254,7 +1254,7 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (renderers.size() - 1 > max) {
|
||||
block = createItem("STAINED_GLASS_PANE", "YELLOW_STAINED_GLASS_PANE", (short) 4);
|
||||
blockMeta = block.getItemMeta();
|
||||
blockMeta.setDisplayName(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Next-Arrow", '&'));
|
||||
blockMeta.setDisplayName(plugin.api.getLang("SubServers", "Interface.Generic.Next-Arrow"));
|
||||
block.setItemMeta(blockMeta);
|
||||
inv.setItem(i++, block);
|
||||
inv.setItem(i, block);
|
||||
|
@ -135,7 +135,7 @@ public abstract class UIRenderer {
|
||||
if (subtitle != null && !(plugin.config.get().getSection("Settings").getBoolean("Use-Title-Messages", true) && (plugin.api.getGameVersion().compareTo(new Version("1.11")) >= 0 || Bukkit.getPluginManager().getPlugin("TitleManager") != null))) {
|
||||
if (download != -1) Bukkit.getScheduler().cancelTask(download);
|
||||
download = Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, () -> {
|
||||
if (tdownload != null) Bukkit.getPlayer(player).sendMessage(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Downloading", '&').replace("$str$", subtitle));
|
||||
if (tdownload != null) Bukkit.getPlayer(player).sendMessage(plugin.api.getLang("SubServers", "Interface.Generic.Downloading").replace("$str$", subtitle));
|
||||
download = -1;
|
||||
}, 50L);
|
||||
} if (subtitle != null && tdownload == null) {
|
||||
@ -145,11 +145,11 @@ public abstract class UIRenderer {
|
||||
@Override
|
||||
public void run() {
|
||||
if (tdownload != null) {
|
||||
String word = ChatColor.stripColor(plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Downloading.Title", '&'));
|
||||
String word = ChatColor.stripColor(plugin.api.getLang("SubServers", "Interface.Generic.Downloading.Title"));
|
||||
int i = 0;
|
||||
int start = (tdownload.get() - 3 < 0)?0: tdownload.get()-3;
|
||||
int end = (tdownload.get() >= word.length())?word.length(): tdownload.get();
|
||||
String str = plugin.lang.getSection("Lang").getColoredString((delay.get() > 7 && start == 0)?"Interface.Generic.Downloading.Title-Color-Alt":"Interface.Generic.Downloading.Title-Color", '&');
|
||||
String str = plugin.api.getLang("SubServers", (delay.get() > 7 && start == 0)?"Interface.Generic.Downloading.Title-Color-Alt":"Interface.Generic.Downloading.Title-Color");
|
||||
delay.set(delay.get() + 1);
|
||||
if (delay.get() > 7) tdownload.set(tdownload.get() + 1);
|
||||
if (tdownload.get() >= word.length() + 3) {
|
||||
@ -159,12 +159,12 @@ public abstract class UIRenderer {
|
||||
|
||||
for (char c : word.toCharArray()) {
|
||||
i++;
|
||||
if (i == start) str += plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Downloading.Title-Color-Alt", '&');
|
||||
if (i == start) str += plugin.api.getLang("SubServers", "Interface.Generic.Downloading.Title-Color-Alt");
|
||||
str += c;
|
||||
if (i == end) str += plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Downloading.Title-Color", '&');
|
||||
if (i == end) str += plugin.api.getLang("SubServers", "Interface.Generic.Downloading.Title-Color");
|
||||
}
|
||||
|
||||
str += '\n' + plugin.lang.getSection("Lang").getColoredString("Interface.Generic.Downloading.Title-Color-Alt", '&') + tdownload.name();
|
||||
str += '\n' + plugin.api.getLang("SubServers", "Interface.Generic.Downloading.Title-Color-Alt") + tdownload.name();
|
||||
sendTitle(str, 0, 10, 5);
|
||||
Bukkit.getScheduler().runTaskLater(plugin, this, 1);
|
||||
} else {
|
||||
|
@ -1,6 +1,7 @@
|
||||
package net.ME1312.SubServers.Client.Bukkit.Network.Packet;
|
||||
|
||||
import net.ME1312.SubServers.Client.Bukkit.Library.Config.YAMLSection;
|
||||
import net.ME1312.SubServers.Client.Bukkit.Library.NamedContainer;
|
||||
import net.ME1312.SubServers.Client.Bukkit.Library.Util;
|
||||
import net.ME1312.SubServers.Client.Bukkit.Library.Version.Version;
|
||||
import net.ME1312.SubServers.Client.Bukkit.Network.PacketIn;
|
||||
@ -9,6 +10,7 @@ import net.ME1312.SubServers.Client.Bukkit.SubPlugin;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.Calendar;
|
||||
|
||||
/**
|
||||
@ -19,11 +21,6 @@ public class PacketDownloadLang implements PacketIn, PacketOut {
|
||||
|
||||
/**
|
||||
* New PacketDownloadLang (In)
|
||||
*/
|
||||
public PacketDownloadLang() {}
|
||||
|
||||
/**
|
||||
* New PacketDownloadLang (Out)
|
||||
*
|
||||
* @param plugin SubServers.Client
|
||||
*/
|
||||
@ -32,6 +29,11 @@ public class PacketDownloadLang implements PacketIn, PacketOut {
|
||||
this.plugin = plugin;
|
||||
}
|
||||
|
||||
/**
|
||||
* New PacketDownloadLang (Out)
|
||||
*/
|
||||
public PacketDownloadLang() {}
|
||||
|
||||
@Override
|
||||
public JSONObject generate() {
|
||||
return null;
|
||||
@ -39,9 +41,15 @@ public class PacketDownloadLang implements PacketIn, PacketOut {
|
||||
|
||||
@Override
|
||||
public void execute(JSONObject data) {
|
||||
data.put("Updated", Calendar.getInstance().getTime().getTime());
|
||||
plugin.lang = new YAMLSection(data);
|
||||
Bukkit.getLogger().info("SubData > Lang Settings Downloaded");
|
||||
try {
|
||||
Field f = SubPlugin.class.getDeclaredField("lang");
|
||||
f.setAccessible(true);
|
||||
f.set(plugin, new NamedContainer<>(Calendar.getInstance().getTime().getTime(), new YAMLSection(data.getJSONObject("Lang")).get()));
|
||||
f.setAccessible(false);
|
||||
Bukkit.getLogger().info("SubData > Lang Settings Downloaded");
|
||||
} catch (IllegalAccessException | NoSuchFieldException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -16,6 +16,7 @@ import java.util.UUID;
|
||||
public class PacketDownloadServerList implements PacketIn, PacketOut {
|
||||
private static HashMap<String, JSONCallback[]> callbacks = new HashMap<String, JSONCallback[]>();
|
||||
private String host;
|
||||
private String group;
|
||||
private String id;
|
||||
|
||||
/**
|
||||
@ -33,6 +34,7 @@ public class PacketDownloadServerList implements PacketIn, PacketOut {
|
||||
public PacketDownloadServerList(String host, String group, JSONCallback... callback) {
|
||||
if (Util.isNull((Object) callback)) throw new NullPointerException();
|
||||
this.host = host;
|
||||
this.group = group;
|
||||
this.id = Util.getNew(callbacks.keySet(), UUID::randomUUID).toString();
|
||||
callbacks.put(id, callback);
|
||||
}
|
||||
@ -42,6 +44,7 @@ public class PacketDownloadServerList implements PacketIn, PacketOut {
|
||||
JSONObject json = new JSONObject();
|
||||
json.put("id", id);
|
||||
if (host != null) json.put("host", host);
|
||||
if (group != null) json.put("group", group);
|
||||
return json;
|
||||
}
|
||||
|
||||
|
@ -7,6 +7,7 @@ import net.ME1312.SubServers.Client.Bukkit.Network.SubDataClient;
|
||||
import org.bukkit.Bukkit;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.LinkedList;
|
||||
import java.util.Map;
|
||||
|
||||
@ -61,28 +62,37 @@ public final class SubAPI {
|
||||
return plugin.subdata;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a value from the SubServers Lang
|
||||
*
|
||||
* @param key Key
|
||||
* @return Lang Value
|
||||
*/
|
||||
public String getLang(String key) {
|
||||
if (Util.isNull(key)) throw new NullPointerException();
|
||||
return getLang().get(key);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the SubServers Lang
|
||||
*
|
||||
* @return SubServers Lang
|
||||
*/
|
||||
public Map<String, String> getLang() {
|
||||
HashMap<String, String> lang = new HashMap<String, String>();
|
||||
for (String key : plugin.lang.getSection("Lang").getKeys()) {
|
||||
if (plugin.lang.getSection("Lang").isString(key)) lang.put(key, plugin.lang.getSection("Lang").getString(key));
|
||||
}
|
||||
return lang;
|
||||
public Map<String, Map<String, String>> getLang() {
|
||||
if (Util.isNull(plugin.lang, plugin.lang.get())) throw new NullPointerException();
|
||||
return new LinkedHashMap<>(plugin.lang.get());
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets values from the SubServers Lang
|
||||
*
|
||||
* @param channel Lang Channel
|
||||
* @return Lang Values
|
||||
*/
|
||||
public Map<String, String> getLang(String channel) {
|
||||
if (Util.isNull(channel)) throw new NullPointerException();
|
||||
return getLang().get(channel.toLowerCase());
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a value from the SubServers Lang
|
||||
*
|
||||
* @param channel Lang Channel
|
||||
* @param key Key
|
||||
* @return Lang Value
|
||||
*/
|
||||
public String getLang(String channel, String key) {
|
||||
if (Util.isNull(channel, key)) throw new NullPointerException();
|
||||
return getLang(channel).get(key);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -48,7 +48,7 @@ public final class SubCommand implements CommandExecutor {
|
||||
if (args[0].equalsIgnoreCase("help") || args[0].equalsIgnoreCase("?")) {
|
||||
sender.sendMessage(printHelp(label));
|
||||
} else if (args[0].equalsIgnoreCase("version") || args[0].equalsIgnoreCase("ver")) {
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Version", '&').replace("$name$", "SubServers.Client.Bukkit").replace("$str$", plugin.version.toString() + ((plugin.bversion != null)?" BETA "+plugin.bversion.toString():"")));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Version").replace("$name$", "SubServers.Client.Bukkit").replace("$str$", plugin.version.toString() + ((plugin.bversion != null)?" BETA "+plugin.bversion.toString():"")));
|
||||
if (plugin.bversion == null) {
|
||||
Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
|
||||
try {
|
||||
@ -67,9 +67,9 @@ public final class SubCommand implements CommandExecutor {
|
||||
}
|
||||
}
|
||||
if (updversion.equals(plugin.version)) {
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Version.Latest", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Version.Latest"));
|
||||
} else {
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Version.Outdated", '&').replace("$int$", Integer.toString(updcount)));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Version.Outdated").replace("$int$", Integer.toString(updcount)));
|
||||
}
|
||||
} catch (Exception e) {}
|
||||
});
|
||||
@ -83,8 +83,8 @@ public final class SubCommand implements CommandExecutor {
|
||||
if (!Util.isException(() -> {
|
||||
if (Class.forName("org.spigotmc.SpigotConfig") != null) spigot.set(true);
|
||||
}) && spigot.get() && sender instanceof Player) {
|
||||
net.md_5.bungee.api.chat.TextComponent div = new net.md_5.bungee.api.chat.TextComponent(plugin.lang.getSection("Lang").getColoredString("Command.List.Divider", '&'));
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.List.Group-Header", '&'));
|
||||
net.md_5.bungee.api.chat.TextComponent div = new net.md_5.bungee.api.chat.TextComponent(plugin.api.getLang("SubServers", "Command.List.Divider"));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.List.Group-Header"));
|
||||
for (String group : json.getJSONObject("groups").keySet()) {
|
||||
List<net.md_5.bungee.api.chat.TextComponent> hoverm = new LinkedList<net.md_5.bungee.api.chat.TextComponent>();
|
||||
net.md_5.bungee.api.chat.TextComponent msg = new net.md_5.bungee.api.chat.TextComponent(ChatColor.RESET.toString());
|
||||
@ -93,12 +93,12 @@ public final class SubCommand implements CommandExecutor {
|
||||
message.setColor(net.md_5.bungee.api.ChatColor.GOLD);
|
||||
hover.setColor(net.md_5.bungee.api.ChatColor.GOLD);
|
||||
hoverm.add(hover);
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.lang.getSection("Lang").getColoredString("Interface.Group-Menu.Group-Server-Count", '&').replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("groups").getJSONObject(group).keySet().size())));
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.api.getLang("SubServers", "Interface.Group-Menu.Group-Server-Count").replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("groups").getJSONObject(group).keySet().size())));
|
||||
hoverm.add(hover);
|
||||
message.setClickEvent(new net.md_5.bungee.api.chat.ClickEvent(net.md_5.bungee.api.chat.ClickEvent.Action.RUN_COMMAND, fLabel + " open Server 1 " + group));
|
||||
message.setHoverEvent(new net.md_5.bungee.api.chat.HoverEvent(net.md_5.bungee.api.chat.HoverEvent.Action.SHOW_TEXT, hoverm.toArray(new net.md_5.bungee.api.chat.TextComponent[hoverm.size()])));
|
||||
msg.addExtra(message);
|
||||
msg.addExtra(new net.md_5.bungee.api.chat.TextComponent(plugin.lang.getSection("Lang").getColoredString("Command.List.Header", '&')));
|
||||
msg.addExtra(new net.md_5.bungee.api.chat.TextComponent(plugin.api.getLang("SubServers", "Command.List.Header")));
|
||||
|
||||
for (String server : json.getJSONObject("groups").getJSONObject(group).keySet()) {
|
||||
hoverm = new LinkedList<net.md_5.bungee.api.chat.TextComponent>();
|
||||
@ -115,9 +115,9 @@ public final class SubCommand implements CommandExecutor {
|
||||
hover.setColor(net.md_5.bungee.api.ChatColor.GRAY);
|
||||
hoverm.add(hover);
|
||||
}
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.Server-Player-Count", '&').replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("groups").getJSONObject(group).getJSONObject(server).getJSONObject("players").keySet().size())) + '\n');
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.api.getLang("SubServers", "Interface.Server-Menu.Server-Player-Count").replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("groups").getJSONObject(group).getJSONObject(server).getJSONObject("players").keySet().size())) + '\n');
|
||||
hoverm.add(hover);
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.SubServer-Temporary", '&'));
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.api.getLang("SubServers", "Interface.Server-Menu.SubServer-Temporary"));
|
||||
} else if (json.getJSONObject("groups").getJSONObject(group).getJSONObject(server).getBoolean("running")) {
|
||||
message.setColor(net.md_5.bungee.api.ChatColor.GREEN);
|
||||
hover.setColor(net.md_5.bungee.api.ChatColor.GREEN);
|
||||
@ -127,7 +127,7 @@ public final class SubCommand implements CommandExecutor {
|
||||
hover.setColor(net.md_5.bungee.api.ChatColor.GRAY);
|
||||
hoverm.add(hover);
|
||||
}
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.Server-Player-Count", '&').replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("groups").getJSONObject(group).getJSONObject(server).getJSONObject("players").keySet().size())));
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.api.getLang("SubServers", "Interface.Server-Menu.Server-Player-Count").replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("groups").getJSONObject(group).getJSONObject(server).getJSONObject("players").keySet().size())));
|
||||
} else if (json.getJSONObject("groups").getJSONObject(group).getJSONObject(server).getBoolean("enabled") && json.getJSONObject("groups").getJSONObject(group).getJSONObject(server).getJSONArray("incompatible").length() == 0) {
|
||||
message.setColor(net.md_5.bungee.api.ChatColor.YELLOW);
|
||||
hover.setColor(net.md_5.bungee.api.ChatColor.YELLOW);
|
||||
@ -137,7 +137,7 @@ public final class SubCommand implements CommandExecutor {
|
||||
hover.setColor(net.md_5.bungee.api.ChatColor.GRAY);
|
||||
hoverm.add(hover);
|
||||
}
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.SubServer-Offline", '&'));
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.api.getLang("SubServers", "Interface.Server-Menu.SubServer-Offline"));
|
||||
} else {
|
||||
message.setColor(net.md_5.bungee.api.ChatColor.RED);
|
||||
hover.setColor(net.md_5.bungee.api.ChatColor.RED);
|
||||
@ -153,11 +153,11 @@ public final class SubCommand implements CommandExecutor {
|
||||
if (list.length() != 0) list += ", ";
|
||||
list += json.getJSONObject("groups").getJSONObject(group).getJSONObject(server).getJSONArray("incompatible").getString(ii);
|
||||
}
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.SubServer-Incompatible", '&').replace("$str$", list));
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.api.getLang("SubServers", "Interface.Server-Menu.SubServer-Incompatible").replace("$str$", list));
|
||||
}
|
||||
if (!json.getJSONObject("groups").getJSONObject(group).getJSONObject(server).getBoolean("enabled")) {
|
||||
hoverm.add(hover);
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.SubServer-Disabled", '&'));
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.api.getLang("SubServers", "Interface.Server-Menu.SubServer-Disabled"));
|
||||
}
|
||||
}
|
||||
hoverm.add(hover);
|
||||
@ -173,7 +173,7 @@ public final class SubCommand implements CommandExecutor {
|
||||
message.setColor(net.md_5.bungee.api.ChatColor.WHITE);
|
||||
hover.setColor(net.md_5.bungee.api.ChatColor.WHITE);
|
||||
hoverm.add(hover);
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.Server-External", '&'));
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.api.getLang("SubServers", "Interface.Server-Menu.Server-External"));
|
||||
hoverm.add(hover);
|
||||
if (plugin.config.get().getSection("Settings").getBoolean("Show-Addresses", false)) {
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent('\n' + json.getJSONObject("servers").getJSONObject(server).getString("address"));
|
||||
@ -188,14 +188,14 @@ public final class SubCommand implements CommandExecutor {
|
||||
msg.addExtra(message);
|
||||
i++;
|
||||
}
|
||||
if (i == 0) msg.addExtra(new net.md_5.bungee.api.chat.TextComponent(plugin.lang.getSection("Lang").getColoredString("Command.List.Empty", '&')));
|
||||
if (i == 0) msg.addExtra(new net.md_5.bungee.api.chat.TextComponent(plugin.api.getLang("SubServers", "Command.List.Empty")));
|
||||
((Player) sender).spigot().sendMessage(msg);
|
||||
i = 0;
|
||||
sent = true;
|
||||
}
|
||||
if (!sent) sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.List.Empty", '&'));
|
||||
if (!sent) sender.sendMessage(plugin.api.getLang("SubServers", "Command.List.Empty"));
|
||||
sent = false;
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.List.Host-Header", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.List.Host-Header"));
|
||||
for (String host : json.getJSONObject("hosts").keySet()) {
|
||||
List<net.md_5.bungee.api.chat.TextComponent> hoverm = new LinkedList<net.md_5.bungee.api.chat.TextComponent>();
|
||||
net.md_5.bungee.api.chat.TextComponent msg = new net.md_5.bungee.api.chat.TextComponent(ChatColor.RESET.toString());
|
||||
@ -210,7 +210,7 @@ public final class SubCommand implements CommandExecutor {
|
||||
hover.setColor(net.md_5.bungee.api.ChatColor.GRAY);
|
||||
hoverm.add(hover);
|
||||
}
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Menu.Host-Server-Count", '&').replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("hosts").getJSONObject(host).getJSONObject("servers").keySet().size())));
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.api.getLang("SubServers", "Interface.Host-Menu.Host-Server-Count").replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("hosts").getJSONObject(host).getJSONObject("servers").keySet().size())));
|
||||
} else {
|
||||
message.setColor(net.md_5.bungee.api.ChatColor.RED);
|
||||
hover.setColor(net.md_5.bungee.api.ChatColor.RED);
|
||||
@ -220,7 +220,7 @@ public final class SubCommand implements CommandExecutor {
|
||||
hover.setColor(net.md_5.bungee.api.ChatColor.GRAY);
|
||||
hoverm.add(hover);
|
||||
}
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.lang.getSection("Lang").getColoredString("Interface.Host-Menu.Host-Disabled", '&'));
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.api.getLang("SubServers", "Interface.Host-Menu.Host-Disabled"));
|
||||
}
|
||||
if (plugin.config.get().getSection("Settings").getBoolean("Show-Addresses", false)) {
|
||||
hoverm.add(hover);
|
||||
@ -231,7 +231,7 @@ public final class SubCommand implements CommandExecutor {
|
||||
message.setClickEvent(new net.md_5.bungee.api.chat.ClickEvent(net.md_5.bungee.api.chat.ClickEvent.Action.RUN_COMMAND, fLabel + " open Host/ " + host));
|
||||
message.setHoverEvent(new net.md_5.bungee.api.chat.HoverEvent(net.md_5.bungee.api.chat.HoverEvent.Action.SHOW_TEXT, hoverm.toArray(new net.md_5.bungee.api.chat.TextComponent[hoverm.size()])));
|
||||
msg.addExtra(message);
|
||||
msg.addExtra(new net.md_5.bungee.api.chat.TextComponent(plugin.lang.getSection("Lang").getColoredString("Command.List.Header", '&')));
|
||||
msg.addExtra(new net.md_5.bungee.api.chat.TextComponent(plugin.api.getLang("SubServers", "Command.List.Header")));
|
||||
|
||||
for (String subserver : json.getJSONObject("hosts").getJSONObject(host).getJSONObject("servers").keySet()) {
|
||||
hoverm = new LinkedList<net.md_5.bungee.api.chat.TextComponent>();
|
||||
@ -247,9 +247,9 @@ public final class SubCommand implements CommandExecutor {
|
||||
hover.setColor(net.md_5.bungee.api.ChatColor.GRAY);
|
||||
hoverm.add(hover);
|
||||
}
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.Server-Player-Count", '&').replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("hosts").getJSONObject(host).getJSONObject("servers").getJSONObject(subserver).getJSONObject("players").keySet().size())) + '\n');
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.api.getLang("SubServers", "Interface.Server-Menu.Server-Player-Count").replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("hosts").getJSONObject(host).getJSONObject("servers").getJSONObject(subserver).getJSONObject("players").keySet().size())) + '\n');
|
||||
hoverm.add(hover);
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.SubServer-Temporary", '&'));
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.api.getLang("SubServers", "Interface.Server-Menu.SubServer-Temporary"));
|
||||
} else if (json.getJSONObject("hosts").getJSONObject(host).getJSONObject("servers").getJSONObject(subserver).getBoolean("running")) {
|
||||
message.setColor(net.md_5.bungee.api.ChatColor.GREEN);
|
||||
hover.setColor(net.md_5.bungee.api.ChatColor.GREEN);
|
||||
@ -259,7 +259,7 @@ public final class SubCommand implements CommandExecutor {
|
||||
hover.setColor(net.md_5.bungee.api.ChatColor.GRAY);
|
||||
hoverm.add(hover);
|
||||
}
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.Server-Player-Count", '&').replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("hosts").getJSONObject(host).getJSONObject("servers").getJSONObject(subserver).getJSONObject("players").keySet().size())));
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.api.getLang("SubServers", "Interface.Server-Menu.Server-Player-Count").replace("$int$", new DecimalFormat("#,###").format(json.getJSONObject("hosts").getJSONObject(host).getJSONObject("servers").getJSONObject(subserver).getJSONObject("players").keySet().size())));
|
||||
} else if (json.getJSONObject("hosts").getJSONObject(host).getJSONObject("servers").getJSONObject(subserver).getBoolean("enabled") && json.getJSONObject("hosts").getJSONObject(host).getJSONObject("servers").getJSONObject(subserver).getJSONArray("incompatible").length() == 0) {
|
||||
message.setColor(net.md_5.bungee.api.ChatColor.YELLOW);
|
||||
hover.setColor(net.md_5.bungee.api.ChatColor.YELLOW);
|
||||
@ -269,7 +269,7 @@ public final class SubCommand implements CommandExecutor {
|
||||
hover.setColor(net.md_5.bungee.api.ChatColor.GRAY);
|
||||
hoverm.add(hover);
|
||||
}
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.SubServer-Offline", '&'));
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.api.getLang("SubServers", "Interface.Server-Menu.SubServer-Offline"));
|
||||
} else {
|
||||
message.setColor(net.md_5.bungee.api.ChatColor.RED);
|
||||
hover.setColor(net.md_5.bungee.api.ChatColor.RED);
|
||||
@ -285,11 +285,11 @@ public final class SubCommand implements CommandExecutor {
|
||||
if (list.length() != 0) list += ", ";
|
||||
list += json.getJSONObject("hosts").getJSONObject(host).getJSONObject("servers").getJSONObject(subserver).getJSONArray("incompatible").getString(ii);
|
||||
}
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.SubServer-Incompatible", '&').replace("$str$", list));
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.api.getLang("SubServers", "Interface.Server-Menu.SubServer-Incompatible").replace("$str$", list));
|
||||
}
|
||||
if (!json.getJSONObject("hosts").getJSONObject(host).getJSONObject("servers").getJSONObject(subserver).getBoolean("enabled")) {
|
||||
hoverm.add(hover);
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.SubServer-Disabled", '&'));
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.api.getLang("SubServers", "Interface.Server-Menu.SubServer-Disabled"));
|
||||
}
|
||||
}
|
||||
hoverm.add(hover);
|
||||
@ -306,13 +306,13 @@ public final class SubCommand implements CommandExecutor {
|
||||
msg.addExtra(message);
|
||||
i++;
|
||||
}
|
||||
if (i == 0) msg.addExtra(new net.md_5.bungee.api.chat.TextComponent(plugin.lang.getSection("Lang").getColoredString("Command.List.Empty", '&')));
|
||||
if (i == 0) msg.addExtra(new net.md_5.bungee.api.chat.TextComponent(plugin.api.getLang("SubServers", "Command.List.Empty")));
|
||||
((Player) sender).spigot().sendMessage(msg);
|
||||
i = 0;
|
||||
sent = true;
|
||||
}
|
||||
if (!sent) sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.List.Empty", '&'));
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.List.Server-Header", '&'));
|
||||
if (!sent) sender.sendMessage(plugin.api.getLang("SubServers", "Command.List.Empty"));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.List.Server-Header"));
|
||||
net.md_5.bungee.api.chat.TextComponent msg = new net.md_5.bungee.api.chat.TextComponent(ChatColor.RESET.toString());
|
||||
for (String server : json.getJSONObject("servers").keySet()) {
|
||||
List<net.md_5.bungee.api.chat.TextComponent> hoverm = new LinkedList<net.md_5.bungee.api.chat.TextComponent>();
|
||||
@ -321,7 +321,7 @@ public final class SubCommand implements CommandExecutor {
|
||||
message.setColor(net.md_5.bungee.api.ChatColor.WHITE);
|
||||
hover.setColor(net.md_5.bungee.api.ChatColor.WHITE);
|
||||
hoverm.add(hover);
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.lang.getSection("Lang").getColoredString("Interface.Server-Menu.Server-External", '&'));
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent(plugin.api.getLang("SubServers", "Interface.Server-Menu.Server-External"));
|
||||
hoverm.add(hover);
|
||||
if (plugin.config.get().getSection("Settings").getBoolean("Show-Addresses", false)) {
|
||||
hover = new net.md_5.bungee.api.chat.TextComponent('\n' + json.getJSONObject("servers").getJSONObject(server).getString("address"));
|
||||
@ -335,15 +335,15 @@ public final class SubCommand implements CommandExecutor {
|
||||
msg.addExtra(message);
|
||||
i++;
|
||||
}
|
||||
if (i == 0) sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.List.Empty", '&'));
|
||||
if (i == 0) sender.sendMessage(plugin.api.getLang("SubServers", "Command.List.Empty"));
|
||||
((Player) sender).spigot().sendMessage(msg);
|
||||
} else {
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.List.Group-Header", '&'));
|
||||
String div = plugin.lang.getSection("Lang").getColoredString("Command.List.Divider", '&');
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.List.Group-Header"));
|
||||
String div = plugin.api.getLang("SubServers", "Command.List.Divider");
|
||||
|
||||
for (String group : json.getJSONObject("groups").keySet()) {
|
||||
String message = "";
|
||||
message += ChatColor.GOLD + group + plugin.lang.getSection("Lang").getColoredString("Command.List.Header", '&');
|
||||
message += ChatColor.GOLD + group + plugin.api.getLang("SubServers", "Command.List.Header");
|
||||
for (String server : json.getJSONObject("groups").getJSONObject(group).keySet()) {
|
||||
if (i != 0) message += div;
|
||||
if (!json.getJSONObject("groups").getJSONObject(group).getJSONObject(server).keySet().contains("enabled")) {
|
||||
@ -360,14 +360,14 @@ public final class SubCommand implements CommandExecutor {
|
||||
message += json.getJSONObject("groups").getJSONObject(group).getJSONObject(server).getString("display") + " (" + ((plugin.config.get().getSection("Settings").getBoolean("Show-Addresses", false))?json.getJSONObject("groups").getJSONObject(group).getJSONObject(server).getString("address"):json.getJSONObject("groups").getJSONObject(group).getJSONObject(server).getString("address").split(":")[json.getJSONObject("groups").getJSONObject(group).getJSONObject(server).getString("address").split(":").length - 1]) + ((server.equals(json.getJSONObject("groups").getJSONObject(group).getJSONObject(server).getString("display")))?"":ChatColor.stripColor(div)+server) + ")";
|
||||
i++;
|
||||
}
|
||||
if (i == 0) message += plugin.lang.getSection("Lang").getColoredString("Command.List.Empty", '&');
|
||||
if (i == 0) message += plugin.api.getLang("SubServers", "Command.List.Empty");
|
||||
sender.sendMessage(message);
|
||||
i = 0;
|
||||
sent = true;
|
||||
}
|
||||
if (!sent) sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.List.Empty", '&'));
|
||||
if (!sent) sender.sendMessage(plugin.api.getLang("SubServers", "Command.List.Empty"));
|
||||
sent = false;
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.List.Host-Header", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.List.Host-Header"));
|
||||
for (String host : json.getJSONObject("hosts").keySet()) {
|
||||
String message = "";
|
||||
if (json.getJSONObject("hosts").getJSONObject(host).getBoolean("enabled")) {
|
||||
@ -381,7 +381,7 @@ public final class SubCommand implements CommandExecutor {
|
||||
} else if (!host.equals(json.getJSONObject("hosts").getJSONObject(host).getString("display"))) {
|
||||
message += " (" + host + ")";
|
||||
}
|
||||
message += plugin.lang.getSection("Lang").getColoredString("Command.List.Header", '&');
|
||||
message += plugin.api.getLang("SubServers", "Command.List.Header");
|
||||
for (String subserver : json.getJSONObject("hosts").getJSONObject(host).getJSONObject("servers").keySet()) {
|
||||
if (i != 0) message += div;
|
||||
if (json.getJSONObject("hosts").getJSONObject(host).getJSONObject("servers").getJSONObject(subserver).getBoolean("temp")) {
|
||||
@ -396,20 +396,20 @@ public final class SubCommand implements CommandExecutor {
|
||||
message += json.getJSONObject("hosts").getJSONObject(host).getJSONObject("servers").getJSONObject(subserver).getString("display") + " (" + json.getJSONObject("hosts").getJSONObject(host).getJSONObject("servers").getJSONObject(subserver).getString("address").split(":")[json.getJSONObject("hosts").getJSONObject(host).getJSONObject("servers").getJSONObject(subserver).getString("address").split(":").length - 1] + ((subserver.equals(json.getJSONObject("hosts").getJSONObject(host).getJSONObject("servers").getJSONObject(subserver).getString("display")))?"":ChatColor.stripColor(div)+subserver) + ")";
|
||||
i++;
|
||||
}
|
||||
if (i == 0) message += plugin.lang.getSection("Lang").getColoredString("Command.List.Empty", '&');
|
||||
if (i == 0) message += plugin.api.getLang("SubServers", "Command.List.Empty");
|
||||
sender.sendMessage(message);
|
||||
i = 0;
|
||||
sent = true;
|
||||
}
|
||||
if (!sent) sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.List.Empty", '&'));
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.List.Server-Header", '&'));
|
||||
if (!sent) sender.sendMessage(plugin.api.getLang("SubServers", "Command.List.Empty"));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.List.Server-Header"));
|
||||
String message = "";
|
||||
for (String server : json.getJSONObject("servers").keySet()) {
|
||||
if (i != 0) message += div;
|
||||
message += ChatColor.WHITE + json.getJSONObject("servers").getJSONObject(server).getString("display") + " (" + ((plugin.config.get().getSection("Settings").getBoolean("Show-Addresses", false))?json.getJSONObject("servers").getJSONObject(server).getString("address"):json.getJSONObject("servers").getJSONObject(server).getString("address").split(":")[json.getJSONObject("servers").getJSONObject(server).getString("address").split(":").length - 1]) + ((server.equals(json.getJSONObject("servers").getJSONObject(server).getString("display")))?"":ChatColor.stripColor(div)+server) + ")";
|
||||
i++;
|
||||
}
|
||||
if (i == 0) sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.List.Empty", '&'));
|
||||
if (i == 0) sender.sendMessage(plugin.api.getLang("SubServers", "Command.List.Empty"));
|
||||
sender.sendMessage(message);
|
||||
}
|
||||
}));
|
||||
@ -418,43 +418,43 @@ public final class SubCommand implements CommandExecutor {
|
||||
plugin.subdata.sendPacket(new PacketDownloadServerInfo(args[1].toLowerCase(), json -> {
|
||||
switch (json.getString("type").toLowerCase()) {
|
||||
case "invalid":
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Info.Unknown", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Info.Unknown"));
|
||||
break;
|
||||
case "subserver":
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Info", '&').replace("$str$", json.getJSONObject("server").getString("display")));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Info").replace("$str$", json.getJSONObject("server").getString("display")));
|
||||
if (!json.getJSONObject("server").getString("name").equals(json.getJSONObject("server").getString("display")))
|
||||
sender.sendMessage(" " + plugin.lang.getSection("Lang").getColoredString("Command.Info.Format", '&').replace("$str$", "Real Name") + ChatColor.AQUA + json.getJSONObject("server").getString("name"));
|
||||
sender.sendMessage(" " + plugin.lang.getSection("Lang").getColoredString("Command.Info.Format", '&').replace("$str$", "Host") + ChatColor.AQUA + json.getJSONObject("server").getString("host"));
|
||||
sender.sendMessage(" " + plugin.lang.getSection("Lang").getColoredString("Command.Info.Format", '&').replace("$str$", "Enabled") + ((json.getJSONObject("server").getBoolean("enabled"))?ChatColor.GREEN+"yes":ChatColor.DARK_RED+"no"));
|
||||
sender.sendMessage(" " + plugin.api.getLang("SubServers", "Command.Info.Format").replace("$str$", "Real Name") + ChatColor.AQUA + json.getJSONObject("server").getString("name"));
|
||||
sender.sendMessage(" " + plugin.api.getLang("SubServers", "Command.Info.Format").replace("$str$", "Host") + ChatColor.AQUA + json.getJSONObject("server").getString("host"));
|
||||
sender.sendMessage(" " + plugin.api.getLang("SubServers", "Command.Info.Format").replace("$str$", "Enabled") + ((json.getJSONObject("server").getBoolean("enabled"))?ChatColor.GREEN+"yes":ChatColor.DARK_RED+"no"));
|
||||
if (json.getJSONObject("server").getJSONArray("group").length() > 0) {
|
||||
sender.sendMessage(" " + plugin.lang.getSection("Lang").getColoredString("Command.Info.Format", '&').replace("$str$", "Group"));
|
||||
sender.sendMessage(" " + plugin.api.getLang("SubServers", "Command.Info.Format").replace("$str$", "Group"));
|
||||
for (int i = 0; i < json.getJSONObject("server").getJSONArray("group").length(); i++)
|
||||
sender.sendMessage(" " + plugin.lang.getSection("Lang").getColoredString("Command.Info.List", '&').replace("$str$", ChatColor.GOLD + json.getJSONObject("server").getJSONArray("group").getString(i)));
|
||||
sender.sendMessage(" " + plugin.api.getLang("SubServers", "Command.Info.List").replace("$str$", ChatColor.GOLD + json.getJSONObject("server").getJSONArray("group").getString(i)));
|
||||
}
|
||||
if (json.getJSONObject("server").getBoolean("temp")) sender.sendMessage(" " + plugin.lang.getSection("Lang").getColoredString("Command.Info.Format", '&').replace("$str$", "Temporary") + ChatColor.GREEN+"yes");
|
||||
sender.sendMessage(" " + plugin.lang.getSection("Lang").getColoredString("Command.Info.Format", '&').replace("$str$", "Running") + ((json.getJSONObject("server").getBoolean("running"))?ChatColor.GREEN+"yes":ChatColor.DARK_RED+"no"));
|
||||
sender.sendMessage(" " + plugin.lang.getSection("Lang").getColoredString("Command.Info.Format", '&').replace("$str$", "Logging") + ((json.getJSONObject("server").getBoolean("log"))?ChatColor.GREEN+"yes":ChatColor.DARK_RED+"no"));
|
||||
if (json.getJSONObject("server").getBoolean("temp")) sender.sendMessage(" " + plugin.api.getLang("SubServers", "Command.Info.Format").replace("$str$", "Temporary") + ChatColor.GREEN+"yes");
|
||||
sender.sendMessage(" " + plugin.api.getLang("SubServers", "Command.Info.Format").replace("$str$", "Running") + ((json.getJSONObject("server").getBoolean("running"))?ChatColor.GREEN+"yes":ChatColor.DARK_RED+"no"));
|
||||
sender.sendMessage(" " + plugin.api.getLang("SubServers", "Command.Info.Format").replace("$str$", "Logging") + ((json.getJSONObject("server").getBoolean("log"))?ChatColor.GREEN+"yes":ChatColor.DARK_RED+"no"));
|
||||
if (plugin.config.get().getSection("Settings").getBoolean("Show-Addresses", false)) {
|
||||
sender.sendMessage(" " + plugin.lang.getSection("Lang").getColoredString("Command.Info.Format", '&').replace("$str$", "Address") + ChatColor.AQUA + json.getJSONObject("server").getString("address"));
|
||||
sender.sendMessage(" " + plugin.api.getLang("SubServers", "Command.Info.Format").replace("$str$", "Address") + ChatColor.AQUA + json.getJSONObject("server").getString("address"));
|
||||
} else {
|
||||
sender.sendMessage(" " + plugin.lang.getSection("Lang").getColoredString("Command.Info.Format", '&').replace("$str$", "Port") + ChatColor.AQUA + json.getJSONObject("server").getString("address").split(":")[json.getJSONObject("server").getString("address").split(":").length - 1]);
|
||||
sender.sendMessage(" " + plugin.api.getLang("SubServers", "Command.Info.Format").replace("$str$", "Port") + ChatColor.AQUA + json.getJSONObject("server").getString("address").split(":")[json.getJSONObject("server").getString("address").split(":").length - 1]);
|
||||
}
|
||||
sender.sendMessage(" " + plugin.lang.getSection("Lang").getColoredString("Command.Info.Format", '&').replace("$str$", "Auto Restart") + ((json.getJSONObject("server").getBoolean("auto-restart"))?ChatColor.GREEN+"yes":ChatColor.DARK_RED+"no"));
|
||||
sender.sendMessage(" " + plugin.lang.getSection("Lang").getColoredString("Command.Info.Format", '&').replace("$str$", "Hidden") + ((json.getJSONObject("server").getBoolean("hidden"))?ChatColor.GREEN+"yes":ChatColor.DARK_RED+"no"));
|
||||
sender.sendMessage(" " + plugin.api.getLang("SubServers", "Command.Info.Format").replace("$str$", "Auto Restart") + ((json.getJSONObject("server").getBoolean("auto-restart"))?ChatColor.GREEN+"yes":ChatColor.DARK_RED+"no"));
|
||||
sender.sendMessage(" " + plugin.api.getLang("SubServers", "Command.Info.Format").replace("$str$", "Hidden") + ((json.getJSONObject("server").getBoolean("hidden"))?ChatColor.GREEN+"yes":ChatColor.DARK_RED+"no"));
|
||||
if (json.getJSONObject("server").getJSONArray("incompatible-list").length() > 0) {
|
||||
List<String> current = new ArrayList<String>();
|
||||
for (int i = 0; i < json.getJSONObject("server").getJSONArray("incompatible").length(); i++) current.add(json.getJSONObject("server").getJSONArray("incompatible").getString(i).toLowerCase());
|
||||
sender.sendMessage(" " + plugin.lang.getSection("Lang").getColoredString("Command.Info.Format", '&').replace("$str$", "Incompatibilities"));
|
||||
sender.sendMessage(" " + plugin.api.getLang("SubServers", "Command.Info.Format").replace("$str$", "Incompatibilities"));
|
||||
for (int i = 0; i < json.getJSONObject("server").getJSONArray("incompatible-list").length(); i++)
|
||||
sender.sendMessage(" " + plugin.lang.getSection("Lang").getColoredString("Command.Info.List", '&').replace("$str$", ((current.contains(json.getJSONObject("server").getJSONArray("incompatible-list").getString(i).toLowerCase()))?ChatColor.DARK_RED:ChatColor.RED) + json.getJSONObject("server").getJSONArray("incompatible-list").getString(i)));
|
||||
sender.sendMessage(" " + plugin.api.getLang("SubServers", "Command.Info.List").replace("$str$", ((current.contains(json.getJSONObject("server").getJSONArray("incompatible-list").getString(i).toLowerCase()))?ChatColor.DARK_RED:ChatColor.RED) + json.getJSONObject("server").getJSONArray("incompatible-list").getString(i)));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Start.Invalid", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Start.Invalid"));
|
||||
}
|
||||
}));
|
||||
} else {
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Generic.Usage", '&').replace("$str$", label.toLowerCase() + " " + args[0].toLowerCase() + " <SubServer>"));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Generic.Usage").replace("$str$", label.toLowerCase() + " " + args[0].toLowerCase() + " <SubServer>"));
|
||||
}
|
||||
} else if (args[0].equalsIgnoreCase("start")) {
|
||||
if (sender.hasPermission("subservers.subserver.start.*") || sender.hasPermission("subservers.subserver.start." + args[1].toLowerCase())) {
|
||||
@ -462,39 +462,39 @@ public final class SubCommand implements CommandExecutor {
|
||||
plugin.subdata.sendPacket(new PacketStartServer((sender instanceof Player)?((Player) sender).getUniqueId():null, args[1], json -> {
|
||||
switch (json.getInt("r")) {
|
||||
case 3:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Start.Unknown", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Start.Unknown"));
|
||||
break;
|
||||
case 4:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Start.Invalid", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Start.Invalid"));
|
||||
break;
|
||||
case 5:
|
||||
if (json.getString("m").contains("Host")) {
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Start.Host-Disabled", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Start.Host-Disabled"));
|
||||
} else {
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Start.Server-Disabled", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Start.Server-Disabled"));
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Start.Running", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Start.Running"));
|
||||
break;
|
||||
case 7:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Start.Server-Incompatible", '&').replace("$str$", json.getString("m").split(":\\s")[1]));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Start.Server-Incompatible").replace("$str$", json.getString("m").split(":\\s")[1]));
|
||||
break;
|
||||
case 0:
|
||||
case 1:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Start", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Start"));
|
||||
break;
|
||||
default:
|
||||
Bukkit.getLogger().warning("SubData > PacketStartServer(" + ((sender instanceof Player)?((Player) sender).getUniqueId().toString():"null") + ", " + args[1] + ") responded with: " + json.getString("m"));
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Start", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Start"));
|
||||
break;
|
||||
}
|
||||
}));
|
||||
} else {
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Generic.Usage", '&').replace("$str$", label.toLowerCase() + " " + args[0].toLowerCase() + " <SubServer>"));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Generic.Usage").replace("$str$", label.toLowerCase() + " " + args[0].toLowerCase() + " <SubServer>"));
|
||||
}
|
||||
} else {
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Generic.Invalid-Permission", '&').replace("$str$", "subservers.subserver.start." + args[1].toLowerCase()));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Generic.Invalid-Permission").replace("$str$", "subservers.subserver.start." + args[1].toLowerCase()));
|
||||
}
|
||||
|
||||
} else if (args[0].equalsIgnoreCase("stop")) {
|
||||
@ -503,29 +503,29 @@ public final class SubCommand implements CommandExecutor {
|
||||
plugin.subdata.sendPacket(new PacketStopServer((sender instanceof Player)?((Player) sender).getUniqueId():null, args[1], false, json -> {
|
||||
switch (json.getInt("r")) {
|
||||
case 3:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Stop.Unknown", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Stop.Unknown"));
|
||||
break;
|
||||
case 4:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Stop.Invalid", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Stop.Invalid"));
|
||||
break;
|
||||
case 5:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Stop.Not-Running", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Stop.Not-Running"));
|
||||
break;
|
||||
case 0:
|
||||
case 1:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Stop", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Stop"));
|
||||
break;
|
||||
default:
|
||||
Bukkit.getLogger().warning("SubData > PacketStopServer(" + ((sender instanceof Player)?((Player) sender).getUniqueId().toString():"null") + ", " + args[1] + ", false) responded with: " + json.getString("m"));
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Stop", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Stop"));
|
||||
break;
|
||||
}
|
||||
}));
|
||||
} else {
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Generic.Usage", '&').replace("$str$", label.toLowerCase() + " " + args[0].toLowerCase() + " <SubServer>"));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Generic.Usage").replace("$str$", label.toLowerCase() + " " + args[0].toLowerCase() + " <SubServer>"));
|
||||
}
|
||||
} else {
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Generic.Invalid-Permission", '&').replace("$str$", "subservers.subserver.stop." + args[1].toLowerCase()));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Generic.Invalid-Permission").replace("$str$", "subservers.subserver.stop." + args[1].toLowerCase()));
|
||||
}
|
||||
} else if (args[0].equalsIgnoreCase("kill") || args[0].equalsIgnoreCase("terminate")) {
|
||||
if (sender.hasPermission("subservers.subserver.terminate.*") || sender.hasPermission("subservers.subserver.terminate." + args[1].toLowerCase())) {
|
||||
@ -533,29 +533,29 @@ public final class SubCommand implements CommandExecutor {
|
||||
plugin.subdata.sendPacket(new PacketStopServer((sender instanceof Player)?((Player) sender).getUniqueId():null, args[1], true, json -> {
|
||||
switch (json.getInt("r")) {
|
||||
case 3:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Terminate.Unknown", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Terminate.Unknown"));
|
||||
break;
|
||||
case 4:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Terminate.Invalid", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Terminate.Invalid"));
|
||||
break;
|
||||
case 5:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Terminate.Not-Running", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Terminate.Not-Running"));
|
||||
break;
|
||||
case 0:
|
||||
case 1:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Terminate", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Terminate"));
|
||||
break;
|
||||
default:
|
||||
Bukkit.getLogger().warning("SubData > PacketStopServer(" + ((sender instanceof Player)?((Player) sender).getUniqueId().toString():"null") + ", " + args[1] + ", true) responded with: " + json.getString("m"));
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Terminate", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Terminate"));
|
||||
break;
|
||||
}
|
||||
}));
|
||||
} else {
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Generic.Usage", '&').replace("$str$", label.toLowerCase() + " " + args[0].toLowerCase() + " <SubServer>"));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Generic.Usage").replace("$str$", label.toLowerCase() + " " + args[0].toLowerCase() + " <SubServer>"));
|
||||
}
|
||||
} else {
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Generic.Invalid-Permission", '&').replace("$str$", "subservers.subserver.terminate." + args[1].toLowerCase()));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Generic.Invalid-Permission").replace("$str$", "subservers.subserver.terminate." + args[1].toLowerCase()));
|
||||
}
|
||||
} else if (args[0].equalsIgnoreCase("cmd") || args[0].equalsIgnoreCase("command")) {
|
||||
if (sender.hasPermission("subservers.subserver.command.*") || sender.hasPermission("subservers.subserver.command." + args[1].toLowerCase())) {
|
||||
@ -572,69 +572,69 @@ public final class SubCommand implements CommandExecutor {
|
||||
plugin.subdata.sendPacket(new PacketCommandServer((sender instanceof Player)?((Player) sender).getUniqueId():null, args[1], cmd, json -> {
|
||||
switch (json.getInt("r")) {
|
||||
case 3:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Command.Unknown", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Command.Unknown"));
|
||||
break;
|
||||
case 4:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Command.Invalid", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Command.Invalid"));
|
||||
break;
|
||||
case 5:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Command.Not-Running", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Command.Not-Running"));
|
||||
break;
|
||||
case 0:
|
||||
case 1:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Command", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Command"));
|
||||
break;
|
||||
default:
|
||||
Bukkit.getLogger().warning("SubData > PacketCommandServer(" + ((sender instanceof Player)?((Player) sender).getUniqueId().toString():"null") + ", " + args[1] + ", /" + cmd + ") responded with: " + json.getString("m"));
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Command", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Command"));
|
||||
break;
|
||||
}
|
||||
}));
|
||||
} else {
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Generic.Usage", '&').replace("$str$", label.toLowerCase() + " " + args[0].toLowerCase() + " <SubServer> <Command> [Args...]"));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Generic.Usage").replace("$str$", label.toLowerCase() + " " + args[0].toLowerCase() + " <SubServer> <Command> [Args...]"));
|
||||
}
|
||||
} else {
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Generic.Invalid-Permission", '&').replace("$str$", "subservers.subserver.command." + args[1].toLowerCase()));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Generic.Invalid-Permission").replace("$str$", "subservers.subserver.command." + args[1].toLowerCase()));
|
||||
}
|
||||
} else if (args[0].equalsIgnoreCase("create")) {
|
||||
if (sender.hasPermission("subservers.host.create.*") || sender.hasPermission("subservers.host.create." + args[2].toLowerCase())) {
|
||||
if (args.length > 5) {
|
||||
if (Util.isException(() -> Integer.parseInt(args[5]))) {
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Creator.Invalid-Port", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Creator.Invalid-Port"));
|
||||
} else {
|
||||
plugin.subdata.sendPacket(new PacketCreateServer((sender instanceof Player)?((Player) sender).getUniqueId():null, args[1], args[2], args[3], new Version(args[4]), Integer.parseInt(args[5]), json -> {
|
||||
switch (json.getInt("r")) {
|
||||
case 3:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Creator.Exists", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Creator.Exists"));
|
||||
break;
|
||||
case 4:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Creator.Unknown-Host", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Creator.Unknown-Host"));
|
||||
break;
|
||||
case 6:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Creator.Invalid-Template", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Creator.Invalid-Template"));
|
||||
break;
|
||||
case 7:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Creator.Invalid-Version", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Creator.Invalid-Version"));
|
||||
break;
|
||||
case 8:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Creator.Invalid-Port", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Creator.Invalid-Port"));
|
||||
break;
|
||||
case 0:
|
||||
case 1:
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Creator", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Creator"));
|
||||
break;
|
||||
default:
|
||||
Bukkit.getLogger().warning("SubData > PacketCreateServer(" + ((sender instanceof Player)?((Player) sender).getUniqueId().toString():"null") + ", " + args[1] + ", " + args[2] + ", " + args[3] + ", " + args[4] + ", " + args[5] + ") responded with: " + json.getString("m"));
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Creator", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Creator"));
|
||||
break;
|
||||
}
|
||||
}));
|
||||
}
|
||||
} else {
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Generic.Usage", '&').replace("$str$", label.toLowerCase() + " " + args[0].toLowerCase() + " <Name> <Host> <Type> <Version> <Port> [RAM]"));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Generic.Usage").replace("$str$", label.toLowerCase() + " " + args[0].toLowerCase() + " <Name> <Host> <Type> <Version> <Port> [RAM]"));
|
||||
}
|
||||
} else {
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Generic.Invalid-Permission", '&').replace("$str$", "subservers.host.create." + args[2].toLowerCase()));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Generic.Invalid-Permission").replace("$str$", "subservers.host.create." + args[2].toLowerCase()));
|
||||
}
|
||||
} else if ((args[0].equalsIgnoreCase("view") || args[0].equalsIgnoreCase("open")) && sender instanceof Player) {
|
||||
if (sender.hasPermission("subservers.interface")) {
|
||||
@ -681,10 +681,10 @@ public final class SubCommand implements CommandExecutor {
|
||||
new InvocationTargetException(e, "Could not render page with arguments: " + list.toString()).printStackTrace();
|
||||
}
|
||||
} else {
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Generic.Invalid-Permission", '&').replace("$str$", "subservers.interface"));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Generic.Invalid-Permission").replace("$str$", "subservers.interface"));
|
||||
}
|
||||
} else {
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Generic.Invalid-Subcommand", '&').replace("$str$", args[0]));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Generic.Invalid-Subcommand").replace("$str$", args[0]));
|
||||
}
|
||||
} else {
|
||||
if (sender.hasPermission("subservers.interface") && sender instanceof Player) {
|
||||
@ -696,7 +696,7 @@ public final class SubCommand implements CommandExecutor {
|
||||
} else if (sender.hasPermission("subservers.interface") && sender instanceof Player) {
|
||||
plugin.gui.getRenderer((Player) sender).newUI();
|
||||
} else {
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Generic.Invalid-Permission", '&').replace("$str$", "subservers.command"));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Generic.Invalid-Permission").replace("$str$", "subservers.command"));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@ -704,16 +704,16 @@ public final class SubCommand implements CommandExecutor {
|
||||
|
||||
private String[] printHelp(String label) {
|
||||
return new String[]{
|
||||
plugin.lang.getSection("Lang").getColoredString("Command.Help.Header", '&'),
|
||||
plugin.lang.getSection("Lang").getColoredString("Command.Help.Help", '&').replace("$str$", label.toLowerCase() + " help"),
|
||||
plugin.lang.getSection("Lang").getColoredString("Command.Help.List", '&').replace("$str$", label.toLowerCase() + " list"),
|
||||
plugin.lang.getSection("Lang").getColoredString("Command.Help.Version", '&').replace("$str$", label.toLowerCase() + " version"),
|
||||
plugin.lang.getSection("Lang").getColoredString("Command.Help.Info", '&').replace("$str$", label.toLowerCase() + " info <SubServer>"),
|
||||
plugin.lang.getSection("Lang").getColoredString("Command.Help.SubServer.Start", '&').replace("$str$", label.toLowerCase() + " start <SubServer>"),
|
||||
plugin.lang.getSection("Lang").getColoredString("Command.Help.SubServer.Stop", '&').replace("$str$", label.toLowerCase() + " stop <SubServer>"),
|
||||
plugin.lang.getSection("Lang").getColoredString("Command.Help.SubServer.Terminate", '&').replace("$str$", label.toLowerCase() + " kill <SubServer>"),
|
||||
plugin.lang.getSection("Lang").getColoredString("Command.Help.SubServer.Command", '&').replace("$str$", label.toLowerCase() + " cmd <SubServer> <Command> [Args...]"),
|
||||
plugin.lang.getSection("Lang").getColoredString("Command.Help.Host.Create", '&').replace("$str$", label.toLowerCase() + " create <Name> <Host> <Template> <Version> <Port>"),
|
||||
plugin.api.getLang("SubServers", "Command.Help.Header"),
|
||||
plugin.api.getLang("SubServers", "Command.Help.Help").replace("$str$", label.toLowerCase() + " help"),
|
||||
plugin.api.getLang("SubServers", "Command.Help.List").replace("$str$", label.toLowerCase() + " list"),
|
||||
plugin.api.getLang("SubServers", "Command.Help.Version").replace("$str$", label.toLowerCase() + " version"),
|
||||
plugin.api.getLang("SubServers", "Command.Help.Info").replace("$str$", label.toLowerCase() + " info <SubServer>"),
|
||||
plugin.api.getLang("SubServers", "Command.Help.SubServer.Start").replace("$str$", label.toLowerCase() + " start <SubServer>"),
|
||||
plugin.api.getLang("SubServers", "Command.Help.SubServer.Stop").replace("$str$", label.toLowerCase() + " stop <SubServer>"),
|
||||
plugin.api.getLang("SubServers", "Command.Help.SubServer.Terminate").replace("$str$", label.toLowerCase() + " kill <SubServer>"),
|
||||
plugin.api.getLang("SubServers", "Command.Help.SubServer.Command").replace("$str$", label.toLowerCase() + " cmd <SubServer> <Command> [Args...]"),
|
||||
plugin.api.getLang("SubServers", "Command.Help.Host.Create").replace("$str$", label.toLowerCase() + " create <Name> <Host> <Template> <Version> <Port>"),
|
||||
};
|
||||
}
|
||||
}
|
@ -4,6 +4,7 @@ import net.ME1312.SubServers.Client.Bukkit.Graphic.InternalUIHandler;
|
||||
import net.ME1312.SubServers.Client.Bukkit.Graphic.UIHandler;
|
||||
import net.ME1312.SubServers.Client.Bukkit.Library.Config.YAMLConfig;
|
||||
import net.ME1312.SubServers.Client.Bukkit.Library.Config.YAMLSection;
|
||||
import net.ME1312.SubServers.Client.Bukkit.Library.NamedContainer;
|
||||
import net.ME1312.SubServers.Client.Bukkit.Library.UniversalFile;
|
||||
import net.ME1312.SubServers.Client.Bukkit.Library.Util;
|
||||
import net.ME1312.SubServers.Client.Bukkit.Library.Version.Version;
|
||||
@ -25,14 +26,15 @@ import java.nio.charset.Charset;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.StandardCopyOption;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
/**
|
||||
* SubServers Client Plugin Class
|
||||
*/
|
||||
public final class SubPlugin extends JavaPlugin {
|
||||
protected NamedContainer<Long, Map<String, Map<String, String>>> lang = null;
|
||||
public YAMLConfig config;
|
||||
public YAMLSection lang = null;
|
||||
public SubDataClient subdata = null;
|
||||
|
||||
public UIHandler gui = null;
|
||||
|
85
SubServers.Console/module_subservers.console.xml
Normal file
85
SubServers.Console/module_subservers.console.xml
Normal file
@ -0,0 +1,85 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="module_subservers.console" default="compile.module.subservers.console">
|
||||
<dirname property="module.subservers.console.basedir" file="${ant.file.module_subservers.console}"/>
|
||||
|
||||
<property name="module.jdk.home.subservers.console" value="${project.jdk.home}"/>
|
||||
<property name="module.jdk.bin.subservers.console" value="${project.jdk.bin}"/>
|
||||
<property name="module.jdk.classpath.subservers.console" value="${project.jdk.classpath}"/>
|
||||
|
||||
<property name="compiler.args.subservers.console" value="-encoding UTF-8 -source 1.8 -target 1.8 ${compiler.args}"/>
|
||||
|
||||
<property name="subservers.console.output.dir" value="${module.subservers.console.basedir}/../out/compile/production/SubServers.Console"/>
|
||||
<property name="subservers.console.testoutput.dir" value="${module.subservers.console.basedir}/../out/compile/test/SubServers.Console"/>
|
||||
|
||||
<path id="subservers.console.module.bootclasspath">
|
||||
<!-- Paths to be included in compilation bootclasspath -->
|
||||
</path>
|
||||
|
||||
<path id="subservers.console.module.production.classpath">
|
||||
<path refid="${module.jdk.classpath.subservers.console}"/>
|
||||
<pathelement location="${basedir}/../~lib/BungeeCord-1.8.jar"/>
|
||||
<pathelement location="${subservers.bungee.output.dir}"/>
|
||||
</path>
|
||||
|
||||
<path id="subservers.console.runtime.production.module.classpath">
|
||||
<pathelement location="${subservers.console.output.dir}"/>
|
||||
</path>
|
||||
|
||||
<path id="subservers.console.module.classpath">
|
||||
<path refid="${module.jdk.classpath.subservers.console}"/>
|
||||
<pathelement location="${subservers.console.output.dir}"/>
|
||||
<pathelement location="${basedir}/../~lib/BungeeCord-1.8.jar"/>
|
||||
<pathelement location="${subservers.bungee.testoutput.dir}"/>
|
||||
<pathelement location="${subservers.bungee.output.dir}"/>
|
||||
</path>
|
||||
|
||||
<path id="subservers.console.runtime.module.classpath">
|
||||
<pathelement location="${subservers.console.testoutput.dir}"/>
|
||||
<pathelement location="${subservers.console.output.dir}"/>
|
||||
<pathelement location="${basedir}/../~lib/BungeeCord-1.8.jar"/>
|
||||
<path refid="subservers.bungee.runtime.module.classpath"/>
|
||||
</path>
|
||||
|
||||
|
||||
<patternset id="excluded.from.module.subservers.console">
|
||||
<patternset refid="ignored.files"/>
|
||||
</patternset>
|
||||
|
||||
<patternset id="excluded.from.compilation.subservers.console">
|
||||
<patternset refid="excluded.from.module.subservers.console"/>
|
||||
</patternset>
|
||||
|
||||
<path id="subservers.console.module.sourcepath">
|
||||
<dirset dir="${module.subservers.console.basedir}">
|
||||
<include name="src"/>
|
||||
</dirset>
|
||||
</path>
|
||||
|
||||
|
||||
<target name="compile.module.subservers.console" depends="compile.module.subservers.console.production,compile.module.subservers.console.tests" description="Compile module SubServers.Console"/>
|
||||
|
||||
<target name="compile.module.subservers.console.production" depends="register.custom.compilers,compile.module.subservers.bungee" description="Compile module SubServers.Console; production classes">
|
||||
<mkdir dir="${subservers.console.output.dir}"/>
|
||||
<javac2 destdir="${subservers.console.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.subservers.console}/javac">
|
||||
<compilerarg line="${compiler.args.subservers.console}"/>
|
||||
<bootclasspath refid="subservers.console.module.bootclasspath"/>
|
||||
<classpath refid="subservers.console.module.production.classpath"/>
|
||||
<src refid="subservers.console.module.sourcepath"/>
|
||||
<patternset refid="excluded.from.compilation.subservers.console"/>
|
||||
</javac2>
|
||||
|
||||
<copy todir="${subservers.console.output.dir}">
|
||||
<fileset dir="${module.subservers.console.basedir}/src">
|
||||
<patternset refid="compiler.resources"/>
|
||||
<type type="file"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="compile.module.subservers.console.tests" depends="register.custom.compilers,compile.module.subservers.console.production" description="compile module SubServers.Console; test classes" unless="skip.tests"/>
|
||||
|
||||
<target name="clean.module.subservers.console" description="cleanup module">
|
||||
<delete dir="${subservers.console.output.dir}"/>
|
||||
<delete dir="${subservers.console.testoutput.dir}"/>
|
||||
</target>
|
||||
</project>
|
90
SubServers.Host/module_subservers.host.xml
Normal file
90
SubServers.Host/module_subservers.host.xml
Normal file
@ -0,0 +1,90 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="module_subservers.host" default="compile.module.subservers.host">
|
||||
<dirname property="module.subservers.host.basedir" file="${ant.file.module_subservers.host}"/>
|
||||
|
||||
<property name="module.jdk.home.subservers.host" value="${project.jdk.home}"/>
|
||||
<property name="module.jdk.bin.subservers.host" value="${project.jdk.bin}"/>
|
||||
<property name="module.jdk.classpath.subservers.host" value="${project.jdk.classpath}"/>
|
||||
|
||||
<property name="compiler.args.subservers.host" value="-encoding UTF-8 -source 1.8 -target 1.8 ${compiler.args}"/>
|
||||
|
||||
<property name="subservers.host.output.dir" value="${module.subservers.host.basedir}/../out/compile/production/SubServers.Host"/>
|
||||
<property name="subservers.host.testoutput.dir" value="${module.subservers.host.basedir}/../out/compile/test/SubServers.Host"/>
|
||||
|
||||
<path id="subservers.host.module.bootclasspath">
|
||||
<!-- Paths to be included in compilation bootclasspath -->
|
||||
</path>
|
||||
|
||||
<path id="subservers.host.module.production.classpath">
|
||||
<path refid="${module.jdk.classpath.subservers.host}"/>
|
||||
<pathelement location="${basedir}/../~lib/json.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/jline-2.12.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/jansi-1.16.jar"/>
|
||||
</path>
|
||||
|
||||
<path id="subservers.host.runtime.production.module.classpath">
|
||||
<pathelement location="${subservers.host.output.dir}"/>
|
||||
<pathelement location="${basedir}/../~lib/json.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/jline-2.12.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/jansi-1.16.jar"/>
|
||||
</path>
|
||||
|
||||
<path id="subservers.host.module.classpath">
|
||||
<path refid="${module.jdk.classpath.subservers.host}"/>
|
||||
<pathelement location="${subservers.host.output.dir}"/>
|
||||
<pathelement location="${basedir}/../~lib/json.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/jline-2.12.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/jansi-1.16.jar"/>
|
||||
</path>
|
||||
|
||||
<path id="subservers.host.runtime.module.classpath">
|
||||
<pathelement location="${subservers.host.testoutput.dir}"/>
|
||||
<pathelement location="${subservers.host.output.dir}"/>
|
||||
<pathelement location="${basedir}/../~lib/json.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/jline-2.12.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/jansi-1.16.jar"/>
|
||||
</path>
|
||||
|
||||
|
||||
<patternset id="excluded.from.module.subservers.host">
|
||||
<patternset refid="ignored.files"/>
|
||||
</patternset>
|
||||
|
||||
<patternset id="excluded.from.compilation.subservers.host">
|
||||
<patternset refid="excluded.from.module.subservers.host"/>
|
||||
</patternset>
|
||||
|
||||
<path id="subservers.host.module.sourcepath">
|
||||
<dirset dir="${module.subservers.host.basedir}">
|
||||
<include name="src"/>
|
||||
</dirset>
|
||||
</path>
|
||||
|
||||
|
||||
<target name="compile.module.subservers.host" depends="compile.module.subservers.host.production,compile.module.subservers.host.tests" description="Compile module SubServers.Host"/>
|
||||
|
||||
<target name="compile.module.subservers.host.production" depends="register.custom.compilers" description="Compile module SubServers.Host; production classes">
|
||||
<mkdir dir="${subservers.host.output.dir}"/>
|
||||
<javac2 destdir="${subservers.host.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.subservers.host}/javac">
|
||||
<compilerarg line="${compiler.args.subservers.host}"/>
|
||||
<bootclasspath refid="subservers.host.module.bootclasspath"/>
|
||||
<classpath refid="subservers.host.module.production.classpath"/>
|
||||
<src refid="subservers.host.module.sourcepath"/>
|
||||
<patternset refid="excluded.from.compilation.subservers.host"/>
|
||||
</javac2>
|
||||
|
||||
<copy todir="${subservers.host.output.dir}">
|
||||
<fileset dir="${module.subservers.host.basedir}/src">
|
||||
<patternset refid="compiler.resources"/>
|
||||
<type type="file"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="compile.module.subservers.host.tests" depends="register.custom.compilers,compile.module.subservers.host.production" description="compile module SubServers.Host; test classes" unless="skip.tests"/>
|
||||
|
||||
<target name="clean.module.subservers.host" description="cleanup module">
|
||||
<delete dir="${subservers.host.output.dir}"/>
|
||||
<delete dir="${subservers.host.testoutput.dir}"/>
|
||||
</target>
|
||||
</project>
|
Binary file not shown.
@ -13,6 +13,7 @@ import net.ME1312.SubServers.Host.Library.Config.YAMLSection;
|
||||
import net.ME1312.SubServers.Host.Library.Exception.IllegalPluginException;
|
||||
import net.ME1312.SubServers.Host.Library.Log.FileLogger;
|
||||
import net.ME1312.SubServers.Host.Library.Log.Logger;
|
||||
import net.ME1312.SubServers.Host.Library.NamedContainer;
|
||||
import net.ME1312.SubServers.Host.Library.UniversalFile;
|
||||
import net.ME1312.SubServers.Host.Library.Util;
|
||||
import net.ME1312.SubServers.Host.Library.Version.Version;
|
||||
@ -41,6 +42,7 @@ import java.util.zip.ZipInputStream;
|
||||
* SubServers.Host Main Class
|
||||
*/
|
||||
public final class ExHost {
|
||||
protected NamedContainer<Long, Map<String, Map<String, String>>> lang = null;
|
||||
public HashMap<String, SubCreator.ServerTemplate> templates = new HashMap<String, SubCreator.ServerTemplate>();
|
||||
public HashMap<String, SubServer> servers = new HashMap<String, SubServer>();
|
||||
public SubCreator creator;
|
||||
@ -50,7 +52,6 @@ public final class ExHost {
|
||||
public final UniversalFile runtime;
|
||||
public YAMLConfig config;
|
||||
public YAMLSection host = null;
|
||||
public YAMLSection lang = null;
|
||||
public SubDataClient subdata = null;
|
||||
|
||||
public final Version version = new Version("2.13a");
|
||||
|
@ -2,6 +2,7 @@ package net.ME1312.SubServers.Host.Network.Packet;
|
||||
|
||||
import net.ME1312.SubServers.Host.Library.Config.YAMLSection;
|
||||
import net.ME1312.SubServers.Host.Library.Log.Logger;
|
||||
import net.ME1312.SubServers.Host.Library.NamedContainer;
|
||||
import net.ME1312.SubServers.Host.Library.Util;
|
||||
import net.ME1312.SubServers.Host.Library.Version.Version;
|
||||
import net.ME1312.SubServers.Host.Network.PacketIn;
|
||||
@ -37,9 +38,15 @@ public class PacketDownloadLang implements PacketIn, PacketOut {
|
||||
|
||||
@Override
|
||||
public void execute(JSONObject data) {
|
||||
data.put("Updated", Calendar.getInstance().getTime().getTime());
|
||||
host.lang = new YAMLSection(data);
|
||||
log.info.println("Lang Settings Downloaded");
|
||||
try {
|
||||
Field f = ExHost.class.getDeclaredField("lang");
|
||||
f.setAccessible(true);
|
||||
f.set(host, new NamedContainer<>(Calendar.getInstance().getTime().getTime(), new YAMLSection(data.getJSONObject("Lang")).get()));
|
||||
f.setAccessible(false);
|
||||
log.info.println("Lang Settings Downloaded");
|
||||
} catch (IllegalAccessException | NoSuchFieldException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -16,6 +16,7 @@ import java.util.UUID;
|
||||
public class PacketDownloadServerList implements PacketIn, PacketOut {
|
||||
private static HashMap<String, JSONCallback[]> callbacks = new HashMap<String, JSONCallback[]>();
|
||||
private String host;
|
||||
private String group;
|
||||
private String id;
|
||||
|
||||
/**
|
||||
@ -27,11 +28,13 @@ public class PacketDownloadServerList implements PacketIn, PacketOut {
|
||||
* New PacketDownloadServerList (Out)
|
||||
*
|
||||
* @param host Host name (or null for all)
|
||||
* @param group Group name (or null for all)
|
||||
* @param callback Callbacks
|
||||
*/
|
||||
public PacketDownloadServerList(String host, JSONCallback... callback) {
|
||||
public PacketDownloadServerList(String host, String group, JSONCallback... callback) {
|
||||
if (Util.isNull((Object) callback)) throw new NullPointerException();
|
||||
this.host = host;
|
||||
this.group = group;
|
||||
this.id = Util.getNew(callbacks.keySet(), UUID::randomUUID).toString();
|
||||
callbacks.put(id, callback);
|
||||
}
|
||||
@ -41,6 +44,7 @@ public class PacketDownloadServerList implements PacketIn, PacketOut {
|
||||
JSONObject json = new JSONObject();
|
||||
json.put("id", id);
|
||||
if (host != null) json.put("host", host);
|
||||
if (group != null) json.put("group", group);
|
||||
return json;
|
||||
}
|
||||
|
||||
|
@ -331,28 +331,37 @@ public final class SubAPI {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a value from the SubServers Lang
|
||||
*
|
||||
* @param key Key
|
||||
* @return Lang Value
|
||||
*/
|
||||
public String getLang(String key) {
|
||||
if (Util.isNull(key)) throw new NullPointerException();
|
||||
return getLang().get(key);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the SubServers Lang
|
||||
*
|
||||
* @return SubServers Lang
|
||||
*/
|
||||
public Map<String, String> getLang() {
|
||||
HashMap<String, String> lang = new HashMap<String, String>();
|
||||
for (String key : host.lang.getSection("Lang").getKeys()) {
|
||||
if (host.lang.getSection("Lang").isString(key)) lang.put(key, host.lang.getSection("Lang").getString(key));
|
||||
}
|
||||
return lang;
|
||||
public Map<String, Map<String, String>> getLang() {
|
||||
if (Util.isNull(host.lang, host.lang.get())) throw new NullPointerException();
|
||||
return new LinkedHashMap<>(host.lang.get());
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets values from the SubServers Lang
|
||||
*
|
||||
* @param channel Lang Channel
|
||||
* @return Lang Values
|
||||
*/
|
||||
public Map<String, String> getLang(String channel) {
|
||||
if (Util.isNull(channel)) throw new NullPointerException();
|
||||
return getLang().get(channel.toLowerCase());
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a value from the SubServers Lang
|
||||
*
|
||||
* @param channel Lang Channel
|
||||
* @param key Key
|
||||
* @return Lang Value
|
||||
*/
|
||||
public String getLang(String channel, String key) {
|
||||
if (Util.isNull(channel, key)) throw new NullPointerException();
|
||||
return getLang(channel).get(key);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -82,7 +82,7 @@ public class SubCommand {
|
||||
new Command(null) {
|
||||
@Override
|
||||
public void command(String handle, String[] args) {
|
||||
host.subdata.sendPacket(new PacketDownloadServerList(null, json -> {
|
||||
host.subdata.sendPacket(new PacketDownloadServerList(null, null, json -> {
|
||||
int i = 0;
|
||||
boolean sent = false;
|
||||
String div = TextColor.RESET + ", ";
|
||||
|
88
SubServers.Sync/module_subservers.sync.xml
Normal file
88
SubServers.Sync/module_subservers.sync.xml
Normal file
@ -0,0 +1,88 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="module_subservers.sync" default="compile.module.subservers.sync">
|
||||
<dirname property="module.subservers.sync.basedir" file="${ant.file.module_subservers.sync}"/>
|
||||
|
||||
<property name="module.jdk.home.subservers.sync" value="${project.jdk.home}"/>
|
||||
<property name="module.jdk.bin.subservers.sync" value="${project.jdk.bin}"/>
|
||||
<property name="module.jdk.classpath.subservers.sync" value="${project.jdk.classpath}"/>
|
||||
|
||||
<property name="compiler.args.subservers.sync" value="-encoding UTF-8 -source 1.8 -target 1.8 ${compiler.args}"/>
|
||||
|
||||
<property name="subservers.sync.output.dir" value="${module.subservers.sync.basedir}/../out/compile/production/SubServers.Sync"/>
|
||||
<property name="subservers.sync.testoutput.dir" value="${module.subservers.sync.basedir}/../out/compile/test/SubServers.Sync"/>
|
||||
|
||||
<path id="subservers.sync.module.bootclasspath">
|
||||
<!-- Paths to be included in compilation bootclasspath -->
|
||||
</path>
|
||||
|
||||
<path id="subservers.sync.module.production.classpath">
|
||||
<path refid="${module.jdk.classpath.subservers.sync}"/>
|
||||
<pathelement location="${basedir}/../~lib/json.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/BungeeCord-1.8.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/RedisBungee.jar"/>
|
||||
</path>
|
||||
|
||||
<path id="subservers.sync.runtime.production.module.classpath">
|
||||
<pathelement location="${subservers.sync.output.dir}"/>
|
||||
<pathelement location="${basedir}/../~lib/json.jar"/>
|
||||
</path>
|
||||
|
||||
<path id="subservers.sync.module.classpath">
|
||||
<path refid="${module.jdk.classpath.subservers.sync}"/>
|
||||
<pathelement location="${subservers.sync.output.dir}"/>
|
||||
<pathelement location="${basedir}/../~lib/json.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/BungeeCord-1.8.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/RedisBungee.jar"/>
|
||||
</path>
|
||||
|
||||
<path id="subservers.sync.runtime.module.classpath">
|
||||
<pathelement location="${subservers.sync.testoutput.dir}"/>
|
||||
<pathelement location="${subservers.sync.output.dir}"/>
|
||||
<pathelement location="${basedir}/../~lib/json.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/BungeeCord-1.8.jar"/>
|
||||
<pathelement location="${basedir}/../~lib/RedisBungee.jar"/>
|
||||
</path>
|
||||
|
||||
|
||||
<patternset id="excluded.from.module.subservers.sync">
|
||||
<patternset refid="ignored.files"/>
|
||||
</patternset>
|
||||
|
||||
<patternset id="excluded.from.compilation.subservers.sync">
|
||||
<patternset refid="excluded.from.module.subservers.sync"/>
|
||||
</patternset>
|
||||
|
||||
<path id="subservers.sync.module.sourcepath">
|
||||
<dirset dir="${module.subservers.sync.basedir}">
|
||||
<include name="src"/>
|
||||
</dirset>
|
||||
</path>
|
||||
|
||||
|
||||
<target name="compile.module.subservers.sync" depends="compile.module.subservers.sync.production,compile.module.subservers.sync.tests" description="Compile module SubServers.Sync"/>
|
||||
|
||||
<target name="compile.module.subservers.sync.production" depends="register.custom.compilers" description="Compile module SubServers.Sync; production classes">
|
||||
<mkdir dir="${subservers.sync.output.dir}"/>
|
||||
<javac2 destdir="${subservers.sync.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.subservers.sync}/javac">
|
||||
<compilerarg line="${compiler.args.subservers.sync}"/>
|
||||
<bootclasspath refid="subservers.sync.module.bootclasspath"/>
|
||||
<classpath refid="subservers.sync.module.production.classpath"/>
|
||||
<src refid="subservers.sync.module.sourcepath"/>
|
||||
<patternset refid="excluded.from.compilation.subservers.sync"/>
|
||||
</javac2>
|
||||
|
||||
<copy todir="${subservers.sync.output.dir}">
|
||||
<fileset dir="${module.subservers.sync.basedir}/src">
|
||||
<patternset refid="compiler.resources"/>
|
||||
<type type="file"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="compile.module.subservers.sync.tests" depends="register.custom.compilers,compile.module.subservers.sync.production" description="compile module SubServers.Sync; test classes" unless="skip.tests"/>
|
||||
|
||||
<target name="clean.module.subservers.sync" description="cleanup module">
|
||||
<delete dir="${subservers.sync.output.dir}"/>
|
||||
<delete dir="${subservers.sync.testoutput.dir}"/>
|
||||
</target>
|
||||
</project>
|
Binary file not shown.
@ -0,0 +1,55 @@
|
||||
package net.ME1312.SubServers.Sync.Library.Compatibility;
|
||||
|
||||
import net.ME1312.SubServers.Sync.Library.NamedContainer;
|
||||
import net.md_5.bungee.api.CommandSender;
|
||||
import net.md_5.bungee.api.plugin.Command;
|
||||
import net.md_5.bungee.api.plugin.TabExecutor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Command Layout Class that implements all possible features (Base Version)
|
||||
*/
|
||||
public abstract class CommandX extends Command implements TabExecutor {
|
||||
|
||||
/**
|
||||
* Create a Command
|
||||
*
|
||||
* @param name Command Name
|
||||
*/
|
||||
public CommandX(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a Command
|
||||
*
|
||||
* @param name Command Name
|
||||
* @param permission Command Permission
|
||||
* @param aliases Command Aliases
|
||||
*/
|
||||
public CommandX(String name, String permission, String... aliases) {
|
||||
super(name, permission, aliases);
|
||||
}
|
||||
|
||||
/**
|
||||
* Suggest Arguments
|
||||
*
|
||||
* @param sender Sender
|
||||
* @param args Arguments (including the final unfinished one)
|
||||
* @return An Error Message (if there was one, otherwise null) and a List of Suggestions
|
||||
*/
|
||||
public abstract NamedContainer<String, List<String>> suggestArguments(CommandSender sender, String[] args);
|
||||
|
||||
/**
|
||||
* Override the BungeeCord Method of {@link #suggestArguments(CommandSender, String[])}
|
||||
*
|
||||
* @param sender Sender
|
||||
* @param args Arguments (including the final unfinished one)
|
||||
* @return A Collection of Suggestions
|
||||
*/
|
||||
@Override
|
||||
public Iterable<String> onTabComplete(CommandSender sender, String[] args) {
|
||||
return suggestArguments(sender, args).get();
|
||||
}
|
||||
}
|
@ -0,0 +1,74 @@
|
||||
package net.ME1312.SubServers.Sync.Library.Compatibility.v1_13;
|
||||
|
||||
import net.ME1312.SubServers.Sync.Library.NamedContainer;
|
||||
import net.md_5.bungee.api.CommandSender;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Command Layout Class that implements all possible features (1.13 Version)
|
||||
*/
|
||||
public class CommandX extends net.ME1312.SubServers.Sync.Library.Compatibility.CommandX/* implements TabValidator */ {
|
||||
public final net.ME1312.SubServers.Sync.Library.Compatibility.CommandX command;
|
||||
|
||||
/**
|
||||
* Create a Command
|
||||
*
|
||||
* @param other CommandX from previous version
|
||||
*/
|
||||
public CommandX(net.ME1312.SubServers.Sync.Library.Compatibility.CommandX other) {
|
||||
super(other.getName());
|
||||
command = other;
|
||||
}
|
||||
|
||||
/**
|
||||
* Override BungeeCord Method for the previously used one
|
||||
*
|
||||
* @param sender Sender
|
||||
* @param args Arguments
|
||||
*/
|
||||
@Override
|
||||
public void execute(CommandSender sender, String[] args) {
|
||||
command.execute(sender, args);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NamedContainer<String, List<String>> suggestArguments(CommandSender sender, String[] args) {
|
||||
return command.suggestArguments(sender, args);
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate a Command (Override for custom)
|
||||
*
|
||||
* @param sender Sender
|
||||
* @param command Command to validate
|
||||
* @return NamedContainer with a String error message and a Integer that represents where the command was deemed invalid
|
||||
*/
|
||||
public NamedContainer<String, Integer> validateCommand(CommandSender sender, String command) {
|
||||
List<NamedContainer<String, Integer>> split = new LinkedList<NamedContainer<String, Integer>>();
|
||||
String cmd = command;
|
||||
int i;
|
||||
while ((i = cmd.indexOf((int) ' ')) < 0) {
|
||||
i++;
|
||||
String arg = cmd.substring(i);
|
||||
split.add(new NamedContainer<>(arg.contains(" ")?arg.substring(0, arg.indexOf((int) ' ')):arg, i));
|
||||
cmd = arg;
|
||||
}
|
||||
|
||||
List<String> args = new LinkedList<String>();
|
||||
NamedContainer<String, Integer> response = null;
|
||||
i = 0;
|
||||
for (NamedContainer<String, Integer> arg : split) {
|
||||
if (i > 0) {
|
||||
args.add(arg.name());
|
||||
NamedContainer<String, List<String>> suggestions = suggestArguments(sender, args.toArray(new String[args.size() - 1]));
|
||||
if (suggestions.name() != null) response = new NamedContainer<>(suggestions.name(), arg.get());
|
||||
}
|
||||
i++;
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
// TODO Override the original validator method
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
package net.ME1312.SubServers.Sync.Network.Packet;
|
||||
|
||||
import net.ME1312.SubServers.Sync.Library.Config.YAMLSection;
|
||||
import net.ME1312.SubServers.Sync.Library.NamedContainer;
|
||||
import net.ME1312.SubServers.Sync.Library.Util;
|
||||
import net.ME1312.SubServers.Sync.Library.Version.Version;
|
||||
import net.ME1312.SubServers.Sync.Network.PacketIn;
|
||||
@ -8,6 +9,7 @@ import net.ME1312.SubServers.Sync.Network.PacketOut;
|
||||
import net.ME1312.SubServers.Sync.SubPlugin;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.Calendar;
|
||||
|
||||
/**
|
||||
@ -38,9 +40,15 @@ public class PacketDownloadLang implements PacketIn, PacketOut {
|
||||
|
||||
@Override
|
||||
public void execute(JSONObject data) {
|
||||
data.put("Updated", Calendar.getInstance().getTime().getTime());
|
||||
plugin.lang = new YAMLSection(data);
|
||||
System.out.println("SubData > Lang Settings Downloaded");
|
||||
try {
|
||||
Field f = SubPlugin.class.getDeclaredField("lang");
|
||||
f.setAccessible(true);
|
||||
f.set(plugin, new NamedContainer<>(Calendar.getInstance().getTime().getTime(), new YAMLSection(data.getJSONObject("Lang")).get()));
|
||||
f.setAccessible(false);
|
||||
System.out.println("SubData > Lang Settings Downloaded");
|
||||
} catch (IllegalAccessException | NoSuchFieldException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -16,6 +16,7 @@ import java.util.UUID;
|
||||
public class PacketDownloadServerList implements PacketIn, PacketOut {
|
||||
private static HashMap<String, JSONCallback[]> callbacks = new HashMap<String, JSONCallback[]>();
|
||||
private String host;
|
||||
private String group;
|
||||
private String id;
|
||||
|
||||
/**
|
||||
@ -27,11 +28,13 @@ public class PacketDownloadServerList implements PacketIn, PacketOut {
|
||||
* New PacketDownloadServerList (Out)
|
||||
*
|
||||
* @param host Host name (or null for all)
|
||||
* @param group Group name (or null for all)
|
||||
* @param callback Callbacks
|
||||
*/
|
||||
public PacketDownloadServerList(String host, JSONCallback... callback) {
|
||||
public PacketDownloadServerList(String host, String group, JSONCallback... callback) {
|
||||
if (Util.isNull((Object) callback)) throw new NullPointerException();
|
||||
this.host = host;
|
||||
this.group = group;
|
||||
this.id = Util.getNew(callbacks.keySet(), UUID::randomUUID).toString();
|
||||
callbacks.put(id, callback);
|
||||
}
|
||||
@ -41,6 +44,7 @@ public class PacketDownloadServerList implements PacketIn, PacketOut {
|
||||
JSONObject json = new JSONObject();
|
||||
json.put("id", id);
|
||||
if (host != null) json.put("host", host);
|
||||
if (group != null) json.put("group", group);
|
||||
return json;
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ public final class SubDataClient {
|
||||
|
||||
private void init() {
|
||||
plugin.subdata.sendPacket(new PacketDownloadLang(plugin));
|
||||
plugin.subdata.sendPacket(new PacketDownloadProxyInfo(proxy -> plugin.subdata.sendPacket(new PacketDownloadServerList(null, json -> {
|
||||
plugin.subdata.sendPacket(new PacketDownloadProxyInfo(proxy -> plugin.subdata.sendPacket(new PacketDownloadServerList(null, null, json -> {
|
||||
if (plugin.lastReload != proxy.getJSONObject("subservers").getLong("last-reload")) {
|
||||
System.out.println("SubServers > Resetting Server Data");
|
||||
plugin.servers.clear();
|
||||
|
@ -81,28 +81,37 @@ public final class SubAPI {
|
||||
return getServers().get(name.toLowerCase());
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a value from the SubServers Lang
|
||||
*
|
||||
* @param key Key
|
||||
* @return Lang Value
|
||||
*/
|
||||
public String getLang(String key) {
|
||||
if (Util.isNull(key)) throw new NullPointerException();
|
||||
return getLang().get(key);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the SubServers Lang
|
||||
*
|
||||
* @return SubServers Lang
|
||||
*/
|
||||
public Map<String, String> getLang() {
|
||||
HashMap<String, String> lang = new HashMap<String, String>();
|
||||
for (String key : plugin.lang.getSection("Lang").getKeys()) {
|
||||
if (plugin.lang.getSection("Lang").isString(key)) lang.put(key, plugin.lang.getSection("Lang").getString(key));
|
||||
}
|
||||
return lang;
|
||||
public Map<String, Map<String, String>> getLang() {
|
||||
if (Util.isNull(plugin.lang, plugin.lang.get())) throw new NullPointerException();
|
||||
return new LinkedHashMap<>(plugin.lang.get());
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets values from the SubServers Lang
|
||||
*
|
||||
* @param channel Lang Channel
|
||||
* @return Lang Values
|
||||
*/
|
||||
public Map<String, String> getLang(String channel) {
|
||||
if (Util.isNull(channel)) throw new NullPointerException();
|
||||
return getLang().get(channel.toLowerCase());
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a value from the SubServers Lang
|
||||
*
|
||||
* @param channel Lang Channel
|
||||
* @param key Key
|
||||
* @return Lang Value
|
||||
*/
|
||||
public String getLang(String channel, String key) {
|
||||
if (Util.isNull(channel, key)) throw new NullPointerException();
|
||||
return getLang(channel).get(key);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,6 @@
|
||||
package net.ME1312.SubServers.Sync;
|
||||
|
||||
import net.ME1312.SubServers.Sync.Library.Compatibility.CommandX;
|
||||
import net.ME1312.SubServers.Sync.Library.NamedContainer;
|
||||
import net.ME1312.SubServers.Sync.Library.Util;
|
||||
import net.ME1312.SubServers.Sync.Library.Version.Version;
|
||||
@ -29,16 +30,28 @@ import java.lang.reflect.InvocationTargetException;
|
||||
import java.net.URL;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public final class SubCommand extends Command {
|
||||
public final class SubCommand extends CommandX {
|
||||
private NamedContainer<Long, TreeMap<String, List<String>>> templateCache = new NamedContainer<Long, TreeMap<String, List<String>>>(0L, new TreeMap<String, List<String>>());
|
||||
private SubPlugin plugin;
|
||||
private String label;
|
||||
|
||||
public SubCommand(SubPlugin plugin, String label) {
|
||||
super(label);
|
||||
protected static NamedContainer<SubCommand, CommandX> newInstance(SubPlugin plugin, String command) {
|
||||
NamedContainer<SubCommand, CommandX> cmd = new NamedContainer<>(new SubCommand(plugin, command), null);
|
||||
CommandX now = cmd.name();
|
||||
if (plugin.api.getGameVersion().compareTo(new Version("1.13")) >= 0) {
|
||||
now = new net.ME1312.SubServers.Sync.Library.Compatibility.v1_13.CommandX(cmd.name());
|
||||
}
|
||||
cmd.set(now);
|
||||
return cmd;
|
||||
}
|
||||
|
||||
private SubCommand(SubPlugin plugin, String command) {
|
||||
super(command);
|
||||
this.plugin = plugin;
|
||||
this.label = '/' + label;
|
||||
this.label = '/' + command;
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -81,7 +94,7 @@ public final class SubCommand extends Command {
|
||||
}).start();
|
||||
}
|
||||
} else if (args[0].equalsIgnoreCase("list")) {
|
||||
plugin.subdata.sendPacket(new PacketDownloadServerList(null, json -> {
|
||||
plugin.subdata.sendPacket(new PacketDownloadServerList(null, null, json -> {
|
||||
int i = 0;
|
||||
boolean sent = false;
|
||||
String div = ChatColor.RESET + ", ";
|
||||
@ -377,17 +390,149 @@ public final class SubCommand extends Command {
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Suggest command arguments
|
||||
*
|
||||
* @param sender Sender
|
||||
* @param args Arguments
|
||||
* @return The validator's response and list of possible arguments
|
||||
*/
|
||||
public NamedContainer<String, List<String>> suggestArguments(CommandSender sender, String[] args) {
|
||||
String last = (args.length > 0)?args[args.length - 1].toLowerCase():"";
|
||||
if (args.length <= 1) {
|
||||
List<String> cmds = Arrays.asList("help", "list", "info", "status", "version", "start", "stop", "kill", "terminate", "cmd", "command", "create");
|
||||
if (last.length() == 0) {
|
||||
return new NamedContainer<>(null, cmds);
|
||||
} else {
|
||||
List<String> list = new ArrayList<String>();
|
||||
for (String cmd : cmds) {
|
||||
if (cmd.startsWith(last)) list.add(last + cmd.substring(last.length()));
|
||||
}
|
||||
return new NamedContainer<>((list.size() <= 0)?plugin.api.getLang("SubServers", "Command.Generic.Invalid-Subcommand").replace("$str$", args[0]):null, list);
|
||||
}
|
||||
} else {
|
||||
if (args[0].equals("info") || args[0].equals("status") ||
|
||||
args[0].equals("start") ||
|
||||
args[0].equals("stop") ||
|
||||
args[0].equals("kill") || args[0].equals("terminate")) {
|
||||
List<String> list = new ArrayList<String>();
|
||||
if (args.length == 2) {
|
||||
if (last.length() == 0) {
|
||||
for (Server server : plugin.api.getServers().values()) if (server instanceof SubServer) list.add(server.getName());
|
||||
} else {
|
||||
for (Server server : plugin.api.getServers().values()) {
|
||||
if (server instanceof SubServer && server.getName().toLowerCase().startsWith(last))
|
||||
list.add(last + server.getName().substring(last.length()));
|
||||
}
|
||||
}
|
||||
return new NamedContainer<>((list.size() <= 0)?plugin.api.getLang("SubServers", "Command.Generic.Unknown-SubServer").replace("$str$", args[0]):null, list);
|
||||
} else {
|
||||
return new NamedContainer<>(null, Collections.emptyList());
|
||||
}
|
||||
} else if (args[0].equals("cmd") || args[0].equals("command")) {
|
||||
if (args.length == 2) {
|
||||
List<String> list = new ArrayList<String>();
|
||||
if (last.length() == 0) {
|
||||
for (Server server : plugin.api.getServers().values()) if (server instanceof SubServer) list.add(server.getName());
|
||||
} else {
|
||||
for (Server server : plugin.api.getServers().values()) {
|
||||
if (server instanceof SubServer && server.getName().toLowerCase().startsWith(last)) list.add(last + server.getName().substring(last.length()));
|
||||
}
|
||||
}
|
||||
return new NamedContainer<>((list.size() <= 0)?plugin.api.getLang("SubServers", "Command.Generic.Unknown-SubServer").replace("$str$", args[0]):null, list);
|
||||
} else if (args.length == 3) {
|
||||
return new NamedContainer<>(null, Collections.singletonList("<Command>"));
|
||||
} else {
|
||||
return new NamedContainer<>(null, Collections.singletonList("[Args...]"));
|
||||
}
|
||||
} else if (args[0].equals("create")) {
|
||||
if (args.length == 2) {
|
||||
return new NamedContainer<>(null, Collections.singletonList("<Name>"));
|
||||
} else if (args.length == 3) {
|
||||
updateTemplateCache();
|
||||
List<String> list = new ArrayList<String>();
|
||||
if (templateCache.name() <= 0) {
|
||||
list.add("<Host>");
|
||||
} else if (last.length() == 0) {
|
||||
list.addAll(templateCache.get().keySet());
|
||||
} else {
|
||||
for (String host : templateCache.get().keySet()) {
|
||||
if (host.toLowerCase().startsWith(last)) list.add(last + host.substring(last.length()));
|
||||
}
|
||||
}
|
||||
return new NamedContainer<>((list.size() <= 0)?plugin.api.getLang("SubServers", "Command.Generic.Unknown-Host").replace("$str$", args[0]):null, list);
|
||||
} else if (args.length == 4) {
|
||||
updateTemplateCache();
|
||||
List<String> list = new ArrayList<String>();
|
||||
if (templateCache.name() <= 0 || !templateCache.get().keySet().contains(args[2].toLowerCase())) {
|
||||
list.add("<Template>");
|
||||
} else if (last.length() == 0) {
|
||||
list.addAll(templateCache.get().get(args[2].toLowerCase()));
|
||||
} else {
|
||||
for (String template : templateCache.get().get(args[2].toLowerCase())) {
|
||||
if (template.toLowerCase().startsWith(last)) list.add(last + template.substring(last.length()));
|
||||
}
|
||||
}
|
||||
return new NamedContainer<>((list.size() <= 0)?plugin.api.getLang("SubServers", "Command.Creator.Invalid-Template").replace("$str$", args[0]):null, list);
|
||||
} else if (args.length == 5) {
|
||||
if (last.length() > 0) {
|
||||
if (new Version("1.8").compareTo(new Version(last)) > 0) {
|
||||
return new NamedContainer<>(plugin.api.getLang("SubServers", "Command.Creator.Invalid-Version"), Collections.emptyList());
|
||||
}
|
||||
}
|
||||
return new NamedContainer<>(null, Collections.singletonList("<Version>"));
|
||||
} else if (args.length == 6) {
|
||||
if (last.length() > 0) {
|
||||
if (Util.isException(() -> Integer.parseInt(last)) || Integer.parseInt(last) <= 0 || Integer.parseInt(last) > 65535) {
|
||||
return new NamedContainer<>(plugin.api.getLang("SubServers", "Command.Creator.Invalid-Port"), Collections.emptyList());
|
||||
}
|
||||
}
|
||||
return new NamedContainer<>(null, Collections.singletonList("<Port>"));
|
||||
} else {
|
||||
return new NamedContainer<>(null, Collections.emptyList());
|
||||
}
|
||||
} else {
|
||||
return new NamedContainer<>(plugin.api.getLang("SubServers", "Command.Generic.Invalid-Subcommand").replace("$str$", args[0]), Collections.emptyList());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void updateTemplateCache() {
|
||||
if (Calendar.getInstance().getTime().getTime() - templateCache.name() >= TimeUnit.MINUTES.toMillis(5)) {
|
||||
plugin.subdata.sendPacket(new PacketDownloadServerList(null, null, (json) -> {
|
||||
TreeMap<String, List<String>> hosts = new TreeMap<String, List<String>>();
|
||||
for (String host : json.getJSONObject("hosts").keySet()) {
|
||||
List<String> templates = new ArrayList<String>();
|
||||
templates.addAll(json.getJSONObject("hosts").getJSONObject(host).getJSONObject("creator").getJSONObject("templates").keySet());
|
||||
hosts.put(host, templates);
|
||||
}
|
||||
templateCache.set(hosts);
|
||||
templateCache.rename(Calendar.getInstance().getTime().getTime());
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* BungeeCord /server
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public static final class BungeeServer extends Command implements TabExecutor {
|
||||
public static final class BungeeServer extends CommandX {
|
||||
private SubPlugin plugin;
|
||||
protected BungeeServer(SubPlugin plugin, String command) {
|
||||
private BungeeServer(SubPlugin plugin, String command) {
|
||||
super(command, "bungeecord.command.server");
|
||||
this.plugin = plugin;
|
||||
}
|
||||
|
||||
protected static NamedContainer<BungeeServer, CommandX> newInstance(SubPlugin plugin, String command) {
|
||||
NamedContainer<BungeeServer, CommandX> cmd = new NamedContainer<>(new BungeeServer(plugin, command), null);
|
||||
CommandX now = cmd.name();
|
||||
if (plugin.api.getGameVersion().compareTo(new Version("1.13")) >= 0) {
|
||||
now = new net.ME1312.SubServers.Sync.Library.Compatibility.v1_13.CommandX(cmd.name());
|
||||
}
|
||||
cmd.set(now);
|
||||
return cmd;
|
||||
}
|
||||
|
||||
/**
|
||||
* Override /server
|
||||
*
|
||||
@ -403,18 +548,18 @@ public final class SubCommand extends Command {
|
||||
if (servers.keySet().contains(args[0].toLowerCase())) {
|
||||
((ProxiedPlayer) sender).connect(servers.get(args[0].toLowerCase()));
|
||||
} else {
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Bungee.Server.Invalid", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Bungee.Server.Invalid"));
|
||||
}
|
||||
} else {
|
||||
int i = 0;
|
||||
TextComponent serverm = new TextComponent(ChatColor.RESET.toString());
|
||||
TextComponent div = new TextComponent(plugin.lang.getSection("Lang").getColoredString("Bungee.Server.Divider", '&'));
|
||||
TextComponent div = new TextComponent(plugin.api.getLang("SubServers", "Bungee.Server.Divider"));
|
||||
for (Server server : plugin.api.getServers().values()) {
|
||||
if (!server.isHidden() && (!(server instanceof SubServer) || ((SubServer) server).isRunning())) {
|
||||
if (i != 0) serverm.addExtra(div);
|
||||
TextComponent message = new TextComponent(plugin.lang.getSection("Lang").getColoredString("Bungee.Server.List", '&').replace("$str$", server.getDisplayName()));
|
||||
TextComponent message = new TextComponent(plugin.api.getLang("SubServers", "Bungee.Server.List").replace("$str$", server.getDisplayName()));
|
||||
try {
|
||||
message.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new TextComponent[]{new TextComponent(plugin.lang.getSection("Lang").getColoredString("Bungee.Server.Hover", '&').replace("$int$", Integer.toString((plugin.redis)?((Set<UUID>)plugin.redis("getPlayersOnServer", new NamedContainer<>(String.class, server.getName()))).size():server.getPlayers().size())))}));
|
||||
message.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new TextComponent[]{new TextComponent(plugin.api.getLang("SubServers", "Bungee.Server.Hover").replace("$int$", Integer.toString((plugin.redis)?((Set<UUID>)plugin.redis("getPlayersOnServer", new NamedContainer<>(String.class, server.getName()))).size():server.getPlayers().size())))}));
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
@ -424,37 +569,36 @@ public final class SubCommand extends Command {
|
||||
}
|
||||
}
|
||||
sender.sendMessages(
|
||||
plugin.lang.getSection("Lang").getColoredString("Bungee.Server.Current", '&').replace("$str$", ((ProxiedPlayer) sender).getServer().getInfo().getName()),
|
||||
plugin.lang.getSection("Lang").getColoredString("Bungee.Server.Available", '&'));
|
||||
plugin.api.getLang("SubServers", "Bungee.Server.Current").replace("$str$", ((ProxiedPlayer) sender).getServer().getInfo().getName()),
|
||||
plugin.api.getLang("SubServers", "Bungee.Server.Available"));
|
||||
sender.sendMessage(serverm);
|
||||
}
|
||||
} else {
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Command.Generic.Player-Only", '&'));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Command.Generic.Player-Only"));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Tab completer
|
||||
* Suggest command arguments
|
||||
*
|
||||
* @param sender Sender
|
||||
* @param args Arguments
|
||||
* @return Tab completes
|
||||
* @return The validator's response and list of possible arguments
|
||||
*/
|
||||
@Override
|
||||
public Iterable<String> onTabComplete(CommandSender sender, String[] args) {
|
||||
public NamedContainer<String, List<String>> suggestArguments(CommandSender sender, String[] args) {
|
||||
if (args.length <= 1) {
|
||||
String last = (args.length > 0)?args[args.length - 1].toLowerCase():"";
|
||||
if (last.length() == 0) {
|
||||
return plugin.getServers().keySet();
|
||||
return new NamedContainer<>(null, new LinkedList<>(plugin.getServers().keySet()));
|
||||
} else {
|
||||
List<String> list = new ArrayList<String>();
|
||||
for (String server : plugin.getServers().keySet()) {
|
||||
if (server.toLowerCase().startsWith(last)) list.add(server);
|
||||
}
|
||||
return list;
|
||||
return new NamedContainer<>((list.size() <= 0)?plugin.api.getLang("SubServers", "Bungee.Server.Invalid").replace("$str$", args[0]):null, list);
|
||||
}
|
||||
} else {
|
||||
return Collections.emptyList();
|
||||
return new NamedContainer<>(null, Collections.emptyList());
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -497,17 +641,17 @@ public final class SubCommand extends Command {
|
||||
players += playerlist.size();
|
||||
if (!server.isHidden() && (!(server instanceof SubServer) || ((SubServer) server).isRunning())) {
|
||||
int i = 0;
|
||||
String message = plugin.lang.getSection("Lang").getColoredString("Bungee.List.Format", '&').replace("$str$", server.getDisplayName()).replace("$int$", Integer.toString(playerlist.size()));
|
||||
String message = plugin.api.getLang("SubServers", "Bungee.List.Format").replace("$str$", server.getDisplayName()).replace("$int$", Integer.toString(playerlist.size()));
|
||||
for (String player : playerlist) {
|
||||
if (i != 0) message += plugin.lang.getSection("Lang").getColoredString("Bungee.List.Divider", '&');
|
||||
message += plugin.lang.getSection("Lang").getColoredString("Bungee.List.List", '&').replace("$str$", player);
|
||||
if (i != 0) message += plugin.api.getLang("SubServers", "Bungee.List.Divider");
|
||||
message += plugin.api.getLang("SubServers", "Bungee.List.List").replace("$str$", player);
|
||||
i++;
|
||||
}
|
||||
messages.add(message);
|
||||
}
|
||||
}
|
||||
sender.sendMessages(messages.toArray(new String[messages.size()]));
|
||||
sender.sendMessage(plugin.lang.getSection("Lang").getColoredString("Bungee.List.Total", '&').replace("$int$", Integer.toString(players)));
|
||||
sender.sendMessage(plugin.api.getLang("SubServers", "Bungee.List.Total").replace("$int$", Integer.toString(players)));
|
||||
}
|
||||
}
|
||||
}
|
@ -38,12 +38,12 @@ import java.util.concurrent.TimeUnit;
|
||||
* Main Plugin Class
|
||||
*/
|
||||
public final class SubPlugin extends BungeeCord implements Listener {
|
||||
protected NamedContainer<Long, Map<String, Map<String, String>>> lang = null;
|
||||
public final Map<String, Server> servers = new TreeMap<String, Server>();
|
||||
|
||||
public final PrintStream out;
|
||||
public final UniversalFile dir = new UniversalFile(new File(System.getProperty("user.dir")));
|
||||
public YAMLConfig config;
|
||||
public YAMLSection lang = null;
|
||||
public boolean redis = false;
|
||||
public final SubAPI api = new SubAPI(this);
|
||||
public SubDataClient subdata = null;
|
||||
@ -113,12 +113,12 @@ public final class SubPlugin extends BungeeCord implements Listener {
|
||||
private void post() {
|
||||
if (getPluginManager().getPlugin("RedisBungee") != null) redis = true;
|
||||
if (config.get().getSection("Settings").getBoolean("Override-Bungee-Commands", true)) {
|
||||
getPluginManager().registerCommand(null, new SubCommand.BungeeServer(this, "server"));
|
||||
getPluginManager().registerCommand(null, SubCommand.BungeeServer.newInstance(this, "server").get());
|
||||
getPluginManager().registerCommand(null, new SubCommand.BungeeList(this, "glist"));
|
||||
}
|
||||
getPluginManager().registerCommand(null, new SubCommand(this, "subservers"));
|
||||
getPluginManager().registerCommand(null, new SubCommand(this, "subserver"));
|
||||
getPluginManager().registerCommand(null, new SubCommand(this, "sub"));
|
||||
getPluginManager().registerCommand(null, SubCommand.newInstance(this, "subservers").get());
|
||||
getPluginManager().registerCommand(null, SubCommand.newInstance(this, "subserver").get());
|
||||
getPluginManager().registerCommand(null, SubCommand.newInstance(this, "sub").get());
|
||||
|
||||
new Metrics(this);
|
||||
new Timer().schedule(new TimerTask() {
|
||||
|
Loading…
Reference in New Issue
Block a user