13
Minecraft / Mods

Companies [Spigot 1.12]

Collectable
  • 3,641
    Views, 12 today
  • 125
    Downloads, 0 today

Get Embed Codes

Forum:
HTML:
Link:
avatar
hmmcrunchy
Level 59 : Grandmaster Engineer
70
undefined


NOTE REQUIRES VAULT PLUGIN

What is it?
Companies is a trading plugin, allowing players to create their own company, employ other players in the company, settings wages for them, employees can then either do jobs for other companies who can pay the working company, or they can produce items to stock company chest shops to earn the company money.

How does it work
A player creates a company, they can then deposit money into the company to get started or withdraw it from the company bank. The player as owner can then set their own wages to be paid automatically, and if they wish they can employ another player. The player can work and see their own rank and wages, they can also stock the company shops up, but the initial company creator as owner can sack the employee, change wages, change rank (making them owner as well if they wish) and disband the company. Companies can also pay out all profits as dividends shared between the employees.

Features
  • Company creation and management
  • Company chest shops
  • Employee hiring
  • Payment from companies to players and other companies
  • Wages & dividends paid to employees
ChestShops
One way of the company making money is by selling goods, to create a chest shop first place a chest down, then above the chest place a wall sign with the following on it:

1st line - [company] 2nd line - The company name ( putting not your company name will break the sign) 3rd line - The amount all products in the chest will be sold at (must be integer) 4th line - Anything you like

shopcreate

The top line should turn gold and provide you with a success message. Company employees can open the chests and take and deposit goods as a normal chest.

shop

If a non employee opens the chest they will see the products but clicking on them will purchase the item, sending the money to the company bank.

Employees


The owner of a company can hire employees to help with their company. The owner has the option to hire, sack, change wages, or change rank of player to owner, accountant or manager.
  • Owner: can do anything to company hire fire disband or access bank
  • Manager: Can hire or fire employees and create company shop signs
  • Accountant: Can access the bank details and pay companies and players from the company bank
The employee can choose to leave a company at any time

Wages
Each employee has a wage from their company, this is set per player by the owner and paid automatically each Minecraft week ( 7 MC days - configurable in config), an owner can also choose to set his wagetype to percentage, where at payday the amount in the company bank (after wages) is then divided up between all the players (encouraging more work :) )

If a company cannot pay its employees then the employee and owner are notified.

Commands



In most cases /company can be shortened to /co

Players

All
  • /company help - display commands
  • /company info - display your company and employee info
  • /company accept - accept a job offer
  • /company decline - decline a job offer
  • /company list - List all companies
  • /company tp <company> - check teleport cost for that company
  • /company tp <company> confirm - teleport to company HQ
Company owners
  • /company start <name> - start a new company
  • /company disband - Disband your company and sack all employees
  • /company leave - Resign from your company
  • /company set - Set company settings
  • /company set wagetype <fixed/percentage>- set company wages to just fixed or shared between employees
  • /company set trading <true/false>- Set company trading or not currently trading
  • /company employee - Change employee settings, hire and sack, employees
  • /company employee hire <player> <wage> - Offer a job to a player with a set wage
  • /company employee wage <amount> - Set a players fixed wage
  • /company employee rank <employee/owner> - set an employee's rank within the company
  • /company employee list - List all your company's employees
  • /company employee sack <player> <pay> - Sack an employee with redundancy pay (0 = nothing)
  • /company pay <player/company> <name> <amount> - Pay another company or player
  • /company bank - show bank and wage info
  • /company bank withdraw <amount> - withdraw money from company bank
  • /company bank deposit <amount> - deposit money into company bank

Admins

  • /company reload - Reload config
  • /company version - display version
  • /company debug - toggle console debugger
  • /company edit - edit another companies settings
  • /company edit <company> wagetype <fixed/percentage>- set another companys wages to just fixed or shared between employees
  • /company edit <company> trading <true/false>- Set another company trading or not currently trading


Permissions
  • company.admin - use all commands including admin commands
  • company.reload - allow reloading plugin
  • company.debug - allow toggle debug mode
  • company.use - use all normal player commands listed below
  • company.start - allow starting companies
  • company.disband - allow disbanding companies
  • company.set - allow setting company details
  • company.bank- allow using company bank bank
  • company.pay - allow paying from company bank
  • company.pay - allow paying from company
  • company.leave - allowed to leave company
  • company.employee - allow managing company employees
  • company.shop.create - allow creating company shop sign
*NOTE some of the above commands even though players may have perm they still need to be company owner.*
Progress: 100% Complete
Game Version:Minecraft 1.8.1

fix wages bug : 07/14/2017 6:48:53 am7/14/17

ChangeLog:
  • FIXED - bug saving and loading employee wages to file

API and offline sacking : 11/30/2016 4:31:21 am11/30/16

Changelog

  • Added - Ability to sack offline players
  • Added - /com sacked command to view pending sacked players
  • Added - API payCompany(String Company, Integer amount) - pay a company from another plugin
  • Added - API getCompany(Player player) - return the player's company

Code Rewrite : 11/21/2016 11:26:23 am11/21/16

Changelog


NOTE Please backup data folder just in case as you update

Big rewrite of code from the last version
  • Added - /company info <company> - see other company details
  • Added - company descriptions now more than one word and visible on info screen
  • Added - Ability to set not trading to stop dividends to employees
  • Added - Better employee calculations to prevent errors
  • Added - If offline when company disbands you will be informed and made unemployed on next login
  • Added - Amounts to payment messages
  • Added - JSON job offer Accept Decline message
  • Fixed - disband errors
  • Fixed - payday errors
  • Fixed - dividend distribution
  • Fixed - Players becoming unattached from their companies
  • Removed - Offline payments (never really worked)

Shift click buy : 02/05/2016 4:10:23 am2/05/16

Changelog

  • Added - Shift click in chest to purchase whole stacks
  • Fixed - Payday null pointer error if no one online

Bug Fixes : 02/02/2016 5:26:59 pm2/02/16

Changelog

  • Added - Only one player can access shop at one time
  • Fixed - Purchase multiple stacks in one click shop glitch
  • Fixed - Stop owner accessing chest money dupe

Teleporting fat cat : 02/01/2016 2:30:06 pm2/01/16

Changelog

  • Added - Short command /com
  • Added - Company HQ teleport set and teleport to

regen language file or add the following

youHaveBeenTeleportedForMessage: You have been transported to the company hq at the cost of

travelToHqCostIsMessage: Travelling to this company HQ will cost

New ranks and fixes : 01/28/2016 3:29:45 am1/28/16

Changelog

  • Added - New employee recording system
  • Added - Manager and accountant ranks
  • Fixed - Sign break error
  • Fixed - Company shop inventory clicks charging for empty slots or own items

Bug fix and job offers : 01/18/2016 3:50:58 am1/18/16

Changelog

  • Added - Job offers
  • Added - Employee /co accept /co decline commands
  • Fixed - Negative payment money dupe

regen language file

removing shops : 01/14/2016 4:18:53 am1/14/16

Changelog

  • Added - breaking shop signs only for company employees
  • Added - protect chests and signs in unprotected areas

regen language file or add



companyShopRemovedMessage: Your company shop has been removed.

Bug fix : 01/14/2016 3:38:31 am1/14/16

Changelog

  • Fixed - divide by zero dividend payment error

Comments : 20

Join us to post comments.

Show Comments

1 - 20 of 20

  • usename343
  • Level 9
  • Apprentice Engineer
  • November 22, 2016, 11:02 am
Cool mod.
  • hmmcrunchy
  • Level 59
  • Grandmaster Engineer
  • November 22, 2016, 2:01 pm
Thanks :)
  • NakuMog
  • Level 8
  • Apprentice Dragon
  • March 14, 2016, 6:05 pm
Guess who has another bug!
So this time. It says in the logs that you fixed players being able to access a shop 1 at a time.
BUT heres where it get fun.
Once a player leaves the shop, he can sell the items back and the dupe the item for another player to buy.
So basically while one is selling one is buying
  • hmmcrunchy
  • Level 59
  • Grandmaster Engineer
  • March 14, 2016, 10:00 pm
Hey :) thanks for bug reports

ok not sure I quite understand so a player goes in and buys an item, then leaves the chest,

does he he then go back in and return the item to the chest? Or another way?

If if he does return them he still gets charged doesn't he for buying in the first place
  • NakuMog
  • Level 8
  • Apprentice Dragon
  • March 14, 2016, 11:25 pm
Basically what iv gained from the 2 players that were doing it.
One of them would open the chest and buy a full stack.
Then immediately would sell it back and his friend would buy what he just sold.
giving both the person who sold it their stack back, and the person who bought it,
  • hmmcrunchy
  • Level 59
  • Grandmaster Engineer
  • March 15, 2016, 12:54 am
weird, what should be happening is..
  • owner puts items in chest
  • buyer buys items from chest giving owners company money taking it from buyer

  • buyer then sells back to owner? for money.

but this should leave buyer out of pocket unless he sells to owner at same price, owner can then get money from company via paycheque but money should always go somewhere so either its being moved about or one of the players is losing money
  • NakuMog
  • Level 8
  • Apprentice Dragon
  • March 15, 2016, 10:27 am
Honestly i dont know until i actually try it for myself. But this is what my players told me.
+He buys the stack of the item
+Closes shop
+Sells it back
+Employee restocks shop as he sells back
+Duped
  • hmmcrunchy
  • Level 59
  • Grandmaster Engineer
  • March 15, 2016, 10:07 pm
Weird it may be good to get more info as far as I can see it's still the same item and it's been passed about, each time a person paying for it just like real life

unless there's a point where it duplicates or gives money for nothing
  • NakuMog
  • Level 8
  • Apprentice Dragon
  • February 5, 2016, 5:15 am
iv already tested this and its Great omg! iv always wanted a plug like this!
  • hmmcrunchy
  • Level 59
  • Grandmaster Engineer
  • February 5, 2016, 8:33 am
:D glad you like
  • NakuMog
  • Level 8
  • Apprentice Dragon
  • February 22, 2016, 6:17 pm
Is their a place i can report a bug?
  • hmmcrunchy
  • Level 59
  • Grandmaster Engineer
  • February 23, 2016, 3:12 am
here will do - fire away
  • NakuMog
  • Level 8
  • Apprentice Dragon
  • February 23, 2016, 12:49 pm
Alright so. i make the business and when a player tries to buy anything out of it. It glitches out and crashes the player. And then when they log back in they cant even use the shop. and when it works (for staff) they can only buy 1 of the item at a time
  • hmmcrunchy
  • Level 59
  • Grandmaster Engineer
  • February 24, 2016, 8:44 am
Weird are you using spigot.jar not the Bukkit.jar
  • NakuMog
  • Level 8
  • Apprentice Dragon
  • February 24, 2016, 7:44 pm
Well bukkit is kinda dead, so yea Spigot
  • Rexide
  • Level 36
  • Artisan Pixel Painter
  • January 7, 2016, 1:59 pm
nice idea
  • hmmcrunchy
  • Level 59
  • Grandmaster Engineer
  • January 12, 2016, 2:11 am
thanks :) been looking for one for ages so thoiugh id make one
This is installed through Forge, Right? Also I am thinking about starting a whitelist server in a homeschoolers club. Would I be able to use it on that server?
  • hmmcrunchy
  • Level 59
  • Grandmaster Engineer
  • January 7, 2016, 10:18 am
Hiya 

nope this is for Bukkit and spigot 

just drop it in your server plugins folder and restart server 

please do so sounds like a perfect place to start company trading :)

1 - 20 of 20

Show Comments

Search

Browse

Site

© planetminecraft.com

Welcome