Updated to use simplified method signature for commands. Also improved SimpleInjector.

This commit is contained in:
zml2008
2011-12-17 23:45:12 -08:00
parent 6fb8085692
commit 4dc3c035c1
19 changed files with 366 additions and 371 deletions

View File

@ -173,6 +173,8 @@ public class WorldEdit {
super.invokeMethod(parent, args, player, method, instance, methodArgs, level);
}
};
commands.setInjector(new SimpleInjector(this));
commands.register(ChunkCommands.class);
commands.register(ClipboardCommands.class);
@ -1256,7 +1258,7 @@ public class WorldEdit {
long start = System.currentTimeMillis();
try {
commands.execute(split, player, this, session, player, editSession);
commands.execute(split, player, session, player, editSession);
} catch (CommandPermissionsException e) {
player.printError("You don't have permission to do this.");
} catch (MissingNestedCommandException e) {