Skip to content

Commit

Permalink
Create a basic plugin that does nothing but force Magic to load earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanWolf committed Dec 7, 2020
1 parent 584413f commit 0e72343
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ buildNumber.properties
.mvn/timing.properties
# https://github.com/takari/maven-wrapper#usage-without-binary-jar
.mvn/wrapper/maven-wrapper.jar
*.iml
.idea
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# MagicStartup

An add-on plugin to make the Magic plugin load at startup

This is usually only needed if you are using Magic's world generator on one of the default worlds.
73 changes: 73 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.elmakers.mine.bukkit.plugins</groupId>
<artifactId>MagicStartup</artifactId>
<version>1.0</version>
<name>Magic Startup</name>
<url>http://mine.elmakers.com</url>

<licenses>
<license>
<name>MIT License</name>
<url>LICENSE</url>
</license>
</licenses>

<ciManagement>
<system>Jenkins</system>
<url>http://jenkins.elmakers.com</url>
</ciManagement>

<scm>
<connection>scm:git:git://github.com/elBukkit/MagicStartup.git</connection>
<developerConnection>scm:git:git@github.com:elBukkit/MagicStartup.git</developerConnection>
<url>https://github.com/elBukkit/MagicStartup</url>
<tag>master</tag>
</scm>

<distributionManagement>
<repository>
<id>maven.elmakers.com</id>
<url>http://maven.elmakers.com/repository/</url>
</repository>
<snapshotRepository>
<id>maven.elmakers.com</id>
<url>http://maven.elmakers.com/repository/</url>
</snapshotRepository>
</distributionManagement>

<dependencies>
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.13-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
<repositories>
<repository>
<id>elMakers</id>
<url>http://maven.elmakers.com/repository/</url>
</repository>
</repositories>
<build>
<resources>
<resource>
<directory>src/main/resources/</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.elmakers.mine.bukkit.magicstartup;

import org.bukkit.plugin.java.JavaPlugin;

public class MagicStartupPlugin extends JavaPlugin {
public void onEnable() {
}

public void onDisable() {
}
}
9 changes: 9 additions & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: MagicStartup
main: com.elmakers.mine.bukkit.magicstartup.MagicStartupPlugin
version: 1.0
website: http://mine.elmakers.com
author: NathanWolf
description : A plugin to force Magic to load at startup
depend: [Magic]
api-version: 1.13
load: STARTUP

0 comments on commit 0e72343

Please sign in to comment.