Dev AddOn: Difference between revisions
Jump to navigation
Jump to search
Marcely1199 (talk | contribs) No edit summary |
Marcely1199 (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 16: | Line 16: | ||
public BedwarsAddon bedwarsAddon = new BedwarsAddon(this); | public BedwarsAddon bedwarsAddon = new BedwarsAddon(this); | ||
} | } | ||
You can skip the | You can skip the creation of this object if you don't want to create commands or a config file.<br /> | ||
Here | Here're the documented things you can do with this object: | ||
* [[Dev_Commands|Creating a command]] | |||
* [[Dev_Config|Creating a configuration file]] | |||
Latest revision as of 17:00, 9 November 2016
Creating yourself a MBedwars Add-On isn't that hard as you thing.
But first of all make sure that your plugin.yml is depending MBedwars.
Example:
name: MyFirstMBedwarsAddon version: 1.0 main: com.me.MyFirstMBedwarsAddon.Main depend: [MBedwars]
After that is done create a new de.marcely.bedwars.api.BedwarsAddon object.
Example of a Main class:
package com.me.MyFirstMBedwarsAddon.Main; import org.bukkit.plugin.java.JavaPlugin; import de.marcely.bedwars.api.BedwarsAddon; public class Main extends JavaPlugin { public BedwarsAddon bedwarsAddon = new BedwarsAddon(this); }
You can skip the creation of this object if you don't want to create commands or a config file.
Here're the documented things you can do with this object: