Jump to content
Toggle menu
  • 609 articles
  • 1.8K files
  • 1 users
  • 14.6K edits
DemocracyCraft Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Business: Difference between revisions

From DemocracyCraft Wiki
Gert7 (talk | contribs)
updated with all new commands - need to format
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
DemocracyBusiness is a custom firms plugin that enables players to establish their businesses, hire other players, and set wages. Employees can complete jobs for businesses and generate revenue by producing items for chest shops.
hibernia-economy is a custom economy package of plugins that enable players to establish their businesses, hire other players, create sub-accounts, create chestshops, and interact with the economy through an API. Employees can complete jobs for businesses and generate revenue by producing items for chest shops.


<div class="figure">
<div class="figure">
Line 6: Line 6:


</div>
</div>
<span id="note"></span>
<span id="starting-a-company"></span>
== Note ==
== Starting a Company ==
 
To create a business, players must obtain the Entrepreneur qualification at the university.
 
/db account create <firm> <name> — Create a new Treasury account for your firm


This plugin uses the command <code>/democracybusiness</code> officially, but alternatives are available for ease of access. Use whichever you like: - <code>/democracybusiness</code> - <code>/db</code> - <code>/business</code> - <code>/firm</code> - <code>/company</code>
/db create <firm> — Creates a firm, with the associated default roles and a treasury account


After creating a company, most commands are available via a GUI in <code>/democracybusiness menu &lt;business&gt;</code>.
/db attribute set discord <firm> <url> — Set firm Discord link


<span id="starting-a-company"></span>
/db attribute set hq <firm> <plot> — Set firm HQ to a valid AreaShop plot
== Starting a Company ==


To create a business, players must obtain the Entrepreneur qualification at the university.
=== Removing a Company ===
/db disband <firm> — Disband a firm you own (asks for confirmation)


To create a business
/db disband <firm> confirm — Confirm disbanding a firm you own
::* <code>/db create &lt;businessname&gt;</code>


To manage business funds.
=== Transfer Commands ===
::* <code>/db deposit &lt;businessname&gt; &lt;amount&gt;</code>  
/db transfer begin <firm> <user> — Begin proprietorship transfer (click-to-confirm)


::* <code>/db withdraw &lt;businessname&gt; &lt;amount&gt;</code>  
/db transfer cancel <firm> <user>


To pay employees.
/db transfer complete <firm> <user>
::* <code>/db pay <businessname> <user> <amount></code>  


To disband a business.
/db transfer confirm <firm> <user> <nowiki><code> — Begin proprietorship transfer (click-to-confirm)</nowiki>
::* <code>/db disband <businessname></code>  


To list businesses belonging to a player.
/db transfer reject <firm> <user>
::* <code>/db list &lt;user&gt;</code>,


To view firm details.
/db withdraw <firm> <amount> — Withdraw from a firm's treasury account into your personal account
::* <code>/db info &lt;businessname&gt;</code>
::* <code>/db list all &lt;page&gt;</code>  


<span id="managing-employees"></span>
<span id="managing-employees"></span>


== Managing Employees ==
== Managing Employees ==
/db staff demote <firm> <user> — Demote user to previous role
/db staff list <firm> — List staff within a firm you own or manage
/db staff promote <firm> <user> — Promote user to next role
/db staff role create <firm> <role> <order> — Creates a role with default permissions
/db staff role delete <firm> <role> — Deletes a role and associated permissions
/db staff role list <firm>
/db staff role permission add <firm> <role> <permission> — Add a permission to a role
/db staff role permission list <firm> <role>


To Offer a Job
/db staff role permission remove <firm> <role> <permission> — Remove a permission from a role
::* <code>/db offer <business> <user></code>
Accept or Deny the offer
::* <code>/db accept &lt;business&gt;</code>
::*<code>/db deny &lt;business&gt;</code>
To View Staff and their ranks
::*<code>/db staff list &lt;business&gt;</code>


to resign as an employee.
/db staff role rename <firm> <role> <newname> — Rename an existing role
::* <code>/democracybusiness resign <business></code>  


To Transfer propietorship
/db fire <firm> <user> — Fire a user from a firm you control
::* <code>/db transferproprietorship <business> <user></code>


<span id="types-of-employees"></span>
/db account addauthorizer <firm> <accountId> <player> — Manually add an authorizer to a firm's Treasury account


== Types of Employees ==
/db account addmember <firm> <accountId> <player> — Manually add a member to a firm's Treasury account


Available roles in a business hierarchy:
/db account members <firm> <accountId> — List all members of a firm's Treasury account


::* Proprietor - Complete permissions and control
/db account archive <firm> <accountId> — Archive a Treasury account for a firm


::* Co-Proprietor - Shares unlimited access with proprietor (including management of funds and management of employees)
/db account authorizers <firm> <accountId> — List all authorizers of a firm's Treasury account


::* Manager - Able to access all financial information Supervisor - Able to access firm ChestShops
/db account removeauthorizer <firm> <accountId> <player> — Manually remove an authorizer from a firm's Treasury account


::* Employee - Simply hired with no special permissions
/db account removemember <firm> <accountId> <player> — Manually remove a member from a firm's Treasury account


Custom roles can be created and edited with specific permissions. Permissions include Administrator, Financial, ChestShop, and Default.
Custom roles can be created and edited with specific permissions. Permissions include Administrator, Financial, ChestShop, and Default.


<span id="balance-tracking"></span>
/db hire <firm> <user> — Offer employment (5m to accept)
 
/db offer rescind <firm> <user> — Rescind employment offer
 
/db offer <firm> <user> — Offer employment (5m to accept)
 
=== Commands for employees ===
/db offer accept <firm> — Accept a pending job offer
 
/db offer reject <firm> — Reject a pending job offer
 
/db resign <firm> — Resign from a firm
 
/db chat — Enter your firm's chat channel
 
/db chat <firm> — Enter a specific firm's chat channel
 
/db chat off — Leave firm chat


== Balance Tracking ==
== Balance Tracking ==


Track a business’s balance and transactions using <code>/db transactions &lt;business&gt; &lt;page&gt;</code>.
/db account balance <firm> <accountId> — Show the balance of a specific firm account
 
/db account list <firm> — List all Treasury accounts for a firm
 
/db account setdefault <firm> <accountId> — Set the default Treasury account for a firm
 
/db account sync <firm> <accountId> — Manually sync firm staff to a Treasury account based on their roles
 
/db account transactions <firm> <accountId> — Show transaction history for a specific firm account
 
/db account transactions <firm> <accountId> <page> — Show transaction history for a specific firm account
 
/db balance <firm> — Show the balance of a firm's treasury account
 
/db tax info <firm> — Show tax status and estimated weekly tax for a firm
 
/db transactions <firm> — Show firm transaction history (page 1)
 
/db transactions <firm> <page> — Show firm transaction history


<span id="chest-shop-integration"></span>
== Chest Shop Integration ==
== Chest Shop Integration ==


Players can create chest shops under a company’s name.  
Players can create chest shops under a company’s name.  


Add <code>b:&lt;businessname&gt;</code> to the first line of the chest shop sign to log sales accordingly.  
Add <code>b:&lt;chestshopcode&gt;</code> to the first line of the chest shop sign to log sales accordingly.
 
If you need to find your businesses chestshop code you can use <code>/firm account list <business></code>
 
/db account alias <firm> <accountId> <alias> — Set a short shop alias for a firm account
 
/db account clearalias <firm> <accountId> — Clear a firm account's shop alias
 
/db sales <firm> — List a firm's ChestShop sales
 
/db sales <firm> <page> — List a firm's ChestShop sales (page)
 
/db sales export <firm> <days> — Get an economy-explorer link to a firm's sales report
 
/db sales summary <firm> — Aggregate sales report for a firm (default window)
 
/db sales summary <firm> <days> — Aggregate sales report for a firm over N days
 
/db sales toggle <firm> — Toggle real-time sale notifications for a firm
 
== Payment Commands ==
/db account pay business <firm> <accountId> <target> <amount> — Pay money from a specific firm account to another business
 
/db account pay into <firm> <accountId> <amount> — Pay money from your personal account into a specific firm account
 
/db account pay player <firm> <accountId> <player> <amount> — Pay money from a specific firm account to a player
 
/db deposit <firm> <amount> — Deposit from your personal account into a firm's treasury account
 
/db deposit <firm> <amount> <memo> — Deposit into a firm's treasury with a memo recorded on the transaction
 
/db pay business <firm> <target> <amount> — Pay money from one business to another
 
/db pay into <firm> <amount> — Pay money from your personal account into a business
 
/db pay player <firm> <player> <amount> — Pay money from a business to a player
 
/db send — List your firms and their balances to drive a /firm send
 
/db send <nowiki><source> <target> <amount> — Send money from one of your firms to another firm</nowiki>
 
/db send <nowiki><source> <target> <amount> <memo> — Send money between firms with a memo recorded on the transaction</nowiki>
 
/db account withdraw <firm> <accountId> <amount> — Withdraw from a specific firm account into your personal account
 
/db account deposit <firm> <accountId> <amount> — Deposit from your personal account into a specific firm account
 
=== Other important commands ===
/db baltop — Top firms by collective account balance
 
/db baltop <page> — Page through the top firms by collective account balance
 
/db help — Show command help
 
/db info <firm> — Show firm info
 
/db list — List firms for the current user
 
/db list <user> — List firms for a user
 
/db list all <page> — List all firms
 
/db menu — Choose one of your firms to manage
 
/db menu <firm> — Open a firm's overview, staff, accounts and money actions


To view chest shop history.
== Plugin Documentation ==
::* <code>/csn history b:&lt;business&gt;</code> 
If you want to find additional information about the plugin, such as how to use the API or other information not found on this wiki, please visit the official documentation [https://economy.democracycraft.net/docs/guides/getting-started here].


To access sales history.
::* <code>/business sales &lt;business&gt; &lt;page&gt;</code>
[[category:Features]]
[[category:Features]]

Latest revision as of 18:33, 27 October 2026

hibernia-economy is a custom economy package of plugins that enable players to establish their businesses, hire other players, create sub-accounts, create chestshops, and interact with the economy through an API. Employees can complete jobs for businesses and generate revenue by producing items for chest shops.

Starting a Company

To create a business, players must obtain the Entrepreneur qualification at the university.

/db account create <firm> <name> — Create a new Treasury account for your firm

/db create <firm> — Creates a firm, with the associated default roles and a treasury account

/db attribute set discord <firm> <url> — Set firm Discord link

/db attribute set hq <firm> <plot> — Set firm HQ to a valid AreaShop plot

Removing a Company

/db disband <firm> — Disband a firm you own (asks for confirmation)

/db disband <firm> confirm — Confirm disbanding a firm you own

Transfer Commands

/db transfer begin <firm> <user> — Begin proprietorship transfer (click-to-confirm)

/db transfer cancel <firm> <user>

/db transfer complete <firm> <user>

/db transfer confirm <firm> <user> <code> — Begin proprietorship transfer (click-to-confirm)

/db transfer reject <firm> <user>

/db withdraw <firm> <amount> — Withdraw from a firm's treasury account into your personal account

Managing Employees

/db staff demote <firm> <user> — Demote user to previous role

/db staff list <firm> — List staff within a firm you own or manage

/db staff promote <firm> <user> — Promote user to next role

/db staff role create <firm> <role> <order> — Creates a role with default permissions

/db staff role delete <firm> <role> — Deletes a role and associated permissions

/db staff role list <firm>

/db staff role permission add <firm> <role> <permission> — Add a permission to a role

/db staff role permission list <firm> <role>

/db staff role permission remove <firm> <role> <permission> — Remove a permission from a role

/db staff role rename <firm> <role> <newname> — Rename an existing role

/db fire <firm> <user> — Fire a user from a firm you control

/db account addauthorizer <firm> <accountId> <player> — Manually add an authorizer to a firm's Treasury account

/db account addmember <firm> <accountId> <player> — Manually add a member to a firm's Treasury account

/db account members <firm> <accountId> — List all members of a firm's Treasury account

/db account archive <firm> <accountId> — Archive a Treasury account for a firm

/db account authorizers <firm> <accountId> — List all authorizers of a firm's Treasury account

/db account removeauthorizer <firm> <accountId> <player> — Manually remove an authorizer from a firm's Treasury account

/db account removemember <firm> <accountId> <player> — Manually remove a member from a firm's Treasury account

Custom roles can be created and edited with specific permissions. Permissions include Administrator, Financial, ChestShop, and Default.

/db hire <firm> <user> — Offer employment (5m to accept)

/db offer rescind <firm> <user> — Rescind employment offer

/db offer <firm> <user> — Offer employment (5m to accept)

Commands for employees

/db offer accept <firm> — Accept a pending job offer

/db offer reject <firm> — Reject a pending job offer

/db resign <firm> — Resign from a firm

/db chat — Enter your firm's chat channel

/db chat <firm> — Enter a specific firm's chat channel

/db chat off — Leave firm chat

Balance Tracking

/db account balance <firm> <accountId> — Show the balance of a specific firm account

/db account list <firm> — List all Treasury accounts for a firm

/db account setdefault <firm> <accountId> — Set the default Treasury account for a firm

/db account sync <firm> <accountId> — Manually sync firm staff to a Treasury account based on their roles

/db account transactions <firm> <accountId> — Show transaction history for a specific firm account

/db account transactions <firm> <accountId> <page> — Show transaction history for a specific firm account

/db balance <firm> — Show the balance of a firm's treasury account

/db tax info <firm> — Show tax status and estimated weekly tax for a firm

/db transactions <firm> — Show firm transaction history (page 1)

/db transactions <firm> <page> — Show firm transaction history

Chest Shop Integration

Players can create chest shops under a company’s name.

Add b:<chestshopcode> to the first line of the chest shop sign to log sales accordingly.

If you need to find your businesses chestshop code you can use /firm account list <business>

/db account alias <firm> <accountId> <alias> — Set a short shop alias for a firm account

/db account clearalias <firm> <accountId> — Clear a firm account's shop alias

/db sales <firm> — List a firm's ChestShop sales

/db sales <firm> <page> — List a firm's ChestShop sales (page)

/db sales export <firm> <days> — Get an economy-explorer link to a firm's sales report

/db sales summary <firm> — Aggregate sales report for a firm (default window)

/db sales summary <firm> <days> — Aggregate sales report for a firm over N days

/db sales toggle <firm> — Toggle real-time sale notifications for a firm

Payment Commands

/db account pay business <firm> <accountId> <target> <amount> — Pay money from a specific firm account to another business

/db account pay into <firm> <accountId> <amount> — Pay money from your personal account into a specific firm account

/db account pay player <firm> <accountId> <player> <amount> — Pay money from a specific firm account to a player

/db deposit <firm> <amount> — Deposit from your personal account into a firm's treasury account

/db deposit <firm> <amount> <memo> — Deposit into a firm's treasury with a memo recorded on the transaction

/db pay business <firm> <target> <amount> — Pay money from one business to another

/db pay into <firm> <amount> — Pay money from your personal account into a business

/db pay player <firm> <player> <amount> — Pay money from a business to a player

/db send — List your firms and their balances to drive a /firm send

/db send <source> <target> <amount> — Send money from one of your firms to another firm

/db send <source> <target> <amount> <memo> — Send money between firms with a memo recorded on the transaction

/db account withdraw <firm> <accountId> <amount> — Withdraw from a specific firm account into your personal account

/db account deposit <firm> <accountId> <amount> — Deposit from your personal account into a specific firm account

Other important commands

/db baltop — Top firms by collective account balance

/db baltop <page> — Page through the top firms by collective account balance

/db help — Show command help

/db info <firm> — Show firm info

/db list — List firms for the current user

/db list <user> — List firms for a user

/db list all <page> — List all firms

/db menu — Choose one of your firms to manage

/db menu <firm> — Open a firm's overview, staff, accounts and money actions

Plugin Documentation

If you want to find additional information about the plugin, such as how to use the API or other information not found on this wiki, please visit the official documentation here.