Skip to main content

Configuration

The main configuration file config.json controls the core behavior of the Info Hub.

Complete Example

{
"language": "en-US",
"command": {
"name": "info",
"aliases": ["hub", "infohub", "menu"],
"description": "Opens the Info Hub"
},
"joinMessage": {
"enabled": true,
"delaySeconds": 2,
"message": [
"",
"&8━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━",
" &6Welcome to the server!",
" &7Use &e/info &7for all information!",
"&8━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━",
""
],
"showOnlyOnFirstJoin": false,
"cooldownMinutes": 0
},
"infoItem": {
"enabled": true,
"itemId": "InfoHub_Book",
"giveOnFirstJoin": true,
"giveOnEveryJoin": false,
"hotbarSlot": 8,
"giveDelaySeconds": 3
},
"globalSearch": {
"enabled": true,
"minQueryLength": 2,
"maxResults": 20,
"searchIn": {
"commands": true,
"faq": true,
"rules": true,
"team": false
}
},
"sections": {
"commands": {
"icon": "Tool_Pickaxe_Iron",
"priority": 1,
"permission": null,
"enabled": true,
"command": "commands"
},
"rules": {
"icon": "Weapon_Sword_Iron",
"priority": 2,
"permission": null,
"enabled": true,
"command": "rules"
},
"faq": {
"icon": "Ore_Gold",
"priority": 3,
"permission": null,
"enabled": true,
"command": "faq"
},
"serverinfo": {
"icon": "Ore_Prisma",
"priority": 4,
"permission": null,
"enabled": true,
"command": null
},
"team": {
"icon": "Weapon_Longsword_Iron",
"priority": 5,
"permission": null,
"enabled": true,
"command": "team"
}
},
"display": {
"hubTitle": "KyuubiSoft Info Hub",
"itemsPerPage": 6,
"showSectionDescriptions": true
},
"permissions": {
"adminReload": "infohub.admin.reload",
"bypassCommandFilter": "infohub.bypass.commandfilter"
}
}

Settings Reference

General Settings

SettingTypeDefaultDescription
languageString"de-DE"Language for UI texts (de-DE, en-US, etc.)

Command Settings

SettingTypeDescription
command.nameStringMain command to open the Info Hub
command.aliasesArrayAlternative commands
command.descriptionStringCommand description

Join Message

SettingTypeDefaultDescription
joinMessage.enabledBooleantrueEnable welcome message
joinMessage.delaySecondsInteger2Delay after join in seconds
joinMessage.messageArray-Message lines (with color codes)
joinMessage.showOnlyOnFirstJoinBooleanfalseOnly show on first ever join
joinMessage.cooldownMinutesInteger0Cooldown between messages (0 = always)

Info Item

SettingTypeDefaultDescription
infoItem.enabledBooleantrueEnable info item system
infoItem.itemIdString"InfoHub_Book"Item ID for the info item
infoItem.giveOnFirstJoinBooleantrueGive item on first join
infoItem.giveOnEveryJoinBooleanfalseGive item on every join
infoItem.hotbarSlotInteger8Hotbar slot 0-8
infoItem.giveDelaySecondsInteger3Delay before giving item

The Info Hub features live inline search - results appear instantly on the same page while typing.

SettingTypeDefaultDescription
globalSearch.enabledBooleantrueEnable global search
globalSearch.minQueryLengthInteger2Minimum search query length
globalSearch.maxResultsInteger20Maximum search results
globalSearch.searchIn.commandsBooleantrueInclude commands in search
globalSearch.searchIn.faqBooleantrueInclude FAQ in search
globalSearch.searchIn.rulesBooleantrueInclude rules in search
globalSearch.searchIn.teamBooleanfalseInclude team in search

Search Behavior

LocationSearch TypeBehavior
Main HubLive InlineResults replace sections while typing
Command CategoriesLive InlineCategories filter while typing
Command ListLive InlineCommands filter while typing
Live Search

Start typing in the search box (minimum 2 characters) and results appear instantly. The section buttons are temporarily hidden while searching. Click any result to open its detail page, or clear the search text to return to the main view.

Sections

Each section can be configured:

SettingTypeDescription
iconStringItem ID for the section icon
priorityIntegerSort order (lower = higher)
permissionStringPermission to view (null = everyone)
enabledBooleanShow section in main menu
commandStringDirect command for this section (null = no command)
commandAliasesArrayAdditional command aliases (optional)
Section Command Configuration

You can add a command to any section. For example, to add a command for the serverinfo section:

"serverinfo": {
"icon": "Ore_Prisma",
"priority": 4,
"enabled": true,
"command": "serverinfo",
"commandAliases": ["server", "info-server"]
}

Display Settings

SettingTypeDefaultDescription
display.hubTitleString"Info Hub"Title shown in the hub
display.itemsPerPageInteger6Items per page in lists
display.showSectionDescriptionsBooleantrueShow section descriptions

Color Codes

Use these codes in messages:

CodeColorCodeColor
&0Black&8Dark Gray
&1Dark Blue&9Blue
&2Dark Green&aGreen
&3Dark Cyan&bCyan
&4Dark Red&cRed
&5Purple&dPink
&6Gold&eYellow
&7Gray&fWhite

Formatting:

CodeEffect
&lBold
&oItalic
&nUnderlined
&rReset

Examples

Minimal Join Message

"joinMessage": {
"enabled": true,
"delaySeconds": 1,
"message": [
"&aWelcome! Type &e/info &afor help."
]
}

Staff-Only Section

"sections": {
"admin-tools": {
"icon": "Deco_CommandBlock",
"priority": 10,
"permission": "infohub.section.admin",
"enabled": true
}
}

Disable Info Item

"infoItem": {
"enabled": false
}