📪Creating a Company
Step-by-Step Creation Guide
1. Locating the Configuration Folder
Navigate to your server's root directory.
Dive into the
plugins
folder and locate theTrueCompanies
folder.Inside, you'll find a
/companies
folder. This is where the magic begins!
2. Generating Your Company's Configuration File
Create a new
.yml
file within the/companies
folder. The filename will serve as yourcompany-id
, so choose wisely!Example: For a company named "BlockCrafters", you might name the file
BlockCrafters.yml
.
3. Populating Your Configuration File
Copy and paste the base template provided. This will give you a solid starting point.
Comments:
displayName
: This is your company's public name.description
: A brief description of your company.balance
: Your company's starting balance.chatFormat
: The format for your company's chat. Customize with color codes and placeholders.commands
: Define commands that get executed on specific events, like hiring or firing.groups
: Define the various roles within your company, each with its own permissions.data
: Associate players with their respective roles.
First group (1) equals to the Owner of the Company
4. Customizing Your Company
Naming & Branding: Edit the
displayName
anddescription
to fit your company's theme and mission.Role Management: Within the
groups
section, set up various roles (like "Manager" or "Miner") and assign permissions based on their responsibilities.Player Assignments: Under the
data
section, associate your company's members with their roles.
Pro Tip: For complex companies, consider creating additional groups with unique permissions to streamline management!
Testing your Company Setup
Testing Your Company Setup
Once you've configured your company:
Execute /company reload in-game
Check in-game if the Owner has all the permission for that specific Company
Test out the permissions, commands, manage, and chat functions to ensure everything works as expected.
Advanced Configuration & Developer Tools
For those looking to dive deeper:
API: Use our comprehensive API to customize and enhance your company's mechanics. Check out the API documentation for details.
Events: Hook into specific events, like hiring or firing, to add custom behaviors and reactions.
Last updated