forked from PaperMC/paperweight-test-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c1045da
commit 7b3425c
Showing
3 changed files
with
20 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 12 additions & 14 deletions
26
src/main/java/foundation/esoteric/minecraft/plugins/template/PaperTemplatePlugin.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
package foundation.esoteric.minecraft.plugins.template; | ||
package foundation.esoteric.minecraft.plugins.template | ||
|
||
import dev.jorel.commandapi.CommandAPI; | ||
import dev.jorel.commandapi.CommandAPIBukkitConfig; | ||
import org.bukkit.plugin.java.JavaPlugin; | ||
import dev.jorel.commandapi.CommandAPI | ||
import dev.jorel.commandapi.CommandAPIBukkitConfig | ||
import org.bukkit.plugin.java.JavaPlugin | ||
|
||
public final class PaperTemplatePlugin extends JavaPlugin { | ||
class PaperTemplatePlugin : JavaPlugin() { | ||
override fun onEnable() { | ||
dataFolder.mkdir() | ||
saveDefaultConfig() | ||
|
||
@Override | ||
public void onEnable() { | ||
getDataFolder().mkdir(); | ||
saveDefaultConfig(); | ||
val commandAPIConfig = CommandAPIBukkitConfig(this) | ||
|
||
CommandAPIBukkitConfig commandAPIConfig = new CommandAPIBukkitConfig(this); | ||
|
||
CommandAPI.onLoad(commandAPIConfig); | ||
CommandAPI.onEnable(); | ||
} | ||
CommandAPI.onLoad(commandAPIConfig) | ||
CommandAPI.onEnable() | ||
} | ||
} |