From e2d1a70086b5c288a2de04594720a457bc837c57 Mon Sep 17 00:00:00 2001 From: acrylic-style Date: Thu, 18 Jul 2024 20:42:20 +0900 Subject: [PATCH] add /townserver --- build.gradle.kts | 2 +- src/main/java/com/github/mori01231/lifecore/LifeCore.kt | 1 + src/main/resources/plugin.yml | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index e8e43d8..ae3c848 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -9,7 +9,7 @@ plugins { } group = "net.azisaba" -version = "6.12.2" +version = "6.12.3" java { toolchain.languageVersion.set(JavaLanguageVersion.of(8)) diff --git a/src/main/java/com/github/mori01231/lifecore/LifeCore.kt b/src/main/java/com/github/mori01231/lifecore/LifeCore.kt index f449862..9fb5d7a 100644 --- a/src/main/java/com/github/mori01231/lifecore/LifeCore.kt +++ b/src/main/java/com/github/mori01231/lifecore/LifeCore.kt @@ -122,6 +122,7 @@ class LifeCore : JavaPlugin() { registerCommand("life", TransferCommand(this, "life")) registerCommand("resource", TransferCommand(this, "liferesource")) registerCommand("event", TransferCommand(this, "lifeevent")) + registerCommand("townserver", TransferCommand(this, "lifetown")) registerCommand("rank", RankCommand(this)) registerCommand("trash", TrashCommand()) registerCommand("kiai", KiaiCommand()) diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 431357c..952dfe5 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -73,6 +73,10 @@ commands: description: Teleport to LifeEvent server. permission: lifecore.event usage: Syntax error! Simply type /event to teleport to LifeEvent server. + townserver: + description: Teleport to life town server. + permission: lifecore.townserver + aliases: [towns] rank: description: Show rank. permission: lifecore.rank @@ -242,6 +246,8 @@ permissions: lifecore.event: description: Allows you to go to event server. default: true + lifecore.townserver: + default: true lifecore.rank: description: Allows you to show your rank. default: false