
42
2
About
SWXResource is a convenient plugin for managing resource packs on Minecraft servers running Paper/Purpur 1.21.1. It allows admins and players to easily create, upload, delete, and manage resource packs using simple commands. The plugin supports localization (Russian and English), automatic resource pack loading upon joining, and colored message formatting.
Key Features:
- Resource pack management via commands: Create, delete, load, and view resource pack info using
/rp_swx. - Auto-load on join: Players can enable automatic resource pack loading when joining the server with
/rp_swx joinrp. - Localization: Supports Russian and English with language switching via
/rp_swx lang. - Colored formatting: Messages and help menus use colored text for clarity (purple for commands, white for separators, pink for descriptions).
- Size limit: Restricts resource pack size (default: 50 MB, configurable in
config.json). - Admin tools: Admins can delete any resource pack with
/rp_swx admin_delete.
Commands & Permissions:
/rp_swx create <url> <name>— Creates a new resource pack (players only)./rp_swx list— Lists available resource packs./rp_swx delete <name>— Deletes your resource pack (creator only)./rp_swx admin_delete <name>— Deletes any resource pack (requiresswx.resourcepackpermission or OP)./rp_swx dw <name>— Forces a resource pack download as a server pack (players only)./rp_swx info <name>— Shows resource pack details./rp_swx lang <ru|eng>— Changes the plugin's language./rp_swx joinrp <name>— Toggles auto-loading a pack on join (players only)./rp_swx help— Displays command help.
Permissions:
swx.resourcepack— Grants access to/rp_swx admin_delete.
Compatibility:
- Server: Paper/Purpur 1.21.1.
- Dependencies: Kotlin stdlib, kotlinx-serialization-json, Adventure API. (No manual installation needed!)
Installation & Usage Guide
Below is a detailed guide for users, suitable for Modrinth or a README.md file.
Installation
- Download the plugin:
- Get the latest
AlluminiumResource.jarfrom Modrinth.
- Get the latest
- Install the plugin:
- Place
AlluminiumResource.jarin your server'spluginsfolder (Paper/Purpur 1.21.1).
- Place
- Restart the server:
- The plugin will generate a
AlluminiumResource/SWX_Resourcexpackfolder with config files.
- The plugin will generate a
- Configure (optional):
- Edit
SWX_Resourcexpack/config.json:language— Default language (engorru).
- Edit
Usage
-
Creating a resource pack:
- Use
/rp_swx create <url> <name>, where:<url>— Direct download link to a.zipfile (e.g., Google Drive/Dropbox).<name>— Resource pack name.
- Example:
/rp_swx create https://example.com/pack.zip MyPack - The pack will be saved in the plugin’s database.
- Use
-
Listing packs:
- Run
/rp_swx listto view all available packs. - Format:
<name> (<creator>).
- Run
-
Loading a pack:
- Use
/rp_swx dw <name>to force a download. - Example:
/rp_swx dw MyPack - Players will see Minecraft’s server pack prompt.
- Use
-
Auto-load on join:
- Run
/rp_swx joinrp <name>to toggle auto-loading. - Example:
/rp_swx joinrp MyPack - Repeating the command disables auto-load.
- Run
-
Deleting packs:
- Players:
/rp_swx delete <name>(your packs only). - Admins:
/rp_swx admin_delete <name>(any pack).
- Players:
-
Viewing info:
- Use
/rp_swx info <name>to see creator, creation date, and URL.
- Use
-
Changing language:
- Run
/rp_swx lang <ru|eng>. - Example:
/rp_swx lang ru
- Run
-
Help menu:
- Type
/rp_swx helpfor a command summary.
- Type
Notes
- Ensure resource pack URLs point directly to
.zipfiles (no download pages). - If a pack fails to load, check Minecraft’s
latest.logfor errors (e.g., invalid URL or size limit). - Admins: Use permission plugins (e.g., LuckPerms) to manage
/rp_swx admin_deleteaccess.
Troubleshooting
- Pack won’t load?
- Verify the URL is correct and accessible.
- Wrong language?
- Use
/rp_swx langto switch.
- Use
- Can’t use
/rp_swx admin_delete?- Confirm you have
swx.resourcepackpermission or OP status.
- Confirm you have
Совместимость
Ссылки
Детали
Лицензия:MIT
Опубликован:9 месяцев назад
Обновлён:9 месяцев назад