geforkt von Mirrors/FastAsyncWorldEdit
Load Bukkit plugin at startup.
This should allow plugins that use WorldEdit to do things on world load.
Dieser Commit ist enthalten in:
Ursprung
9d2d43f0db
Commit
c885f70c7b
@ -35,6 +35,9 @@ public class VaultResolver implements PermissionsResolver {
|
||||
return null;
|
||||
}
|
||||
RegisteredServiceProvider<Permission> rsp = server.getServicesManager().getRegistration(Permission.class);
|
||||
if (rsp == null) {
|
||||
return null;
|
||||
}
|
||||
perms = rsp.getProvider();
|
||||
if (perms == null) {
|
||||
return null;
|
||||
|
@ -86,13 +86,9 @@ public class WorldEditPlugin extends JavaPlugin implements TabCompleter {
|
||||
private BukkitServerInterface server;
|
||||
private BukkitConfiguration config;
|
||||
|
||||
/**
|
||||
* Called on plugin enable.
|
||||
*/
|
||||
@SuppressWarnings("AccessStaticViaInstance")
|
||||
@Override
|
||||
public void onEnable() {
|
||||
this.INSTANCE = this;
|
||||
public void onLoad() {
|
||||
INSTANCE = this;
|
||||
|
||||
//noinspection ResultOfMethodCallIgnored
|
||||
getDataFolder().mkdirs();
|
||||
@ -107,6 +103,13 @@ public class WorldEditPlugin extends JavaPlugin implements TabCompleter {
|
||||
worldEdit.loadMappings();
|
||||
|
||||
loadConfig(); // Load configuration
|
||||
}
|
||||
|
||||
/**
|
||||
* Called on plugin enable.
|
||||
*/
|
||||
@Override
|
||||
public void onEnable() {
|
||||
PermissionsResolverManager.initialize(this); // Setup permission resolver
|
||||
|
||||
// Register CUI
|
||||
|
@ -1,7 +1,7 @@
|
||||
name: WorldEdit
|
||||
main: com.sk89q.worldedit.bukkit.WorldEditPlugin
|
||||
version: "${internalVersion}"
|
||||
softdepend: [Spout] #hack to fix trove errors
|
||||
load: STARTUP
|
||||
api-version: 1.13
|
||||
|
||||
# Permissions aren't here. Read http://wiki.sk89q.com/wiki/WEPIF/DinnerPerms
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren