Console Bugfixes/Additons

This commit is contained in:
ME1312 2017-01-11 17:07:03 -05:00
parent 5e8293a8f5
commit 01a7d49780
19 changed files with 909 additions and 182 deletions

Binary file not shown.

Binary file not shown.

View File

@ -60,6 +60,7 @@
<li><a href="net/ME1312/SubServers/Bungee/Library/SubEvent.html" title="interface in net.ME1312.SubServers.Bungee.Library" target="classFrame"><span class="interfaceName">SubEvent</span></a></li>
<li><a href="net/ME1312/SubServers/Bungee/Host/SubLogFilter.html" title="interface in net.ME1312.SubServers.Bungee.Host" target="classFrame"><span class="interfaceName">SubLogFilter</span></a></li>
<li><a href="net/ME1312/SubServers/Bungee/Host/SubLogger.html" title="class in net.ME1312.SubServers.Bungee.Host" target="classFrame">SubLogger</a></li>
<li><a href="net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html" title="class in net.ME1312.SubServers.Bungee.Host" target="classFrame">SubLogger.LogMessage</a></li>
<li><a href="net/ME1312/SubServers/Bungee/SubPlugin.html" title="class in net.ME1312.SubServers.Bungee" target="classFrame">SubPlugin</a></li>
<li><a href="net/ME1312/SubServers/Bungee/Event/SubRemoveServerEvent.html" title="class in net.ME1312.SubServers.Bungee.Event" target="classFrame">SubRemoveServerEvent</a></li>
<li><a href="net/ME1312/SubServers/Bungee/Event/SubSendCommandEvent.html" title="class in net.ME1312.SubServers.Bungee.Event" target="classFrame">SubSendCommandEvent</a></li>

View File

@ -60,6 +60,7 @@
<li><a href="net/ME1312/SubServers/Bungee/Library/SubEvent.html" title="interface in net.ME1312.SubServers.Bungee.Library"><span class="interfaceName">SubEvent</span></a></li>
<li><a href="net/ME1312/SubServers/Bungee/Host/SubLogFilter.html" title="interface in net.ME1312.SubServers.Bungee.Host"><span class="interfaceName">SubLogFilter</span></a></li>
<li><a href="net/ME1312/SubServers/Bungee/Host/SubLogger.html" title="class in net.ME1312.SubServers.Bungee.Host">SubLogger</a></li>
<li><a href="net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html" title="class in net.ME1312.SubServers.Bungee.Host">SubLogger.LogMessage</a></li>
<li><a href="net/ME1312/SubServers/Bungee/SubPlugin.html" title="class in net.ME1312.SubServers.Bungee">SubPlugin</a></li>
<li><a href="net/ME1312/SubServers/Bungee/Event/SubRemoveServerEvent.html" title="class in net.ME1312.SubServers.Bungee.Event">SubRemoveServerEvent</a></li>
<li><a href="net/ME1312/SubServers/Bungee/Event/SubSendCommandEvent.html" title="class in net.ME1312.SubServers.Bungee.Event">SubSendCommandEvent</a></li>

View File

@ -559,6 +559,10 @@
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/Internal/InternalHost.html#getCreator--">getCreator()</a></span> - Method in class net.ME1312.SubServers.Bungee.Host.Internal.<a href="net/ME1312/SubServers/Bungee/Host/Internal/InternalHost.html" title="class in net.ME1312.SubServers.Bungee.Host.Internal">InternalHost</a></dt>
<dd>&nbsp;</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html#getDate--">getDate()</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 date this message was logged</div>
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Library/Config/YAMLValue.html#getDefiningSection--">getDefiningSection()</a></span> - Method in class net.ME1312.SubServers.Bungee.Library.Config.<a href="net/ME1312/SubServers/Bungee/Library/Config/YAMLValue.html" title="class in net.ME1312.SubServers.Bungee.Library.Config">YAMLValue</a></dt>
<dd>
<div class="block">Get the YAML Section this Object was defined in</div>
@ -633,9 +637,9 @@
<dd>
<div class="block">Get Content Handle</div>
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/Internal/InternalSubLogger.html#getHandle--">getHandle()</a></span> - Method in class net.ME1312.SubServers.Bungee.Host.Internal.<a href="net/ME1312/SubServers/Bungee/Host/Internal/InternalSubLogger.html" title="class in net.ME1312.SubServers.Bungee.Host.Internal">InternalSubLogger</a></dt>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/Internal/InternalSubLogger.html#getHandler--">getHandler()</a></span> - Method in class net.ME1312.SubServers.Bungee.Host.Internal.<a href="net/ME1312/SubServers/Bungee/Host/Internal/InternalSubLogger.html" title="class in net.ME1312.SubServers.Bungee.Host.Internal">InternalSubLogger</a></dt>
<dd>&nbsp;</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/SubLogger.html#getHandle--">getHandle()</a></span> - Method in class net.ME1312.SubServers.Bungee.Host.<a href="net/ME1312/SubServers/Bungee/Host/SubLogger.html" title="class in net.ME1312.SubServers.Bungee.Host">SubLogger</a></dt>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/SubLogger.html#getHandler--">getHandler()</a></span> - Method in class net.ME1312.SubServers.Bungee.Host.<a href="net/ME1312/SubServers/Bungee/Host/SubLogger.html" title="class in net.ME1312.SubServers.Bungee.Host">SubLogger</a></dt>
<dd>
<div class="block">Gets the Object using this Logger</div>
</dd>
@ -709,6 +713,10 @@
<dd>
<div class="block">Gets the SubServers Lang</div>
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html#getLevel--">getLevel()</a></span> - Method in class net.ME1312.SubServers.Bungee.Host.<a href="net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html" title="class in net.ME1312.SubServers.Bungee.Host">SubLogger.LogMessage</a></dt>
<dd>
<div class="block">Get the level this message was logged on</div>
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Library/Config/YAMLSection.html#getList-java.lang.String-">getList(String)</a></span> - Method in class net.ME1312.SubServers.Bungee.Library.Config.<a href="net/ME1312/SubServers/Bungee/Library/Config/YAMLSection.html" title="class in net.ME1312.SubServers.Bungee.Library.Config">YAMLSection</a></dt>
<dd>
<div class="block">Get a List by Handle</div>
@ -753,6 +761,16 @@
<dd>
<div class="block">Get the Server RAM Amount (in MB)</div>
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html#getMessage--">getMessage()</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 message</div>
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/Internal/InternalSubLogger.html#getMessages--">getMessages()</a></span> - Method in class net.ME1312.SubServers.Bungee.Host.Internal.<a href="net/ME1312/SubServers/Bungee/Host/Internal/InternalSubLogger.html" title="class in net.ME1312.SubServers.Bungee.Host.Internal">InternalSubLogger</a></dt>
<dd>&nbsp;</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/SubLogger.html#getMessages--">getMessages()</a></span> - Method in class net.ME1312.SubServers.Bungee.Host.<a href="net/ME1312/SubServers/Bungee/Host/SubLogger.html" title="class in net.ME1312.SubServers.Bungee.Host">SubLogger</a></dt>
<dd>
<div class="block">Gets a list of all the messages logged by this logger</div>
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/Server.html#getMotd--">getMotd()</a></span> - Method in class net.ME1312.SubServers.Bungee.Host.<a href="net/ME1312/SubServers/Bungee/Host/Server.html" title="class in net.ME1312.SubServers.Bungee.Host">Server</a></dt>
<dd>
<div class="block">Gets the MOTD of the Server</div>
@ -1256,7 +1274,9 @@
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/Internal/InternalSubServer.html#isLogging--">isLogging()</a></span> - Method in class net.ME1312.SubServers.Bungee.Host.Internal.<a href="net/ME1312/SubServers/Bungee/Host/Internal/InternalSubServer.html" title="class in net.ME1312.SubServers.Bungee.Host.Internal">InternalSubServer</a></dt>
<dd>&nbsp;</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/SubLogger.html#isLogging--">isLogging()</a></span> - Method in class net.ME1312.SubServers.Bungee.Host.<a href="net/ME1312/SubServers/Bungee/Host/SubLogger.html" title="class in net.ME1312.SubServers.Bungee.Host">SubLogger</a></dt>
<dd>&nbsp;</dd>
<dd>
<div class="block">Get if the Logger is currently logging</div>
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/SubServer.html#isLogging--">isLogging()</a></span> - Method in class net.ME1312.SubServers.Bungee.Host.<a href="net/ME1312/SubServers/Bungee/Host/SubServer.html" title="class in net.ME1312.SubServers.Bungee.Host">SubServer</a></dt>
<dd>
<div class="block">If the Server is Logging</div>
@ -1343,6 +1363,18 @@
<dd>
<div class="block">Determine if this message should be logged</div>
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html#LogMessage-java.lang.String-">LogMessage(String)</a></span> - Constructor for 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">Store a Message</div>
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html#LogMessage-java.util.logging.Level-java.lang.String-">LogMessage(Level, String)</a></span> - Constructor for 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">Store a Message</div>
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html#LogMessage-java.util.Date-java.util.logging.Level-java.lang.String-">LogMessage(Date, Level, String)</a></span> - Constructor for 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">Store a Message</div>
</dd>
</dl>
<a name="I:M">
<!-- -->
@ -1950,6 +1982,10 @@
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Bungee/Host/SubLogger.html#SubLogger--">SubLogger()</a></span> - Constructor for class net.ME1312.SubServers.Bungee.Host.<a href="net/ME1312/SubServers/Bungee/Host/SubLogger.html" title="class in net.ME1312.SubServers.Bungee.Host">SubLogger</a></dt>
<dd>&nbsp;</dd>
<dt><a href="net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html" title="class in net.ME1312.SubServers.Bungee.Host"><span class="typeNameLink">SubLogger.LogMessage</span></a> - Class in <a href="net/ME1312/SubServers/Bungee/Host/package-summary.html">net.ME1312.SubServers.Bungee.Host</a></dt>
<dd>
<div class="block">Log Message Storage Class</div>
</dd>
<dt><a href="net/ME1312/SubServers/Bungee/SubPlugin.html" title="class in net.ME1312.SubServers.Bungee"><span class="typeNameLink">SubPlugin</span></a> - Class in <a href="net/ME1312/SubServers/Bungee/package-summary.html">net.ME1312.SubServers.Bungee</a></dt>
<dd>
<div class="block">Main Plugin Class</div>

View File

@ -17,7 +17,7 @@
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10};
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
@ -72,7 +72,7 @@ var activeTableTab = "activeTableTab";
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#nested.classes.inherited.from.class.net.ME1312.SubServers.Bungee.Host.SubLogger">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
@ -121,6 +121,21 @@ extends <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.h
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.net.ME1312.SubServers.Bungee.Host.SubLogger">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from class&nbsp;net.ME1312.SubServers.Bungee.Host.<a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html" title="class in net.ME1312.SubServers.Bungee.Host">SubLogger</a></h3>
<code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html" title="class in net.ME1312.SubServers.Bungee.Host">SubLogger.LogMessage</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
@ -158,39 +173,47 @@ extends <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.h
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>java.lang.Object</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Internal/InternalSubLogger.html#getHandle--">getHandle</a></span>()</code>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Internal/InternalSubLogger.html#getHandler--">getHandler</a></span>()</code>
<div class="block">Gets the Object using this Logger</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>java.util.List&lt;<a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html" title="class in net.ME1312.SubServers.Bungee.Host">SubLogger.LogMessage</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Internal/InternalSubLogger.html#getMessages--">getMessages</a></span>()</code>
<div class="block">Gets a list of all the messages logged by this logger</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/Bungee/Host/Internal/InternalSubLogger.html#getName--">getName</a></span>()</code>
<div class="block">Gets the Name of the task logging</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Internal/InternalSubLogger.html#isLogging--">isLogging</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Internal/InternalSubLogger.html#isLogging--">isLogging</a></span>()</code>
<div class="block">Get if the Logger is currently logging</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Internal/InternalSubLogger.html#registerFilter-net.ME1312.SubServers.Bungee.Host.SubLogFilter-">registerFilter</a></span>(<a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubLogFilter.html" title="interface in net.ME1312.SubServers.Bungee.Host">SubLogFilter</a>&nbsp;filter)</code>
<div class="block">Register Filter</div>
</td>
</tr>
<tr id="i4" class="altColor">
<tr id="i5" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/Internal/InternalSubLogger.html#start--">start</a></span>()</code>
<div class="block">Start Logger</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<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/Host/Internal/InternalSubLogger.html#stop--">stop</a></span>()</code>
<div class="block">Stop Logger</div>
</td>
</tr>
<tr id="i6" class="altColor">
<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/Host/Internal/InternalSubLogger.html#unregisterFilter-net.ME1312.SubServers.Bungee.Host.SubLogFilter-">unregisterFilter</a></span>(<a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubLogFilter.html" title="interface in net.ME1312.SubServers.Bungee.Host">SubLogFilter</a>&nbsp;filter)</code>
<div class="block">Unregister Filter</div>
@ -312,18 +335,18 @@ extends <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.h
</dl>
</li>
</ul>
<a name="getHandle--">
<a name="getHandler--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHandle</h4>
<pre>public&nbsp;java.lang.Object&nbsp;getHandle()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html#getHandle--">SubLogger</a></code></span></div>
<h4>getHandler</h4>
<pre>public&nbsp;java.lang.Object&nbsp;getHandler()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html#getHandler--">SubLogger</a></code></span></div>
<div class="block">Gets the Object using this Logger</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html#getHandle--">getHandle</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html" title="class in net.ME1312.SubServers.Bungee.Host">SubLogger</a></code></dd>
<dd><code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html#getHandler--">getHandler</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html" title="class in net.ME1312.SubServers.Bungee.Host">SubLogger</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Object</dd>
</dl>
@ -349,13 +372,34 @@ extends <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.h
<a name="isLogging--">
<!-- -->
</a>
<ul class="blockListLast">
<ul class="blockList">
<li class="blockList">
<h4>isLogging</h4>
<pre>public&nbsp;boolean&nbsp;isLogging()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html#isLogging--">SubLogger</a></code></span></div>
<div class="block">Get if the Logger is currently logging</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html#isLogging--">isLogging</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html" title="class in net.ME1312.SubServers.Bungee.Host">SubLogger</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Logging Status</dd>
</dl>
</li>
</ul>
<a name="getMessages--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getMessages</h4>
<pre>public&nbsp;java.util.List&lt;<a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html" title="class in net.ME1312.SubServers.Bungee.Host">SubLogger.LogMessage</a>&gt;&nbsp;getMessages()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html#getMessages--">SubLogger</a></code></span></div>
<div class="block">Gets a list of all the messages logged by this logger</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html#getMessages--">getMessages</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html" title="class in net.ME1312.SubServers.Bungee.Host">SubLogger</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Log Messages (named by log level)</dd>
</dl>
</li>
</ul>
@ -411,7 +455,7 @@ extends <a href="../../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.h
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#nested.classes.inherited.from.class.net.ME1312.SubServers.Bungee.Host.SubLogger">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>

View File

@ -0,0 +1,374 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>SubLogger.LogMessage (SubServers.Bungee)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="SubLogger.LogMessage (SubServers.Bungee)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html" title="class in net.ME1312.SubServers.Bungee.Host"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubServer.html" title="class in net.ME1312.SubServers.Bungee.Host"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html" target="_top">Frames</a></li>
<li><a href="SubLogger.LogMessage.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">net.ME1312.SubServers.Bungee.Host</div>
<h2 title="Class SubLogger.LogMessage" class="title">Class SubLogger.LogMessage</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>net.ME1312.SubServers.Bungee.Host.SubLogger.LogMessage</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>Enclosing class:</dt>
<dd><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html" title="class in net.ME1312.SubServers.Bungee.Host">SubLogger</a></dd>
</dl>
<hr>
<br>
<pre>public static class <span class="typeNameLabel">SubLogger.LogMessage</span>
extends java.lang.Object</pre>
<div class="block">Log Message Storage Class</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html#LogMessage-java.util.Date-java.util.logging.Level-java.lang.String-">LogMessage</a></span>(java.util.Date&nbsp;date,
java.util.logging.Level&nbsp;level,
java.lang.String&nbsp;message)</code>
<div class="block">Store a Message</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html#LogMessage-java.util.logging.Level-java.lang.String-">LogMessage</a></span>(java.util.logging.Level&nbsp;level,
java.lang.String&nbsp;message)</code>
<div class="block">Store a Message</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html#LogMessage-java.lang.String-">LogMessage</a></span>(java.lang.String&nbsp;message)</code>
<div class="block">Store a Message</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>java.util.Date</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html#getDate--">getDate</a></span>()</code>
<div class="block">Get the date this message was logged</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>java.util.logging.Level</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html#getLevel--">getLevel</a></span>()</code>
<div class="block">Get the level this message was logged on</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/Bungee/Host/SubLogger.LogMessage.html#getMessage--">getMessage</a></span>()</code>
<div class="block">Get the message</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="LogMessage-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LogMessage</h4>
<pre>public&nbsp;LogMessage(java.lang.String&nbsp;message)</pre>
<div class="block">Store a Message</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>message</code> - Message</dd>
</dl>
</li>
</ul>
<a name="LogMessage-java.util.logging.Level-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LogMessage</h4>
<pre>public&nbsp;LogMessage(java.util.logging.Level&nbsp;level,
java.lang.String&nbsp;message)</pre>
<div class="block">Store a Message</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>level</code> - Log Level</dd>
<dd><code>message</code> - Message</dd>
</dl>
</li>
</ul>
<a name="LogMessage-java.util.Date-java.util.logging.Level-java.lang.String-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>LogMessage</h4>
<pre>public&nbsp;LogMessage(java.util.Date&nbsp;date,
java.util.logging.Level&nbsp;level,
java.lang.String&nbsp;message)</pre>
<div class="block">Store a Message</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>date</code> - Date</dd>
<dd><code>level</code> - Log Level</dd>
<dd><code>message</code> - Message</dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getDate--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDate</h4>
<pre>public&nbsp;java.util.Date&nbsp;getDate()</pre>
<div class="block">Get the date this message was logged</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Date</dd>
</dl>
</li>
</ul>
<a name="getLevel--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLevel</h4>
<pre>public&nbsp;java.util.logging.Level&nbsp;getLevel()</pre>
<div class="block">Get the level this message was logged on</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Log Level</dd>
</dl>
</li>
</ul>
<a name="getMessage--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getMessage</h4>
<pre>public&nbsp;java.lang.String&nbsp;getMessage()</pre>
<div class="block">Get the message</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Message</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html" title="class in net.ME1312.SubServers.Bungee.Host"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubServer.html" title="class in net.ME1312.SubServers.Bungee.Host"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html" target="_top">Frames</a></li>
<li><a href="SubLogger.LogMessage.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>

View File

@ -17,7 +17,7 @@
catch(err) {
}
//-->
var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6};
var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
@ -48,7 +48,7 @@ var activeTableTab = "activeTableTab";
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogFilter.html" title="interface in net.ME1312.SubServers.Bungee.Host"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubServer.html" title="class in net.ME1312.SubServers.Bungee.Host"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
<li><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html" title="class in net.ME1312.SubServers.Bungee.Host"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?net/ME1312/SubServers/Bungee/Host/SubLogger.html" target="_top">Frames</a></li>
@ -72,7 +72,7 @@ var activeTableTab = "activeTableTab";
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
@ -120,6 +120,27 @@ extends java.lang.Object</pre>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html" title="class in net.ME1312.SubServers.Bungee.Host">SubLogger.LogMessage</a></span></code>
<div class="block">Log Message Storage Class</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
@ -151,39 +172,47 @@ extends java.lang.Object</pre>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>abstract java.lang.Object</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html#getHandle--">getHandle</a></span>()</code>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html#getHandler--">getHandler</a></span>()</code>
<div class="block">Gets the Object using this Logger</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>abstract java.util.List&lt;<a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html" title="class in net.ME1312.SubServers.Bungee.Host">SubLogger.LogMessage</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html#getMessages--">getMessages</a></span>()</code>
<div class="block">Gets a list of all the messages logged by this logger</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>abstract java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html#getName--">getName</a></span>()</code>
<div class="block">Gets the Name of the task logging</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>abstract boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html#isLogging--">isLogging</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>abstract boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html#isLogging--">isLogging</a></span>()</code>
<div class="block">Get if the Logger is currently logging</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html#registerFilter-net.ME1312.SubServers.Bungee.Host.SubLogFilter-">registerFilter</a></span>(<a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogFilter.html" title="interface in net.ME1312.SubServers.Bungee.Host">SubLogFilter</a>&nbsp;filter)</code>
<div class="block">Register Filter</div>
</td>
</tr>
<tr id="i4" class="altColor">
<tr id="i5" class="rowColor">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html#start--">start</a></span>()</code>
<div class="block">Start Logger</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<tr id="i6" class="altColor">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html#stop--">stop</a></span>()</code>
<div class="block">Stop Logger</div>
</td>
</tr>
<tr id="i6" class="altColor">
<tr id="i7" class="rowColor">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html#unregisterFilter-net.ME1312.SubServers.Bungee.Host.SubLogFilter-">unregisterFilter</a></span>(<a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogFilter.html" title="interface in net.ME1312.SubServers.Bungee.Host">SubLogFilter</a>&nbsp;filter)</code>
<div class="block">Unregister Filter</div>
@ -242,13 +271,13 @@ extends java.lang.Object</pre>
</dl>
</li>
</ul>
<a name="getHandle--">
<a name="getHandler--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHandle</h4>
<pre>public abstract&nbsp;java.lang.Object&nbsp;getHandle()</pre>
<h4>getHandler</h4>
<pre>public abstract&nbsp;java.lang.Object&nbsp;getHandler()</pre>
<div class="block">Gets the Object using this Logger</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@ -283,6 +312,25 @@ extends java.lang.Object</pre>
<li class="blockList">
<h4>isLogging</h4>
<pre>public abstract&nbsp;boolean&nbsp;isLogging()</pre>
<div class="block">Get if the Logger is currently logging</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Logging Status</dd>
</dl>
</li>
</ul>
<a name="getMessages--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMessages</h4>
<pre>public abstract&nbsp;java.util.List&lt;<a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html" title="class in net.ME1312.SubServers.Bungee.Host">SubLogger.LogMessage</a>&gt;&nbsp;getMessages()</pre>
<div class="block">Gets a list of all the messages logged by this logger</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Log Messages (named by log level)</dd>
</dl>
</li>
</ul>
<a name="registerFilter-net.ME1312.SubServers.Bungee.Host.SubLogFilter-">
@ -341,7 +389,7 @@ extends java.lang.Object</pre>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogFilter.html" title="interface in net.ME1312.SubServers.Bungee.Host"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubServer.html" title="class in net.ME1312.SubServers.Bungee.Host"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
<li><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html" title="class in net.ME1312.SubServers.Bungee.Host"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?net/ME1312/SubServers/Bungee/Host/SubLogger.html" target="_top">Frames</a></li>
@ -365,7 +413,7 @@ extends java.lang.Object</pre>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>

View File

@ -47,7 +47,7 @@ var activeTableTab = "activeTableTab";
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html" title="class in net.ME1312.SubServers.Bungee.Host"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html" title="class in net.ME1312.SubServers.Bungee.Host"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li>Next&nbsp;Class</li>
</ul>
<ul class="navList">
@ -717,7 +717,7 @@ extends <a href="../../../../../net/ME1312/SubServers/Bungee/Host/Server.html" t
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html" title="class in net.ME1312.SubServers.Bungee.Host"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html" title="class in net.ME1312.SubServers.Bungee.Host"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li>Next&nbsp;Class</li>
</ul>
<ul class="navList">

View File

@ -21,6 +21,7 @@
<li><a href="Server.html" title="class in net.ME1312.SubServers.Bungee.Host" target="classFrame">Server</a></li>
<li><a href="SubCreator.html" title="class in net.ME1312.SubServers.Bungee.Host" target="classFrame">SubCreator</a></li>
<li><a href="SubLogger.html" title="class in net.ME1312.SubServers.Bungee.Host" target="classFrame">SubLogger</a></li>
<li><a href="SubLogger.LogMessage.html" title="class in net.ME1312.SubServers.Bungee.Host" target="classFrame">SubLogger.LogMessage</a></li>
<li><a href="SubServer.html" title="class in net.ME1312.SubServers.Bungee.Host" target="classFrame">SubServer</a></li>
</ul>
<h2 title="Enums">Enums</h2>

View File

@ -128,6 +128,12 @@
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html" title="class in net.ME1312.SubServers.Bungee.Host">SubLogger.LogMessage</a></td>
<td class="colLast">
<div class="block">Log Message Storage Class</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubServer.html" title="class in net.ME1312.SubServers.Bungee.Host">SubServer</a></td>
<td class="colLast">
<div class="block">SubServer Layout Class</div>

View File

@ -92,6 +92,7 @@
<li type="circle">net.ME1312.SubServers.Bungee.Host.<a href="../../../../../net/ME1312/SubServers/Bungee/Host/Host.html" title="class in net.ME1312.SubServers.Bungee.Host"><span class="typeNameLink">Host</span></a> (implements net.ME1312.SubServers.Bungee.Library.<a href="../../../../../net/ME1312/SubServers/Bungee/Library/ExtraDataHandler.html" title="interface in net.ME1312.SubServers.Bungee.Library">ExtraDataHandler</a>)</li>
<li type="circle">net.ME1312.SubServers.Bungee.Host.<a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubCreator.html" title="class in net.ME1312.SubServers.Bungee.Host"><span class="typeNameLink">SubCreator</span></a></li>
<li type="circle">net.ME1312.SubServers.Bungee.Host.<a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.html" title="class in net.ME1312.SubServers.Bungee.Host"><span class="typeNameLink">SubLogger</span></a></li>
<li type="circle">net.ME1312.SubServers.Bungee.Host.<a href="../../../../../net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html" title="class in net.ME1312.SubServers.Bungee.Host"><span class="typeNameLink">SubLogger.LogMessage</span></a></li>
</ul>
</li>
</ul>

View File

@ -175,6 +175,7 @@
<li type="circle">net.ME1312.SubServers.Bungee.Host.Internal.<a href="net/ME1312/SubServers/Bungee/Host/Internal/InternalSubLogger.html" title="class in net.ME1312.SubServers.Bungee.Host.Internal"><span class="typeNameLink">InternalSubLogger</span></a></li>
</ul>
</li>
<li type="circle">net.ME1312.SubServers.Bungee.Host.<a href="net/ME1312/SubServers/Bungee/Host/SubLogger.LogMessage.html" title="class in net.ME1312.SubServers.Bungee.Host"><span class="typeNameLink">SubLogger.LogMessage</span></a></li>
<li type="circle">java.lang.Throwable (implements java.io.Serializable)
<ul>
<li type="circle">java.lang.Exception

View File

@ -2,4 +2,4 @@ Manifest-Version: 1.0
Class-Path: BungeeCord.jar
Main-Class: net.ME1312.SubServers.Bungee.Launch
Implementation-Version: 2.11.2f
Specification-Version: 2
Specification-Version: 3

View File

@ -3,10 +3,13 @@ package net.ME1312.SubServers.Bungee.Host.Internal;
import net.ME1312.SubServers.Bungee.Host.SubLogFilter;
import net.ME1312.SubServers.Bungee.Host.SubLogger;
import net.ME1312.SubServers.Bungee.Library.Container;
import net.ME1312.SubServers.Bungee.Library.NamedContainer;
import net.md_5.bungee.api.ProxyServer;
import java.io.*;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.logging.Level;
import java.util.regex.Matcher;
@ -21,6 +24,7 @@ public class InternalSubLogger extends SubLogger {
protected String name;
protected Container<Boolean> log;
private List<SubLogFilter> filters = new ArrayList<SubLogFilter>();
private List<LogMessage> messages = new LinkedList<LogMessage>();
protected File file;
private PrintWriter writer = null;
private boolean started = false;
@ -58,7 +62,11 @@ public class InternalSubLogger extends SubLogger {
}
if (out == null) (out = new Thread(() -> start(process.getInputStream(), false))).start();
if (err == null) (err = new Thread(() -> start(process.getErrorStream(), true))).start();
for (SubLogFilter filter : filters) filter.start();
for (SubLogFilter filter : filters) try {
filter.start();
} catch (Throwable e) {
new InvocationTargetException(e, "Exception while running SubLogger Event").printStackTrace();
}
}
private void start(InputStream in, boolean isErr) {
@ -67,41 +75,48 @@ public class InternalSubLogger extends SubLogger {
String line;
while ((line = br.readLine()) != null) {
if (!line.startsWith(">")) {
if (log.get()) {
String msg = line;
Level level;
String msg = line;
Level level;
// REGEX Formatting
String type = "";
Matcher matcher = Pattern.compile("^((?:\\s*\\[?([0-9]{2}:[0-9]{2}:[0-9]{2})]?)?[\\s\\/\\\\\\|]*(?:\\[|\\[.*\\/)?(MESSAGE|INFO|WARN|WARNING|ERROR|ERR|SEVERE)\\]?:?\\s*)").matcher(msg);
while (matcher.find()) {
type = matcher.group(3).toUpperCase();
}
msg = msg.replaceAll("^((?:\\s*\\[?([0-9]{2}:[0-9]{2}:[0-9]{2})]?)?[\\s\\/\\\\\\|]*(?:\\[|\\[.*\\/)?(MESSAGE|INFO|WARN|WARNING|ERROR|ERR|SEVERE)\\]?:?\\s*)", "");
// Determine LOG LEVEL
switch (type) {
case "WARNING":
case "WARN":
level = Level.WARNING;
break;
case "SEVERE":
case "ERROR":
case "ERR":
level = Level.SEVERE;
break;
default:
level = Level.INFO;
}
// Filter Message
boolean allow = true;
for (SubLogFilter filter : filters) if (allow) allow = filter.log(level, msg);
if (allow) ProxyServer.getInstance().getLogger().log(level, name + " > " + msg);
// REGEX Formatting
String type = "";
Matcher matcher = Pattern.compile("^((?:\\s*\\[?([0-9]{2}:[0-9]{2}:[0-9]{2})]?)?[\\s\\/\\\\\\|]*(?:\\[|\\[.*\\/)?(MESSAGE|INFO|WARN|WARNING|ERROR|ERR|SEVERE)\\]?:?\\s*)").matcher(msg);
while (matcher.find()) {
type = matcher.group(3).toUpperCase();
}
msg = msg.replaceAll("^((?:\\s*\\[?([0-9]{2}:[0-9]{2}:[0-9]{2})]?)?[\\s\\/\\\\\\|]*(?:\\[|\\[.*\\/)?(MESSAGE|INFO|WARN|WARNING|ERROR|ERR|SEVERE)\\]?:?\\s*)", "");
// Determine LOG LEVEL
switch (type) {
case "WARNING":
case "WARN":
level = Level.WARNING;
break;
case "SEVERE":
case "ERROR":
case "ERR":
level = Level.SEVERE;
break;
default:
level = Level.INFO;
}
// Filter Message
boolean allow = true;
for (SubLogFilter filter : filters)
try {
if (allow) allow = filter.log(level, msg);
} catch (Throwable e) {
new InvocationTargetException(e, "Exception while running SubLogger Event").printStackTrace();
}
// Log to CONSOLE
if (log.get() && allow) ProxyServer.getInstance().getLogger().log(level, name + " > " + msg);
// Log to MEMORY
messages.add(new LogMessage(level, msg));
// Log to FILE
if (writer != null) {
writer.println(line);
@ -140,7 +155,12 @@ public class InternalSubLogger extends SubLogger {
private void destroy() {
if (started) {
started = false;
for (SubLogFilter filter : filters) filter.stop();
for (SubLogFilter filter : filters) try {
filter.stop();
} catch (Throwable e) {
new InvocationTargetException(e, "Exception while running SubLogger Event").printStackTrace();
}
messages.clear();
if (writer != null) {
int l = (int) Math.floor((("---------- LOG START \u2014 " + name + " ----------").length() - 9) / 2);
String s = "";
@ -153,7 +173,7 @@ public class InternalSubLogger extends SubLogger {
}
@Override
public Object getHandle() {
public Object getHandler() {
return handle;
}
@ -166,4 +186,9 @@ public class InternalSubLogger extends SubLogger {
public boolean isLogging() {
return log.get();
}
@Override
public List<LogMessage> getMessages() {
return new LinkedList<LogMessage>(messages);
}
}

View File

@ -1,9 +1,88 @@
package net.ME1312.SubServers.Bungee.Host;
import net.ME1312.SubServers.Bungee.Library.NamedContainer;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.logging.Level;
/**
* SubLogger Layout Class
*/
public abstract class SubLogger {
/**
* Log Message Storage Class
*/
public static class LogMessage {
private Date date;
private Level level;
private String message;
/**
* Store a Message
*
* @param message Message
*/
public LogMessage(String message) {
this.date = Calendar.getInstance().getTime();
this.level = Level.INFO;
this.message = message;
}
/**
* Store a Message
*
* @param level Log Level
* @param message Message
*/
public LogMessage(Level level, String message) {
this.date = Calendar.getInstance().getTime();
this.level = level;
this.message = message;
}
/**
* Store a Message
*
* @param date Date
* @param level Log Level
* @param message Message
*/
public LogMessage(Date date, Level level, String message) {
this.date = date;
this.level = level;
this.message = message;
}
/**
* Get the date this message was logged
*
* @return Date
*/
public Date getDate() {
return date;
}
/**
* Get the level this message was logged on
*
* @return Log Level
*/
public Level getLevel() {
return level;
}
/**
* Get the message
*
* @return Message
*/
public String getMessage() {
return message;
}
}
/**
* Gets the Name of the task logging
@ -17,7 +96,7 @@ public abstract class SubLogger {
*
* @return Object
*/
public abstract Object getHandle();
public abstract Object getHandler();
/**
* Start Logger
@ -29,8 +108,20 @@ public abstract class SubLogger {
*/
public abstract void stop();
/**
* Get if the Logger is currently logging
*
* @return Logging Status
*/
public abstract boolean isLogging();
/**
* Gets a list of all the messages logged by this logger
*
* @return Log Messages (named by log level)
*/
public abstract List<LogMessage> getMessages();
/**
* Register Filter
*

View File

@ -3,6 +3,9 @@ package net.ME1312.SubServers.Console;
import net.ME1312.SubServers.Bungee.Event.SubCreateEvent;
import net.ME1312.SubServers.Bungee.Event.SubSendCommandEvent;
import net.ME1312.SubServers.Bungee.Event.SubStartEvent;
import net.ME1312.SubServers.Bungee.Host.Host;
import net.ME1312.SubServers.Bungee.Host.SubCreator;
import net.ME1312.SubServers.Bungee.Host.SubServer;
import net.ME1312.SubServers.Bungee.Library.Config.YAMLConfig;
import net.ME1312.SubServers.Bungee.SubPlugin;
import net.md_5.bungee.api.plugin.Listener;
@ -32,7 +35,9 @@ public class ConsolePlugin extends Plugin implements Listener {
save = true;
} if (!config.get().getKeys().contains("Enabled-Creators")) {
config.get().set("Enabled-Creators", Collections.emptyList());
save = true;
}
if (save) config.save();
getProxy().getPluginManager().registerListener(this, this);
getProxy().getPluginManager().registerCommand(this, new PopoutCommand.SERVER(this, "popout"));
@ -54,7 +59,7 @@ public class ConsolePlugin extends Plugin implements Listener {
public void onServerCreate(SubCreateEvent event) {
if (!event.isCancelled() && config.get().getStringList("Enabled-Creators").contains(event.getHost().getName().toLowerCase())) {
if (!cCurrent.keySet().contains(event.getHost().getName().toLowerCase())) {
cCurrent.put(event.getHost().getName().toLowerCase(), new ConsoleWindow(event.getHost().getCreator().getLogger()));
SwingUtilities.invokeLater(() -> cCurrent.put(event.getHost().getName().toLowerCase(), new ConsoleWindow(this, event.getHost().getCreator().getLogger())));
} else {
cCurrent.get(event.getHost().getName().toLowerCase()).clear();
}
@ -65,7 +70,7 @@ public class ConsolePlugin extends Plugin implements Listener {
public void onServerStart(SubStartEvent event) {
if (!event.isCancelled() && config.get().getStringList("Enabled-Servers").contains(event.getServer().getName().toLowerCase())) {
if (!sCurrent.keySet().contains(event.getServer().getName().toLowerCase())) {
sCurrent.put(event.getServer().getName().toLowerCase(), new ConsoleWindow(event.getServer().getLogger()));
SwingUtilities.invokeLater(() -> sCurrent.put(event.getServer().getName().toLowerCase(), new ConsoleWindow(this, event.getServer().getLogger())));
} else {
sCurrent.get(event.getServer().getName().toLowerCase()).clear();
}
@ -79,6 +84,37 @@ public class ConsolePlugin extends Plugin implements Listener {
}
}
public void onClose(ConsoleWindow window) {
if (window.getLogger().getHandler() instanceof SubServer) {
SubServer server = (SubServer) window.getLogger().getHandler();
if (!config.get().getStringList("Enabled-Servers").contains(server.getName().toLowerCase())) {
window.destroy();
sCurrent.remove(server.getName().toLowerCase());
}
} else if (window.getLogger().getHandler() instanceof SubCreator) {
Host host = ((SubCreator) window.getLogger().getHandler()).getHost();
if (!config.get().getStringList("Enabled-Creators").contains(host.getName().toLowerCase())) {
window.destroy();
sCurrent.remove(host.getName().toLowerCase());
}
} else {
window.destroy();
}
}
@Override
public void onDisable() {
for (ConsoleWindow window : sCurrent.values()) {
window.destroy();
}
sCurrent.clear();
for (ConsoleWindow window : cCurrent.values()) {
window.destroy();
}
cCurrent.clear();
}
@Override
public SubPlugin getProxy() {
return (SubPlugin) super.getProxy();

View File

@ -15,9 +15,11 @@ import java.util.List;
import java.util.logging.Level;
public class ConsoleWindow implements SubLogFilter {
private ConsolePlugin plugin;
private JFrame window;
private JPanel panel;
private JTextField input;
private boolean ifocus = false;
private TextFieldPopup popup;
private JTextArea log;
private JScrollPane vScroll;
@ -31,32 +33,40 @@ public class ConsoleWindow implements SubLogFilter {
private int findO = 0;
private int findI = 0;
private List<Runnable> events;
private boolean running;
private boolean open;
private boolean running = false;
private boolean open = false;
private SubLogger logger;
private KeyEventDispatcher keys = event -> {
if (window.isVisible() && window.isFocused()) {
switch (event.getID()) {
case KeyEvent.KEY_PRESSED:
if (event.getKeyCode() == KeyEvent.VK_UP) {
if (event.getID() == KeyEvent.KEY_RELEASED) switch (event.getKeyCode()) {
case KeyEvent.VK_UP:
if (ifocus)
popup.prev(input);
break;
case KeyEvent.VK_DOWN:
if (ifocus)
popup.next(input);
break;
case KeyEvent.VK_ESCAPE:
if (find.isVisible()) {
find.setVisible(false);
findI = 0;
findO = 0;
}
break;
case KeyEvent.KEY_RELEASED:
if (event.getKeyCode() == KeyEvent.VK_DOWN) {
popup.next(input);
}
case KeyEvent.VK_ENTER:
if (find.isVisible() && !ifocus)
find(true);
break;
}
}
return false;
};
public ConsoleWindow(SubLogger logger) {
public ConsoleWindow(ConsolePlugin plugin, SubLogger logger) {
this.plugin = plugin;
this.logger = logger;
this.open = false;
this.running = false;
this.events = new LinkedList<Runnable>();
events.add(() -> {
@ -112,6 +122,14 @@ public class ConsoleWindow implements SubLogFilter {
item.setAccelerator(KeyStroke.getKeyStroke('L', Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), true));
item.addActionListener(event -> clear());
menu.add(item);
item = new JMenuItem("Reload Log");
item.setAccelerator(KeyStroke.getKeyStroke('R', Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), true));
item.addActionListener(event -> {
log.setText("\n");
for (SubLogger.LogMessage message : logger.getMessages()) log(message.getDate(), message.getLevel(), message.getMessage());
SwingUtilities.invokeLater(this::hScroll);
});
menu.add(item);
jMenu.add(menu);
window.setJMenuBar(jMenu);
window.setContentPane(panel);
@ -129,6 +147,11 @@ public class ConsoleWindow implements SubLogFilter {
close();
}
});
window.addComponentListener(new ComponentAdapter() {
public void componentResized(ComponentEvent e) {
SwingUtilities.invokeLater(ConsoleWindow.this::hScroll);
}
});
vScroll.setBorder(BorderFactory.createLineBorder(new Color(40, 44, 45)));
new SmartScroller(vScroll, SmartScroller.VERTICAL, SmartScroller.END);
log.setText("\n");
@ -158,8 +181,8 @@ public class ConsoleWindow implements SubLogFilter {
popup = new TextFieldPopup(input, true);
input.setBorder(BorderFactory.createLineBorder(new Color(69, 73, 74)));
input.addActionListener((ActionEvent event) -> {
if (logger.getHandle() instanceof SubServer && input.getText().length() > 0 && !input.getText().equals(">")) {
if (((SubServer) logger.getHandle()).command((input.getText().startsWith(">")) ? input.getText().substring(1) : input.getText())) {
if (logger.getHandler() instanceof SubServer && input.getText().length() > 0 && !input.getText().equals(">")) {
if (((SubServer) logger.getHandler()).command((input.getText().startsWith(">")) ? input.getText().substring(1) : input.getText())) {
popup.commands.add((input.getText().startsWith(">")) ? input.getText().substring(1) : input.getText());
popup.current = 0;
popup.last = true;
@ -196,6 +219,16 @@ public class ConsoleWindow implements SubLogFilter {
}
}
});
input.addFocusListener(new FocusListener() {
@Override
public void focusGained(FocusEvent e) {
ifocus = true;
}
@Override
public void focusLost(FocusEvent e) {
ifocus = false;
}
});
vScroll.getHorizontalScrollBar().addAdjustmentListener(event -> {
if (!eScroll.contains(event.getValue())) {
@ -225,24 +258,127 @@ public class ConsoleWindow implements SubLogFilter {
});
if (!(logger.getHandle() instanceof SubServer)) {
if (!(logger.getHandler() instanceof SubServer)) {
input.setVisible(false);
hScroll.setVisible(false);
vScroll.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
}
logger.registerFilter(this);
for (SubLogger.LogMessage message : logger.getMessages()) log(message.getDate(), message.getLevel(), message.getMessage());
KeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(keys);
events.add(() -> {
if (logger.isLogging() && !open) open();
});
hScroll();
});
logger.registerFilter(this);
runEvents();
}
private void hScroll() {
hScroll.setMaximum(vScroll.getHorizontalScrollBar().getMaximum());
hScroll.setMinimum(vScroll.getHorizontalScrollBar().getMinimum());
hScroll.setVisibleAmount(vScroll.getHorizontalScrollBar().getVisibleAmount());
}
public SubLogger getLogger() {
return logger;
}
public void log(Date date, String message) {
log.append(' ' + new SimpleDateFormat("hh:mm:ss").format(date) + ' ' + message + " \n");
}
public void log(String message) {
log(Calendar.getInstance().getTime(), message);
}
public void log(Date date, Level level, String message) {
log(date, "[" + level.getLocalizedName() + "] " + message);
}
@Override
public boolean log(Level level, String message) {
log(Calendar.getInstance().getTime(), level, message);
return !open;
}
public void clear() {
log.setText("\n");
SwingUtilities.invokeLater(this::hScroll);
}
public boolean runEvents() {
return runEvents(false);
}
private boolean runEvents(boolean force) {
if (events.size() > 0 && (force || !running)) {
try {
running = true;
final Runnable event = events.get(0);
if (event != null) {
SwingUtilities.invokeLater(() -> {
try {
event.run();
} catch (Throwable e) {
new InvocationTargetException(e, "Exception while running SubServers Console Window Event").printStackTrace();
}
events.remove(0);
if (!runEvents(true)) running = false;
});
} else {
events.remove(0);
if (!runEvents(true)) running = false;
}
return true;
} catch (NullPointerException e) {
return false;
}
} else return false;
}
@Override
public void start() {
open();
}
public void open() {
events.add(() -> {
if (!open) {
window.setVisible(true);
this.open = true;
}
window.toFront();
});
runEvents();
}
public boolean isOpen() {
return open;
}
@Override
public void stop() {
close();
}
public void close() {
events.add(() -> {
if (open) {
this.open = false;
if (find.isVisible()) {
find.setVisible(false);
findI = 0;
findO = 0;
}
window.setVisible(false);
plugin.onClose(this);
}
});
runEvents();
}
public void destroy() {
close();
logger.unregisterFilter(this);
KeyboardFocusManager.getCurrentKeyboardFocusManager().removeKeyEventDispatcher(keys);
}
private void find(boolean direction) {
if (!direction) findI -= findO + 1;
String find = findT.getText().toLowerCase();
@ -287,87 +423,6 @@ public class ConsoleWindow implements SubLogFilter {
}
}
public void clear() {
events.add(() -> log.setText("\n"));
runEvents();
}
public void log(String message) {
events.add(() -> log.setText(log.getText() + ' ' + new SimpleDateFormat("hh:mm:ss").format(Calendar.getInstance().getTime()) + ' ' + message + " \n"));
runEvents();
}
@Override
public boolean log(Level level, String message) {
log("[" + level.getLocalizedName() + "] " + message);
return !open;
}
public boolean runEvents() {
return runEvents(false);
}
private boolean runEvents(boolean force) {
if (events.size() > 0 && (force || !running)) {
running = true;
final Runnable event = events.get(0);
SwingUtilities.invokeLater(() -> {
try {
event.run();
} catch (Throwable e) {
new InvocationTargetException(e, "Exception while running SubServers Console Window Event").printStackTrace();
}
events.remove(0);
if (!runEvents(true)) running = false;
});
return true;
} else return false;
}
@Override
public void start() {
open();
}
public void open() {
events.add(() -> {
if (!open) {
window.setVisible(true);
this.open = true;
}
window.toFront();
});
runEvents();
}
public SubLogger getLogger() {
return logger;
}
@Override
public void stop() {
close();
}
public void close() {
events.add(() -> {
if (open) {
this.open = false;
if (find.isVisible()) {
find.setVisible(false);
findI = 0;
findO = 0;
}
window.setVisible(false);
}
});
runEvents();
}
public void destroy() {
close();
logger.unregisterFilter(this);
KeyboardFocusManager.getCurrentKeyboardFocusManager().removeKeyEventDispatcher(keys);
}
private class TextFieldPopup extends JPanel {
protected LinkedList<String> commands = new LinkedList<String>();
protected int current = 0;

View File

@ -7,6 +7,7 @@ import net.md_5.bungee.api.connection.ProxiedPlayer;
import net.md_5.bungee.api.plugin.Command;
import net.md_5.bungee.command.ConsoleCommandSender;
import javax.swing.*;
import java.util.List;
import java.util.Map;
@ -31,9 +32,11 @@ public class PopoutCommand {
boolean success = false;
if (servers.get(args[0].toLowerCase()).isRunning()) {
if (!plugin.sCurrent.keySet().contains(args[0].toLowerCase())) {
ConsoleWindow window = new ConsoleWindow(servers.get(args[0].toLowerCase()).getLogger());
plugin.sCurrent.put(args[0].toLowerCase(), window);
window.open();
SwingUtilities.invokeLater(() -> {
ConsoleWindow window = new ConsoleWindow(plugin, servers.get(args[0].toLowerCase()).getLogger());
plugin.sCurrent.put(args[0].toLowerCase(), window);
window.open();
});
} else {
plugin.sCurrent.get(args[0].toLowerCase()).open();
}
@ -56,6 +59,7 @@ public class PopoutCommand {
List<String> list = plugin.config.get().getStringList("Enabled-Servers");
list.remove(args[0].toLowerCase());
plugin.config.get().set("Enabled-Servers", list);
if (plugin.sCurrent.keySet().contains(args[0].toLowerCase()) && !plugin.sCurrent.get(args[0].toLowerCase()).isOpen()) plugin.onClose(plugin.sCurrent.get(args[0].toLowerCase()));
if (!success) System.out.println("SubConsole > " + servers.get(args[0].toLowerCase()).getName() + " was removed from the enabled list");
success = true;
}
@ -97,9 +101,11 @@ public class PopoutCommand {
boolean success = false;
if (hosts.get(args[0].toLowerCase()).getCreator().isBusy()) {
if (!plugin.cCurrent.keySet().contains(args[0].toLowerCase())) {
ConsoleWindow window = new ConsoleWindow(hosts.get(args[0].toLowerCase()).getCreator().getLogger());
plugin.cCurrent.put(args[0].toLowerCase(), window);
window.open();
SwingUtilities.invokeLater(() -> {
ConsoleWindow window = new ConsoleWindow(plugin, hosts.get(args[0].toLowerCase()).getCreator().getLogger());
plugin.cCurrent.put(args[0].toLowerCase(), window);
window.open();
});
} else {
plugin.cCurrent.get(args[0].toLowerCase()).open();
}
@ -122,6 +128,7 @@ public class PopoutCommand {
List<String> list = plugin.config.get().getStringList("Enabled-Creators");
list.remove(args[0].toLowerCase());
plugin.config.get().set("Enabled-Creators", list);
if (plugin.cCurrent.keySet().contains(args[0].toLowerCase()) && !plugin.cCurrent.get(args[0].toLowerCase()).isOpen()) plugin.onClose(plugin.cCurrent.get(args[0].toLowerCase()));
if (!success) System.out.println("SubConsole > " + hosts.get(args[0].toLowerCase()).getName() + "/Creator was removed from the enabled list");
success = true;
}