mirror of
https://github.com/ME1312/SubServers-2.git
synced 2025-01-24 00:21:20 +01:00
Allow hosts to be added with invalid/unregistered drivers
This commit is contained in:
parent
c9afe48674
commit
580fe41ad9
@ -16,16 +16,15 @@
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #EEE;
|
||||
background: #eeeeee;
|
||||
background: -webkit-linear-gradient(#eeeeee 0%, #dddddd 100%);
|
||||
background: -o-linear-gradient(#eeeeee 0%, #dddddd 100%);
|
||||
background: linear-gradient(#eeeeee 0%, #dddddd 100%);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0px !important;
|
||||
}
|
||||
|
||||
.app-version > span.short {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.page .page-title {
|
||||
display: table;
|
||||
vertical-align: middle;
|
||||
@ -60,7 +59,7 @@
|
||||
}
|
||||
|
||||
.page .options > div-option {
|
||||
padding: 25px;
|
||||
padding: 26px 13px;
|
||||
flex-basis: 100%;
|
||||
border-right: 2px solid #CCC;
|
||||
}
|
||||
@ -70,21 +69,30 @@
|
||||
}
|
||||
|
||||
.page .options > div-option > form > input,
|
||||
.page .options > div-option > form > button,
|
||||
.page .options > div-option > form > a,
|
||||
.page .options > div-option > button,
|
||||
.page .options > div-option > a {
|
||||
display: inline-block;
|
||||
padding: 4px 12px;
|
||||
display: inline-block;
|
||||
margin-bottom: 0;
|
||||
font-weight: normal;
|
||||
text-align: center;
|
||||
-ms-touch-action: manipulation;
|
||||
touch-action: manipulation;
|
||||
background-image: none;
|
||||
border: none;
|
||||
white-space: nowrap;
|
||||
padding: 8px 16px;
|
||||
font-size: 1.125em;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
border: none;
|
||||
-webkit-box-shadow: 1px 1px 4px rgba(0,0,0,0.4);
|
||||
box-shadow: 1px 1px 4px rgba(0,0,0,0.4);
|
||||
-webkit-transition: all 0.4s;
|
||||
-o-transition: all 0.4s;
|
||||
transition: all 0.4s;
|
||||
font-size: 1.125em;
|
||||
-webkit-box-shadow: 1px 1px 4px rgba(0,0,0,0.4);
|
||||
box-shadow: 1px 1px 4px rgba(0,0,0,0.4);
|
||||
-webkit-transition: all 0.4s;
|
||||
-o-transition: all 0.4s;
|
||||
transition: all 0.4s;
|
||||
}
|
||||
|
||||
.page .options > div-option > form > input {
|
||||
@ -99,32 +107,30 @@
|
||||
}
|
||||
|
||||
.page .options > .option-1 > a:hover {
|
||||
background-color: #3d8b40;
|
||||
background-color: #439a46;
|
||||
border-color: rgba(0,0,0,0);
|
||||
}
|
||||
|
||||
.page .options > .option-2 {
|
||||
padding-top: 23px;
|
||||
}
|
||||
|
||||
.page .options > .option-2 > form {
|
||||
display: inline-block;
|
||||
background-color: #DDD;
|
||||
border-bottom: 2px solid #CCC;
|
||||
box-sizing: border-box;
|
||||
padding-left: 16px;
|
||||
font-size: 1.125em;
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
.page .options > .option-2 > form > input {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
height: 100%;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
width: 82px;
|
||||
padding-bottom: 6px;
|
||||
outline: none;
|
||||
-webkit-box-shadow: none;
|
||||
-moz-box-shadow: none;
|
||||
box-shadow: none;
|
||||
font-size: 1em;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.page .options > .option-2 > form > input:focus {
|
||||
@ -133,31 +139,42 @@
|
||||
|
||||
.page .options > .option-2 > button {
|
||||
color: #fff;
|
||||
background-color: #0d87e9;
|
||||
border-color: #2e6da4;
|
||||
cursor:pointer;
|
||||
font-size: 1em;
|
||||
background-color: #2196f3;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.page .options > .option-2 > button:hover {
|
||||
background-color: #337ab7;
|
||||
background-color: #0d87e9;
|
||||
}
|
||||
|
||||
.page .options > .option-3 > a {
|
||||
color: #fff;
|
||||
background-color: #f0ad4e;
|
||||
border-color: #eea236;
|
||||
background-color: #ff9800;
|
||||
}
|
||||
|
||||
.page .options > .option-3 > a:hover {
|
||||
color: #fff;
|
||||
background-color: #ec971f;
|
||||
border-color: #d58512;
|
||||
background-color: #e08600;
|
||||
}
|
||||
|
||||
.page .options > div-option > span {
|
||||
.page .options > div-option > span,
|
||||
.page .options > div-option > span > a {
|
||||
color: #777;
|
||||
font-size: 0.8em;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.page .options > div-option > span > a {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
.page .options > div-option > span > a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.page .options > div-option > p {
|
||||
margin-left: 13px;
|
||||
margin-right: 13px;
|
||||
}
|
||||
|
||||
.footer {
|
||||
@ -197,13 +214,7 @@
|
||||
}
|
||||
|
||||
@media only screen and (max-width:875px),
|
||||
only screen and (max-height:475px) {
|
||||
.app-version > span.full {
|
||||
display: none;
|
||||
}
|
||||
.app-version > span.short {
|
||||
display: inline;
|
||||
}
|
||||
only screen and (max-height:493px) {
|
||||
.page .options {
|
||||
display: inline-block;
|
||||
}
|
||||
@ -225,6 +236,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width:543px),
|
||||
only screen and (max-height:306px) {
|
||||
.app-version > span.full {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Avenir;
|
||||
src: url("https://raw.githubusercontent.com/ME1312/SubServers-2/master/SubServers.Bungee/Avenir-Book.ttf");
|
||||
@ -232,31 +250,31 @@
|
||||
</style>
|
||||
<div class="download"><center>
|
||||
<div class="page">
|
||||
<span class="page-title">You're about to download <span class="full-app-name"><unknown></span><br><a class="page-subtitle" href="%commit_source%" target="_blank">from commit <span class="app-version"><unknown></span></a></span><hr>
|
||||
<span class="page-title">You're about to download <span class="full-app-name"><unknown></span><br><a class="page-subtitle" href="%commit_source%" target="_blank" draggable="false">from commit <span class="app-version"><unknown></span></a></span><hr style="margin: 0.5em 8px;">
|
||||
Thank you for downloading <span class="app-name"><unknown></span>. Choose how you would like to get your file:<br><br>
|
||||
<div class="options">
|
||||
<div class="desktop-spacer"></div>
|
||||
<div-option class="option-1">
|
||||
<a href="%adfly_app_download%">Watch a quick ad</a>
|
||||
<br><span>through adf.ly</span>
|
||||
<a href="%adfly_app_download%" draggable="false">Watch a Quick AD</a>
|
||||
<br><span><a href="https://adf.ly" draggable="false">through adf.ly</a></span>
|
||||
<p>It only takes 5 seconds to support the developer these days. Then we'll take you straight to your download.</p>
|
||||
</div-option>
|
||||
<div-option class="option-2">
|
||||
<form id="option-2" action="https://www.paypal.com/cgi-bin/webscr" method="get" target="_blank"><!--
|
||||
<form id="donate" action="https://www.paypal.com/cgi-bin/webscr" method="get" target="_blank"><!--
|
||||
--><input type="hidden" name="cmd" value="_xclick" /><!--
|
||||
--><input type="hidden" name="business" value="ECL5BPVRT5ANA" /><!--
|
||||
--><input type="hidden" name="lc" value="US" /><!--
|
||||
--><input type="hidden" name="item_name" value="Donation" /><!--
|
||||
-->$<input type="number" name="amount" min="1" value="15" max="9999" /><!--
|
||||
-->$<input type="number" name="amount" step="0.01" min="1" value="15.00" /><!--
|
||||
--><input type="hidden" name="currency_code" value="USD" /><!--
|
||||
--><input type="hidden" name="button_subtype" value="services" /><!--
|
||||
--><input type="hidden" name="bn" value="PP%2dBuyNowBF%3abtn_buynowCC_LG%2egif%3aNonHosted" /><!--
|
||||
--></form><button type="submit" form="option-2">Donate</button>
|
||||
--></form><button form="donate" type="submit">Donate</button>
|
||||
<br><span>and download after</span>
|
||||
<p>I'd appreciate any donation, even if it's just a dollar.</p>
|
||||
</div-option>
|
||||
<div-option class="option-3">
|
||||
<a download="%" href="%app_download%" draggable="true">Direct Download</a>
|
||||
<a id="download" href="%app_download%" download="%" draggable="false">Direct Download</a>
|
||||
<br><span>SubServers is always free to use</span>
|
||||
<p>You don't have to do that stuff to use SubServers, but it's always appreciated.</p>
|
||||
</div-option>
|
||||
@ -270,8 +288,8 @@
|
||||
<br>
|
||||
<div class="footer">
|
||||
<hr>
|
||||
<a href="javascript:void(0)"><img src="https://src.ME1312.net/img/me1312.net.inverted.png" /></a>
|
||||
<div><a href="https://github.com/ME1312/SubServers-2/tree/master/Artifacts" target="_blank">Download not working?</a></div>
|
||||
<a href="javascript:void(0)" draggable="false"><img src="https://src.ME1312.net/img/me1312.net.inverted.png" draggable="false" /></a>
|
||||
<div><a href="https://github.com/ME1312/SubServers-2/tree/master/Artifacts" target="_blank" draggable="false">Download not working?</a></div>
|
||||
</div>
|
||||
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
|
||||
<script>
|
||||
@ -281,7 +299,7 @@
|
||||
var params = {}
|
||||
hash.split('&').map(hk => {
|
||||
let temp = hk.split('=');
|
||||
params[temp[0]] = temp[1]
|
||||
params[temp[0]] = temp[1];
|
||||
});
|
||||
return params;
|
||||
}
|
||||
@ -289,14 +307,14 @@
|
||||
$('.full-app-name').html(hash.app)
|
||||
$('.app-name').html(hash.app.replace(/^(.+?)\.([^.]*)$/, '$1'));
|
||||
if (hash.hasOwnProperty("commit")) {
|
||||
$('.app-version').html('<span class="full">' + hash.commit + '</span><span class="short">' + hash.commit.substring(0, 7) + '</span>');
|
||||
$('.app-version').html(hash.commit.substring(0, 7) + '<span class="full">' + hash.commit.substring(7) + '</span>');
|
||||
$('a').each(function() {
|
||||
var a = $(this);
|
||||
if (a.attr('download') == '%')
|
||||
a.attr('download', hash.app);
|
||||
switch (a.attr("href").toLowerCase()) {
|
||||
case "%adfly_app_download%":
|
||||
a.attr("href", "https://adf.ly/18562515/raw.githubusercontent.com/ME1312/SubServers-2/" + hash.commit + "/Artifacts/" + hash.app);
|
||||
a.attr("href", "https://adf.ly/18562515/https://raw.githubusercontent.com/ME1312/SubServers-2/" + hash.commit + "/Artifacts/" + hash.app);
|
||||
break;
|
||||
case "%app_download%":
|
||||
a.attr("href", "https://raw.githubusercontent.com/ME1312/SubServers-2/" + hash.commit + "/Artifacts/" + hash.app);
|
||||
@ -309,7 +327,6 @@
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
Binary file not shown.
Binary file not shown.
@ -98,6 +98,22 @@
|
||||
<dd>
|
||||
<div class="block">Add a Host to the Network</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/SubAPI.html#addHost-java.lang.Class-java.lang.String-boolean-java.net.InetAddress-java.lang.String-java.lang.String-">addHost(Class<? extends Host>, String, boolean, InetAddress, String, String)</a></span> - Method in class net.ME1312.SubServers.Bungee.<a href="net/ME1312/SubServers/Bungee/SubAPI.html" title="class in net.ME1312.SubServers.Bungee">SubAPI</a></dt>
|
||||
<dd>
|
||||
<div class="block">Add a Host with a potentially unregistered driver to the Network</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/SubAPI.html#addHost-java.util.UUID-java.lang.Class-java.lang.String-boolean-java.net.InetAddress-java.lang.String-java.lang.String-">addHost(UUID, Class<? extends Host>, String, boolean, InetAddress, String, String)</a></span> - Method in class net.ME1312.SubServers.Bungee.<a href="net/ME1312/SubServers/Bungee/SubAPI.html" title="class in net.ME1312.SubServers.Bungee">SubAPI</a></dt>
|
||||
<dd>
|
||||
<div class="block">Add a Host with a potentially unregistered driver to the Network</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/SubAPI.html#addHost-net.ME1312.SubServers.Bungee.Host.Host-">addHost(Host)</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">Add a Host with a potentially invalid/unregistered driver to the Network</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/SubAPI.html#addHost-java.util.UUID-net.ME1312.SubServers.Bungee.Host.Host-">addHost(UUID, Host)</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">Add a Host with a potentially invalid/unregistered driver to the Network</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/SubAPI.html#addHostDriver-java.lang.Class-java.lang.String-">addHostDriver(Class<? extends Host>, String)</a></span> - Method in class net.ME1312.SubServers.Bungee.<a href="net/ME1312/SubServers/Bungee/SubAPI.html" title="class in net.ME1312.SubServers.Bungee">SubAPI</a></dt>
|
||||
<dd>
|
||||
<div class="block">Adds a Driver for Hosts</div>
|
||||
|
@ -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":9,"i20":42,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10};
|
||||
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":9,"i24":42,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10};
|
||||
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
|
||||
var altColor = "altColor";
|
||||
var rowColor = "rowColor";
|
||||
@ -130,6 +130,23 @@ extends java.lang.Object</pre>
|
||||
</tr>
|
||||
<tr id="i0" class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#addHost-java.lang.Class-java.lang.String-boolean-java.net.InetAddress-java.lang.String-java.lang.String-">addHost</a></span>(java.lang.Class<? extends <a href="../../../../net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a>> driver,
|
||||
java.lang.String name,
|
||||
boolean enabled,
|
||||
java.net.InetAddress address,
|
||||
java.lang.String directory,
|
||||
java.lang.String gitBash)</code>
|
||||
<div class="block">Add a Host with a potentially unregistered driver to the Network</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i1" class="rowColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#addHost-net.ME1312.SubServers.Bungee.Host.Host-">addHost</a></span>(<a href="../../../../net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a> host)</code>
|
||||
<div class="block">Add a Host with a potentially invalid/unregistered driver to the Network</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i2" class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#addHost-java.lang.String-java.lang.String-boolean-java.net.InetAddress-java.lang.String-java.lang.String-">addHost</a></span>(java.lang.String driver,
|
||||
java.lang.String name,
|
||||
boolean enabled,
|
||||
@ -139,7 +156,26 @@ extends java.lang.Object</pre>
|
||||
<div class="block">Add a Host to the Network</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i1" class="rowColor">
|
||||
<tr id="i3" class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#addHost-java.util.UUID-java.lang.Class-java.lang.String-boolean-java.net.InetAddress-java.lang.String-java.lang.String-">addHost</a></span>(java.util.UUID player,
|
||||
java.lang.Class<? extends <a href="../../../../net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a>> driver,
|
||||
java.lang.String name,
|
||||
boolean enabled,
|
||||
java.net.InetAddress address,
|
||||
java.lang.String directory,
|
||||
java.lang.String gitBash)</code>
|
||||
<div class="block">Add a Host with a potentially unregistered driver to the Network</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/Bungee/SubAPI.html#addHost-java.util.UUID-net.ME1312.SubServers.Bungee.Host.Host-">addHost</a></span>(java.util.UUID player,
|
||||
<a href="../../../../net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a> host)</code>
|
||||
<div class="block">Add a Host with a potentially invalid/unregistered driver to the Network</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i5" class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#addHost-java.util.UUID-java.lang.String-java.lang.String-boolean-java.net.InetAddress-java.lang.String-java.lang.String-">addHost</a></span>(java.util.UUID player,
|
||||
java.lang.String driver,
|
||||
@ -151,21 +187,21 @@ extends java.lang.Object</pre>
|
||||
<div class="block">Add a Host to the Network</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i2" 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/Bungee/SubAPI.html#addHostDriver-java.lang.Class-java.lang.String-">addHostDriver</a></span>(java.lang.Class<? extends <a href="../../../../net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a>> driver,
|
||||
java.lang.String handle)</code>
|
||||
<div class="block">Adds a Driver for Hosts</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i3" class="rowColor">
|
||||
<tr id="i7" class="rowColor">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#addListener-java.lang.Runnable-java.lang.Runnable-">addListener</a></span>(java.lang.Runnable enable,
|
||||
java.lang.Runnable disable)</code>
|
||||
<div class="block">Adds a SubAPI Listener</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i4" class="altColor">
|
||||
<tr id="i8" class="altColor">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#addListener-java.lang.Runnable-java.lang.Runnable-java.lang.Runnable-">addListener</a></span>(java.lang.Runnable enable,
|
||||
java.lang.Runnable reload,
|
||||
@ -173,7 +209,7 @@ extends java.lang.Object</pre>
|
||||
<div class="block">Adds a SubAPI Listener</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i5" class="rowColor">
|
||||
<tr id="i9" class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Host/Server.html" title="interface in net.ME1312.SubServers.Bungee.Host">Server</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#addServer-java.lang.String-java.net.InetAddress-int-java.lang.String-boolean-boolean-">addServer</a></span>(java.lang.String name,
|
||||
java.net.InetAddress ip,
|
||||
@ -184,7 +220,7 @@ extends java.lang.Object</pre>
|
||||
<div class="block">Adds a Server to the Network</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i6" class="altColor">
|
||||
<tr id="i10" class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Host/Server.html" title="interface in net.ME1312.SubServers.Bungee.Host">Server</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#addServer-java.util.UUID-java.lang.String-java.net.InetAddress-int-java.lang.String-boolean-boolean-">addServer</a></span>(java.util.UUID player,
|
||||
java.lang.String name,
|
||||
@ -196,87 +232,87 @@ extends java.lang.Object</pre>
|
||||
<div class="block">Adds a Server to the Network</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i7" class="rowColor">
|
||||
<tr id="i11" class="rowColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#forceRemoveHost-java.lang.String-">forceRemoveHost</a></span>(java.lang.String name)</code>
|
||||
<div class="block">Force Remove a Host from the Network</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i8" class="altColor">
|
||||
<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/SubAPI.html#forceRemoveHost-java.util.UUID-java.lang.String-">forceRemoveHost</a></span>(java.util.UUID player,
|
||||
java.lang.String name)</code>
|
||||
<div class="block">Force Remove a Host from the Network</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i9" class="rowColor">
|
||||
<tr id="i13" class="rowColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#forceRemoveServer-java.lang.String-">forceRemoveServer</a></span>(java.lang.String name)</code>
|
||||
<div class="block">Force Remove a Server from the Network</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i10" class="altColor">
|
||||
<tr id="i14" class="altColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#forceRemoveServer-java.util.UUID-java.lang.String-">forceRemoveServer</a></span>(java.util.UUID player,
|
||||
java.lang.String name)</code>
|
||||
<div class="block">Force Remove a Server from the Network</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i11" class="rowColor">
|
||||
<tr id="i15" class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Library/Version/Version.html" title="class in net.ME1312.SubServers.Bungee.Library.Version">Version</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getBetaVersion--">getBetaVersion</a></span>()</code>
|
||||
<div class="block">Gets the SubServers Beta Version</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i12" class="altColor">
|
||||
<tr id="i16" class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Library/Version/Version.html" title="class in net.ME1312.SubServers.Bungee.Library.Version">Version</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getGameVersion--">getGameVersion</a></span>()</code>
|
||||
<div class="block">Gets the Recommended Minecraft Version</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i13" class="rowColor">
|
||||
<tr id="i17" class="rowColor">
|
||||
<td class="colFirst"><code>java.util.Collection<<a href="../../../../net/ME1312/SubServers/Bungee/Library/NamedContainer.html" title="class in net.ME1312.SubServers.Bungee.Library">NamedContainer</a><java.lang.String,java.util.UUID>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getGlobalPlayers--">getGlobalPlayers</a></span>()</code>
|
||||
<div class="block">Get players on this network across all known proxies</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i14" class="altColor">
|
||||
<tr id="i18" class="altColor">
|
||||
<td class="colFirst"><code>java.util.List<<a href="../../../../net/ME1312/SubServers/Bungee/Host/Server.html" title="interface in net.ME1312.SubServers.Bungee.Host">Server</a>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getGroup-java.lang.String-">getGroup</a></span>(java.lang.String name)</code>
|
||||
<div class="block">Gets a Server Group (Group names are case insensitive here)</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i15" class="rowColor">
|
||||
<tr id="i19" class="rowColor">
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,java.util.List<<a href="../../../../net/ME1312/SubServers/Bungee/Host/Server.html" title="interface in net.ME1312.SubServers.Bungee.Host">Server</a>>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getGroups--">getGroups</a></span>()</code>
|
||||
<div class="block">Gets the Server Groups (Group names are case sensitive here)</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i16" class="altColor">
|
||||
<tr id="i20" class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getHost-java.lang.String-">getHost</a></span>(java.lang.String name)</code>
|
||||
<div class="block">Gets a Host</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i17" class="rowColor">
|
||||
<tr id="i21" class="rowColor">
|
||||
<td class="colFirst"><code>java.util.List<java.lang.String></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getHostDrivers--">getHostDrivers</a></span>()</code>
|
||||
<div class="block">Get a list of all available Host Drivers</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i18" class="altColor">
|
||||
<tr id="i22" class="altColor">
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,<a href="../../../../net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getHosts--">getHosts</a></span>()</code>
|
||||
<div class="block">Gets the Hosts</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i19" class="rowColor">
|
||||
<tr id="i23" class="rowColor">
|
||||
<td class="colFirst"><code>static <a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html" title="class in net.ME1312.SubServers.Bungee">SubAPI</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getInstance--">getInstance</a></span>()</code>
|
||||
<div class="block">Gets the SubAPI Methods</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i20" class="altColor">
|
||||
<tr id="i24" class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/SubPlugin.html" title="class in net.ME1312.SubServers.Bungee">SubPlugin</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getInternals--">getInternals</a></span>()</code>
|
||||
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
||||
@ -284,124 +320,124 @@ extends java.lang.Object</pre>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i21" class="rowColor">
|
||||
<tr id="i25" class="rowColor">
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,java.lang.String></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getLang--">getLang</a></span>()</code>
|
||||
<div class="block">Gets the SubServers Lang</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i22" class="altColor">
|
||||
<tr id="i26" class="altColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getLang-java.lang.String-">getLang</a></span>(java.lang.String key)</code>
|
||||
<div class="block">Gets a value from the SubServers Lang</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i23" class="rowColor">
|
||||
<tr id="i27" class="rowColor">
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,java.util.List<<a href="../../../../net/ME1312/SubServers/Bungee/Host/Server.html" title="interface in net.ME1312.SubServers.Bungee.Host">Server</a>>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getLowercaseGroups--">getLowercaseGroups</a></span>()</code>
|
||||
<div class="block">Gets the Server Groups (Group names are all lowercase here)</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i24" class="altColor">
|
||||
<tr id="i28" class="altColor">
|
||||
<td class="colFirst"><code><R> R</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getObjectBySignature-java.lang.String-">getObjectBySignature</a></span>(java.lang.String signature)</code>
|
||||
<div class="block">Get an Object by it's Signature</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i25" class="rowColor">
|
||||
<tr id="i29" class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Library/Version/Version.html" title="class in net.ME1312.SubServers.Bungee.Library.Version">Version</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getProxyVersion--">getProxyVersion</a></span>()</code>
|
||||
<div class="block">Gets the BungeeCord Version</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i26" class="altColor">
|
||||
<tr id="i30" class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Library/UniversalFile.html" title="class in net.ME1312.SubServers.Bungee.Library">UniversalFile</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getRuntimeDirectory--">getRuntimeDirectory</a></span>()</code>
|
||||
<div class="block">Gets the Runtime Directory</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i27" class="rowColor">
|
||||
<tr id="i31" class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Host/Server.html" title="interface in net.ME1312.SubServers.Bungee.Host">Server</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getServer-java.lang.String-">getServer</a></span>(java.lang.String name)</code>
|
||||
<div class="block">Gets a Server</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i28" class="altColor">
|
||||
<tr id="i32" class="altColor">
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,<a href="../../../../net/ME1312/SubServers/Bungee/Host/Server.html" title="interface in net.ME1312.SubServers.Bungee.Host">Server</a>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getServers--">getServers</a></span>()</code>
|
||||
<div class="block">Gets the Servers (including SubServers)</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i29" class="rowColor">
|
||||
<tr id="i33" class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Network/SubDataServer.html" title="class in net.ME1312.SubServers.Bungee.Network">SubDataServer</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getSubDataNetwork--">getSubDataNetwork</a></span>()</code>
|
||||
<div class="block">Gets the SubData Network Manager</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i30" class="altColor">
|
||||
<tr id="i34" class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Host/SubServer.html" title="interface in net.ME1312.SubServers.Bungee.Host">SubServer</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getSubServer-java.lang.String-">getSubServer</a></span>(java.lang.String name)</code>
|
||||
<div class="block">Gets a SubServer</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i31" class="rowColor">
|
||||
<tr id="i35" class="rowColor">
|
||||
<td class="colFirst"><code>java.util.Map<java.lang.String,<a href="../../../../net/ME1312/SubServers/Bungee/Host/SubServer.html" title="interface in net.ME1312.SubServers.Bungee.Host">SubServer</a>></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getSubServers--">getSubServers</a></span>()</code>
|
||||
<div class="block">Gets the SubServers</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i32" class="altColor">
|
||||
<tr id="i36" class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../../net/ME1312/SubServers/Bungee/Library/Version/Version.html" title="class in net.ME1312.SubServers.Bungee.Library.Version">Version</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#getWrapperVersion--">getWrapperVersion</a></span>()</code>
|
||||
<div class="block">Gets the SubServers Version</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i33" class="rowColor">
|
||||
<tr id="i37" class="rowColor">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#invalidateObjectSignature-java.lang.String-">invalidateObjectSignature</a></span>(java.lang.String signature)</code>
|
||||
<div class="block">Invalidate an Object Signature.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i34" class="altColor">
|
||||
<tr id="i38" class="altColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#removeHost-java.lang.String-">removeHost</a></span>(java.lang.String name)</code>
|
||||
<div class="block">Remove a Host from the Network</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i35" class="rowColor">
|
||||
<tr id="i39" class="rowColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#removeHost-java.util.UUID-java.lang.String-">removeHost</a></span>(java.util.UUID player,
|
||||
java.lang.String name)</code>
|
||||
<div class="block">Remove a Host from the Network</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i36" class="altColor">
|
||||
<tr id="i40" class="altColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#removeServer-java.lang.String-">removeServer</a></span>(java.lang.String name)</code>
|
||||
<div class="block">Remove a Server from the Network</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i37" class="rowColor">
|
||||
<tr id="i41" class="rowColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#removeServer-java.util.UUID-java.lang.String-">removeServer</a></span>(java.util.UUID player,
|
||||
java.lang.String name)</code>
|
||||
<div class="block">Remove a Server from the Network</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i38" class="altColor">
|
||||
<tr id="i42" class="altColor">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#setLang-java.lang.String-java.lang.String-">setLang</a></span>(java.lang.String key,
|
||||
java.lang.String value)</code>
|
||||
<div class="block">Adds to the Language Map</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i39" class="rowColor">
|
||||
<tr id="i43" class="rowColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#signAnonymousObject--">signAnonymousObject</a></span>()</code>
|
||||
<div class="block">Get an Object Signature without linking the Signature to any object</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i40" class="altColor">
|
||||
<tr id="i44" class="altColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/ME1312/SubServers/Bungee/SubAPI.html#signObject-java.lang.Object-">signObject</a></span>(java.lang.Object object)</code>
|
||||
<div class="block">Signs an Object</div>
|
||||
@ -639,6 +675,112 @@ public <a href="../../../../net/ME1312/SubServers/Bungee/SubPlugin.html" ti
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="addHost-java.lang.Class-java.lang.String-boolean-java.net.InetAddress-java.lang.String-java.lang.String-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>addHost</h4>
|
||||
<pre>public <a href="../../../../net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a> addHost(java.lang.Class<? extends <a href="../../../../net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a>> driver,
|
||||
java.lang.String name,
|
||||
boolean enabled,
|
||||
java.net.InetAddress address,
|
||||
java.lang.String directory,
|
||||
java.lang.String gitBash)
|
||||
throws java.lang.NoSuchMethodException,
|
||||
java.lang.IllegalAccessException,
|
||||
java.lang.reflect.InvocationTargetException,
|
||||
java.lang.InstantiationException</pre>
|
||||
<div class="block">Add a Host with a potentially unregistered driver to the Network</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>driver</code> - Driver to initiate</dd>
|
||||
<dd><code>name</code> - Name of the Host</dd>
|
||||
<dd><code>enabled</code> - Enabled Status</dd>
|
||||
<dd><code>address</code> - Address of the Host</dd>
|
||||
<dd><code>directory</code> - Directory of the Host</dd>
|
||||
<dd><code>gitBash</code> - Git Bash Directory</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The Host</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.lang.NoSuchMethodException</code></dd>
|
||||
<dd><code>java.lang.IllegalAccessException</code></dd>
|
||||
<dd><code>java.lang.reflect.InvocationTargetException</code></dd>
|
||||
<dd><code>java.lang.InstantiationException</code></dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="addHost-java.util.UUID-java.lang.Class-java.lang.String-boolean-java.net.InetAddress-java.lang.String-java.lang.String-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>addHost</h4>
|
||||
<pre>public <a href="../../../../net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a> addHost(java.util.UUID player,
|
||||
java.lang.Class<? extends <a href="../../../../net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a>> driver,
|
||||
java.lang.String name,
|
||||
boolean enabled,
|
||||
java.net.InetAddress address,
|
||||
java.lang.String directory,
|
||||
java.lang.String gitBash)
|
||||
throws java.lang.NoSuchMethodException,
|
||||
java.lang.IllegalAccessException,
|
||||
java.lang.reflect.InvocationTargetException,
|
||||
java.lang.InstantiationException</pre>
|
||||
<div class="block">Add a Host with a potentially unregistered driver to the Network</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>player</code> - Player who added</dd>
|
||||
<dd><code>driver</code> - Driver to initiate</dd>
|
||||
<dd><code>name</code> - Name of the Host</dd>
|
||||
<dd><code>enabled</code> - Enabled Status</dd>
|
||||
<dd><code>address</code> - Address of the Host</dd>
|
||||
<dd><code>directory</code> - Directory of the Host</dd>
|
||||
<dd><code>gitBash</code> - Git Bash Directory</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The Host</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.lang.NoSuchMethodException</code></dd>
|
||||
<dd><code>java.lang.IllegalAccessException</code></dd>
|
||||
<dd><code>java.lang.reflect.InvocationTargetException</code></dd>
|
||||
<dd><code>java.lang.InstantiationException</code></dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="addHost-net.ME1312.SubServers.Bungee.Host.Host-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>addHost</h4>
|
||||
<pre>public boolean addHost(<a href="../../../../net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a> host)</pre>
|
||||
<div class="block">Add a Host with a potentially invalid/unregistered driver to the Network</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>host</code> - Host to add</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Success status</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="addHost-java.util.UUID-net.ME1312.SubServers.Bungee.Host.Host-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>addHost</h4>
|
||||
<pre>public boolean addHost(java.util.UUID player,
|
||||
<a href="../../../../net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host">Host</a> host)</pre>
|
||||
<div class="block">Add a Host with a potentially invalid/unregistered driver to the Network</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>player</code> - Player who added</dd>
|
||||
<dd><code>host</code> - Host to add</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Success status</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="removeHost-java.lang.String-">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
Binary file not shown.
@ -104,6 +104,7 @@ public class ExternalSubCreator extends SubCreator {
|
||||
|
||||
SubServer subserver = host.addSubServer(player, name, server.getBoolean("Enabled"), port, server.getColoredString("Motd", '&'), server.getBoolean("Log"), server.getRawString("Directory"),
|
||||
new Executable(server.getRawString("Executable")), server.getRawString("Stop-Command"), true, server.getBoolean("Auto-Restart"), server.getBoolean("Hidden"), server.getBoolean("Restricted"), false);
|
||||
if (!server.getBoolean("Editable", true)) subserver.setEditable(true);
|
||||
if (server.getString("Display").length() > 0) subserver.setDisplayName(server.getString("Display"));
|
||||
for (String group : server.getStringList("Group")) subserver.addGroup(group);
|
||||
if (server.contains("Extra")) for (String extra : server.getSection("Extra").getKeys()) subserver.addExtra(extra, server.getObject(extra));
|
||||
|
@ -219,6 +219,7 @@ public class InternalSubCreator extends SubCreator {
|
||||
|
||||
SubServer subserver = host.addSubServer(player, name, server.getBoolean("Enabled"), port, server.getColoredString("Motd", '&'), server.getBoolean("Log"), server.getRawString("Directory"),
|
||||
new Executable(server.getRawString("Executable")), server.getRawString("Stop-Command"), true, server.getBoolean("Auto-Restart"), server.getBoolean("Hidden"), server.getBoolean("Restricted"), false);
|
||||
if (!server.getBoolean("Editable", true)) subserver.setEditable(true);
|
||||
if (server.getString("Display").length() > 0) subserver.setDisplayName(server.getString("Display"));
|
||||
for (String group : server.getStringList("Group")) subserver.addGroup(group);
|
||||
if (server.contains("Extra")) for (String extra : server.getSection("Extra").getKeys()) subserver.addExtra(extra, server.getObject(extra));
|
||||
|
@ -167,14 +167,75 @@ 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);
|
||||
Host host = plugin.hostDrivers.get(driver.toLowerCase()).getConstructor(SubPlugin.class, String.class, Boolean.class, InetAddress.class, String.class, String.class).newInstance(plugin, name, (Boolean) enabled, address, directory, gitBash);
|
||||
return addHost(player, plugin.hostDrivers.get(driver.toLowerCase()), name, enabled, address, directory, gitBash);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a Host with a potentially unregistered driver to the Network
|
||||
*
|
||||
* @param driver Driver to initiate
|
||||
* @param name Name of the Host
|
||||
* @param enabled Enabled Status
|
||||
* @param address Address of the Host
|
||||
* @param directory Directory of the Host
|
||||
* @param gitBash Git Bash Directory
|
||||
* @return The Host
|
||||
* @throws NoSuchMethodException
|
||||
* @throws IllegalAccessException
|
||||
* @throws InvocationTargetException
|
||||
* @throws InstantiationException
|
||||
*/
|
||||
public Host addHost(Class<? extends Host> driver, String name, boolean enabled, InetAddress address, String directory, String gitBash) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {
|
||||
return addHost(null, driver, name, enabled, address, directory, gitBash);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a Host with a potentially unregistered driver to the Network
|
||||
*
|
||||
* @param player Player who added
|
||||
* @param driver Driver to initiate
|
||||
* @param name Name of the Host
|
||||
* @param enabled Enabled Status
|
||||
* @param address Address of the Host
|
||||
* @param directory Directory of the Host
|
||||
* @param gitBash Git Bash Directory
|
||||
* @return The Host
|
||||
* @throws NoSuchMethodException
|
||||
* @throws IllegalAccessException
|
||||
* @throws InvocationTargetException
|
||||
* @throws InstantiationException
|
||||
*/
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a Host with a potentially invalid/unregistered driver to the Network
|
||||
*
|
||||
* @param host Host to add
|
||||
* @return Success status
|
||||
*/
|
||||
public boolean addHost(Host host) {
|
||||
return addHost(null, host);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a Host with a potentially invalid/unregistered driver to the Network
|
||||
*
|
||||
* @param player Player who added
|
||||
* @param host Host to add
|
||||
* @return Success status
|
||||
*/
|
||||
public boolean addHost(UUID player, Host host) {
|
||||
SubAddHostEvent event = new SubAddHostEvent(player, host);
|
||||
plugin.getPluginManager().callEvent(event);
|
||||
if (!event.isCancelled()) {
|
||||
plugin.hosts.put(name.toLowerCase(), host);
|
||||
return host;
|
||||
plugin.hosts.put(host.getName().toLowerCase(), host);
|
||||
return true;
|
||||
} else {
|
||||
return null;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user