Skip to content

Add basics-god module with /god - #173

Open
JanTuck wants to merge 3 commits into
SpigotBasics:mainfrom
JanTuck:claude/generate-essentials-prs-m7lzoq-god
Open

JanTuck wants to merge 3 commits into
SpigotBasics:mainfrom
JanTuck:claude/generate-essentials-prs-m7lzoq-god

Conversation

@JanTuck

@JanTuck JanTuck commented Oct 14, 2026 •

Copy link
Copy Markdown

Adds a new basics-god module, an EssentialsX-style feature built on the existing Basics core: the parsed command DSL, SelectorSinglePlayerArg, the event bus and module storage with the player data lifecycle.

Command Permission
/god basics.god
/god <player> basics.god.others

Tip

Players in god mode take no damage and don't get hungry. God mode is saved, so it stays on across relogs and restarts.

Notes

  • Self-contained: only adds modules/basics-god, picked up automatically by settings.gradle.kts.
  • All texts are configurable in messages.yml using the shared custom tags.
  • God mode is loaded and saved through module storage, and only changes are written (enabling stores an entry, disabling removes it).
  • ./gradlew build distribution (compile + ktlint) passes locally on Java 17. main currently can't resolve its dependencies; that is fixed separately in Fix dependency resolution for dead Maven repositories #159.

@mfnalex

mfnalex commented Oct 14, 2026

Copy link
Copy Markdown
Member

This is not persistent across restarts and also doesn't care about disconnects?

God mode is now loaded and saved through the player data lifecycle, so it survives
disconnects and restarts. Only changes are written: enabling stores an entry and
disabling removes it.
@JanTuck

JanTuck commented Oct 14, 2026

Copy link
Copy Markdown
Author

Good catch. Fixed in 46918d2: god mode now goes through module storage and the player data lifecycle (loadPlayerData / savePlayerData / forgetPlayerData), so it survives disconnects and restarts. Only changes are written: enabling stores an entry and disabling removes it.

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.

3 participants