Skip to content

stam2020/SimpleGenerators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues MIT License


Simple Generators

Make generator servers easily!

Report Bug · Request Feature

Make sure to read this carefully before starting your project!

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Permissions
  5. Roadmap
  6. Contributing
  7. License
  8. Contact

About The Project

I always believe that everything should be simple.
So when I discovered that so little generator servers exist, I thought to develop this plugin, and make generator servers accessible to everyone.

Why you should use this plugin:

  • Fast, efficient and powerful
  • Very configurable and flexible

I hope that you will find this plugin useful!

A great tutorial video made by erha8, demonstrating how to use the commands and the config file to make a server

Built With

This plugin is built using

Getting Started

To download the plugin, visit SimpleGenerators

Prerequisites

Requires the following plugins:

If you want support for placeholders:

Usage

To define a new generator, run in game the command

/sg generator add <id> <name> <lore> <block> <drop> <upgrade_price> <tier>

Where <id> is a unique name for the generator, <name> is the name of the generator, <lore> is its lore, <block> is what block it is, <drop> is what is drops, <upgrade_price> is how much it costs to upgrade it, and <tier> is how good it is (The higher the better)

If the name, or the lore have a space in them, it's important to put them in quotation marks.

It's also possible to add a generator directly from the config.yml file. The default one has an example of how to define one.

You can remove a generator by either deleting it in the config.yml file, or by using the command

/sg generator remove <id>

Where <id> is the id of one of the existing generators.

You can edit a generator either from the config.yml file, or by using the command

/sg generator edit <id> <proprety> <value>

Which allows you to change a property of a generator.

You can get one of the generators by using

/sg generator get <id>

Which gives you the generator with the id of /

The generators drop items, which must also be defined. You can add an item using the command

/sg item add <item> <name> <lore> <sell_price>

Where <item> is the type of item, <name> is its name, <lore> is its lore, and <sell_price> is for how much it sells for when using the /sell command

Just like generators, you can edit and remove items by using

/sg item remove <item>
/sg item edit <item> <proprety> <value>

It's also possible to define "wands" that can sell every sellable item in a chest. To define a sellwand, you can create one through the config.yml file, or run the command

/sg sellwand add <id> <name> <lore> <item> <multiplier>

Where the id is a unique name you give the sellwand, <name> is its name, <lore> is its lore, <item> is what type of item the sellwand is, and <mutliplier> is by how much the received from selling will by multiplied (mush be a whole number) Similarly to items and generators, you can also edit and remove sellwand using

/sg sellwand remove <id>
/sg sellwand edit <id> <proprety> <value>

It's possible to give yourself a sellwand by using

/sg sellwand get <id>

To change the frequency of the drops of the generators, change the drop_frequency field in the config, for example:

drop_frequency: 100

Will make generators drop every 100 ticks, meaning 5 seconds.

If you want to require players to be on the server for their generators to work, set the field generate_offline to false. Be careful, setting it to true might cause a-lot of lag!

You can also limit the maximum amount of generators a player can place down, by giving them or their rank the permission node: simplegenerators.max_gen.NUMBER. For example the permission node simplegenerators.max_gen.5 will allow them to place down 5 generators.

To reload the config in-game, run:

/sg reload

Permissions

Command Permission
Add generator simplegenerators.admin.add.gen
Remove generator simplegenerators.admin.remove.gen
Edit generator simplegenerators.admin.edit.gen
Get generator simplegenerators.admin.get.generator
Add item simplegenerators.admin.add.item
Remove item simplegenerators.admin.remove.item
Edit item simplegenerators.admin.edit.item
Add sellwand simplegenerators.admin.add.sellwand
Remove sellwand simplegenerators.admin.remove.sellwand
Edit sellwand simplegenerators.admin.edit.sellwand
Get sellwand simplegenerators.admin.get.sellwand
Reload config simplegenerators.admin.reload

Placeholders

Requires PlaceholderAPI

Placeholder Value
%sg_max_gens% The maximum gens a player has
%sg_gen_amount% The current amount of placed gens

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

All contributions are appreciated and help a-lot!

How to contribute:

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the GNU License. See LICENSE for more information.

Contact

Discord - PlainPlaying#2283

Project Link: https://github.com/stam2020/SimpleGenerators