From baeae9b4dd997e9dda3bd9ac1540d6c6d22690ab Mon Sep 17 00:00:00 2001 From: Tigerpanzer_02 <37453987+Tigerpanzer02@users.noreply.github.com> Date: Sat, 13 Jan 2024 02:26:56 +0100 Subject: [PATCH] #patch General improvements / code maintenance (#70) * Bump version from 2.0.4 to 2.0.4-SNAPSHOT0 * Removed debug messages in console on contribution value * Bump version from 2.0.4-SNAPSHOT0 to 2.0.4-SNAPSHOT1 * Fetched minigamesbox 1.3.6 * Bump version from 2.0.4-SNAPSHOT1 to 2.0.4-SNAPSHOT2 --------- Co-authored-by: version-bump[github-action] <41898282+version-bump[github-action]@users.noreply.github.com> --- .github/CHANGELOG.md | 3 +++ build.gradle.kts | 4 ++-- .../projects/murdermystery/arena/Arena.java | 2 -- src/main/resources/config.yml | 20 ++++++++----------- 4 files changed, 13 insertions(+), 16 deletions(-) diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index f3f38acf..e46db8e1 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -1,3 +1,6 @@ +### 2.0.5 Release (13.01.2024) +* Updated to minigamesbox 1.3.6 + ### 2.0.4 Release (03.01.2024) * Added new command /mma locale to set your locale * Fixed GameProfile API 1.20 change diff --git a/build.gradle.kts b/build.gradle.kts index a4dfc12b..10b7398c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -17,7 +17,7 @@ repositories { } dependencies { - implementation("plugily.projects:MiniGamesBox-Classic:1.3.5") { isTransitive = false } + implementation("plugily.projects:MiniGamesBox-Classic:1.3.6") { isTransitive = false } compileOnly("org.spigotmc:spigot-api:1.19.3-R0.1-SNAPSHOT") compileOnly("io.papermc.paper:paper-api:1.19.3-R0.1-SNAPSHOT") compileOnly("org.jetbrains:annotations:24.0.1") @@ -25,7 +25,7 @@ dependencies { } group = "plugily.projects" -version = "2.0.4" +version = "2.0.4-SNAPSHOT2" description = "MurderMystery" java { diff --git a/src/main/java/plugily/projects/murdermystery/arena/Arena.java b/src/main/java/plugily/projects/murdermystery/arena/Arena.java index 3cbaa1cf..3d3f7e85 100644 --- a/src/main/java/plugily/projects/murdermystery/arena/Arena.java +++ b/src/main/java/plugily/projects/murdermystery/arena/Arena.java @@ -410,7 +410,6 @@ public int getContributorValue(Role role, User user) { } Player player = user.getPlayer(); int contributor = user.getStatistic("CONTRIBUTION_" + role.name()); - Bukkit.getConsoleSender().sendMessage(user.getPlayer().getName() + role.name() + "->C:" + contributor + user.getStatistic(plugin.getStatsStorage().getStatisticType("CONTRIBUTION_" + role.name()))); int increase = plugin.getPermissionsManager().getPermissionCategoryValue(role.name() + "_BOOSTER", player); int multiplicator = plugin.getPermissionsManager().getPermissionCategoryValue("CHANCES_BOOSTER", player); int calculatedContributor = (contributor + increase) * (multiplicator == 0 ? 1 :multiplicator); @@ -419,7 +418,6 @@ public int getContributorValue(Role role, User user) { } else { detectiveContributions.put(user, calculatedContributor); } - Bukkit.getConsoleSender().sendMessage(user.getPlayer().getName() + role.name() + "->" + calculatedContributor); return calculatedContributor; } diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 9f23790a..1ebb00d8 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -51,14 +51,10 @@ Commands: Executes: "murdermystery leave" Enabled: true '3': - Short: "kit" - Executes: "murdermystery selectkit" - Enabled: false - '4': Short: "stats" Executes: "murdermystery stats" Enabled: false - '5': + '4': Short: "top" Executes: "murdermystery top" Enabled: true @@ -84,15 +80,14 @@ Database: false # Should we enable in game rewards? See rewards.yml for more... # You should also check out our script engine tutorial for rewards! https://tutorial.plugily.xyz -Rewards: true +Rewards: false -# Enable in game (eg. '[KIT][LEVEL] Tigerpanzer_02: hey') special formatting? -# Formatting is configurable in language.yml -# You can use PlaceholderAPI placeholders in chat format! -Plugin-Chat-Format: true - Chat: + # Enable in game (eg. '[KIT][LEVEL] Tigerpanzer_02: hey') special formatting? + # Formatting is configurable in language.yml + # You can use PlaceholderAPI placeholders in chat format! + Format: true Separate: # Should we enable a separate arena chat for players inside a arena # Useful on multi arena servers that don't want the same chat for all players on the server @@ -100,6 +95,7 @@ Chat: # Should spectators only write with other spectators Spectators: true + # Should we fire some cool fireworks at locations of every player at special events such as the game end? Firework: true @@ -266,4 +262,4 @@ Sword: # You edited it, huh? Next time hurt yourself! Do-Not-Edit: File-Version: 1 - Core-Version: 2 \ No newline at end of file + Core-Version: 3 \ No newline at end of file