Closed Postremus closed 7 years ago
1) Yes, it did finish loading. This code is executed with a command. 2) There is no method getApi() in IAsyncWorldEdit defined. I guess you mean getAPIVersion?
IAsyncWorldEdit awe = (IAsyncWorldEdit) Bukkit.getPluginManager().getPlugin("AsyncWorldEdit");
System.out.println("awe: " + awe == null); //false
System.out.println("classscanner: " + awe.getClassScannerOptions() == null); // true
System.out.println("api-version: " + awe.getAPIVersion()); // 3.002000005
There is a public method called getApi, but getAPIVersion will do. I'll check why you get null for the class scanner and get back to you.
I guess (?) i found the problem. Look at AsyncWorlEditMain.getClassScannerOptions(). When the api is not null, return null..
Your right that might be the problem ;) I left the implementation of the IAsyncWorldEdit for compatibility and I use the getAPI from AsyncWorlEditMain.
Fixed in 3.4.7
Hello,
Example code:
The ClasscannerOptions are null. Is there anything special needed to do in order to get an instance? For example, pasting using the api works.
Paper 1.10.2
Thank you Postremus