Skip to content

Commit

Permalink
Create data folder if not present, changed version number to v4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SugarCaney committed Mar 21, 2022
1 parent 77d76f7 commit 2d65aee
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 6 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ Changelog
* **`~`** Tweaked
* **`-`** Removed feature

## Version 4.0 (Upcoming)
## Version 4.1
* **`i`** Updated for Minecraft 1.12.2
* **`!`** Fixed custom arrow recipe count not working (1.12.2)
* **`!`** Fixed Firework bow not detonating (1.12.2)
* **`!`** Fixed NPE when Disarming bow encounters a null armour item.

## Version 4.0

* **`i`** Updated for Minecraft 1.11.2.
* **`i`** Refactored the whole code base.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ How to contact me/ask for support:
3. You're now ready to go! You can even customize a little in the config.yml.

## Videos
* Official plugin video (v4.0) by SugarCaney (TBA)
* Official plugin video (v4.x) by SugarCaney (TBA)
* Plugin showcase (v3.0 and earlier) by [BrokenBukkit (German/Deutsch)](https://www.youtube.com/watch?v=LjOTILxRlJE).

## Bows
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group 'nl.sugcube.dirtyarrows'
version '4.0'
version '4.1'

repositories {
mavenCentral()
Expand Down
10 changes: 10 additions & 0 deletions src/main/kotlin/nl/sugcube/dirtyarrows/DirtyArrows.kt
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,17 @@ class DirtyArrows : JavaPlugin() {
}
}

/**
* Create all necessary directories for the plugin to work.
*/
private fun createDirectories() {
if (dataFolder.exists().not()) {
dataFolder.mkdirs()
}
}

override fun onEnable() {
createDirectories()
configurationManager.initialise()
registerCommands()
registerEvents()
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
##############################################################################################
### DirtyArrows configuration file
### Version: 4.0
### Version: 4.1
### Author: SugarCaney
### GitHub: https://github.com/SugarCaney/DirtyArrows
###
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: DirtyArrows
main: nl.sugcube.dirtyarrows.DirtyArrows
version: '4.0'
api-version: 1.11
version: '4.1'
api-version: 1.12
author: SugarCaney
website: 'https://twitter.com/CaneyDearie'
description: >
Expand Down

0 comments on commit 2d65aee

Please sign in to comment.