Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 10:30:04 +01:00
Made the plugin at least load.
Dieser Commit ist enthalten in:
Ursprung
e2905bd3fa
Commit
d0e4cc7454
@ -36,6 +36,7 @@
|
||||
<attribute name="WorldEdit-Version" value="${version}"/>
|
||||
<attribute name="Class-Path" value="jnbt.jar truezip.jar"/>
|
||||
</manifest>
|
||||
<copy tofile="${build.dir}/plugin.yml" file="plugin.yml"/>
|
||||
<jar jarfile="${dist.dir}/WorldEdit.jar" basedir="${build.dir}" manifest="manifest.mf"/>
|
||||
</target>
|
||||
|
||||
|
@ -42,12 +42,6 @@ public class WorldEditPlugin extends JavaPlugin {
|
||||
PluginDescriptionFile desc, File plugin, ClassLoader cLoader) {
|
||||
super(pluginLoader, instance, desc, plugin, cLoader);
|
||||
|
||||
registerEvents();
|
||||
}
|
||||
|
||||
public void onEnable() {
|
||||
//loadConfiguration();
|
||||
|
||||
ServerInterface.setup(new BukkitServerInterface(getServer()));
|
||||
|
||||
controller.profile = true;
|
||||
@ -66,13 +60,19 @@ public class WorldEditPlugin extends JavaPlugin {
|
||||
controller.noDoubleSlash = true;
|
||||
controller.useInventory = false;
|
||||
controller.useInventoryOverride = false;
|
||||
|
||||
registerEvents();
|
||||
}
|
||||
|
||||
public void onEnable() {
|
||||
//loadConfiguration();
|
||||
}
|
||||
|
||||
public void onDisable() {
|
||||
controller.clearSessions();
|
||||
}
|
||||
|
||||
private void registerEvents() {
|
||||
private void registerEvents() {
|
||||
getServer().getPluginManager().registerEvent(Event.Type.PLAYER_QUIT,
|
||||
playerListener, Priority.Normal, this);
|
||||
getServer().getPluginManager().registerEvent(Event.Type.PLAYER_COMMAND,
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren