Skip to content

✨ feat(settings): integrate settings API for sound preferences#14

Open
JoField08 wants to merge 6 commits into
version/26.1from
feat/implementation-of-setting-api
Open

✨ feat(settings): integrate settings API for sound preferences#14
JoField08 wants to merge 6 commits into
version/26.1from
feat/implementation-of-setting-api

Conversation

@JoField08

Copy link
Copy Markdown
Contributor
  • add SettingsHook and hasSettingsApi to manage player sound settings
  • update sound playback logic to respect user preferences for shop sounds
  • create SettingsShopView for managing deal messages and sound settings

- add SettingsHook and hasSettingsApi to manage player sound settings
- update sound playback logic to respect user preferences for shop sounds
- create SettingsShopView for managing deal messages and sound settings
@JoField08 JoField08 self-assigned this May 5, 2026
JoField08 added 5 commits May 5, 2026 23:43
- add check for settings API and deal messages enablement
- update message sending logic for shop seller
…rf-shop into feat/implementation-of-setting-api

# Conflicts:
#	gradle.properties
#	surf-shop-paper/src/main/kotlin/dev/slne/surf/shop/paper/menu/ShopListView.kt
#	surf-shop-paper/src/main/kotlin/dev/slne/surf/shop/paper/menu/edit/storage/ItemStorageInsertView.kt
#	surf-shop-paper/src/main/kotlin/dev/slne/surf/shop/paper/menu/menu-utils.kt
…tion

- remove conditional check for settings API and directly play level-up sound
append {
if (result.deal.amount > 1) {
variableValue("${amount}x ")
if (!hasSettingsApi() || SettingsHook.hasDealMadeMessagesEnabled(uniqueId)) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Du musst gucken ob es Settings Api gibt und ob der Spieler es an hat. Wenn Settings nicht auf dem Server ist, darf der SettingsHook nicht aufgerufen werden

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants