Skip to content

Commit

Permalink
Updated kyori
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRedMagic committed Jun 21, 2024
1 parent 18140ee commit 2129314
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {
}

apply(plugin = "maven-publish")
val versionVar = "0.5.33"
val versionVar = "0.5.34"
val groupIdVar = "com.undefined"
val artifactIdVar = "api"

Expand Down Expand Up @@ -77,8 +77,8 @@ allprojects {

dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib")
implementation("net.kyori:adventure-platform-bukkit:4.3.2")
implementation("net.kyori:adventure-text-minimessage:4.16.0")
implementation("net.kyori:adventure-platform-bukkit:4.3.3")
implementation("net.kyori:adventure-text-minimessage:4.17.0")
implementation("org.json:json:20231013")
implementation("com.googlecode.json-simple:json-simple:1.1.1")
}
Expand Down
10 changes: 10 additions & 0 deletions server/src/main/java/com/undefined/api/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ import com.undefined.api.nms.createFakePlayer
import com.undefined.api.nms.interfaces.NMSPlayer
import com.undefined.api.scheduler.delay
import org.bukkit.Material
import org.bukkit.WeatherType
import org.bukkit.entity.EntityType
import org.bukkit.entity.Player
import org.bukkit.event.player.PlayerChatEvent

import org.bukkit.event.player.PlayerJoinEvent
import org.bukkit.inventory.ItemStack
Expand All @@ -24,6 +26,14 @@ class Main: JavaPlugin() {
override fun onEnable() {
api = UndefinedAPI(this)


UndefinedCommand("test").addEnumSubCommand<WeatherType>()
.addEnumExecute {
value
return@addEnumExecute true
}


}

fun test(){
Expand Down

0 comments on commit 2129314

Please sign in to comment.