mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 15:08:18 +01:00
[trunk] trying to avoid IllegalAccess errors
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1140 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
eb39ae777b
commit
9a85c73c9f
@ -50,7 +50,7 @@ public class Essentials extends JavaPlugin
|
||||
|
||||
public Essentials() throws IOException
|
||||
{
|
||||
//loadClasses();
|
||||
loadClasses();
|
||||
}
|
||||
|
||||
public static void ensureEnabled(Server server)
|
||||
@ -59,13 +59,14 @@ public class Essentials extends JavaPlugin
|
||||
Essentials ess = (Essentials)pm.getPlugin("Essentials");
|
||||
if (!ess.isEnabled())
|
||||
pm.enablePlugin(ess);
|
||||
//loadClasses();
|
||||
loadClasses();
|
||||
}
|
||||
|
||||
@SuppressWarnings("CallToThreadDumpStack")
|
||||
public static void disabledloadClasses()
|
||||
public static void loadClasses()
|
||||
{
|
||||
final String[] classes = new String[]
|
||||
return;
|
||||
/*final String[] classes = new String[]
|
||||
{
|
||||
"commands.IEssentialsCommand",
|
||||
"commands.EssentialsCommand",
|
||||
@ -91,7 +92,7 @@ public class Essentials extends JavaPlugin
|
||||
catch (Throwable ex)
|
||||
{
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
public static Essentials getStatic()
|
||||
|
Loading…
Reference in New Issue
Block a user