profiles gui profiles - magemonkeystudio/divinity GitHub Wiki
๐งฉ gui.profiles.yml
This file defines the Profile List GUI, which displays all available player profiles. It allows switching, setting defaults, deleting, and creating new profiles.
๐ File Location
/plugins/Divinity/profiles/gui.profiles.yml
๐ Default Layout
title: '&8&m &8&l[ &9&lProfiles &8&l]&8&m '
size: 36
profiles:
icon:
material: 'PLAYER_HEAD'
name: '&b%profile% Profile'
lore:
- '&a%class-name%&7, &fLv. %class-level%'
- ''
- '&7Default: &f%default%'
- '&7Active: &f%active%'
- ''
- '&aLeft-Click to Switch'
- '&2Right-Click set Default'
- '&cShift+Right to Delete'
slots: 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26
content:
next-page:
material: 'ENDER_PEARL'
name: '&dNext Page'
type: NEXT
slots: 35
prev-page:
material: 'ENDER_PEARL'
name: '&dPrevious Page'
type: BACK
slots: 27
exit:
material: 'BARRIER'
name: '&c&lReturn'
type: RETURN
slots: 30
create_profile:
material: 'ANVIL'
name: '&b&lNew Profile'
type: PROFILE_CREATE
slots: 32
โ๏ธ Settings Explained
Key | Description |
---|---|
title |
Title of the GUI shown at the top. Supports color codes. |
size |
Total size of the GUI inventory in slots (must be a multiple of 9). |
profiles |
Defines how each profile appears in the menu (repeated per profile). |
content |
Static buttons like next/previous page, exit, and create profile actions. |
profiles.icon
Fields
๐ณ Field | Description |
---|---|
material |
The material used for the profile icon. Typically PLAYER_HEAD . |
name |
Display name of the profile. %profile% is replaced with the profileโs name. |
lore |
Tooltip shown for each profile, with placeholders for class and status info. |
slots |
A list of slots in the inventory where profiles are rendered (reused for pagination). |
%placeholders%
in name
or lore
:
Supported %profile%
โ profile name%class-name%
โ the class assigned to the profile%class-level%
โ class level%default%
โ whether this profile is marked as default%active%
โ whether this profile is currently active
content
Buttons
๐ฎ ID | Description |
---|---|
next-page |
Goes to the next page of profiles. |
prev-page |
Goes to the previous page. |
exit |
Closes the GUI or returns to the previous menu. |
create_profile |
Creates a new profile. |
Each content button includes:
material
: The icon to displayname
: The label shown in the GUItype
: Action performed when clicked (NEXT
,BACK
,RETURN
,PROFILE_CREATE
)slots
: The inventory slot where the item appears
๐ก Tips
- You can increase the number of profiles shown by adjusting the
slots
list underprofiles.icon
and increasingsize
. - Be careful not to overlap static
content
slots withprofiles
slots. - Color and formatting codes like
&a
,&c
,&l
(bold) are supported inname
andlore
.
Restart the server or use /divinity reload
to apply changes.