From 2c55b55366e37fb9b2868b8363adba95cf2ea48d Mon Sep 17 00:00:00 2001 From: Martin Sulikowski Date: Sat, 9 Dec 2023 23:39:47 +0100 Subject: [PATCH] Release v1.0.2 --- CHANGELOGS.md | 52 ------------------- .../main/kotlin/eternalcode-java.gradle.kts | 2 +- .../implementation/ENTranslation.java | 17 +----- .../implementation/PLTranslation.java | 17 +----- raw_commands_docs.json | 22 +++++++- 5 files changed, 23 insertions(+), 87 deletions(-) delete mode 100644 CHANGELOGS.md diff --git a/CHANGELOGS.md b/CHANGELOGS.md deleted file mode 100644 index 1bd21aa4d..000000000 --- a/CHANGELOGS.md +++ /dev/null @@ -1,52 +0,0 @@ -### 1.0.1 (snapshot) - -#### Fixes: -#### Features: - -### 1.0.0 - -#### Fixes: - -- Fix /skull for offline players -- Handle database critical error -- Improve `/tp` command `/tp [world]`, `/tp [world]` -- Fix. Changes. This. -- Fix TeleportService Bind -- Fix typo in Reload Command and some configs -- Fix multiple header generation in config.yml -- Fix containers command working on paper -- Fix problem with possibility of creating homes with the same name -- Fix problem with reloading language.yml file -- Placeholder names to uppercase -- Fix bug with possibility to ignore yourself -- Fix bug with possibility to unignore yourself -- Fix some argument names in correct usage -- Fix a critical bug where you could copy your items by opening your inventory with /invsee command -- Fix problem with possibility of creating warp with the same name -- Exclude NONE from NoticeType argument - -#### Features: - -- Add bypass permission for home (eternalcore.teleport.bypass) -- Add permission for /home (eternalcore.home) -- Add /itemflag and /itemfalg clear -- Add /itemname clear -- Add /itemlore clear -- Add /itemlore -- Add Position wrapper for location -- Add command /back -- Add Publish system -- Add /ignore and unignore -- Add Afk domain and /afk command -- Add command /socialspy -- Add command /tphere -- Add home system (/home, /sethome, /delhome) -- Add warp system (/warp) -- Add support to PlaceholderAPI -- More advanced /hat command -- Add support to multiple notice type for configs -- Add replay messages for all time-related commands -- Add replay messages for all weather-related commands -- Add home limit per permission -- Add message translation to world and location argument -- Refactor messages config format diff --git a/buildSrc/src/main/kotlin/eternalcode-java.gradle.kts b/buildSrc/src/main/kotlin/eternalcode-java.gradle.kts index 8b7d243e3..bbaf55fc9 100644 --- a/buildSrc/src/main/kotlin/eternalcode-java.gradle.kts +++ b/buildSrc/src/main/kotlin/eternalcode-java.gradle.kts @@ -4,7 +4,7 @@ plugins { } group = "com.eternalcode" -version = "1.0.1" +version = "1.0.2" checkstyle { toolVersion = "10.12.5" diff --git a/eternalcore-core/src/main/java/com/eternalcode/core/translation/implementation/ENTranslation.java b/eternalcore-core/src/main/java/com/eternalcode/core/translation/implementation/ENTranslation.java index fabf674b0..546361c11 100644 --- a/eternalcore-core/src/main/java/com/eternalcode/core/translation/implementation/ENTranslation.java +++ b/eternalcore-core/src/main/java/com/eternalcode/core/translation/implementation/ENTranslation.java @@ -380,22 +380,7 @@ public static class ENBorderSection implements BorderSection { @Getter @Contextual public static class ENDecorationItemsSection implements DecorationItemsSection { - public List items = List.of( - ConfigItem.builder() - .withName("&8» &6Example item") - .withLore(Collections.singletonList("Click to set time to day")) - .withMaterial(Material.YELLOW_CARPET) - .withSlot(18) - .withCommands(List.of("day")) - .build(), - ConfigItem.builder() - .withName("&8» &6Example item 2") - .withLore(Collections.singletonList("Click to set time to night")) - .withMaterial(Material.BLUE_CARPET) - .withSlot(19) - .withCommands(List.of("night")) - .build() - ); + public List items = List.of(); } } } diff --git a/eternalcore-core/src/main/java/com/eternalcode/core/translation/implementation/PLTranslation.java b/eternalcore-core/src/main/java/com/eternalcode/core/translation/implementation/PLTranslation.java index 7de60c4ab..172173621 100644 --- a/eternalcore-core/src/main/java/com/eternalcode/core/translation/implementation/PLTranslation.java +++ b/eternalcore-core/src/main/java/com/eternalcode/core/translation/implementation/PLTranslation.java @@ -384,22 +384,7 @@ public static class PLBorderSection implements BorderSection { @Getter @Contextual public static class PLDecorationItemsSection implements DecorationItemsSection { - public List items = List.of( - ConfigItem.builder() - .withMaterial(Material.YELLOW_CARPET) - .withName("&8» &6Przykładowy przedmiot") - .withLore(Collections.singletonList("Kliknij aby ustawić dzień!")) - .withSlot(18) - .withCommands(List.of("day")) - .build(), - ConfigItem.builder() - .withMaterial(Material.BLUE_CARPET) - .withName("&8» &6Przykładowy przedmiot 2") - .withLore(Collections.singletonList("Kliknij aby ustawić noc!")) - .withSlot(19) - .withCommands((List.of("night"))) - .build() - ); + public List items = List.of(); } } } diff --git a/raw_commands_docs.json b/raw_commands_docs.json index 0d74a47da..be209a069 100644 --- a/raw_commands_docs.json +++ b/raw_commands_docs.json @@ -225,7 +225,10 @@ { "name": "clear ", "aliases": [], - "permissions": [], + "permissions": [ + "eternalcore.clear.other", + "eternalcore.clear" + ], "descriptions": [ "Clears inventory of player" ], @@ -236,7 +239,9 @@ { "name": "clear ", "aliases": [], - "permissions": [], + "permissions": [ + "eternalcore.clear" + ], "descriptions": [ "Clears your inventory" ], @@ -1297,6 +1302,19 @@ "\u003cplayer\u003e \u003ctarget-player\u003e" ] }, + { + "name": "teleportorandomplayer ", + "aliases": [], + "permissions": [ + "eternalcore.tprp" + ], + "descriptions": [ + "Teleport to a random player on the server, with the option to filter op players" + ], + "arguments": [ + "" + ] + }, { "name": "tellraw ", "aliases": [],