Laborus - a job plugin

This is a discussion topic for the Ore project, Laborus. View the full project on Ore for downloads and more information.


Laborus

It’s a fully configurable plugin to add jobs to Minecraft. These jobs allow the player to gain xp and reach higher levels which can allow the using of better items or the destroying of other items. Also the jobs can award the player with boni like special drops or ep. Each job can also have a special ability so eg. a hunter can run faster to catch more animals.
The plugin also includes a anti replacement farming system which will stop the rewarding of the breaking / placing of recently placed / breaked blocks at the same spot. All messages of the plugin can be completely changed in the config file and also virtually all aspects of the jobs.

Features

  • Jobs in Minecraft
  • reward the placing and destroying of Blocks, the using of items and the killing and taming of mobs
  • Job Abilities that eg. allow you to destroy blocks faster for 3 minutes every two hours
  • anti replace farming system that blocks the rewarding of the placing and destroying of blocks on the same spot so the economy isn’t as easily exploidable
  • only allow doing the actions (eg. destroying of a block) after reaching a specific level
  • Job Boni like special or multiple drops or repairing of items
  • completely configurable and translatable (currently only translated to english)
  • support of BlockStates and BlockTypes

A full lists of all possible actions, boni and abilities you can find in the ReadMe file.


How to use

To use this plugin you need a Sponge Server that is supporting the SpongeApi Version 4.0.
If you have a Server like this you only need to place the pluginfile into the mods folder.
When you have done this and you have started and stopped the server the default configuration file will automatically be added, but you still need to add the jobs you want to have to this file due to the missing of jobs in the default configuration.
Some ready configuration files you can find in the jobs folder of the repo. These files you can just copy and paste into the configuration folder of the plugin and link them in the configuration file (de.lergin.sponge.laborus.conf) like this:

jobs: {
  miner: "miner.conf"
  woodcutter: "woodcutter.conf"
}

If you want to edit the jobs or add your own jobs i recommend to look into the documentation: GitHub - Lergin/Laborus: a customisable sponge job plugin


Commands

/jobs ability

Starts the ability of the job.

Permission: laborus.commands.ability

/jobs addXP [player]

This command adds the given amount of xp to the xp of the job.

Permission: laborus.commands.addXp

Permission for player arg: laborus.commands.addXp.outher_player

/jobs change <join|leave>

Joins or leaves the job. A job that is joined can give more xp for actions and special boni. The amount of jobs that can be joined can be limited.

Permission: none / can be set in the config

/jobs info [job]

Shows some infos about all jobs or detailed infos about a specific job.

Permission: none / can be set in the config

/jobs toggle

Activates or deactivates the job system for the player that executes this command.

Permission: laborus.commands.toggle


Known Bugs…

  • nothing :slight_smile:

##Changelog

1.0.2

  • fixed two bugs with the info and change command
  • save config also on initialization

###1.0.1

  • added Economy bonus
  • fixed not saving JobData if not gaining xp first

Source (Github): GitHub - Lergin/Laborus: a customisable sponge job plugin
Plugin Version: 1.0.1
SpongeApi Version: 4.0
Download: https://github.com/Lergin/Laborus/releases/download/v1.0.2/Laborus-1.0.2.jar
Download with default jobs: https://github.com/Lergin/Laborus/releases/download/v1.0.2/Laborus_with_default_jobs-1.0.2.jar
Example Job Configurations: https://github.com/Lergin/Laborus/tree/master/jobs
License: MIT

I had been waiting for something similar - for what version of SpongeForge has this been tested?

I just tested it with the current version (Forge: 11.15.1.1855 and SpongeForge 4.1.0-BETA-1307) and everything seems to work. If you find any problems please leave a comment so i can fix them :slight_smile:

1 Like

I’ve moved this thread to Plugin Discussion. :slight_smile:

1 Like

Okay so, loaded it up, the version with default jobs.
First thing, /jobs change is not a valid-subcommand. I have tried looking into the config folder, and all I have is a .mv file which honestly, does not make sense to me (I have little tech-wizardry capability). I have not found anything relating setting this command to ‘none’ so I figure it is enabled?

I have tried /jobs toggle, which deactivated, and when used again activated the jobs system… so my guess is that the other command should work? Yet it is only giving me /jobs toggle;ability;info.

I just looked into it and I seem to have forgotten to add the change job command to the config file and it was named, for whatever reason, changeJob if it wasn’t changed in the config and not loaded correctly… The .mv file is the database for the anti replace farming system and the config file is added to the folder as soon as the server is stopping.

So i have just created a new version with that these bugs should be fixed and i will upload them within the next minutes to github :slight_smile: Oh and the plugin now also saves the config file on the initialization of the plugin.

Edit: https://github.com/Lergin/Laborus/releases/tag/v1.0.2

Could there be an option for players to create jobs themselves? So they get players to work for them in exchange for money - hooking into economy plugins.

I don’t think that this feature is something that match the purpose of the plugin, so i won’t add it to the plugin :slight_smile: