Plugin Initialization
This commit is contained in:
parent
a0adf1f938
commit
dc96c383a9
10 changed files with 81 additions and 0 deletions
8
.classpath
Normal file
8
.classpath
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
|
||||
<classpathentry kind="lib" path="C:/Users/Elmar-Laptop/Personal/Hobbies/The Button Rebirth/Button Plugin/Minecraft Test Server/craftbukkit-1.9.2.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/Elmar-Laptop/Personal/Hobbies/The Button Rebirth/Button Plugin/Minecraft Test Server/spigot-1.9.2.jar"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
17
.project
Normal file
17
.project
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>TheButtonMultiDevPlugin</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
11
.settings/org.eclipse.jdt.core.prefs
Normal file
11
.settings/org.eclipse.jdt.core.prefs
Normal file
|
@ -0,0 +1,11 @@
|
|||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||
org.eclipse.jdt.core.compiler.compliance=1.7
|
||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.source=1.7
|
BIN
ButtonMultiDevPlugin.jar
Normal file
BIN
ButtonMultiDevPlugin.jar
Normal file
Binary file not shown.
BIN
bin/buttondevteam/MainPlugin.class
Normal file
BIN
bin/buttondevteam/MainPlugin.class
Normal file
Binary file not shown.
Binary file not shown.
0
config.yml
Normal file
0
config.yml
Normal file
3
plugin.yml
Normal file
3
plugin.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
main: buttondevteam.MainPlugin
|
||||
version: 1.0.0
|
||||
name: ButtonMultiDevPlugin
|
37
src/buttondevteam/MainPlugin.java
Normal file
37
src/buttondevteam/MainPlugin.java
Normal file
|
@ -0,0 +1,37 @@
|
|||
package buttondevteam;
|
||||
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import org.bukkit.plugin.PluginDescriptionFile;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
public class MainPlugin extends JavaPlugin{
|
||||
private PluginDescriptionFile pdfFile;
|
||||
private Logger logger;
|
||||
|
||||
public void onEnable(){
|
||||
//Logs "Plugin Enabled", registers commands
|
||||
pdfFile = getDescription();
|
||||
logger = getLogger();
|
||||
logger.info(pdfFile.getName() + " has been started (V." + pdfFile.getVersion()+ ").");
|
||||
|
||||
registerCommands();
|
||||
registerEvents();
|
||||
|
||||
logger.info(pdfFile.getName() + " has been Enabled (V." + pdfFile.getVersion()+ ").");
|
||||
}
|
||||
public void onDisable(){
|
||||
logger.info(pdfFile.getName() + " has been Disabled (V." + pdfFile.getVersion()+ ").");
|
||||
}
|
||||
public void registerCommands(){
|
||||
//Example command: getCommand("createShrine").setExecutor(new CreateShrine(this));
|
||||
}
|
||||
public void registerEvents(){
|
||||
//Example INIT: midnightListener = new MidnightListener(this);
|
||||
//Example Event: getServer().getPluginManager().registerEvents(midnightListener, this);
|
||||
|
||||
//INIT
|
||||
|
||||
//EVENTS
|
||||
}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package buttondevteam.alisolarflare.project2.tasks;
|
||||
|
||||
public class ExampleClass {
|
||||
|
||||
}
|
Loading…
Reference in a new issue