Update to Java 10.
This commit is contained in:
@@ -100,7 +100,7 @@ public final class GraciaLoader
|
||||
{
|
||||
try
|
||||
{
|
||||
script.newInstance();
|
||||
script.getDeclaredConstructor().newInstance();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
@@ -127,7 +127,7 @@ public final class HellboundLoader
|
||||
{
|
||||
try
|
||||
{
|
||||
final Object instance = script.newInstance();
|
||||
final Object instance = script.getDeclaredConstructor().newInstance();
|
||||
if (instance instanceof IAdminCommandHandler)
|
||||
{
|
||||
AdminCommandHandler.getInstance().registerHandler((IAdminCommandHandler) instance);
|
||||
|
||||
Reference in New Issue
Block a user