I'm writing a plugin for Bukkit, but when Bukkit loads the .jar, the plugin checks for /clojure directory for core_init (It should check /roleplay instead).
Bukkit is a server-management software written for minecraft
I've searched over the internet and found out some info, but not sure how I can implement them or are there any alternatives.
https://github.com/jonnay/Watership-Down (talks about the problem in README)
Here is how I extended Bukkit's JavaPlugin.
src/roleplay/core.clj
(ns roleplay.core
(:import org.bukkit.Bukkit)
(:gen-class
:name com.mc_rp.roleplay.Roleplay
:extends org.bukkit.plugin.java.JavaPlugin
)
)
Here is project options for leiningen. project.clj
(defproject roleplay "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "https://www.eclipse.org/legal/epl-2.0/"}
:repositories {
"papermc" "https://papermc.io/repo/repository/maven-public/"
}
:dependencies [
[org.clojure/clojure "1.10.0"]
]
:profiles {
:provided {
:dependencies [
[com.destroystokyo.paper/paper-api "1.14.4-R0.1-SNAPSHOT"]
]
}
}
:repl-options {:init-ns roleplay.core}
:aot [:all]
)