Skip to content

Commit

Permalink
[6.0.11][unstable] Experimental > 1.20 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Arasple committed Jun 13, 2023
1 parent 92b46a6 commit b45749c
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 53 deletions.
29 changes: 3 additions & 26 deletions README.md
@@ -1,33 +1,10 @@
# [Invero](http://invero.trixey.cc/) is available, this is the inventory gui for bukkit of emerging。 TrMenu will be deprecated.

---

## (Deprecated) TrMenu

![](https://attachment.mcbbs.net/data/myattachment/forum/202108/17/142921rll20j5kie5kzk1f.gif)
![](https://img.shields.io/github/last-commit/Arasple/TrMenu?logo=artstation&style=for-the-badge&color=9266CC)![](https://img.shields.io/github/issues/InsinuateProjects/TrMenu?style=for-the-badge&logo=slashdot)![](https://img.shields.io/github/release/Arasple/TrMenu?style=for-the-badge&color=00C58E&logo=ionic)

---

### 🔔 What's new in TrMenu v3?

- **Extremely Fast & Optimized** Not only focused on the improvement of conditional evaluations but also reconstructed
the API of the virtual inventory. Large quantity of modules have been recoded for better performance, as well as
providing a unique way of monitoring TrMenu's performance
- **Capable as always** Almost every feature are optimized and reserved, new features are also added
- **Function & Scripts** Unify and standardize the use of inline functions, refactor TrMenu Actions, and fully support
the new Kether scripting language

> For more detailed information, please via the wiki site
![](https://img.shields.io/github/last-commit/TrPlugins/TrMenu?logo=artstation&style=for-the-badge&color=9266CC)![](https://img.shields.io/github/issues/InsinuateProjects/TrMenu?style=for-the-badge&logo=slashdot)![](https://img.shields.io/github/release/TrPlugins/TrMenu?style=for-the-badge&color=00C58E&logo=ionic)

---

### 🌍 Languages

* **en_US(English)** by _@Arasple_ & _@Score2_
* **ru_RU(Русский)** by _@Liassid_
* **vi_VN(Tiếng Việt)** by _@Galaxy-VN_
* **zh_CN(简体中文)** by _@Arasple_ & _@Score2_
* **zh_HK(繁體中文)** by _@Arasple_ & _@Score2_
* **zh_TW(繁體中文)** copy from _zh_HK_

---
**This resource is no longer actively maintained.**
1 change: 1 addition & 0 deletions api/action/build.gradle.kts
Expand Up @@ -28,6 +28,7 @@ taboolib {

repositories {
mavenCentral()
mavenLocal()
maven("https://repo.tabooproject.org/repository/releases")
maven("https://hub.spigotmc.org/nexus/content/groups/public/")
}
Expand Down
3 changes: 2 additions & 1 deletion common/src/main/kotlin/trplugins/menu/util/net/PasteGG.kt
Expand Up @@ -2,6 +2,7 @@ package trplugins.menu.util.net

import taboolib.common.Isolated
import taboolib.common.env.DependencyDownloader
import taboolib.common.env.IO
import trplugins.menu.util.parseJson
import java.net.HttpURLConnection
import java.net.URL
Expand Down Expand Up @@ -70,7 +71,7 @@ object PasteGG {
con.doInput = true
con.doOutput = true
con.outputStream.also { it.write(json.toByteArray(StandardCharsets.UTF_8)) }
val source = DependencyDownloader.readFully(con.inputStream, StandardCharsets.UTF_8).parseJson().asJsonObject
val source = IO.readFully(con.inputStream, StandardCharsets.UTF_8).parseJson().asJsonObject

success.invoke(source.toString())
} catch (e: Throwable) {
Expand Down
3 changes: 2 additions & 1 deletion common/src/main/kotlin/trplugins/menu/util/net/Paster.kt
@@ -1,6 +1,7 @@
package trplugins.menu.util.net

import taboolib.common.env.DependencyDownloader
import taboolib.common.env.IO
import taboolib.common.platform.ProxyCommandSender
import taboolib.common.platform.function.submit
import taboolib.module.lang.sendLang
Expand Down Expand Up @@ -35,7 +36,7 @@ object Paster {
con.doInput = true
con.doOutput = true
con.outputStream.also { it.write(content.toByteArray(StandardCharsets.UTF_8)) }
val source = DependencyDownloader.readFully(con.inputStream, StandardCharsets.UTF_8).parseJson().asJsonObject
val source = IO.readFully(con.inputStream, StandardCharsets.UTF_8).parseJson().asJsonObject
url(URL + source.get("key").asString)
} catch (e: Throwable) {
e.printStackTrace()
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
@@ -1,3 +1,3 @@
group=me.arasple.mc.trmenu
version=3.1.19
taboolibVersion=6.0.10-98
version=3.1.20
taboolibVersion=6.0.11-10
7 changes: 1 addition & 6 deletions plugin/build.gradle.kts
@@ -1,5 +1,3 @@
import java.util.UUID

val taboolibVersion: String by rootProject

plugins {
Expand Down Expand Up @@ -68,9 +66,6 @@ dependencies {
// Libraries
compileOnly("org.apache.commons:commons-lang3:3.12.0")
compileOnly("com.electronwill.night-config:core:3.6.5")
compileOnly("cc.trixey.invero:framework-common:1.0.0")
compileOnly("cc.trixey.invero:framework-bukkit:1.0.0")
// compileOnly("cc.trixey.invero:framework-core:1.0.0")

// Server Core
compileOnly("ink.ptms.core:v11903:11903-minimize:mapped")
Expand All @@ -84,7 +79,7 @@ dependencies {
compileOnly("ink.ptms:Zaphkiel:1.6.0") { isTransitive = false }
compileOnly("ca.tweetzy:skulls:2.7.2") { isTransitive = false }
compileOnly("net.skinsrestorer:skinsrestorer-api:14.2.1") { isTransitive = false }
compileOnly("com.github.Th0rgal:Oraxen:master-SNAPSHOT") { isTransitive = false }
compileOnly("com.github.oraxen:oraxen:-SNAPSHOT") { isTransitive = false }
compileOnly("org.black_ixx:playerpoints:3.1.1") { isTransitive = false }
compileOnly("com.github.MilkBowl:VaultAPI:-SNAPSHOT") { isTransitive = false }
compileOnly("com.github.tritonmc.Triton:core:v3.7.3") { isTransitive = false }
Expand Down
@@ -1,6 +1,6 @@
package trplugins.menu.module.internal.hook.impl

import io.th0rgal.oraxen.items.OraxenItems
import io.th0rgal.oraxen.api.OraxenItems
import trplugins.menu.module.internal.hook.HookAbstract
import org.bukkit.inventory.ItemStack
import taboolib.library.xseries.XMaterial
Expand Down
Expand Up @@ -2,17 +2,18 @@ package trplugins.menu.module.internal.service

import com.google.gson.JsonObject
import com.google.gson.JsonParser
import trplugins.menu.TrMenu
import org.bukkit.event.player.PlayerJoinEvent
import taboolib.common.LifeCycle
import taboolib.common.env.DependencyDownloader
import taboolib.common.platform.*
import taboolib.common.env.IO
import taboolib.common.platform.Awake
import taboolib.common.platform.SkipTo
import taboolib.common.platform.event.EventPriority
import taboolib.common.platform.event.SubscribeEvent
import taboolib.common.platform.function.console
import taboolib.common.platform.function.submit
import taboolib.module.lang.sendLang
import taboolib.platform.util.sendLang
import trplugins.menu.TrMenu
import java.io.BufferedInputStream
import java.net.URL
import java.nio.charset.StandardCharsets
Expand Down Expand Up @@ -48,7 +49,7 @@ object Updater {
try {
URL(API_URL).openStream().use { inputStream ->
BufferedInputStream(inputStream).use { bufferedInputStream ->
read = DependencyDownloader.readFully(bufferedInputStream, StandardCharsets.UTF_8)
read = IO.readFully(bufferedInputStream, StandardCharsets.UTF_8)
val json = JsonParser().parse(read) as JsonObject
val latestVersion = json.get("tag_name").asDouble
if (latestVersion > CURRENT_VERSION) {
Expand Down
12 changes: 0 additions & 12 deletions plugin/src/test/kotlin/FuncParser.kt

This file was deleted.

0 comments on commit b45749c

Please sign in to comment.