Skip to content

Commit

Permalink
1.19 release
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLeCrafter committed Jul 19, 2022
1 parent 5eeb384 commit 372b263
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 40 deletions.
21 changes: 13 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,27 @@
Lightweight plugin to add ambient shooting stars into the night sky.

## About
This plugin adds little shooting stars to the night sky. Only works in overworld typed worlds. Will automatically disable when the TPS is lower than 16. More information coming soon!
This plugin adds little shooting stars to the night sky. You can configure where and when they spawn and much more!

## Installation
1. Stop your server
2. Paste the .jar file into the plugin directory
3. Start the server

## Supported Versions

The versions listed below are currently supported with bug fixes and new features. It is always recommended to use the latest version.

| Plugin Version | Supported |
| ------- | ------------------ |
| 1.x | :white_check_mark: |
|----------------|--------------------|
| 1.x | :white_check_mark: |

| Minecraft Version | Supported |
| ----------------- | --------- |
| Minecraft Version | Supported |
|-------------------|-------------|
| 1.19.x | ✅ (Default) |
| 1.18.x ||
| 1.17.x ||
| < 1.17 | :x: |
| 1.18.x | |
| 1.17.x | |
| < 1.17 | :x: |

Other Versions may work but will not receive any support.

Expand Down
15 changes: 9 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
java
id("xyz.jpenilla.run-paper") version "1.0.6"
id("com.github.johnrengelman.shadow") version "7.1.2"
kotlin("jvm") version "1.7.10"
}
Expand All @@ -11,20 +12,18 @@ version = "1.1.0"

repositories {
mavenCentral()
maven("https://libraries.minecraft.net")
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://oss.sonatype.org/content/repositories/central")
}

dependencies {
compileOnly("io.papermc.paper:paper-api:1.19-R0.1-SNAPSHOT")
compileOnly("com.mojang:authlib:1.5.25")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.7.10")
implementation("io.papermc:paperlib:1.0.7")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10")
implementation("io.github.classgraph:classgraph:4.8.149")
implementation("org.kohsuke:github-api:1.307")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.7.0")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.0")
implementation("io.github.classgraph:classgraph:4.8.147")
implementation("org.kohsuke:github-api:1.306")
}

tasks.shadowJar {
Expand Down Expand Up @@ -62,6 +61,10 @@ tasks.jar {
enabled = false
}

tasks.runServer {
minecraftVersion("1.19")
}

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package dev.thelecrafter.plugins.ambientstars

import dev.thelecrafter.plugins.ambientstars.commands.ReloadCommand
import dev.thelecrafter.plugins.ambientstars.utils.EventCollector
import dev.thelecrafter.plugins.ambientstars.utils.UpdateChecker
import io.papermc.lib.PaperLib
import org.bukkit.Bukkit
Expand Down Expand Up @@ -52,7 +51,7 @@ class AmbientStarsPlugin : JavaPlugin() {
logger.log(Level.WARNING, "This plugin will not work if you don't use Paper! Disabling...")
Bukkit.getPluginManager().disablePlugin(getInstance)
} else {
EventCollector.addAllEvents()
Bukkit.getPluginManager().registerEvents(UpdateChecker(), getInstance)
ShootingStars.init()
registerCommand("reloadstars", ReloadCommand(), ReloadCommand())
if (!getInstance.config.contains("config-version") || !getInstance.config.isInt("config-version") || getInstance.config.getInt("config-version") != getDefaultConfig.getInt("config-version")) {
Expand Down

This file was deleted.

0 comments on commit 372b263

Please sign in to comment.