FAQ
On this page(49)
How do I update SnGens?
Download the newer sngens-v* release, replace the jar, and restart. config.yml,
wands.yml, storages.yml, the menu layouts and the language files pick up any new keys
automatically, keeping your values and comments. Two sections are the exception: economies and
collector.upgrade.levels are left alone once they exist in your file.
generators.yml, events.yml, armors.yml and offhands.yml are never rewritten, since they
hold content you own. If a release note mentions a new key inside one of those, add it by hand.
Does it support Folia?
Yes. The plugin declares Folia support and schedules its per region work through a Folia aware scheduler. The same jar runs on Paper and on Folia with no configuration change.
The plugin refuses to enable. What do I check first?
In order:
- Vault and PlaceholderAPI must be installed, plus SnHolograms, DecentHolograms or FancyHolograms. A missing Vault or PlaceholderAPI stops the plugin from loading at all.
plugins/SnGens/license.ymlmust contain your real license key, not the placeholder.- The server must reach the license backend at startup.
The console line tells you which of the three failed.
Can I use SnHolograms or FancyHolograms instead of DecentHolograms?
Yes. SnGens works with any of the three, and you only need one of them installed. With more
than one installed, set holograms.provider in config.yml to snholograms, decentholograms
or fancyholograms.
The default auto prefers SnHolograms, then DecentHolograms. The choice is read at startup, so restart the server
after changing it. Your hologram heights and lines carry over unchanged.
Why does my stack say some generators are broken?
Corruption breaks generators one by one, also inside a stack. The broken ones stop producing
and the rest keep working. Repair them with shift + right-click, the repair button in the stack
menu or /gens repair. You pay the tier's corrupted.cost for each broken generator only.
Until then you can still deposit into the stack, but you cannot upgrade it or pick up the
whole block.
What does a free upgrade wand cost on a stack?
It depends on upgradewand.free.stack-mode in wands.yml. With per-stack, the default, one
use upgrades the whole stack. With per-unit every generator costs one use, and a wand with
fewer uses than the stack moves that many generators out of it, already upgraded, into your
inventory.
Do generators produce while the owner is offline?
Not by default. online-only: true in config.yml restricts ticking to generators whose owner
is connected. Set it to false for an idle economy where farms keep producing overnight.
A single generator can override the global setting with its own online-only key in
generators.yml, which is how you make one premium tier keep running while the rest do not.
Do generators produce in unloaded chunks?
No. The tick loop walks loaded chunks only, so a farm in an unloaded chunk is idle until something loads it. That is deliberate: it is what keeps a server with hundreds of thousands of generators playable.
The leaderboard is not affected. It is computed from the database, so generators in unloaded
chunks still count toward /gens top.
Where do I set the price of a generator in the shop?
Nowhere directly. The shop derives every price from the upgrade chain: the first generator
costs base-cost from gui/shop_gui.yml, and each following tier costs the previous tier's
price plus the previous tier's upgrade.upgrade-cost.
So to make a tier more expensive in the shop, raise the upgrade-cost of the tier before it.
The full worked table is in Configuration.
How do I add a new generator?
Add a top-level key to generators.yml and run /gens reload. To slot it into the progression,
point the previous last tier's upgrade.next-generator at your new id. There is a full worked
example in Configuration.
I deleted a generator from generators.yml, but players still have it placed. What happens?
Nothing is destroyed. The plugin first tries to re-bind those placed blocks to a generator whose item material matches. If none matches, the blocks stay inert, and any pickup that touches them is skipped with a console warning naming the missing id. The database rows are left alone.
Put the id back and run /gens reload to bring them fully back to life.
Blocks still stored under the missing id show up in /gens inspect <player> as an "Unknown
tier" item with that id, so you can see who still owns them.
How do I see which generators a player or island has?
Run /gens inspect <player>. It opens a read-only menu with one item per tier and the amount,
and a toggle that widens the view to the player's whole island. Nothing in the menu upgrades or
removes anything. It reads the database, so it works for offline players too. The node is
sngens.admin.inspect, which sngens.admin already includes. See Commands.
How do I give a rank more generator slots or a better sell multiplier?
Two permission families do this, and both are additive across every node the player holds:
sngens.max.25 # +25 generator slots
sngens.multi.0_5 # +0.5 sell multiplierThe underscore is a decimal point, since a dot separates permission nodes. See Permissions.
For a one off grant to a single player, use /gens addmax <player> <amount> and
/gens addmultiplier <player> <amount>. Those are stored per player and count while offline
too, unlike permission nodes.
I gave a player an armor set with a sell bonus and nothing changed. Why?
Equipment sell bonuses are multiplicative, not additive. They add a percentage of the multiplier the player already has, so a player whose multiplier comes from nothing gains nothing.
An example. A player holds sngens.multi.8 and swings a 2x sellwand, so their additive base is
10. A set granting sell-multiplier: 10 adds ten percent of that base, for a total of 11. The
same set on a player with no other multiplier adds ten percent of nothing.
Give players a small permission multiplier, and the gear starts to matter.
My server lags when a lot of generators tick at once.
Work through these in order:
- Keep
item-stacking.enabled: true. It is what turns thousands of individual drops into a handful of stacked item entities per chunk. - Raise
generator-tick-interval-seconds. Twenty seconds is the default; thirty halves the work and players barely notice if you raise drop values to match. - Hand out collectors. A collector captures every drop in its chunk before the item entity is ever created, which is the single largest saving available. An upgraded collector covers a wider chunk square with one block.
- Set
item-stacking.unbounded-stack-size: trueon very large farms, so one entity can carry more than 64 items. - Run
/gens debugspawn 20on the affected island and read the JSON dump inplugins/SnGens/debug-dumps/. It measures instead of guessing.
/gens pause stops all generation instantly if you need breathing room while you look.
What is the difference between a collector and an infinite hopper?
A collector owns a chunk, or a wider chunk square once upgraded. It takes every generator drop in that area before the drop becomes an item entity. It stores unlimited types, has a sell all button, sells its contents when broken, and keeps a sale log.
An infinite hopper owns a spot. It scans a small box above itself and absorbs whatever lands there, including drops that arrived on a water stream. It locks in a fixed number of item types, sells only when a sellwand is swung at it, and has no sale log.
The collector is the tool for absorbing a whole farm. The hopper is the tool for specialising on a few valuable drops, and it keeps the visible sucked up animation players like.
How do collector levels work, and what happens when areas overlap?
A collector starts at level 1 and collects its own chunk. Each level adds a ring of chunks, so
level 2 covers 3x3 and level 3 covers 5x5. Players buy the next level from the Upgrade button in
the collector menu. You set the max level and each price under collector.upgrade in
storages.yml.
When two areas overlap, each chunk still belongs to one collector only. The collector standing in
that chunk wins first, then the nearest one, then the oldest. With SuperiorSkyblock2 and
island-bound: true, a collector never reaches past its own island.
The level stays on the item. A break, a pickup, an island refund and /gens recover all keep it.
Whoever clicks the button pays, so an admin can upgrade another player's collector with their
own money. See Configuration.
How do I charge a custom currency such as PlayerPoints or tokens?
Add a PLACEHOLDER entry under economies in config.yml. It needs a balance placeholder and a
console command that takes the amount. Add a give-command too, so a failed purchase can return
it.
economies:
points:
type: PLACEHOLDER
name: "&dPoints"
display: "&d{amount} Points"
decimals: 0
balance-placeholder: "%playerpoints_points%"
take-command: "points take {player} {amount}"
give-command: "points give {player} {amount}"Then name its id in a price, on its own or next to Vault, and run /gens reload. Here it is in
a collector level price in storages.yml:
collector:
upgrade:
levels:
2:
cost:
vault: 250000
points: 50Every economy in a cost is charged, or none of them is. See Configuration.
Why was a purchase refused with a placeholder economy?
SnGens reads the balance before and after the take command. If it did not drop by the amount, the purchase is refused. Other economies already charged are rolled back, if they can be refunded. A partial drop is not given back automatically, so check it by hand. A console warning names the player, the command and both balances. Check these in order:
- The
take-commandworks when you type it in the console yourself. - The
balance-placeholderis live. A cached placeholder still shows the old balance right after the charge, so every purchase fails. decimalsmatches the currency. A plugin that only stores whole points needsdecimals: 0.- The placeholder expansion is installed. Without it the player is told the currency is not available right now.
How do I give or take a percentage of what a collector or hopper stores?
Look at the block and run /gens collector adjust <percent> or /gens hopper adjust <percent>.
10 adds ten percent of every stored type, and -10 removes ten percent. Decimals such as
12.5 and a trailing % work too, down to -100.
/gens collector adjust 10
/gens hopper adjust -12.5%Amounts round to the nearest whole item, and a type that rounds to 0 is removed. The hologram,
open menus and the database update at once. The command runs in game only, and needs
sngens.collector.admin or sngens.hopper.admin.
My hopper stopped absorbing a new item type.
That is the lock-in working as designed. The first hopper.max-types types to arrive claim the
slots permanently, and anything else falls through. Raise max-types in storages.yml for new
hoppers, and remember to add matching entries to type-slots in gui/hopper_main.yml so the
extra types are actually drawn.
With void-excess: true the rejected items are deleted instead of dropping on the floor.
A player was kicked from their island and lost all their generators.
They are not lost. With island-pickup: true the generators are moved to that player's vault,
and the player claims them with /gens recover. They are told on their next join.
The same happens when a player leaves, is banned, or the island is disbanded. Set
island-pickup: false if you want removal to be permanent instead.
What happens to a player's collectors and hoppers when they leave an island?
The same thing that happens to their generators. The blocks are removed from the island and
stored in the player's vault, claimed with /gens recover. They used to stay behind on the
island and keep counting against the player's placement cap, so a player who disbanded an
island could not place a new hopper anywhere.
The items those blocks were holding are voided with them, because the island is either about
to be reset or now belongs to someone else. Set island-removal.drop-contents: true in
storages.yml if you would rather they fall on the ground exactly as if a player had broken
the block.
/gens recover says some generators are still stored.
The command only gives back what fits in the inventory, and reports the remainder. The player
frees space and runs it again. /gens recover all claims everything and drops the overflow on
the ground, so it asks for confirmation first: run it twice.
Can I stop players placing generators in certain worlds?
Yes. blacklisted-worlds in config.yml denies placement, and existing generators in those
worlds stop ticking.
To restrict placement to islands, set island-place-only: true. That one needs
SuperiorSkyblock2, and does nothing without it.
Another plugin owns /sell on my server.
SnGens registers /sell over any existing mapping, on purpose, so its own sell pipeline always
answers. If you need the other plugin's /sell, rename one of the two commands. There is no
setting that disables the SnGens one.
Why is /gens top empty or out of date?
The board is a snapshot recomputed every gens-top.refresh-interval-seconds, five minutes out of
the box. Run /gens forcetop to recompute it immediately.
If it is empty on a server with generators, check gens-top.mode. ISLAND needs
SuperiorSkyblock2, and it skips players who have no island unless include-islandless: true. On
a server without a skyblock plugin, use mode: PLAYER.
My top players are so far ahead that nobody competes any more.
Set a cutoff. /gens toplimit diamond_generator makes every tier after diamond stop counting,
so the maxed players stop growing their score and the rest can catch up. /gens toplimit none
clears it. The value is saved into config.yml for you.
Players see ??? instead of my scoreboard numbers.
That is /gens hidestats, and it is on by default for the placeholders that support it. The
_hide variants return the hide-stats-placeholder text while a player has hiding enabled.
Use %sngens_currentplaced% rather than %sngens_currentplaced_hide% where the value should
always be visible, for instance in the player's own menu.
How do I hand out an unlimited wand?
Pass -1 as the number of uses.
/gens sellwand Notch 2 -1
/gens upgradewand Notch free -1The item then shows the unlimited-placeholder text from wands.yml instead of a number.
Can my wands use a model from a resource pack?
Yes. Set item_model on the wand item in wands.yml to the model your pack ships.
sellwand:
item:
material: BLAZE_ROD
item_model: "mypack:sell_wand"All five wand items accept it, and so does every other item in the plugin. The value is a
namespaced key, and a bare name resolves to the minecraft namespace. It renders on Minecraft
1.21.4 and newer. Unlike custom-model-data, the pack needs no numeric predicate. See
configuration.
Can SnGens play sounds from my resource pack?
Yes, from 2.74.0. Every sound has a key under sounds in config.yml. Write the pack sound
with its namespace, plus an optional volume and pitch.
sounds:
sell: "mypack:coin 1.0 1.0"A namespaced sound the server does not know is sent to the client by name, so the pack plays
it. A bare name the server does not know is treated as a typo and logs a warning. Use "none"
to mute a sound. See configuration.
My sellwand has no glint, even though wands.yml lists an enchantment.
Update to 2.58.1 or newer. Before that build nothing read the enchantments key, so the stock
DURABILITY;1 entry did nothing. Wands already handed out keep the look they were created
with, so give the player a fresh one.
A player already has a sellwand. What happens if I give them another?
Charges are folded into the wand they already hold, and both sides are told how many were added and what the new total is. Sellwands merge when the multiplier matches, build wands when the distance matches, and upgrade wands when the type and radius match. A wand with a different multiplier stays a separate item.
What is /gens handicap for?
It scales one player's payout, silently. The percentage is applied to the final money amount
after every other multiplier, accepts anything from -100 to 1000, and never shows up in what
the player sees: the multiplier in their sell message is unchanged.
Use it to slow down a single runaway account without announcing a nerf, or to compensate one
player after an incident. /gens handicap list shows everyone who currently has one.
Can I turn corruption off?
Yes, corruption.enabled: false in config.yml. Generators already broken can still be
repaired.
To keep the system but protect specific generators, add their ids to
corruption.blacklisted-generators, or set corrupted.enabled: false on the generator itself in
generators.yml.
How do I show a boss bar during an event?
Add a bossbar section to the event in events.yml, with enabled: true, a text, a color
and a style. Then run /gens reload.
events.yml is never rewritten on update, so an older file has no boss bars until you add them.
The fields and a full example are in the configuration page, under events.yml.
Which changes need a restart, and which need only a reload?
/gens reload covers configuration, generators, wands, events, storages, gear, menus and
messages. Three things need a restart: the database connection block, since the pool is built at
startup, the holograms.provider choice, and anything already handed out as an item, since a
wand or generator in an inventory carries its own data. CoreProtect is also detected at startup,
so installing it needs a restart. Its coreprotect toggles reload normally.
Can I see who upgraded, repaired or removed a generator?
Yes, with CoreProtect installed. SnGens logs the block changes it makes on its own under the
player who caused them. Use /co inspect on the block, or /co lookup u:<player>.
- An upgrade shows the old tier removed and the new tier placed.
- A repair does not change the block, so it shows as a click.
- Console and island removals log under
#sngens, set bycoreprotect.system-user.
For a readable line per action, keep coreprotect.action-notes on. Find the lines with
/co lookup u:<player> a:command. CoreProtect must have player-commands enabled for that.
Do not run /co rollback over generator areas. A rollback restores blocks, not SnGens data such
as generator records, tiers, vaults or storage contents. Use the log to find who did it, then fix
it with /gens commands.
I added a key to config.yml and it vanished, or my file is missing new keys.
Keys are only ever added, never removed, so a vanishing key means a YAML error somewhere above it. Check the console on boot.
If your file is missing keys a new version added, check update-configs. When it is false the
plugin only logs how many sections are missing instead of inserting them.
I moved the buttons of a menu and a second row appeared after a reload.
Before 2.73.1 the merge re-added the shipped button slots of the stack menu and the shop
quantity menu. Update to 2.73.1 or later, then delete the extra entries from amount-buttons or
quantities once. From then on those two sections are yours and the merge leaves them alone.
My translated language file is missing keys after an update.
It is not, or at least not for long. Only the English file ships inside the jar, so the plugin merges any missing key into your translated file from the English one and logs how many it added. Translate the new entries when convenient. The plugin never leaves a message key unresolved: anything missing falls back to English.
Can two servers share one database?
No. SnGens caches generators and players in memory and writes them back periodically, so two servers pointing at the same database would overwrite each other's data. Give each server its own database.
Can I move from SQLite to MySQL and keep everything?
Not through the plugin. Switching mysql.enabled to true starts against an empty schema,
which the plugin creates on first connect. Moving existing data means copying the eight
sngens_* tables across yourself, with the server stopped.
Does the plugin expose a developer API?
Yes, twenty four events, a query service and a sell multiplier extension point, all in the
plugin jar. Every wand swing fires a cancellable event, and the service reads and creates
wand items. It can also upgrade generators, and move stored slots or sell multiplier from one
player to another. It can also switch a server wide generator bonus on and off with a plain
call. After every committed sale, a notification event reports the items sold from each
generator. See Developer API. Server owners can switch every API event off with
api-events.enabled: false.
How does generator stacking work?
Place a generator next to one of your own of the same tier, in the same chunk, and it joins
that stack. Sneak while placing to keep it separate. Right-click a generator to open the stack
menu, where you deposit, withdraw, buy or upgrade the whole stack. The cap is
stacking.max-amount in config.yml, 100 by default.
Does a stack of 100 use one slot?
No. Every generator in a stack uses one slot and drops like a separate generator. Stacking saves space and makes big farms tidy, it does not raise the slot limit.
How do I pick up a stack?
Left-click takes one generator out of the stack. Shift and left-click takes the whole stack.
Change both clicks with interaction.gens-pickup and interaction.gens-pickup-all.
Why do some generators glow?
A stack at stacking.max-amount glows, and full stacks next to each other share one outline.
Each player can switch the glow off with the button in the stack menu. Turn it off for
everyone with stacking.glow.enabled: false.