Make Server API use existing fields from BungeeServerInfo

This commit is contained in:
ME1312 2018-01-12 16:56:22 -05:00
parent 7a5eac83fd
commit b72103c0f0
46 changed files with 251 additions and 357 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1176,10 +1176,6 @@
<dd>
<div class="block">Get the Keys</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>
@ -1188,6 +1184,10 @@
<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#getLangChannels--">getLangChannels()</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 current SubServers Lang Channels</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>
@ -1268,8 +1268,6 @@
<dd>
<div class="block">Gets the MOTD of the Server</div>
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getMotd--">getMotd()</a></span> - Method in class net.ME1312.SubServers.Bungee.Host.<a href="net/ME1312/SubServers/Bungee/Host/ServerContainer.html" title="class in net.ME1312.SubServers.Bungee.Host">ServerContainer</a></dt>
<dd>&nbsp;</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Event/SubCreateEvent.html#getName--">getName()</a></span> - Method in class net.ME1312.SubServers.Bungee.Event.<a href="net/ME1312/SubServers/Bungee/Event/SubCreateEvent.html" title="class in net.ME1312.SubServers.Bungee.Event">SubCreateEvent</a></dt>
<dd>
<div class="block">Get the name the SubServer will use</div>
@ -1994,8 +1992,6 @@
<dd>
<div class="block">Gets if the Server is Restricted</div>
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/ServerContainer.html#isRestricted--">isRestricted()</a></span> - Method in class net.ME1312.SubServers.Bungee.Host.<a href="net/ME1312/SubServers/Bungee/Host/ServerContainer.html" title="class in net.ME1312.SubServers.Bungee.Host">ServerContainer</a></dt>
<dd>&nbsp;</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/External/ExternalSubServer.html#isRunning--">isRunning()</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>&nbsp;</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/Internal/InternalSubServer.html#isRunning--">isRunning()</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>
@ -2518,7 +2514,7 @@
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/SubPlugin.html#redis">redis</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>&nbsp;</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/SubPlugin.html#redis-java.lang.String-net.ME1312.SubServers.Bungee.Library.NamedContainer...-">redis(String, NamedContainer&lt;Class&lt;T&gt;, ? extends T&gt;...)</a></span> - Method 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#redis-java.lang.String-net.ME1312.SubServers.Bungee.Library.NamedContainer...-">redis(String, NamedContainer&lt;Class&lt;?&gt;, ?&gt;...)</a></span> - Method 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>
<div class="block">Reference a RedisBungee method via reflection</div>
</dd>

View File

@ -357,14 +357,14 @@ extends <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubServerCo
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;net.ME1312.SubServers.Bungee.Host.<a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html" title="class in net.ME1312.SubServers.Bungee.Host">ServerContainer</a></h3>
<code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#addExtra-java.lang.String-java.lang.Object-">addExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#addGroup-java.lang.String-">addGroup</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getDisplayName--">getDisplayName</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getExtra--">getExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getExtra-java.lang.String-">getExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getGlobalPlayers--">getGlobalPlayers</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getGroups--">getGroups</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getMotd--">getMotd</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getSignature--">getSignature</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getSubData--">getSubData</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#hasExtra-java.lang.String-">hasExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#isHidden--">isHidden</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#isRestricted--">isRestricted</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#removeExtra-java.lang.String-">removeExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#removeGroup-java.lang.String-">removeGroup</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setHidden-boolean-">setHidden</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setMotd-java.lang.String-">setMotd</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setRestricted-boolean-">setRestricted</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setSubData-net.ME1312.SubServers.Bungee.Network.Client-">setSubData</a></code></li>
<code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#addExtra-java.lang.String-java.lang.Object-">addExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#addGroup-java.lang.String-">addGroup</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getDisplayName--">getDisplayName</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getExtra--">getExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getExtra-java.lang.String-">getExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getGlobalPlayers--">getGlobalPlayers</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getGroups--">getGroups</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getSignature--">getSignature</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getSubData--">getSubData</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#hasExtra-java.lang.String-">hasExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#isHidden--">isHidden</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#removeExtra-java.lang.String-">removeExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#removeGroup-java.lang.String-">removeGroup</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setHidden-boolean-">setHidden</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setMotd-java.lang.String-">setMotd</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setRestricted-boolean-">setRestricted</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setSubData-net.ME1312.SubServers.Bungee.Network.Client-">setSubData</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.net.md_5.bungee.BungeeServerInfo">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;net.md_5.bungee.BungeeServerInfo</h3>
<code>addPlayer, canAccess, equals, getAddress, getName, getPacketQueue, getPlayers, hashCode, ping, ping, removePlayer, sendData, sendData</code></li>
<code>addPlayer, canAccess, equals, getAddress, getMotd, getName, getPacketQueue, getPlayers, hashCode, isRestricted, ping, ping, removePlayer, sendData, sendData</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">

View File

@ -359,14 +359,14 @@ extends <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubServerCo
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;net.ME1312.SubServers.Bungee.Host.<a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html" title="class in net.ME1312.SubServers.Bungee.Host">ServerContainer</a></h3>
<code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#addExtra-java.lang.String-java.lang.Object-">addExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#addGroup-java.lang.String-">addGroup</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getDisplayName--">getDisplayName</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getExtra--">getExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getExtra-java.lang.String-">getExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getGlobalPlayers--">getGlobalPlayers</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getGroups--">getGroups</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getMotd--">getMotd</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getSignature--">getSignature</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getSubData--">getSubData</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#hasExtra-java.lang.String-">hasExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#isHidden--">isHidden</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#isRestricted--">isRestricted</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#removeExtra-java.lang.String-">removeExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#removeGroup-java.lang.String-">removeGroup</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setHidden-boolean-">setHidden</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setMotd-java.lang.String-">setMotd</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setRestricted-boolean-">setRestricted</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setSubData-net.ME1312.SubServers.Bungee.Network.Client-">setSubData</a></code></li>
<code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#addExtra-java.lang.String-java.lang.Object-">addExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#addGroup-java.lang.String-">addGroup</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getDisplayName--">getDisplayName</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getExtra--">getExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getExtra-java.lang.String-">getExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getGlobalPlayers--">getGlobalPlayers</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getGroups--">getGroups</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getSignature--">getSignature</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getSubData--">getSubData</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#hasExtra-java.lang.String-">hasExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#isHidden--">isHidden</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#removeExtra-java.lang.String-">removeExtra</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#removeGroup-java.lang.String-">removeGroup</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setHidden-boolean-">setHidden</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setMotd-java.lang.String-">setMotd</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setRestricted-boolean-">setRestricted</a>, <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setSubData-net.ME1312.SubServers.Bungee.Network.Client-">setSubData</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.net.md_5.bungee.BungeeServerInfo">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;net.md_5.bungee.BungeeServerInfo</h3>
<code>addPlayer, canAccess, equals, getAddress, getName, getPacketQueue, getPlayers, hashCode, ping, ping, removePlayer, sendData, sendData</code></li>
<code>addPlayer, canAccess, equals, getAddress, getMotd, getName, getPacketQueue, getPlayers, hashCode, isRestricted, ping, ping, removePlayer, sendData, sendData</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">

View File

@ -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};
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};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
@ -208,83 +208,71 @@ implements <a href="../../../../../net/ME1312/SubServers/Bungee/Host/Server.html
</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/Bungee/Host/ServerContainer.html#getMotd--">getMotd</a></span>()</code>
<div class="block">Gets the MOTD of the Server</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/Bungee/Host/ServerContainer.html#getSignature--">getSignature</a></span>()</code>
<div class="block">Get the Signature of this Object</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/ServerContainer.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>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#hasExtra-java.lang.String-">hasExtra</a></span>(java.lang.String&nbsp;handle)</code>
<div class="block">Determine if an extra value exists</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/ServerContainer.html#isHidden--">isHidden</a></span>()</code>
<div class="block">If the server is hidden from players</div>
</td>
</tr>
<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/ServerContainer.html#isRestricted--">isRestricted</a></span>()</code>
<div class="block">Gets if the Server is Restricted</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#removeExtra-java.lang.String-">removeExtra</a></span>(java.lang.String&nbsp;handle)</code>
<div class="block">Remove an extra value from this Server</div>
</td>
</tr>
<tr id="i14" class="altColor">
<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/ServerContainer.html#removeGroup-java.lang.String-">removeGroup</a></span>(java.lang.String&nbsp;value)</code>
<div class="block">Remove this Server from a Group</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<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/ServerContainer.html#setDisplayName-java.lang.String-">setDisplayName</a></span>(java.lang.String&nbsp;value)</code>
<div class="block">Sets the Display Name for this Server</div>
</td>
</tr>
<tr id="i16" class="altColor">
<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/ServerContainer.html#setHidden-boolean-">setHidden</a></span>(boolean&nbsp;value)</code>
<div class="block">Set if the server is hidden from players</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<tr id="i15" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setMotd-java.lang.String-">setMotd</a></span>(java.lang.String&nbsp;value)</code>
<div class="block">Sets the MOTD of the Server</div>
</td>
</tr>
<tr id="i18" class="altColor">
<tr id="i16" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setRestricted-boolean-">setRestricted</a></span>(boolean&nbsp;value)</code>
<div class="block">Sets if the Server is Restricted</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<tr id="i17" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.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>&nbsp;client)</code>
<div class="block">Link a SubData Client to this Object</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/ServerContainer.html#toString--">toString</a></span>()</code>&nbsp;</td>
</tr>
@ -294,7 +282,7 @@ implements <a href="../../../../../net/ME1312/SubServers/Bungee/Host/Server.html
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;net.md_5.bungee.BungeeServerInfo</h3>
<code>addPlayer, canAccess, equals, getAddress, getName, getPacketQueue, getPlayers, hashCode, ping, ping, removePlayer, sendData, sendData</code></li>
<code>addPlayer, canAccess, equals, getAddress, getMotd, getName, getPacketQueue, getPlayers, hashCode, isRestricted, ping, ping, removePlayer, sendData, sendData</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
@ -304,6 +292,13 @@ implements <a href="../../../../../net/ME1312/SubServers/Bungee/Host/Server.html
<code>getClass, notify, notifyAll, wait, wait, wait</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.net.ME1312.SubServers.Bungee.Host.Server">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;net.ME1312.SubServers.Bungee.Host.<a href="../../../../../net/ME1312/SubServers/Bungee/Host/Server.html" title="interface in net.ME1312.SubServers.Bungee.Host">Server</a></h3>
<code><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Server.html#getMotd--">getMotd</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/Server.html#isRestricted--">isRestricted</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.net.md_5.bungee.api.config.ServerInfo">
<!-- -->
</a>
@ -522,27 +517,6 @@ implements <a href="../../../../../net/ME1312/SubServers/Bungee/Host/Server.html
</dl>
</li>
</ul>
<a name="getMotd--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMotd</h4>
<pre>public&nbsp;java.lang.String&nbsp;getMotd()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Server.html#getMotd--">Server</a></code></span></div>
<div class="block">Gets the MOTD of the Server</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getMotd</code>&nbsp;in interface&nbsp;<code>net.md_5.bungee.api.config.ServerInfo</code></dd>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Server.html#getMotd--">getMotd</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Server.html" title="interface in net.ME1312.SubServers.Bungee.Host">Server</a></code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>getMotd</code>&nbsp;in class&nbsp;<code>net.md_5.bungee.BungeeServerInfo</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Server MOTD</dd>
</dl>
</li>
</ul>
<a name="setMotd-java.lang.String-">
<!-- -->
</a>
@ -560,25 +534,6 @@ implements <a href="../../../../../net/ME1312/SubServers/Bungee/Host/Server.html
</dl>
</li>
</ul>
<a name="isRestricted--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isRestricted</h4>
<pre>public&nbsp;boolean&nbsp;isRestricted()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Server.html#isRestricted--">Server</a></code></span></div>
<div class="block">Gets if the Server is Restricted</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Server.html#isRestricted--">isRestricted</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../net/ME1312/SubServers/Bungee/Host/Server.html" title="interface in net.ME1312.SubServers.Bungee.Host">Server</a></code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>isRestricted</code>&nbsp;in class&nbsp;<code>net.md_5.bungee.BungeeServerInfo</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Restricted Status</dd>
</dl>
</li>
</ul>
<a name="setRestricted-boolean-">
<!-- -->
</a>

View File

@ -256,14 +256,14 @@ implements <a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubServer.h
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;net.ME1312.SubServers.Bungee.Host.<a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html" title="class in net.ME1312.SubServers.Bungee.Host">ServerContainer</a></h3>
<code><a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#addExtra-java.lang.String-java.lang.Object-">addExtra</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#addGroup-java.lang.String-">addGroup</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getDisplayName--">getDisplayName</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getExtra--">getExtra</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getExtra-java.lang.String-">getExtra</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getGlobalPlayers--">getGlobalPlayers</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getGroups--">getGroups</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getMotd--">getMotd</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getSignature--">getSignature</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getSubData--">getSubData</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#hasExtra-java.lang.String-">hasExtra</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#isHidden--">isHidden</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#isRestricted--">isRestricted</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#removeExtra-java.lang.String-">removeExtra</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#removeGroup-java.lang.String-">removeGroup</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setDisplayName-java.lang.String-">setDisplayName</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setHidden-boolean-">setHidden</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setMotd-java.lang.String-">setMotd</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setRestricted-boolean-">setRestricted</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setSubData-net.ME1312.SubServers.Bungee.Network.Client-">setSubData</a></code></li>
<code><a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#addExtra-java.lang.String-java.lang.Object-">addExtra</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#addGroup-java.lang.String-">addGroup</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getDisplayName--">getDisplayName</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getExtra--">getExtra</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getExtra-java.lang.String-">getExtra</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getGlobalPlayers--">getGlobalPlayers</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getGroups--">getGroups</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getSignature--">getSignature</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#getSubData--">getSubData</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#hasExtra-java.lang.String-">hasExtra</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#isHidden--">isHidden</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#removeExtra-java.lang.String-">removeExtra</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#removeGroup-java.lang.String-">removeGroup</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setDisplayName-java.lang.String-">setDisplayName</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setHidden-boolean-">setHidden</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setMotd-java.lang.String-">setMotd</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setRestricted-boolean-">setRestricted</a>, <a href="../../../../../net/ME1312/SubServers/Bungee/Host/ServerContainer.html#setSubData-net.ME1312.SubServers.Bungee.Network.Client-">setSubData</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.net.md_5.bungee.BungeeServerInfo">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;net.md_5.bungee.BungeeServerInfo</h3>
<code>addPlayer, canAccess, equals, getAddress, getName, getPacketQueue, getPlayers, hashCode, ping, ping, removePlayer, sendData, sendData</code></li>
<code>addPlayer, canAccess, equals, getAddress, getMotd, getName, getPacketQueue, getPlayers, hashCode, isRestricted, ping, ping, removePlayer, sendData, sendData</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">

View File

@ -321,24 +321,24 @@ extends java.lang.Object</pre>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>java.util.Map&lt;java.lang.String,java.util.Map&lt;java.lang.String,java.lang.String&gt;&gt;</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.util.Map&lt;java.lang.String,java.lang.String&gt;</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&nbsp;channel)</code>
<div class="block">Gets values from the SubServers Lang</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<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-java.lang.String-">getLang</a></span>(java.lang.String&nbsp;channel,
java.lang.String&nbsp;key)</code>
<div class="block">Gets a value from the SubServers Lang</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>java.util.Collection&lt;java.lang.String&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getLangChannels--">getLangChannels</a></span>()</code>
<div class="block">Gets the current SubServers Lang Channels</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>java.util.Map&lt;java.lang.String,java.util.List&lt;<a href="../../../../net/ME1312/SubServers/Bungee/Host/Server.html" title="interface in net.ME1312.SubServers.Bungee.Host">Server</a>&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getLowercaseGroups--">getLowercaseGroups</a></span>()</code>
@ -551,20 +551,6 @@ public&nbsp;<a href="../../../../net/ME1312/SubServers/Bungee/SubPlugin.html" ti
</dl>
</li>
</ul>
<a name="getHostDrivers--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHostDrivers</h4>
<pre>public&nbsp;java.util.List&lt;java.lang.String&gt;&nbsp;getHostDrivers()</pre>
<div class="block">Get a list of all available Host Drivers</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Host Driver handle list</dd>
</dl>
</li>
</ul>
<a name="addHostDriver-java.lang.Class-java.lang.String-">
<!-- -->
</a>
@ -581,6 +567,20 @@ public&nbsp;<a href="../../../../net/ME1312/SubServers/Bungee/SubPlugin.html" ti
</dl>
</li>
</ul>
<a name="getHostDrivers--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHostDrivers</h4>
<pre>public&nbsp;java.util.List&lt;java.lang.String&gt;&nbsp;getHostDrivers()</pre>
<div class="block">Get a list of all available Host Drivers</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Host Driver handle list</dd>
</dl>
</li>
</ul>
<a name="getHosts--">
<!-- -->
</a>
@ -1115,17 +1115,17 @@ public&nbsp;<a href="../../../../net/ME1312/SubServers/Bungee/SubPlugin.html" ti
</dl>
</li>
</ul>
<a name="getLang--">
<a name="getLangChannels--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLang</h4>
<pre>public&nbsp;java.util.Map&lt;java.lang.String,java.util.Map&lt;java.lang.String,java.lang.String&gt;&gt;&nbsp;getLang()</pre>
<div class="block">Gets the SubServers Lang</div>
<h4>getLangChannels</h4>
<pre>public&nbsp;java.util.Collection&lt;java.lang.String&gt;&nbsp;getLangChannels()</pre>
<div class="block">Gets the current SubServers Lang Channels</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>SubServers Lang</dd>
<dd>SubServers Lang Channel list</dd>
</dl>
</li>
</ul>

View File

@ -244,7 +244,7 @@ implements net.md_5.bungee.api.plugin.Listener</pre>
<tr id="i4" class="altColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;java.lang.Object</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubPlugin.html#redis-java.lang.String-net.ME1312.SubServers.Bungee.Library.NamedContainer...-">redis</a></span>(java.lang.String&nbsp;method,
<a href="../../../../net/ME1312/SubServers/Bungee/Library/NamedContainer.html" title="class in net.ME1312.SubServers.Bungee.Library">NamedContainer</a>&lt;java.lang.Class&lt;T&gt;,? extends T&gt;...&nbsp;args)</code>
<a href="../../../../net/ME1312/SubServers/Bungee/Library/NamedContainer.html" title="class in net.ME1312.SubServers.Bungee.Library">NamedContainer</a>&lt;java.lang.Class&lt;?&gt;,?&gt;...&nbsp;args)</code>
<div class="block">Reference a RedisBungee method via reflection</div>
</td>
</tr>
@ -487,7 +487,7 @@ implements net.md_5.bungee.api.plugin.Listener</pre>
<li class="blockList">
<h4>redis</h4>
<pre>public&nbsp;&lt;T&gt;&nbsp;java.lang.Object&nbsp;redis(java.lang.String&nbsp;method,
<a href="../../../../net/ME1312/SubServers/Bungee/Library/NamedContainer.html" title="class in net.ME1312.SubServers.Bungee.Library">NamedContainer</a>&lt;java.lang.Class&lt;T&gt;,? extends T&gt;...&nbsp;args)
<a href="../../../../net/ME1312/SubServers/Bungee/Library/NamedContainer.html" title="class in net.ME1312.SubServers.Bungee.Library">NamedContainer</a>&lt;java.lang.Class&lt;?&gt;,?&gt;...&nbsp;args)
throws java.lang.NoSuchMethodException,
java.lang.reflect.InvocationTargetException,
java.lang.IllegalAccessException</pre>

Binary file not shown.

View File

@ -717,10 +717,6 @@
<dd>
<div class="block">Get the Keys</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>
@ -729,6 +725,10 @@
<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#getLangChannels--">getLangChannels()</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 current SubServers Lang Channels</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>

View File

@ -167,24 +167,24 @@ extends java.lang.Object</pre>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>java.util.Map&lt;java.lang.String,java.util.Map&lt;java.lang.String,java.lang.String&gt;&gt;</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.util.Map&lt;java.lang.String,java.lang.String&gt;</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&nbsp;channel)</code>
<div class="block">Gets values from the SubServers Lang</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/Client/Bukkit/SubAPI.html#getLang-java.lang.String-java.lang.String-">getLang</a></span>(java.lang.String&nbsp;channel,
java.lang.String&nbsp;key)</code>
<div class="block">Gets a value from the SubServers Lang</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>java.util.Collection&lt;java.lang.String&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Client/Bukkit/SubAPI.html#getLangChannels--">getLangChannels</a></span>()</code>
<div class="block">Gets the current SubServers Lang Channels</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>
@ -289,17 +289,17 @@ public&nbsp;<a href="../../../../../net/ME1312/SubServers/Client/Bukkit/SubPlugi
</dl>
</li>
</ul>
<a name="getLang--">
<a name="getLangChannels--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLang</h4>
<pre>public&nbsp;java.util.Map&lt;java.lang.String,java.util.Map&lt;java.lang.String,java.lang.String&gt;&gt;&nbsp;getLang()</pre>
<div class="block">Gets the SubServers Lang</div>
<h4>getLangChannels</h4>
<pre>public&nbsp;java.util.Collection&lt;java.lang.String&gt;&nbsp;getLangChannels()</pre>
<div class="block">Gets the current SubServers Lang Channels</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>SubServers Lang</dd>
<dd>SubServers Lang Channel list</dd>
</dl>
</li>
</ul>
@ -315,7 +315,7 @@ public&nbsp;<a href="../../../../../net/ME1312/SubServers/Client/Bukkit/SubPlugi
<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>
<dd>Lang Value</dd>
</dl>
</li>
</ul>
@ -333,7 +333,7 @@ public&nbsp;<a href="../../../../../net/ME1312/SubServers/Client/Bukkit/SubPlugi
<dd><code>channel</code> - Lang Channel</dd>
<dd><code>key</code> - Key</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Lang Value</dd>
<dd>Lang Values</dd>
</dl>
</li>
</ul>

Binary file not shown.

View File

@ -817,10 +817,6 @@
<dd>
<div class="block">Get the Keys</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>
@ -829,6 +825,10 @@
<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#getLangChannels--">getLangChannels()</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 current SubServers Lang Channels</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>

View File

@ -174,24 +174,24 @@ extends java.lang.Object</pre>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>java.util.Map&lt;java.lang.String,java.util.Map&lt;java.lang.String,java.lang.String&gt;&gt;</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.util.Map&lt;java.lang.String,java.lang.String&gt;</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&nbsp;channel)</code>
<div class="block">Gets values from the SubServers Lang</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<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-java.lang.String-">getLang</a></span>(java.lang.String&nbsp;channel,
java.lang.String&nbsp;key)</code>
<div class="block">Gets a value from the SubServers Lang</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>java.util.Collection&lt;java.lang.String&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Host/SubAPI.html#getLangChannels--">getLangChannels</a></span>()</code>
<div class="block">Gets the current SubServers Lang Channels</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&nbsp;plugin)</code>
@ -539,17 +539,17 @@ public&nbsp;<a href="../../../../net/ME1312/SubServers/Host/ExHost.html" title="
</dl>
</li>
</ul>
<a name="getLang--">
<a name="getLangChannels--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLang</h4>
<pre>public&nbsp;java.util.Map&lt;java.lang.String,java.util.Map&lt;java.lang.String,java.lang.String&gt;&gt;&nbsp;getLang()</pre>
<div class="block">Gets the SubServers Lang</div>
<h4>getLangChannels</h4>
<pre>public&nbsp;java.util.Collection&lt;java.lang.String&gt;&nbsp;getLangChannels()</pre>
<div class="block">Gets the current SubServers Lang Channels</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>SubServers Lang</dd>
<dd>SubServers Lang Channel list</dd>
</dl>
</li>
</ul>
@ -565,7 +565,7 @@ public&nbsp;<a href="../../../../net/ME1312/SubServers/Host/ExHost.html" title="
<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>
<dd>Lang Value</dd>
</dl>
</li>
</ul>
@ -583,7 +583,7 @@ public&nbsp;<a href="../../../../net/ME1312/SubServers/Host/ExHost.html" title="
<dd><code>channel</code> - Lang Channel</dd>
<dd><code>key</code> - Key</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Lang Value</dd>
<dd>Lang Values</dd>
</dl>
</li>
</ul>

Binary file not shown.

View File

@ -651,10 +651,6 @@
<dd>
<div class="block">Get the Keys</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>
@ -663,6 +659,10 @@
<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#getLangChannels--">getLangChannels()</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 current SubServers Lang Channels</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>
@ -691,10 +691,6 @@
<dd>
<div class="block">Get a Long List by Handle</div>
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/Server/Server.html#getMotd--">getMotd()</a></span> - Method in class net.ME1312.SubServers.Sync.Server.<a href="net/ME1312/SubServers/Sync/Server/Server.html" title="class in net.ME1312.SubServers.Sync.Server">Server</a></dt>
<dd>
<div class="block">Gets the MOTD of the Server</div>
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/Event/SubCreateEvent.html#getName--">getName()</a></span> - Method in class net.ME1312.SubServers.Sync.Event.<a href="net/ME1312/SubServers/Sync/Event/SubCreateEvent.html" title="class in net.ME1312.SubServers.Sync.Event">SubCreateEvent</a></dt>
<dd>
<div class="block">Get the name the SubServer will use</div>
@ -1067,10 +1063,6 @@
<dd>
<div class="block">Gets if the edit is permanent</div>
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/Server/Server.html#isRestricted--">isRestricted()</a></span> - Method in class net.ME1312.SubServers.Sync.Server.<a href="net/ME1312/SubServers/Sync/Server/Server.html" title="class in net.ME1312.SubServers.Sync.Server">Server</a></dt>
<dd>
<div class="block">Gets if the Server is Restricted</div>
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/Server/SubServer.html#isRunning--">isRunning()</a></span> - Method in class net.ME1312.SubServers.Sync.Server.<a href="net/ME1312/SubServers/Sync/Server/SubServer.html" title="class in net.ME1312.SubServers.Sync.Server">SubServer</a></dt>
<dd>
<div class="block">Gets the Running Status</div>
@ -1369,7 +1361,7 @@
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/SubPlugin.html#redis">redis</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>&nbsp;</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/SubPlugin.html#redis-java.lang.String-net.ME1312.SubServers.Sync.Library.NamedContainer...-">redis(String, NamedContainer&lt;Class&lt;T&gt;, ? extends T&gt;...)</a></span> - Method in class net.ME1312.SubServers.Sync.<a href="net/ME1312/SubServers/Sync/SubPlugin.html" title="class in net.ME1312.SubServers.Sync">SubPlugin</a></dt>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Sync/SubPlugin.html#redis-java.lang.String-net.ME1312.SubServers.Sync.Library.NamedContainer...-">redis(String, NamedContainer&lt;Class&lt;?&gt;, ?&gt;...)</a></span> - Method 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>
<div class="block">Reference a RedisBungee method via reflection</div>
</dd>

View File

@ -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};
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
@ -172,47 +172,35 @@ extends net.md_5.bungee.BungeeServerInfo</pre>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#getMotd--">getMotd</a></span>()</code>
<div class="block">Gets the MOTD of the Server</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#getSignature--">getSignature</a></span>()</code>
<div class="block">Get the Signature of this Object</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<tr id="i2" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#isHidden--">isHidden</a></span>()</code>
<div class="block">If the server is hidden from players</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#isRestricted--">isRestricted</a></span>()</code>
<div class="block">Gets if the Server is Restricted</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<tr id="i3" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#setDisplayName-java.lang.String-">setDisplayName</a></span>(java.lang.String&nbsp;value)</code>
<div class="block">Sets the Display Name for this Server</div>
</td>
</tr>
<tr id="i6" class="altColor">
<tr id="i4" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#setHidden-boolean-">setHidden</a></span>(boolean&nbsp;value)</code>
<div class="block">Set if the server is hidden from players</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<tr id="i5" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#setMotd-java.lang.String-">setMotd</a></span>(java.lang.String&nbsp;value)</code>
<div class="block">Sets the MOTD of the Server</div>
</td>
</tr>
<tr id="i8" class="altColor">
<tr id="i6" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#setRestricted-boolean-">setRestricted</a></span>(boolean&nbsp;value)</code>
<div class="block">Sets if the Server is Restricted</div>
@ -224,7 +212,7 @@ extends net.md_5.bungee.BungeeServerInfo</pre>
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;net.md_5.bungee.BungeeServerInfo</h3>
<code>addPlayer, canAccess, equals, getAddress, getName, getPacketQueue, getPlayers, hashCode, ping, ping, removePlayer, sendData, sendData, toString</code></li>
<code>addPlayer, canAccess, equals, getAddress, getMotd, getName, getPacketQueue, getPlayers, hashCode, isRestricted, ping, ping, removePlayer, sendData, sendData, toString</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
@ -326,24 +314,6 @@ extends net.md_5.bungee.BungeeServerInfo</pre>
</dl>
</li>
</ul>
<a name="getMotd--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMotd</h4>
<pre>public&nbsp;java.lang.String&nbsp;getMotd()</pre>
<div class="block">Gets the MOTD of the Server</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getMotd</code>&nbsp;in interface&nbsp;<code>net.md_5.bungee.api.config.ServerInfo</code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>getMotd</code>&nbsp;in class&nbsp;<code>net.md_5.bungee.BungeeServerInfo</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Server MOTD</dd>
</dl>
</li>
</ul>
<a name="setMotd-java.lang.String-">
<!-- -->
</a>
@ -358,22 +328,6 @@ extends net.md_5.bungee.BungeeServerInfo</pre>
</dl>
</li>
</ul>
<a name="isRestricted--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isRestricted</h4>
<pre>public&nbsp;boolean&nbsp;isRestricted()</pre>
<div class="block">Gets if the Server is Restricted</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>isRestricted</code>&nbsp;in class&nbsp;<code>net.md_5.bungee.BungeeServerInfo</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Restricted Status</dd>
</dl>
</li>
</ul>
<a name="setRestricted-boolean-">
<!-- -->
</a>

View File

@ -184,14 +184,14 @@ extends <a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html" t
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;net.ME1312.SubServers.Sync.Server.<a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html" title="class in net.ME1312.SubServers.Sync.Server">Server</a></h3>
<code><a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#getDisplayName--">getDisplayName</a>, <a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#getMotd--">getMotd</a>, <a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#getSignature--">getSignature</a>, <a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#isHidden--">isHidden</a>, <a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#isRestricted--">isRestricted</a>, <a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#setDisplayName-java.lang.String-">setDisplayName</a>, <a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#setHidden-boolean-">setHidden</a>, <a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#setMotd-java.lang.String-">setMotd</a>, <a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#setRestricted-boolean-">setRestricted</a></code></li>
<code><a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#getDisplayName--">getDisplayName</a>, <a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#getSignature--">getSignature</a>, <a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#isHidden--">isHidden</a>, <a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#setDisplayName-java.lang.String-">setDisplayName</a>, <a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#setHidden-boolean-">setHidden</a>, <a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#setMotd-java.lang.String-">setMotd</a>, <a href="../../../../../net/ME1312/SubServers/Sync/Server/Server.html#setRestricted-boolean-">setRestricted</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.net.md_5.bungee.BungeeServerInfo">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;net.md_5.bungee.BungeeServerInfo</h3>
<code>addPlayer, canAccess, equals, getAddress, getName, getPacketQueue, getPlayers, hashCode, ping, ping, removePlayer, sendData, sendData, toString</code></li>
<code>addPlayer, canAccess, equals, getAddress, getMotd, getName, getPacketQueue, getPlayers, hashCode, isRestricted, ping, ping, removePlayer, sendData, sendData, toString</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">

View File

@ -162,24 +162,24 @@ extends java.lang.Object</pre>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>java.util.Map&lt;java.lang.String,java.util.Map&lt;java.lang.String,java.lang.String&gt;&gt;</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.util.Map&lt;java.lang.String,java.lang.String&gt;</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&nbsp;channel)</code>
<div class="block">Gets values from the SubServers Lang</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/Sync/SubAPI.html#getLang-java.lang.String-java.lang.String-">getLang</a></span>(java.lang.String&nbsp;channel,
java.lang.String&nbsp;key)</code>
<div class="block">Gets a value from the SubServers Lang</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>java.util.Collection&lt;java.lang.String&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubAPI.html#getLangChannels--">getLangChannels</a></span>()</code>
<div class="block">Gets the current SubServers Lang Channels</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>
@ -328,17 +328,17 @@ public&nbsp;<a href="../../../../net/ME1312/SubServers/Sync/SubPlugin.html" titl
</dl>
</li>
</ul>
<a name="getLang--">
<a name="getLangChannels--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLang</h4>
<pre>public&nbsp;java.util.Map&lt;java.lang.String,java.util.Map&lt;java.lang.String,java.lang.String&gt;&gt;&nbsp;getLang()</pre>
<div class="block">Gets the SubServers Lang</div>
<h4>getLangChannels</h4>
<pre>public&nbsp;java.util.Collection&lt;java.lang.String&gt;&nbsp;getLangChannels()</pre>
<div class="block">Gets the current SubServers Lang Channels</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>SubServers Lang</dd>
<dd>SubServers Lang Channel list</dd>
</dl>
</li>
</ul>
@ -354,7 +354,7 @@ public&nbsp;<a href="../../../../net/ME1312/SubServers/Sync/SubPlugin.html" titl
<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>
<dd>Lang Value</dd>
</dl>
</li>
</ul>
@ -372,7 +372,7 @@ public&nbsp;<a href="../../../../net/ME1312/SubServers/Sync/SubPlugin.html" titl
<dd><code>channel</code> - Lang Channel</dd>
<dd><code>key</code> - Key</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Lang Value</dd>
<dd>Lang Values</dd>
</dl>
</li>
</ul>

View File

@ -240,7 +240,7 @@ implements net.md_5.bungee.api.plugin.Listener</pre>
<tr id="i6" class="altColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;java.lang.Object</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Sync/SubPlugin.html#redis-java.lang.String-net.ME1312.SubServers.Sync.Library.NamedContainer...-">redis</a></span>(java.lang.String&nbsp;method,
<a href="../../../../net/ME1312/SubServers/Sync/Library/NamedContainer.html" title="class in net.ME1312.SubServers.Sync.Library">NamedContainer</a>&lt;java.lang.Class&lt;T&gt;,? extends T&gt;...&nbsp;args)</code>
<a href="../../../../net/ME1312/SubServers/Sync/Library/NamedContainer.html" title="class in net.ME1312.SubServers.Sync.Library">NamedContainer</a>&lt;java.lang.Class&lt;?&gt;,?&gt;...&nbsp;args)</code>
<div class="block">Reference a RedisBungee method via reflection</div>
</td>
</tr>
@ -427,7 +427,7 @@ implements net.md_5.bungee.api.plugin.Listener</pre>
<li class="blockList">
<h4>redis</h4>
<pre>public&nbsp;&lt;T&gt;&nbsp;java.lang.Object&nbsp;redis(java.lang.String&nbsp;method,
<a href="../../../../net/ME1312/SubServers/Sync/Library/NamedContainer.html" title="class in net.ME1312.SubServers.Sync.Library">NamedContainer</a>&lt;java.lang.Class&lt;T&gt;,? extends T&gt;...&nbsp;args)
<a href="../../../../net/ME1312/SubServers/Sync/Library/NamedContainer.html" title="class in net.ME1312.SubServers.Sync.Library">NamedContainer</a>&lt;java.lang.Class&lt;?&gt;,?&gt;...&nbsp;args)
throws java.lang.NoSuchMethodException,
java.lang.reflect.InvocationTargetException,
java.lang.IllegalAccessException</pre>

Binary file not shown.

View File

@ -10,6 +10,7 @@ import net.ME1312.SubServers.Bungee.Library.NamedContainer;
import net.ME1312.SubServers.Bungee.Library.Util;
import net.ME1312.SubServers.Bungee.Network.Packet.PacketExUpdateServer;
import net.ME1312.SubServers.Bungee.SubAPI;
import net.md_5.bungee.BungeeServerInfo;
import java.io.File;
import java.lang.reflect.Field;
@ -267,7 +268,7 @@ public class ExternalSubServer extends SubServerContainer {
break;
case "motd":
if (value.isString()) {
Field f = ServerContainer.class.getDeclaredField("motd");
Field f = BungeeServerInfo.class.getDeclaredField("motd");
f.setAccessible(true);
f.set(this, value.asColoredString('&'));
f.setAccessible(false);
@ -367,7 +368,7 @@ public class ExternalSubServer extends SubServerContainer {
break;
case "restricted":
if (value.isBoolean()) {
Field f = ServerContainer.class.getDeclaredField("restricted");
Field f = BungeeServerInfo.class.getDeclaredField("restricted");
f.setAccessible(true);
f.set(this, value.asBoolean());
f.setAccessible(false);

View File

@ -12,6 +12,7 @@ import net.ME1312.SubServers.Bungee.Library.Util;
import net.ME1312.SubServers.Bungee.Library.Version.Version;
import net.ME1312.SubServers.Bungee.SubAPI;
import net.ME1312.SubServers.Bungee.SubPlugin;
import net.md_5.bungee.BungeeServerInfo;
import org.json.JSONObject;
import java.io.*;
@ -320,7 +321,7 @@ public class InternalSubServer extends SubServerContainer {
break;
case "motd":
if (value.isString()) {
Field f = ServerContainer.class.getDeclaredField("motd");
Field f = BungeeServerInfo.class.getDeclaredField("motd");
f.setAccessible(true);
f.set(this, value.asColoredString('&'));
f.setAccessible(false);
@ -419,7 +420,7 @@ public class InternalSubServer extends SubServerContainer {
break;
case "restricted":
if (value.isBoolean()) {
Field f = ServerContainer.class.getDeclaredField("restricted");
Field f = BungeeServerInfo.class.getDeclaredField("restricted");
f.setAccessible(true);
f.set(this, value.asBoolean());
f.setAccessible(false);

View File

@ -17,6 +17,7 @@ import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.connection.ProxiedPlayer;
import org.json.JSONObject;
import java.lang.reflect.Field;
import java.net.InetSocketAddress;
import java.util.*;
@ -29,8 +30,6 @@ public class ServerContainer extends BungeeServerInfo implements Server {
private Client client = null;
private List<String> groups = new ArrayList<String>();
private String nick = null;
private String motd;
private boolean restricted;
private boolean hidden;
public ServerContainer(String name, InetSocketAddress address, String motd, boolean hidden, boolean restricted) throws InvalidServerException {
@ -39,8 +38,6 @@ public class ServerContainer extends BungeeServerInfo implements Server {
if (name.contains(" ")) throw new InvalidServerException("Server names cannot have spaces: " + name);
signature = SubAPI.getInstance().signAnonymousObject();
SubDataServer.allowConnection(getAddress().getAddress().getHostAddress());
this.motd = motd;
this.restricted = restricted;
this.hidden = hidden;
}
@ -123,28 +120,30 @@ public class ServerContainer extends BungeeServerInfo implements Server {
this.hidden = value;
}
@Override
public String getMotd() {
return motd;
}
@Override
public void setMotd(String value) {
if (Util.isNull(value)) throw new NullPointerException();
new SubEditServerEvent(null, this, new NamedContainer<String, Object>("motd", value), false);
this.motd = value;
try {
Field f = BungeeServerInfo.class.getDeclaredField("motd");
f.setAccessible(true);
f.set(this, value);
f.setAccessible(false);
} catch (Exception e) {
e.printStackTrace();
}
}
@Override
public boolean isRestricted() {
return restricted;
}
@Override
public void setRestricted(boolean value) {
if (Util.isNull(value)) throw new NullPointerException();
new SubEditServerEvent(null, this, new NamedContainer<String, Object>("restricted", value), false);
this.restricted = value;
try {
Field f = BungeeServerInfo.class.getDeclaredField("restricted");
f.setAccessible(true);
f.set(this, value);
f.setAccessible(false);
} catch (Exception e) {
e.printStackTrace();
}
}
@Override

View File

@ -7,6 +7,9 @@ import net.ME1312.SubServers.Bungee.Network.PacketOut;
import net.ME1312.SubServers.Bungee.SubPlugin;
import org.json.JSONObject;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* Download Lang Packet
*/
@ -38,7 +41,10 @@ public class PacketDownloadLang implements PacketIn, PacketOut {
public JSONObject generate() {
JSONObject json = new JSONObject();
json.put("id", id);
json.put("Lang", plugin.api.getLang());
LinkedHashMap<String, Map<String, String>> full = new LinkedHashMap<>();
for (String channel : plugin.api.getLangChannels())
full.put(channel, plugin.api.getLang(channel));
json.put("Lang", full);
return json;
}

View File

@ -147,8 +147,8 @@ public final class SubDataServer {
*/
public static void addCipher(String handle, Cipher cipher) {
if (Util.isNull(cipher)) throw new NullPointerException();
if (!ciphers.keySet().contains(handle.toLowerCase().replace('-', '_').replace(' ', '_')))
ciphers.put(handle.toLowerCase().replace('-', '_').replace(' ', '_'), cipher);
if (ciphers.keySet().contains(handle.toUpperCase().replace('-', '_').replace(' ', '_'))) throw new IllegalStateException("Cipher already exists: " + handle);
ciphers.put(handle.toUpperCase().replace('-', '_').replace(' ', '_'), cipher);
}
/**
@ -176,7 +176,7 @@ public final class SubDataServer {
* @return Cipher
*/
public static Cipher getCipher(String handle) {
return getCiphers().get(handle.toLowerCase().replace('-', '_').replace(' ', '_'));
return getCiphers().get(handle.toUpperCase().replace('-', '_').replace(' ', '_'));
}
/**

View File

@ -8,7 +8,6 @@ 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;
@ -28,9 +27,9 @@ import java.util.*;
public final class SubAPI {
LinkedList<NamedContainer<Runnable, Runnable>> listeners = new LinkedList<NamedContainer<Runnable, Runnable>>();
LinkedList<Runnable> reloadListeners = new LinkedList<Runnable>();
private HashMap<String, Object> knownSignatures = new HashMap<String, Object>();
private static HashMap<String, Object> knownSignatures = new HashMap<String, Object>();
boolean ready = false;
private SubPlugin plugin;
private final SubPlugin plugin;
private static SubAPI api;
protected SubAPI(SubPlugin plugin) {
@ -89,15 +88,6 @@ public final class SubAPI {
return plugin.subdata;
}
/**
* Get a list of all available Host Drivers
*
* @return Host Driver handle list
*/
public List<String> getHostDrivers() {
return new LinkedList<String>(plugin.hostDrivers.keySet());
}
/**
* Adds a Driver for Hosts
*
@ -106,8 +96,17 @@ public final class SubAPI {
*/
public void addHostDriver(Class<? extends Host> driver, String handle) {
if (Util.isNull(driver, handle)) throw new NullPointerException();
if (plugin.hostDrivers.keySet().contains(handle.toLowerCase())) throw new IllegalStateException("Driver already exists: " + handle);
plugin.hostDrivers.put(handle.toLowerCase(), driver);
if (plugin.hostDrivers.keySet().contains(handle.toUpperCase().replace('-', '_').replace(' ', '_'))) throw new IllegalStateException("Driver already exists: " + handle);
plugin.hostDrivers.put(handle.toUpperCase().replace('-', '_').replace(' ', '_'), driver);
}
/**
* Get a list of all available Host Drivers
*
* @return Host Driver handle list
*/
public List<String> getHostDrivers() {
return new LinkedList<String>(plugin.hostDrivers.keySet());
}
/**
@ -167,8 +166,8 @@ public final class SubAPI {
*/
public Host addHost(UUID player, String driver, String name, boolean enabled, InetAddress address, String directory, String gitBash) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {
if (Util.isNull(driver, name, enabled, address, directory, gitBash)) throw new NullPointerException();
if (!getHostDrivers().contains(driver)) throw new InvalidHostException("Invalid Driver for host: " + name);
return addHost(player, plugin.hostDrivers.get(driver.toLowerCase()), name, enabled, address, directory, gitBash);
if (!getHostDrivers().contains(driver.toUpperCase().replace('-', '_').replace(' ', '_'))) throw new InvalidHostException("Invalid Driver for host: " + name);
return addHost(player, plugin.hostDrivers.get(driver.toUpperCase().replace('-', '_').replace(' ', '_')), name, enabled, address, directory, gitBash);
}
/**
@ -208,8 +207,8 @@ public final class SubAPI {
*/
public Host addHost(UUID player, Class<? extends Host> driver, String name, boolean enabled, InetAddress address, String directory, String gitBash) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {
if (Util.isNull(driver, name, enabled, address, directory, gitBash)) throw new NullPointerException();
Host host;
return (addHost(player, host = driver.getConstructor(SubPlugin.class, String.class, Boolean.class, InetAddress.class, String.class, String.class).newInstance(plugin, name, (Boolean) enabled, address, directory, gitBash)))?host:null;
Host host = driver.getConstructor(SubPlugin.class, String.class, Boolean.class, InetAddress.class, String.class, String.class).newInstance(plugin, name, (Boolean) enabled, address, directory, gitBash);
return addHost(player, host)?host:null;
}
/**
@ -544,12 +543,12 @@ public final class SubAPI {
}
/**
* Gets the SubServers Lang
* Gets the current SubServers Lang Channels
*
* @return SubServers Lang
* @return SubServers Lang Channel list
*/
public Map<String, Map<String, String>> getLang() {
return new LinkedHashMap<>(plugin.lang);
public Collection<String> getLangChannels() {
return plugin.lang.keySet();
}
/**
@ -560,7 +559,7 @@ public final class SubAPI {
*/
public Map<String, String> getLang(String channel) {
if (Util.isNull(channel)) throw new NullPointerException();
return getLang().get(channel.toLowerCase());
return new LinkedHashMap<>(plugin.lang.get(channel.toLowerCase()));
}
/**

View File

@ -63,7 +63,7 @@ public final class SubPlugin extends BungeeCord implements Listener {
public long resetDate = 0;
private boolean running = false;
private boolean posted = false;
private BigInteger lastSignature = new BigInteger("-1");
private static BigInteger lastSignature = new BigInteger("-1");
@SuppressWarnings("unchecked")
protected SubPlugin(PrintStream out) throws IOException {
@ -234,7 +234,7 @@ public final class SubPlugin extends BungeeCord implements Listener {
if (!config.get().getSection("Settings").getSection("SubData").getRawString("Encryption", "NONE").equalsIgnoreCase("NONE")) {
if (config.get().getSection("Settings").getSection("SubData").getString("Password", "").length() == 0) {
System.out.println("SubData > Cannot encrypt connection without a password");
} else if (!SubDataServer.getCiphers().keySet().contains(config.get().getSection("Settings").getSection("SubData").getRawString("Encryption").toLowerCase().replace('-', '_').replace(' ', '_'))) {
} else if (!SubDataServer.getCiphers().keySet().contains(config.get().getSection("Settings").getSection("SubData").getRawString("Encryption").toUpperCase().replace('-', '_').replace(' ', '_'))) {
System.out.println("SubData > Unknown encryption type: " + config.get().getSection("Settings").getSection("SubData").getRawString("Encryption"));
} else {
cipher = SubDataServer.getCipher(config.get().getSection("Settings").getSection("SubData").getRawString("Encryption"));
@ -258,10 +258,10 @@ public final class SubPlugin extends BungeeCord implements Listener {
System.out.println("SubServers > "+((status)?"Rel":"L")+"oading Hosts...");
for (String name : config.get().getSection("Hosts").getKeys()) {
if (!ukeys.contains(name.toLowerCase())) try {
if (!hostDrivers.keySet().contains(config.get().getSection("Hosts").getSection(name).getRawString("Driver").toLowerCase())) throw new InvalidHostException("Invalid Driver for host: " + name);
if (!hostDrivers.keySet().contains(config.get().getSection("Hosts").getSection(name).getRawString("Driver").toUpperCase().replace('-', '_').replace(' ', '_'))) throw new InvalidHostException("Invalid Driver for host: " + name);
Host host = this.hosts.get(name.toLowerCase());
if (host == null || // Host must be reset
!hostDrivers.get(config.get().getSection("Hosts").getSection(name).getRawString("Driver").toLowerCase()).equals(host.getClass()) ||
!hostDrivers.get(config.get().getSection("Hosts").getSection(name).getRawString("Driver").toUpperCase().replace('-', '_').replace(' ', '_')).equals(host.getClass()) ||
!config.get().getSection("Hosts").getSection(name).getRawString("Address").equals(host.getAddress().getHostAddress()) ||
!config.get().getSection("Hosts").getSection(name).getRawString("Directory").equals(host.getPath()) ||
!config.get().getSection("Hosts").getSection(name).getRawString("Git-Bash").equals(host.getCreator().getBashDirectory())
@ -585,7 +585,7 @@ public final class SubPlugin extends BungeeCord implements Listener {
* @return Method Response
*/
@SuppressWarnings("unchecked")
public <T> Object redis(String method, NamedContainer<Class<T>, ? extends T>... args) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
public <T> Object redis(String method, NamedContainer<Class<?>, ?>... args) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
if (redis) {
Object api = getPluginManager().getPlugin("RedisBungee").getClass().getMethod("getApi").invoke(null);
Class<?>[] classargs = new Class<?>[args.length];
@ -608,7 +608,7 @@ public final class SubPlugin extends BungeeCord implements Listener {
*/
@Override
public String getName() {
return (new Version(super.getVersion()).equals(version))?"SubServers.Bungee.Patch":super.getName();
return (new Version(super.getVersion()).equals(version))?"SubServers.Bungee":super.getName();
}
/**

Binary file not shown.

View File

@ -59,7 +59,7 @@ 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 (Util.isException(() -> plugin.api.getLang())) {
} else if (Util.isException(() -> plugin.api.getLangChannels())) {
new IllegalStateException("There are no lang options available at this time").printStackTrace();
} 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()) {

View File

@ -191,8 +191,8 @@ public final class SubDataClient {
*/
public static void addCipher(String handle, Cipher cipher) {
if (Util.isNull(cipher)) throw new NullPointerException();
if (!ciphers.keySet().contains(handle.toLowerCase().replace('-', '_').replace(' ', '_')))
ciphers.put(handle.toLowerCase().replace('-', '_').replace(' ', '_'), cipher);
if (ciphers.keySet().contains(handle.toUpperCase().replace('-', '_').replace(' ', '_'))) throw new IllegalStateException("Cipher already exists: " + handle);
ciphers.put(handle.toUpperCase().replace('-', '_').replace(' ', '_'), cipher);
}
/**
@ -220,7 +220,7 @@ public final class SubDataClient {
* @return Cipher
*/
public static Cipher getCipher(String handle) {
return getCiphers().get(handle.toLowerCase().replace('-', '_').replace(' ', '_'));
return getCiphers().get(handle.toUpperCase().replace('-', '_').replace(' ', '_'));
}
/**

View File

@ -6,17 +6,14 @@ import net.ME1312.SubServers.Client.Bukkit.Library.Version.Version;
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;
import java.util.*;
/**
* SubAPI Class
*/
public final class SubAPI {
LinkedList<Runnable> reloadListeners = new LinkedList<Runnable>();
private SubPlugin plugin;
private final SubPlugin plugin;
private static SubAPI api;
protected SubAPI(SubPlugin plugin) {
@ -63,24 +60,23 @@ public final class SubAPI {
}
/**
* Gets the SubServers Lang
* Gets the current SubServers Lang Channels
*
* @return SubServers Lang
* @return SubServers Lang Channel list
*/
public Map<String, Map<String, String>> getLang() {
if (Util.isNull(plugin.lang, plugin.lang.get())) throw new NullPointerException();
return new LinkedHashMap<>(plugin.lang.get());
public Collection<String> getLangChannels() {
return plugin.lang.get().keySet();
}
/**
* Gets values from the SubServers Lang
*
* @param channel Lang Channel
* @return Lang Values
* @return Lang Value
*/
public Map<String, String> getLang(String channel) {
if (Util.isNull(channel)) throw new NullPointerException();
return getLang().get(channel.toLowerCase());
return new LinkedHashMap<>(plugin.lang.get().get(channel.toLowerCase()));
}
/**
@ -88,7 +84,7 @@ public final class SubAPI {
*
* @param channel Lang Channel
* @param key Key
* @return Lang Value
* @return Lang Values
*/
public String getLang(String channel, String key) {
if (Util.isNull(channel, key)) throw new NullPointerException();

View File

@ -121,7 +121,7 @@ public final class SubPlugin extends JavaPlugin {
if (!config.get().getSection("Settings").getSection("SubData").getRawString("Encryption", "NONE").equalsIgnoreCase("NONE")) {
if (config.get().getSection("Settings").getSection("SubData").getString("Password", "").length() == 0) {
System.out.println("SubData > Cannot encrypt connection without a password");
} else if (!SubDataClient.getCiphers().keySet().contains(config.get().getSection("Settings").getSection("SubData").getRawString("Encryption").toLowerCase().replace('-', '_').replace(' ', '_'))) {
} else if (!SubDataClient.getCiphers().keySet().contains(config.get().getSection("Settings").getSection("SubData").getRawString("Encryption").toUpperCase().replace('-', '_').replace(' ', '_'))) {
System.out.println("SubData > Unknown encryption type: " + config.get().getSection("Settings").getSection("SubData").getRawString("Encryption"));
} else {
cipher = SubDataClient.getCipher(config.get().getSection("Settings").getSection("SubData").getRawString("Encryption"));

Binary file not shown.

View File

@ -69,7 +69,13 @@ public final class ExHost {
* @throws Exception
*/
public static void main(String[] args) throws Exception {
new ExHost(new File(URLDecoder.decode(System.getProperty("subservers.host.runtime"), "UTF-8")), args);
if (System.getProperty("RM.subservers", "true").equalsIgnoreCase("true")) {
new ExHost(new File(URLDecoder.decode(System.getProperty("subservers.host.runtime"), "UTF-8")), args);
} else {
System.out.println(">> SubServers code has been disallowed to work on this machine");
System.out.println(">> Check with your provider for more information");
System.exit(1);
}
}
private ExHost(File runtime, String[] args) {
this.runtime = new UniversalFile(runtime);
@ -131,7 +137,7 @@ public final class ExHost {
if (!config.get().getSection("Settings").getSection("SubData").getRawString("Encryption", "NONE").equalsIgnoreCase("NONE")) {
if (config.get().getSection("Settings").getSection("SubData").getString("Password", "").length() == 0) {
log.info.println("Cannot encrypt connection without a password");
} else if (!SubDataClient.getCiphers().keySet().contains(config.get().getSection("Settings").getSection("SubData").getRawString("Encryption").toLowerCase().replace('-', '_').replace(' ', '_'))) {
} else if (!SubDataClient.getCiphers().keySet().contains(config.get().getSection("Settings").getSection("SubData").getRawString("Encryption").toUpperCase().replace('-', '_').replace(' ', '_'))) {
log.info.println("Unknown encryption type: " + config.get().getSection("Settings").getSection("SubData").getRawString("Encryption"));
} else {
cipher = SubDataClient.getCipher(config.get().getSection("Settings").getSection("SubData").getRawString("Encryption"));
@ -310,7 +316,7 @@ public final class ExHost {
if (!config.get().getSection("Settings").getSection("SubData").getRawString("Encryption", "NONE").equalsIgnoreCase("NONE")) {
if (config.get().getSection("Settings").getSection("SubData").getString("Password", "").length() == 0) {
log.info.println("Cannot encrypt connection without a password");
} else if (!SubDataClient.getCiphers().keySet().contains(config.get().getSection("Settings").getSection("SubData").getRawString("Encryption").toLowerCase().replace('-', '_').replace(' ', '_'))) {
} else if (!SubDataClient.getCiphers().keySet().contains(config.get().getSection("Settings").getSection("SubData").getRawString("Encryption").toUpperCase().replace('-', '_').replace(' ', '_'))) {
log.info.println("Unknown encryption type: " + config.get().getSection("Settings").getSection("SubData").getRawString("Encryption"));
} else {
cipher = SubDataClient.getCipher(config.get().getSection("Settings").getSection("SubData").getRawString("Encryption"));

View File

@ -213,8 +213,8 @@ public final class SubDataClient {
*/
public static void addCipher(String handle, Cipher cipher) {
if (Util.isNull(cipher)) throw new NullPointerException();
if (!ciphers.keySet().contains(handle.toLowerCase().replace('-', '_').replace(' ', '_')))
ciphers.put(handle.toLowerCase().replace('-', '_').replace(' ', '_'), cipher);
if (ciphers.keySet().contains(handle.toUpperCase().replace('-', '_').replace(' ', '_'))) throw new IllegalStateException("Cipher already exists: " + handle);
ciphers.put(handle.toUpperCase().replace('-', '_').replace(' ', '_'), cipher);
}
/**
@ -242,7 +242,7 @@ public final class SubDataClient {
* @return Cipher
*/
public static Cipher getCipher(String handle) {
return getCiphers().get(handle.toLowerCase().replace('-', '_').replace(' ', '_'));
return getCiphers().get(handle.toUpperCase().replace('-', '_').replace(' ', '_'));
}
/**

View File

@ -23,7 +23,7 @@ public final class SubAPI {
final HashMap<UUID, Timer> schedule = new HashMap<UUID, Timer>();
final TreeMap<String, Command> commands = new TreeMap<String, Command>();
final HashMap<String, SubPluginInfo> plugins = new LinkedHashMap<String, SubPluginInfo>();
private ExHost host;
private final ExHost host;
private static SubAPI api;
protected SubAPI(ExHost host) {
@ -332,24 +332,23 @@ public final class SubAPI {
}
/**
* Gets the SubServers Lang
* Gets the current SubServers Lang Channels
*
* @return SubServers Lang
* @return SubServers Lang Channel list
*/
public Map<String, Map<String, String>> getLang() {
if (Util.isNull(host.lang, host.lang.get())) throw new NullPointerException();
return new LinkedHashMap<>(host.lang.get());
public Collection<String> getLangChannels() {
return host.lang.get().keySet();
}
/**
* Gets values from the SubServers Lang
*
* @param channel Lang Channel
* @return Lang Values
* @return Lang Value
*/
public Map<String, String> getLang(String channel) {
if (Util.isNull(channel)) throw new NullPointerException();
return getLang().get(channel.toLowerCase());
return new LinkedHashMap<>(host.lang.get().get(channel.toLowerCase()));
}
/**
@ -357,7 +356,7 @@ public final class SubAPI {
*
* @param channel Lang Channel
* @param key Key
* @return Lang Value
* @return Lang Values
*/
public String getLang(String channel, String key) {
if (Util.isNull(channel, key)) throw new NullPointerException();

Binary file not shown.

View File

@ -192,8 +192,8 @@ public final class SubDataClient {
*/
public static void addCipher(String handle, Cipher cipher) {
if (Util.isNull(cipher)) throw new NullPointerException();
if (!ciphers.keySet().contains(handle.toLowerCase().replace('-', '_').replace(' ', '_')))
ciphers.put(handle.toLowerCase().replace('-', '_').replace(' ', '_'), cipher);
if (ciphers.keySet().contains(handle.toUpperCase().replace('-', '_').replace(' ', '_'))) throw new IllegalStateException("Cipher already exists: " + handle);
ciphers.put(handle.toUpperCase().replace('-', '_').replace(' ', '_'), cipher);
}
/**
@ -221,7 +221,7 @@ public final class SubDataClient {
* @return Cipher
*/
public static Cipher getCipher(String handle) {
return getCiphers().get(handle.toLowerCase().replace('-', '_').replace(' ', '_'));
return getCiphers().get(handle.toUpperCase().replace('-', '_').replace(' ', '_'));
}
/**

View File

@ -4,6 +4,7 @@ import net.ME1312.SubServers.Sync.Library.Util;
import net.md_5.bungee.BungeeServerInfo;
import net.md_5.bungee.api.ChatColor;
import java.lang.reflect.Field;
import java.net.InetSocketAddress;
/**
@ -12,16 +13,12 @@ import java.net.InetSocketAddress;
public class Server extends BungeeServerInfo {
private final String signature;
private String nick = null;
private String motd;
private boolean restricted;
private boolean hidden;
public Server(String signature, String name, String display, InetSocketAddress address, String motd, boolean hidden, boolean restricted) {
super(name, address, ChatColor.translateAlternateColorCodes('&', motd), restricted);
if (Util.isNull(name, address, motd, hidden, restricted)) throw new NullPointerException();
this.signature = signature;
this.motd = motd;
this.restricted = restricted;
this.hidden = hidden;
setDisplayName(display);
}
@ -67,16 +64,6 @@ public class Server extends BungeeServerInfo {
this.hidden = value;
}
/**
* Gets the MOTD of the Server
*
* @return Server MOTD
*/
@Override
public String getMotd() {
return motd;
}
/**
* Sets the MOTD of the Server
*
@ -84,17 +71,14 @@ public class Server extends BungeeServerInfo {
*/
public void setMotd(String value) {
if (Util.isNull(value)) throw new NullPointerException();
this.motd = value;
}
/**
* Gets if the Server is Restricted
*
* @return Restricted Status
*/
@Override
public boolean isRestricted() {
return restricted;
try {
Field f = BungeeServerInfo.class.getDeclaredField("motd");
f.setAccessible(true);
f.set(this, value);
f.setAccessible(false);
} catch (Exception e) {
e.printStackTrace();
}
}
/**
@ -104,7 +88,14 @@ public class Server extends BungeeServerInfo {
*/
public void setRestricted(boolean value) {
if (Util.isNull(value)) throw new NullPointerException();
this.restricted = value;
try {
Field f = BungeeServerInfo.class.getDeclaredField("restricted");
f.setAccessible(true);
f.set(this, value);
f.setAccessible(false);
} catch (Exception e) {
e.printStackTrace();
}
}
/**

View File

@ -14,7 +14,7 @@ import java.util.*;
*/
public final class SubAPI {
LinkedList<NamedContainer<Runnable, Runnable>> listeners = new LinkedList<NamedContainer<Runnable, Runnable>>();
private SubPlugin plugin;
private final SubPlugin plugin;
private static SubAPI api;
protected SubAPI(SubPlugin plugin) {
@ -82,24 +82,23 @@ public final class SubAPI {
}
/**
* Gets the SubServers Lang
* Gets the current SubServers Lang Channels
*
* @return SubServers Lang
* @return SubServers Lang Channel list
*/
public Map<String, Map<String, String>> getLang() {
if (Util.isNull(plugin.lang, plugin.lang.get())) throw new NullPointerException();
return new LinkedHashMap<>(plugin.lang.get());
public Collection<String> getLangChannels() {
return plugin.lang.get().keySet();
}
/**
* Gets values from the SubServers Lang
*
* @param channel Lang Channel
* @return Lang Values
* @return Lang Value
*/
public Map<String, String> getLang(String channel) {
if (Util.isNull(channel)) throw new NullPointerException();
return getLang().get(channel.toLowerCase());
return new LinkedHashMap<>(plugin.lang.get().get(channel.toLowerCase()));
}
/**
@ -107,7 +106,7 @@ public final class SubAPI {
*
* @param channel Lang Channel
* @param key Key
* @return Lang Value
* @return Lang Values
*/
public String getLang(String channel, String key) {
if (Util.isNull(channel, key)) throw new NullPointerException();

View File

@ -96,7 +96,7 @@ public final class SubPlugin extends BungeeCord implements Listener {
if (!config.get().getSection("Settings").getSection("SubData").getRawString("Encryption", "NONE").equalsIgnoreCase("NONE")) {
if (config.get().getSection("Settings").getSection("SubData").getString("Password", "").length() == 0) {
System.out.println("SubData > Cannot encrypt connection without a password");
} else if (!SubDataClient.getCiphers().keySet().contains(config.get().getSection("Settings").getSection("SubData").getRawString("Encryption").toLowerCase().replace('-', '_').replace(' ', '_'))) {
} else if (!SubDataClient.getCiphers().keySet().contains(config.get().getSection("Settings").getSection("SubData").getRawString("Encryption").toUpperCase().replace('-', '_').replace(' ', '_'))) {
System.out.println("SubData > Unknown encryption type: " + config.get().getSection("Settings").getSection("SubData").getRawString("Encryption"));
} else {
cipher = SubDataClient.getCipher(config.get().getSection("Settings").getSection("SubData").getRawString("Encryption"));
@ -158,7 +158,7 @@ public final class SubPlugin extends BungeeCord implements Listener {
* @return Method Response
*/
@SuppressWarnings("unchecked")
public <T> Object redis(String method, NamedContainer<Class<T>, ? extends T>... args) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
public <T> Object redis(String method, NamedContainer<Class<?>, ?>... args) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
if (redis) {
Object api = getPluginManager().getPlugin("RedisBungee").getClass().getMethod("getApi").invoke(null);
Class<?>[] classargs = new Class<?>[args.length];
@ -181,7 +181,7 @@ public final class SubPlugin extends BungeeCord implements Listener {
*/
@Override
public String getName() {
return (new Version(super.getVersion()).equals(version))?"SubServers.Sync.Patch":super.getName();
return (new Version(super.getVersion()).equals(version))?"SubServers.Sync":super.getName();
}
/**