2019-10-25 06:56:44 +00:00
|
|
|
# Simple Authentication Mod
|
2019-10-24 20:13:52 +00:00
|
|
|
|
2020-07-02 08:31:19 +00:00
|
|
|
[](https://github.com/samolego/SimpleAuth/blob/master/LICENSE)
|
|
|
|
[](https://samolego.github.io/projects/ci/SimpleAuth/latest)
|
|
|
|
[](https://github.com/samolego/SimpleAuth/releases/latest)
|
|
|
|
[](https://github.com/samolego/SimpleAuth/issues?q=is%3Aissue+is%3Aclosed)
|
2020-05-14 18:13:36 +00:00
|
|
|
[](https://www.curseforge.com/minecraft/mc-mods/simpleauth)
|
2019-12-31 10:38:16 +00:00
|
|
|
|
2019-11-30 21:32:24 +00:00
|
|
|
Requires Fabric API.
|
|
|
|
|
2020-07-02 08:31:19 +00:00
|
|
|
## License
|
|
|
|
Libraries that the project is using:
|
|
|
|
- `Argon2 (LGPLv3)` https://github.com/phxql/argon2-jvm
|
|
|
|
- `leveldb (BSD-3-Clause)` https://github.com/google/leveldb
|
|
|
|
- `JNA (Apache 2 || LGPLv3)` https://github.com/java-native-access/jna
|
|
|
|
|
|
|
|
This project is licensed under the `MIT` license.
|
|
|
|
|
|
|
|
# For mod developers
|
|
|
|
|
|
|
|
## Changing code
|
2019-10-24 20:13:52 +00:00
|
|
|
|
2020-04-05 18:23:33 +00:00
|
|
|
1. Clone the repository. Then run `./gradlew genSources`
|
2019-10-25 06:57:27 +00:00
|
|
|
2. Edit the code you want.
|
|
|
|
3. To build run the following command:
|
2019-10-24 20:13:52 +00:00
|
|
|
|
|
|
|
```
|
2019-11-05 19:24:58 +00:00
|
|
|
./gradlew build
|
2019-10-24 20:13:52 +00:00
|
|
|
```
|
2020-07-02 08:31:19 +00:00
|
|
|
## Adding the mod to your buildscript (to ensure compatibility)
|
2019-10-24 20:13:52 +00:00
|
|
|
|
2020-07-02 08:31:19 +00:00
|
|
|
Add following text to your `build.gradle`
|
2019-10-24 20:13:52 +00:00
|
|
|
|
2020-07-02 08:31:19 +00:00
|
|
|
```gradle
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
url 'https://jitpack.io'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
// By version tag
|
|
|
|
modImplementation 'com.github.samolego:SimpleAuth:${project.simpleauth_version}'
|
|
|
|
|
|
|
|
// Or by branch
|
|
|
|
modImplementation 'com.github.samolego:SimpleAuth:${project.simpleauth_branch}-SNAPSHOT'
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
And this to your `gradle.properties`
|
2020-07-02 08:32:14 +00:00
|
|
|
```properties
|
2020-07-02 08:31:19 +00:00
|
|
|
# By tag (version)
|
|
|
|
# SimpleAuth version (this might not be the latest version)
|
|
|
|
simpleauth_version = 1.4.6
|
|
|
|
|
|
|
|
# Or this (by branch)
|
|
|
|
# SimpleAuth branches
|
|
|
|
|
|
|
|
# master branch (the latest version for stable minecraft release)
|
|
|
|
simpleauth_branch = master
|
|
|
|
|
|
|
|
# snapshot branch (branch for minecraft snapshots)
|
|
|
|
simpleauth_branch = latest-snapshot
|
|
|
|
```
|