Add per-player toggle for Mining skill benefit to fix Fortune/Silk Touch conflicts - #118
Draft
dmccoystephenson with Copilot wants to merge 17 commits into
Draft
Add per-player toggle for Mining skill benefit to fix Fortune/Silk Touch conflicts#118dmccoystephenson with Copilot wants to merge 17 commits into
dmccoystephenson with Copilot wants to merge 17 commits into
Conversation
Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update mining skill to allow toggling benefits for players
Add per-player toggle for Mining skill benefit to fix Fortune/Silk Touch conflicts
Oct 8, 2025
…e() usage, and handle() active guard Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
…thub.com:Dans-Plugins/SimpleSkills into copilot/fix-751a9037-3a32-417b-8065-948a85ffe2bd
… totals Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
…17b-8065-948a85ffe2bd Fix skill activation/deactivation persistence across server restarts
Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com> Agent-Logs-Url: https://github.com/Dans-Plugins/SimpleSkills/sessions/30bcb888-b3bd-40e1-896a-97e301aa5966
…g paths, Ponder install step, standardize repo links Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com> Agent-Logs-Url: https://github.com/Dans-Plugins/SimpleSkills/sessions/fbdfd48c-b863-4ded-bc3e-9825f2fc9cca
…-medieval-factions Align documentation with Medieval Factions plugin conventions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Mining skill's auto-smelt benefit conflicts with Fortune and Silk Touch enchantments. When the benefit triggers (10% chance), it deletes the ore block and drops a single smelted item, which:
This is helpful early game but frustrating later when players want full control over their ore drops.
Solution
Implemented a per-player toggle system that allows players to disable skill benefits on demand using the
/ss toggle <skillName>command. Players can now:Implementation Details
Core Changes:
disabledBenefitsHashMap toPlayerRecordto track benefit preferences per skillMining.executeReward()to check if benefit is enabled before executing (6 lines added)ToggleCommandto handle the new/ss togglecommand with proper validationUser Experience:
/ss toggle (skillName)Usage Example
Technical Notes
ss.togglepermission (defaults to available for all players)Fixes #[issue_number]
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
hub.spigotmc.org/usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.11/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.11/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.11 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.11/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/SimpleSkills/SimpleSkills org.codehaus.plexus.classworlds.launcher.Launcher clean compile(dns block)jitpack.io/usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.11/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.11/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.11 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.11/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/SimpleSkills/SimpleSkills org.codehaus.plexus.classworlds.launcher.Launcher clean compile(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.