Xshards is a comprehensive Minecraft plugin designed to introduce a shard-based economy system that enhances server gameplay. With Xshards, players can earn shards through in-game activities like staying online or defeating other players. These shards can then be used to buy items from a dynamic public shop, managed by server admins. Xshards supports configurable shard earning rates, giving server owners full control over the economy balance.
Key Features:
-
- Shard Earning:
Players earn shards based on their time spent online. By default, players receive shards every hour, but this can be customized in the plugin’s config.
Shards are also awarded for defeating other players, with safeguards to prevent farming: players can only earn shards from killing the same player once every 24 hours.
-
- Shop Management:
Admins can manage a public shop through simple commands. They can add and remove items, set prices, and manage the shop inventory dynamically.
Players can buy items from the shop using their earned shards.
Items in the shop will display their price in shards, allowing for transparent and engaging transactions.
-
- Player Data Management:
Player shard balances and shop data are stored persistently, meaning progress is saved even when the server restarts.
-
- AFK Functionality:
Players can enter AFK mode using the /afk command, which teleports them to a designated AFK location.
While in AFK mode, players will earn shards based on a configurable timer, providing rewards for their presence without active gameplay.
Admins can set the AFK location using the /setafk command and can remove it with /afkremove.
-
- PlaceholderAPI Integration:
Xshards integrates with PlaceholderAPI, supporting the placeholder %xshards_playershards%. This allows server owners to display player shard balances on scoreboards, custom menus, or other plugins for better customization and user engagement.
Commands & Permissions:
- Player Commands:
/shards - View your shard balance.
/store - Opens the public shard shop GUI where players can buy items using shards.
/afk - Enter AFK mode, teleporting to the designated AFK location.
/quitafk - Exit AFK mode and return to the last location.
- Admin Commands:
/shards give <player> <amount> - Gives the specified amount of shards to a player.
/store add <slot> <price> - Adds the item in your hand to the shop at the specified slot with a set price.
/store remove <slot> - Removes the item from the shop at the specified slot.
/setafk - Sets the public AFK location to the player's current position.
/afkremove - Removes the public AFK location.
Configurable Options:
earnshardshours: The interval (in hours) that players must stay online to earn shards.
shards: The number of shards earned per interval.
shardsperkill: The number of shards awarded for killing another player.
afkearnseconds: The interval (in seconds) for earning shards while AFK.
afkamount: The number of shards earned per AFK interval.
Server owners can customize these settings in config.yml to balance shard distribution to fit their server's economy.
With Xshards, you can create a more engaging and competitive Minecraft experience by rewarding players for their dedication and strategic gameplay.