Documentation

CrystalProfiles — Player Profiles & Social Hub

Persistent player profiles, statistics, friends, reputation, privacy controls and themes for Paper servers.

This is a preserved product reference. Check the current listing for release-specific dependencies and support. Ask for help.

Reference information

Guide version: v1.0.1 Supported versions: Paper 1.21.1+ · Java 21+ Guide updated: November 2026

Overview

CrystalProfiles gives every player a persistent profile and a social interface on a Paper server. A profile stores identity fields, privacy choices, statistics, badges, activity and reputation. The plugin also provides friend requests, a trusted-player leaderboard, profile visits, themes and a small API for other plugins. It is self-contained: there is no hard dependency on an economy, permissions, PlaceholderAPI or other gameplay plugin. Optional integrations register through the Paper service registry. • /profiles social hub and /profile navigation • Online and offline profile views with first join, last seen and live status • Native and custom statistics: playtime, K/D, distances, blocks and messages • Data-driven badges and achievements • Friend requests, accept, decline, removal and favorites • Positive, neutral and negative reputation with abuse controls • Per-section privacy: everyone, friends or only the owner • Profile visits and unique visitor counts • Permission-gated animated themes • SQLite or MySQL storage with automatic, transactional migrations • Asynchronous database work with bounded concurrency and an expiring cache
RequirementSupported value
Server softwarePaper 1.21.1 or newer (Paper 1.21 API)
Java21 or newer
Hard dependenciesNone
StorageSQLite (default) or MySQL
Database driversBundled in the release JAR

Installation & Updating

1. Stop the server completely. Do not swap the JAR while the server runs and do not use /reload. 2. Back up plugins/CrystalProfiles/, especially profiles.db or your MySQL database. 3. Remove every older CrystalProfiles-*.jar from plugins/. 4. Copy CrystalProfiles-1.0.1.jar into plugins/. 5. Start Paper on Java 21+ and wait for the CrystalProfiles enabled console message. 6. Join and run /profiles and /profile to confirm everything works. On first start the plugin creates its data folder, saves missing YAML files, opens the database, applies migrations and loads profiles for players already online. Always deploy the release JAR, never a *-plain.jar development build. Updating Stop the server, back up the data folder and database, replace the JAR, keep your existing YAML files and start again. Migrations run automatically and are recorded in cp_schema_history. New default keys are only written when a file is missing, so compare new release resources manually.
plugins/CrystalProfiles/
├── config.yml
├── messages.yml
├── badges.yml
├── themes.yml
├── achievements.yml
└── profiles.db      # SQLite only

Commands

Player commands first require crystalprofiles.use and then the feature permission. /profile has the aliases /cp and /playerprofile; /profiles has no aliases. Tab completion offers subcommands and online player names. The console can run /profile reload only.
CommandPermissionPurpose
/profilecrystalprofiles.useOpen the Social Hub
/profile <player>crystalprofiles.useOpen a stored profile (the player must have joined this server)
/profile settingscrystalprofiles.customizePrivacy and profile settings
/profile badgescrystalprofiles.useOpen your Badge Cabinet
/profile friendscrystalprofiles.socialOpen your friends list
/profile customizecrystalprofiles.customizeOpen the theme selector
/profile statisticscrystalprofiles.useOpen your statistics screen
/profile reloadcrystalprofiles.admin · consoleReload config.yml, messages and catalogs (database changes need a restart)
/profilescrystalprofiles.useOpen the Social Hub

Permissions

crystalprofiles.use is checked before every feature permission, so granting crystalprofiles.social alone does not unlock /profile friends. crystalprofiles.admin bypasses profile privacy and includes every other CrystalProfiles permission. A theme with an empty permission in themes.yml is available to everyone.
/lp group default permission set crystalprofiles.use true
/lp group default permission set crystalprofiles.social true
/lp group vip permission set crystalprofiles.theme.galaxy true
/lp group staff permission set crystalprofiles.admin true
PermissionDefaultAllows
crystalprofiles.useEveryoneUse /profile, /profiles and profile screens
crystalprofiles.customizeEveryoneOpen settings and themes; equip unlocked themes
crystalprofiles.socialEveryoneFriends, friend requests and reputation
crystalprofiles.privacy.locationEveryoneChange the location privacy setting
crystalprofiles.theme.emeraldOperatorUse the Emerald theme
crystalprofiles.theme.fireOperatorUse the Inferno theme
crystalprofiles.theme.galaxyOperatorUse the Galaxy theme
crystalprofiles.adminOperatorReload, bypass privacy and all CrystalProfiles permissions

Privacy, Friends & Reputation

Privacy The Settings screen cycles each section between EVERYONE, FRIENDS and NOBODY: PROFILE, STATISTICS, FRIENDS, LOCATION and PLAYTIME (BALANCE and VISITORS are stored for future use). New profiles start with everything on EVERYONE, except LOCATION and VISITORS on FRIENDS. Owners always see their own sections; crystalprofiles.admin bypasses privacy. Friends Send, accept, decline and remove friend requests. Pending requests expire after friends.request-expiry-days, both players must stay below friends.maximum-friends, and accepted friends receive an online notice with a sound when friends.notify-online is enabled. Reputation Players can rate others positive (+1), neutral (0) or negative (-1). Self-ratings, ratings before the required playtime, repeat ratings within the cooldown and, with prevent-same-address, ratings from an address already used on that target are rejected. Addresses are stored only as a SHA-256 hash. The leaderboard ranks players by reputation.

Themes, Badges & Achievements

Themes are loaded from themes.yml, badges from badges.yml and achievements from achievements.yml; all three reload with /profile reload. The bundled badges are owner, developer, moderator, og and beta_tester; badges are sorted by weight and hidden badges never appear on profiles. Achievement progress is calculated from statistics whenever the menu opens, shown with a ten-segment progress bar, and secret achievements stay hidden until reached. In 1.0.1 the reward-badge field is metadata only and does not grant badges.
Theme IDDisplay namePermissionAnimated
crystal_blueCrystal BlueNoneYes
emeraldEmeraldcrystalprofiles.theme.emeraldYes
fireInfernocrystalprofiles.theme.fireYes
galaxyGalaxycrystalprofiles.theme.galaxyYes
minimalMinimalNoneNo

Configuration

Edit plugins/CrystalProfiles/config.yml and run /profile reload. Values below a minimum are raised to that minimum. Database settings require a full restart: if a reload changes them, it fails and the active database stays in use.
database:
  type: MYSQL
  mysql:
    host: db.example.net
    port: 3306
    database: crystalprofiles
    username: crystalprofiles
    password: "REPLACE_ME"
    parameters: useSSL=true&serverTimezone=UTC
  pool:
    maximum-connections: 12
    connection-timeout-millis: 5000
PathDefaultPurpose
database.typeSQLITESQLITE or MYSQL (restart required)
database.sqlite-fileprofiles.dbSQLite file inside the plugin folder
database.pool.maximum-connections10 (min 2)Connection pool size
performance.io-parallelism8 (min 2)Parallel database operations
performance.cache-expire-minutes10Idle profile cache lifetime
performance.cache-maximum-entries10000Profile cache capacity
performance.autosave-minutes5Online statistics flush interval
performance.animation-ticks10 (min 4)Menu animation interval in ticks
profile.default-themecrystal_blueTheme for new profiles
profile.default-bioThis player is still writing their story.Bio for new profiles
reputation.cooldown-hours24Repeat interval per author and target
reputation.require-playtime-minutes30Playtime needed before rating others
reputation.prevent-same-addresstrueBlock ratings from the same address
friends.request-expiry-days7Pending request lifetime
friends.maximum-friends200Friend limit per player
friends.notify-onlinetrueOnline notices to friends
gui.soundstrueOpen and click sounds
gui.fill-empty-slotstrueFiller glass in menus

Developer API

Load CrystalProfilesApi from the Bukkit services manager (package me.CrystalDevs.crystalProfiles.api) and keep the integration optional. Storage operations return a CompletableFuture: never call join() or get() on the server thread, and schedule inventory or entity work back onto the main thread. Version 1.0.1 publishes no custom Bukkit events.
CrystalProfilesApi api = Bukkit.getServicesManager().load(CrystalProfilesApi.class);
if (api == null) return; // CrystalProfiles is not enabled

api.profile(playerId); // CompletableFuture<Optional<Profile>>
api.recordActivity(playerId, "AUCTION_WON", "Won a rare item");
api.grantBadge(playerId, "beta_tester", staffUuid); // badge must exist in badges.yml

api.registerButton(new ProfileButton(
        "crystalstaff", "crystalstaff.staff_profile", "<red>Staff Profile", "SHIELD",
        List.of("<gray>View moderation history."), 38,
        (viewer, targetId) -> staffGui.open(viewer, targetId)));

Current Limitations

• No PlaceholderAPI expansion and no built-in economy or balance display. • The customization screen equips themes only; bio, quote, banner, color, relationship status and country cannot be edited in-game. • Notifications are stored, but there is no notification inbox menu. • There is no visitor-list menu; visit counts are shown on profiles. • profile.show-country and profile.notify-on-view are loaded but not used yet. • A shared MySQL database works across servers, but there is no proxy messaging or live cross-server sync.

FAQ & Troubleshooting

The plugin does not load. Check Java 21+, Paper 1.21.1+, a single CrystalProfiles JAR and that you deployed CrystalProfiles-1.0.1.jar rather than a *-plain.jar. The 1.0.1 release replaces the incompatible paper-plugin.yml packaging of 1.0.0. Database migration failed. Read the nested SQL exception, verify MySQL credentials and privileges or that the SQLite folder is writable, fix the database block and restart. Migrations are transactional. A player sees This profile is private. The target has restricted that section. Ask the owner to change it or become accepted friends; crystalprofiles.admin bypasses privacy. Playtime in the database looks lower than in the menu. Online statistics are shown live and flushed on autosave, quit and shutdown. A theme shows Locked. Grant the permission set for that theme in themes.yml. Reputation is refused. Wait for the cooldown, meet reputation.require-playtime-minutes and review prevent-same-address. Does it require Vault, LuckPerms or PlaceholderAPI? No. All of them are optional.

Support

For help, join the official Crystal Developments Discord: https://discord.gg/j6rHpCSKeJ, or email contact@crystaldevs.xyz. Include the CrystalProfiles version, Paper and Java versions, your storage type, the first relevant console error with its stack trace and the related configuration with database passwords removed.

Changelog

v1.0.1 • Fixed the startup crash of 1.0.0: the plugin now ships a plugin.yml instead of paper-plugin.yml. • Deterministic shaded packaging with unrelocated SQLite and MySQL drivers. • Build-time check of the release JAR contents. • Existing database data is preserved through automatic migrations.