Git Product home page Git Product logo

maxenchants's Introduction


PocketMine plugin to enable enchants up to level 32k!

GitHubrelease Stars Discord

Information

MaxEnchants is a simple plugin to allow servers to take full advantage of the enchanting of items. You can enchant items and blocks with any level of enchantment, and they will perform just as if that was enchanted with the normal server command! You use the same command to enchant with and the exact same syntax. The only difference here is that the levels can be had up to 32k!


MaxEnchants Details

  • API: 4.0.0+
  • Version: 1.2.0
  • Basic Description: Enchant items up to level 32k!
  • Simple code for editing and debugging

Dependencies

DevTools โ†’ https://github.com/pmmp/PocketMine-DevTools (If you're running the plugin from source)

Credits

maxenchants's People

Contributors

javierleon9966 avatar poggit-bot avatar vecnavium avatar xenophilicy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

maxenchants's Issues

Error

Error: "Typed property Xenophilicy\MaxEnchants\MaxEnchants::$customMaxLevels must not be accessed before initialization" (EXCEPTION) in "plugins/MaxEnchants-master/src/Xenophilicy/MaxEnchants/MaxEnchants" at line 189

when I try to enchant an armor

PocketMine 4.0.1 error

[17:00:08.104] [Server thread/CRITICAL]: InvalidArgumentException: "Cannot use non-existing permission "maxenchants.enchant"" (EXCEPTION) in "pmsrc/src/command/Command" at line 107
--- Stack trace ---
#0 plugins/MaxEnchants.phar/src/Xenophilicy/MaxEnchants/MaxEnchants(106): pocketmine\command\Command->setPermission(string[19] maxenchants.enchant)
#1 pmsrc/src/plugin/PluginBase(137): Xenophilicy\MaxEnchants\MaxEnchants->onEnable()
#2 pmsrc/src/plugin/PluginManager(438): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#3 pmsrc/src/Server(1377): pocketmine\plugin\PluginManager->enablePlugin(object Xenophilicy\MaxEnchants\MaxEnchants#23510)
#4 pmsrc/src/Server(1003): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#23437)
#5 pmsrc/src/PocketMine(303): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[35] C:\Users\creep\Desktop\SprigoCraft, string[43] C:\Users\creep\Desktop\SprigoCraft\plugins)
#6 pmsrc/src/PocketMine(326): pocketmine\server()
#7 pmsrc(11): require(string[79] phar://C:/Users/creep/Desktop/SprigoCraft/PocketMine-MP.phar/src/PocketMine.php)
--- End of exception information ---

[17:00:08.105] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump

[17:00:08.111] [Server thread/EMERGENCY]: Please upload the "C:/Users/creep/Desktop/SprigoCraft/crashdumps/Sun_Dec_12-17.00.08-GMT_2021.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.

[17:00:08.359] [Server thread/EMERGENCY]: The crash dump has been automatically submitted to the Crash Archive. You can view it on https://crash.pmmp.io/view/5613214 or use the ID #5613214.

[17:00:08.361] [Server thread/EMERGENCY]: Forcing server shutdown

Suggestion

Maybe have an option in the config saying if you want it to broadcast True Or False

TypeError: "Illegal offset type"

TypeError: "Illegal offset type" (EXCEPTION) in "plugins/MaxEnchants.phar/src/Xenophilicy/MaxEnchants/MaxEnchants" at line 201

Server crashed

The server crashes when I enter the command to enchant. Please fix it

(EXCEPTION) in "src/pocketmine/item/enchantment/Enchantment" at line 154

2020-04-08 [05:32:39] [Server thread/CRITICAL]: Error: "Call to a member function getSize() on array" (EXCEPTION) in "src/pocketmine/item/enchantment/Enchantment" at line 154
2020-04-08 [05:32:39] [Server thread/DEBUG]: #0 plugins/MaxEnchants.phar/src/Xenophilicy/MaxEnchants/MaxEnchants(113): pocketmine\item\enchantment\Enchantment::getEnchantment(integer 0)
2020-04-08 [05:32:39] [Server thread/DEBUG]: #1 plugins/MaxEnchants.phar/src/Xenophilicy/MaxEnchants/MaxEnchants(51): Xenophilicy\MaxEnchants\MaxEnchants->buildVanillaEnchantArray()
2020-04-08 [05:32:39] [Server thread/DEBUG]: #2 src/pocketmine/plugin/PluginBase(115): Xenophilicy\MaxEnchants\MaxEnchants->onEnable()
2020-04-08 [05:32:39] [Server thread/DEBUG]: #3 src/pocketmine/plugin/PluginManager(541): pocketmine\plugin\PluginBase->setEnabled(boolean 1)
2020-04-08 [05:32:39] [Server thread/DEBUG]: #4 src/pocketmine/Server(1783): pocketmine\plugin\PluginManager->enablePlugin(object Xenophilicy\MaxEnchants\MaxEnchants)
2020-04-08 [05:32:39] [Server thread/DEBUG]: #5 src/pocketmine/Server(1769): pocketmine\Server->enablePlugin(object Xenophilicy\MaxEnchants\MaxEnchants)
2020-04-08 [05:32:39] [Server thread/DEBUG]: #6 src/pocketmine/Server(1582): pocketmine\Server->enablePlugins(integer 1)
2020-04-08 [05:32:39] [Server thread/DEBUG]: #7 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[18] C:\bedrock-server, string[26] C:\bedrock-server\plugins)
2020-04-08 [05:32:39] [Server thread/DEBUG]: #8 src/pocketmine/PocketMine(296): pocketmine\server()
2020-04-08 [05:32:39] [Server thread/DEBUG]: #9 (11): require(string[73] phar://C:/bedrock-server/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Permission error

[98]
[99] public function getPermission() : ?string{
[100] return $this->permission;
[101] }
[102]
[103] public function setPermission(?string $permission) : void{
[104] if($permission !== null){
[105] foreach(explode(";", $permission) as $perm){
[106] if(PermissionManager::getInstance()->getPermission($perm) === null){
[107] throw new \InvalidArgumentException("Cannot use non-existing permission "$perm"");
[108] }
[109] }
[110] }
[111] $this->permission = $permission;
[112] }
[113]
[114] public function testPermission(CommandSender $target, ?string $permission = null) : bool{
[115] if($this->testPermissionSilent($target, $permission)){
[116] return true;
[117] }

Awesome!

i like all of your plugins. can you please make an ShopUI plugin with many items abd configurable from config? thanks.

  • Andrei

Major Issue

Non OP players can use this as a exploite and give themselves enchants please fix it

Suggestion...

Maybe add away to add onto a sign... like enchant sign with money to buy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.