Xenophilicy / OreGen

PocketMine plugin to spawn ores in a cobblestone generator!
https://poggit.pmmp.io/p/OreGen
GNU General Public License v3.0
11 stars 11 forks source link

Dont work #11

Closed Nat392 closed 3 years ago

Nat392 commented 3 years ago

Hello, can you help me ?? Your plugin refuses to work when you config it

ERROR

[16:19:11] [Server thread/INFO]: Enabling OreGen v1.2.5 [16:19:11] [Server thread/CRITICAL]: TypeError: "explode() expects parameter 2 to be string, int given" (EXCEPTION) in "plugins/OreGen.phar/src/Xenophilicy/OreGen/OreGen" at line 117 [16:19:11] [Server thread/CRITICAL]: #0 plugins/OreGen.phar/src/Xenophilicy/OreGen/OreGen(117): explode(string[1] :, integer 153) [16:19:11] [Server thread/CRITICAL]: #1 plugins/OreGen.phar/src/Xenophilicy/OreGen/OreGen(101): Xenophilicy\OreGen\OreGen->buildProbability() [16:19:11] [Server thread/CRITICAL]: #2 src/pocketmine/plugin/PluginBase(116): Xenophilicy\OreGen\OreGen->onEnable() [16:19:11] [Server thread/CRITICAL]: #3 src/pocketmine/plugin/PluginManager(552): pocketmine\plugin\PluginBase->setEnabled(boolean 1) [16:19:11] [Server thread/CRITICAL]: #4 src/pocketmine/Server(1787): pocketmine\plugin\PluginManager->enablePlugin(object Xenophilicy\OreGen\OreGen) [16:19:11] [Server thread/CRITICAL]: #5 src/pocketmine/Server(1773): pocketmine\Server->enablePlugin(object Xenophilicy\OreGen\OreGen) [16:19:11] [Server thread/CRITICAL]: #6 src/pocketmine/Server(1586): pocketmine\Server->enablePlugins(integer 1) [16:19:11] [Server thread/CRITICAL]: #7 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/) [16:19:11] [Server thread/CRITICAL]: #8 src/pocketmine/PocketMine(304): pocketmine\server()

[16:19:11] [Server thread/INFO]: Disabling OreGen v1.2.5

CONFIG

MADE BY:

/ | / | / | / |/ |/ |

$$ | $$ | __ __ __ $$ |____ $$/ $$ |$$/

$$ \/$$/ / \ / \ / \ / \ $$ \ / |$$ |/ | / |/ | / |

$$ $$< /$$$$$$ |$$$$$$$ |/$$$$$$ |/$$$$$$ |$$$$$$$ |$$ |$$ |$$ |/$$$$$$$/ $$ | $$ |

$$$$ \ $$ $$ |$$ | $$ |$$ | $$ |$$ | $$ |$$ | $$ |$$ |$$ |$$ |$$ | $$ | $$ |

$$ /$$ |$$$$$$$$/ $$ | $$ |$$ __$$ |$$ |$$ |$$ | $$ |$$ |$$ |$$ |$$ ___ $$ __$$ |

$$ | $$ |$$ |$$ | $$ |$$ $$/ $$ $$/ $$ | $$ |$$ |$$ |$$ |$$ |$$ $$ |

$$/ $$/ $$$$$$$/ $$/ $$/ $$$$$$/ $$$$$$$/ $$/ $$/ $$/ $$/ $$/ $$$$$$$/ $$$$$$$ |

$$ | / __$$ |

$$ | $$ $$/

$$/ $$$$$$/

VERSION: "1.2.0" # Internal use only

These are the settings that determine which worlds to enable OreGen in

Worlds:

This is where you can put the list of worlds which worlds to include/exclude OreGen in

List:

This is where you set the probability (out of 100) that the player will get the default cobblestone

The cobble probability and all the blocks you list must have a sum of 100 for the plugin to function

Cobble-Probability: 78

Here you control which blocks you want players to have a chance of getting

Set any of them to false to disable their chance of being an outcome

Use this format below for the block listing

Blocks:

"Block-ID:Block-Damage": Block-Probability

"Block-ID:Block-Damage": Block-Probability

"Block-ID:Block-Damage": Block-Probability

Blocks: "16:0": 3.5 # Coal Ore "15:0": 5 # Iron Ore "14:0": 1 # Gold Ore "21:0": 1.5 # Lapis Lazuli Ore "73:0": 3.5 # Redstone Ore "129:0": 1 # Emerald "56:0": 3 # Diamond Ore "153": 3.5

Xenophilicy commented 3 years ago

can you send me your config file? I can't read any of that

Nat392 commented 3 years ago

configoregen.txt

Xenophilicy commented 3 years ago

your last block doesn't have a damage value. add a zero after the ID like the other blocks.

"153:0": 3.5