Skip to content

Commit

Permalink
feature: Add ConfigManager2, old ConfigManager is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Gk0Wk committed Jul 3, 2023
1 parent 67d1a4e commit 5ec114e
Show file tree
Hide file tree
Showing 20 changed files with 971 additions and 346 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Gradle Package
on:
push:
tags:
- "v*"
- "v*.*.*"

jobs:
build:
Expand Down
158 changes: 39 additions & 119 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,122 +1,42 @@
# User-specific stuff
.idea/

.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
*.iws

# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

.gradle
build/

# Ignore Gradle GUI config
gradle-app.setting

# Cache of project
.gradletasknamecache

**/build/

# Common working directory
run/
test/

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar

# Local Test Launch point
src/test/kotlin/RunTerminal.kt
!**/src/main/**/out/
!**/src/test/**/out/

### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/

### Mac OS ###
.DS_Store
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Gk0Wk(Sttot)
Copyright (c) 2023 Gk0Wk([email protected])

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
39 changes: 18 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Useful toolkits java library for Bukkit Server Plugin.

- [x] ConfigManager
- [x] ConfigManager (JSON, YAML, TOML, HOCON, Properties)
- [x] MessageManager (i18n Supported)
- [x] LanguageManager
- [x] CommandManager (Deprecated, and recommend to use [aikar's commands](https://github.com/aikar/commands))
Expand All @@ -18,41 +18,38 @@ Useful toolkits java library for Bukkit Server Plugin.
Add the JitPack repository to your build file:

```xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://www.jitpack.io</url>
</repository>
</repositories>
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://www.jitpack.io</url>
</repository>
</repositories>
```

Add the dependency:

```xml
<dependency>
<groupId>com.github.NewNanCity</groupId>
<artifactId>Violet</artifactId>
<version>VERSION</version>
</dependency>
<dependency>
<groupId>com.github.NewNanCity</groupId>
<artifactId>Violet</artifactId>
<version>VERSION</version>
</dependency>
```

## Gradle

Add it in your root build.gradle at the end of repositories:

```
allprojects {
repositories {
...
maven { url 'https://www.jitpack.io' }
}
}
repositories {
maven { url 'https://www.jitpack.io' }
}
```

Add the dependency:

```
dependencies {
implementation 'com.github.NewNanCity:Violet:VERSION'
}
dependencies {
implementation 'com.github.NewNanCity:Violet:VERSION'
}
```
94 changes: 0 additions & 94 deletions build.gradle

This file was deleted.

Loading

0 comments on commit 5ec114e

Please sign in to comment.