Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bukkit4Clojure
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mariell
Bukkit4Clojure
Commits
bb0c1048
Commit
bb0c1048
authored
7 years ago
by
Mariell
Browse files
Options
Downloads
Patches
Plain Diff
Use proper code blocks with formatting
parent
b632e5ba
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+26
-19
26 additions, 19 deletions
README.md
with
26 additions
and
19 deletions
README.md
+
26
−
19
View file @
bb0c1048
...
...
@@ -9,32 +9,39 @@ Simply download from the Releases tab or download the current (WIP) source and i
## Usage
Add this to your plugin.yml:
main: com.coalesce.bukkitforclojure.Main
```
yaml
main
:
com.coalesce.bukkitforclojure.Main
```
And add this to your wrapper.yml:
clojure: yourns.yourclj
```
yaml
clojure
:
yourns.yourclj
```
Your main clj file should also include the following method, which gets called before your onEnable if it exists, no matter you use the params or not:
(defn setData
[^Main wrapperMain
^File dataFolder
^FileConfiguration config
^PluginDescriptionFile pdf
^Server server
^Logger logger] ; Will also be in Main/sLogger as a static method.
)
```
clojure
(
defn
setData
[
^
Main
wrapperMain
^
File
dataFolder
^
FileConfiguration
config
^
PluginDescriptionFile
pdf
^
Server
server
^
Logger
logger
]
; Will also be in Main/sLogger as a static method.
)
```
Standard methods like onEnable and onDisable are also allowed to be used:
(defn onEnable
[]
(println "o it enabled")
)
(defn onDisable
[]
(println "o it disabled")
)
```
clojure
(
defn
onEnable
[]
(
println
"o it enabled"
)
)
(
defn
onDisable
[]
(
println
"o it disabled"
)
)
```
### Bugs
Currently we have no bugs which we know of as it's not even developed currently.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment