[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:
snowleo 2011-04-06 01:05:41 +00:00
parent eb39ae777b
commit 9a85c73c9f

View File

@ -50,7 +50,7 @@ public class Essentials extends JavaPlugin
public Essentials() throws IOException public Essentials() throws IOException
{ {
//loadClasses(); loadClasses();
} }
public static void ensureEnabled(Server server) public static void ensureEnabled(Server server)
@ -59,13 +59,14 @@ public class Essentials extends JavaPlugin
Essentials ess = (Essentials)pm.getPlugin("Essentials"); Essentials ess = (Essentials)pm.getPlugin("Essentials");
if (!ess.isEnabled()) if (!ess.isEnabled())
pm.enablePlugin(ess); pm.enablePlugin(ess);
//loadClasses(); loadClasses();
} }
@SuppressWarnings("CallToThreadDumpStack") @SuppressWarnings("CallToThreadDumpStack")
public static void disabledloadClasses() public static void loadClasses()
{ {
final String[] classes = new String[] return;
/*final String[] classes = new String[]
{ {
"commands.IEssentialsCommand", "commands.IEssentialsCommand",
"commands.EssentialsCommand", "commands.EssentialsCommand",
@ -91,7 +92,7 @@ public class Essentials extends JavaPlugin
catch (Throwable ex) catch (Throwable ex)
{ {
ex.printStackTrace(); ex.printStackTrace();
} }*/
} }
public static Essentials getStatic() public static Essentials getStatic()