Skip to content

Add ASP guild worlds and management GUIs#1

Merged
Taahh merged 1 commit into
masterfrom
codex/guild-worlds-gui
Jul 9, 2026
Merged

Add ASP guild worlds and management GUIs#1
Taahh merged 1 commit into
masterfrom
codex/guild-worlds-gui

Conversation

@Taahh

@Taahh Taahh commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds AdvancedSlimePaper API integration with shaded file-loader support.
  • Creates a flat ASP world for each guild and adds /guild world teleport access.
  • Adds guild-world access protection and per-guild member permissions for block breaking, placing, and interacting.
  • Adds /guild menu plus central member-management and permission GUIs.

Notes

  • The branch was rebased onto current origin/master before committing.
  • Upstream now uses the repository storage layer and GuildRole, so permission customization is persisted as member-role guild-world permissions.

Validation

  • ./gradlew.bat clean build

@Taahh Taahh self-assigned this Jul 9, 2026
@Taahh Taahh requested review from Telesphoreo and Copilot July 9, 2026 02:17
@Taahh Taahh marked this pull request as ready for review July 9, 2026 02:18
@Taahh Taahh merged commit 9997ea1 into master Jul 9, 2026
2 checks passed
@Taahh Taahh deleted the codex/guild-worlds-gui branch July 9, 2026 02:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces per-guild AdvancedSlimePaper worlds plus in-game management UX to access those worlds, manage guild members, and configure member build/interact permissions that are persisted to the guild storage layer.

Changes:

  • Add ASP-backed “guild world” creation/loading and teleport entry points (/guild world and menu access).
  • Add guild-world access protection and persisted member permission toggles (break/place/interact) with a rank-permissions GUI.
  • Add member-management GUI (kick / transfer ownership) and wire up DB migrations + repository updates.

Reviewed changes

Copilot reviewed 23 out of 24 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/main/resources/guilds/messages.yml Adds new user-facing messages for guild worlds and member kick feedback.
src/main/resources/db/migration/sqlite/002_guild_world_permissions.sql Adds persisted member permission columns (SQLite).
src/main/resources/db/migration/postgres/002_guild_world_permissions.sql Adds persisted member permission columns (Postgres).
src/main/resources/db/migration/mariadb/002_guild_world_permissions.sql Adds persisted member permission columns (MariaDB).
src/main/java/dev/plex/world/GuildWorldService.java Implements ASP world read/create/load/save lifecycle for guild worlds.
src/main/java/dev/plex/storage/JdbiGuildRepository.java Persists and loads the new member permission columns; adds update API.
src/main/java/dev/plex/storage/GuildRepository.java Adds repository method to update member permission flags.
src/main/java/dev/plex/storage/entity/GuildEntity.java Adds entity fields for persisted member permission flags.
src/main/java/dev/plex/handler/RankPermissionMenuListener.java Adds GUI for toggling member guild-world permissions.
src/main/java/dev/plex/handler/GuildWorldProtectionListener.java Enforces guild-member-only access and permission checks in guild worlds.
src/main/java/dev/plex/handler/GuildMenuListener.java Adds /guild GUI flows for world entry + member management.
src/main/java/dev/plex/Guilds.java Wires migrations, world service lifecycle, and registers new listeners.
src/main/java/dev/plex/guild/Guild.java Adds member permission fields/logic and world-name helper.
src/main/java/dev/plex/guild/data/Member.java Adds Plex player lookup + name resolution for GUI displays.
src/main/java/dev/plex/guild/data/GuildPermission.java Introduces enum for world permission toggles (break/place/interact).
src/main/java/dev/plex/gui/RankPermissionInventoryHolder.java Adds inventory holder for rank permissions GUI.
src/main/java/dev/plex/gui/GuildMenuView.java Adds view enum for guild menu navigation.
src/main/java/dev/plex/gui/GuildMenuInventoryHolder.java Adds inventory holder for guild menu views.
src/main/java/dev/plex/command/sub/WorldSubCommand.java Adds /guild world teleport command.
src/main/java/dev/plex/command/sub/PermissionsSubCommand.java Adds /guild permissions GUI entry point.
src/main/java/dev/plex/command/sub/MenuSubCommand.java Adds /guild menu GUI entry point.
src/main/java/dev/plex/command/sub/CreateSubCommand.java Ensures a guild world is created/loaded during guild creation.
src/main/java/dev/plex/command/GuildCommand.java Opens the guild menu when /guild is run with no args in-game.
build.gradle.kts Adds Shadow packaging + ASP dependencies and snapshot repository.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +64 to +65
boolean enabled = !holder.guild().hasPermission(MEMBER_PERMISSION_PROBE, permission);
holder.guild().setPermission(permission, enabled);
{
ItemStack itemStack = new ItemStack(permission.material());
ItemMeta itemMeta = itemStack.getItemMeta();
boolean enabled = guild.hasPermission(MEMBER_PERMISSION_PROBE, permission);
{
inventory.setItem(i, memberItem(guild, members.get(i)));
}
inventory.setItem(BACK_SLOT, item(Material.ARROW, "Back", NamedTextColor.YELLOW, List.of(line("Return to the guild menu", NamedTextColor.GRAY))));
Comment on lines +153 to +157
if (slot == BACK_SLOT)
{
openHome(player, guild);
return;
}
Comment on lines +154 to +157
catch (IOException e)
{
throw new GuildWorldException("Failed to save guild world " + loadedWorld.getName(), e);
}
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