Giter VIP home page Giter VIP logo

shield's Introduction

Shield

A PocketMine-MP plugin which adds functionable shields

This plugin adds vanilla shields and works perfectly the same as vanilla Minecraft.

Hold the shield, in either hand, crouch to activate and uncrouch to deactivate.

The attacker will get knock back when trying to hit a player that is blocking.

The shield gets a short cooldown when swinging the arm.

shield's People

Contributors

javierleon9966 avatar joshuaphyt avatar poggit-bot avatar superomarking avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

shield's Issues

Dont load

28.04 10:01:02 [Server] Server thread/CRITICAL Could not load plugin 'Shield': Unknown dependency: OffHand

I used dev 34 of offhand

Crash on loading (PM 5.0.0)

PocketMine-MP Crash Dump Sat Mar 11 12:57:32 UTC 2023

PocketMine-MP version: 5.0.0-BETA1 [Protocol 567]
Git commit: 9e329d55a8d25b5857cfcb882d5ea383b4ec3e6f
PHP version: 8.0.28
OS: Linux, linux

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: Shield

Error: Declaration of JavierLeon9966\Shield\item\Shield::onDestroyBlock(pocketmine\block\Block $block): bool must be compatible with pocketmine\item\Item::onDestroyBlock(pocketmine\block\Block $block, array &$returnedItems): bool
File: plugins/Shield-patch-1/src/JavierLeon9966/Shield/item/Shield
Line: 20
Type: E_COMPILE_ERROR
Backtrace:

Code:
[11] 
[12] 	public function getMaxStackSize(): int{
[13] 		return 1;
[14] 	}
[15] 
[16] 	public function getMaxDurability(): int{
[17] 		return 337;
[18] 	}
[19] 
[20] 	public function onDestroyBlock(Block $block): bool{
[21] 		if(!$block->getBreakInfo()->breaksInstantly()){
[22] 			return $this->applyDamage(2);
[23] 		}
[24] 		return false;
[25] 	}
[26] }

Loaded plugins:
DevTools 1.17.0+dev by PocketMine Team for API(s) 5.0.0
Shield 1.14.0 by JavierLeon9966 for API(s) 5.0.0

fly bug

Add this plugin to your test server and enter it, even when you sit down, you can fly by touching, digging and picking something and taking space at the same time, in survival game mode.

The plugin crashes after server reload

`2021-06-05 [00:43:48] [Server thread/INFO]: Enabling Shield v1.0.0

2021-06-05 [00:43:48] [Server thread/CRITICAL]: RuntimeException: "Trying to overwrite an already registered item" (EXCEPTION) in "pmsrc/src/pocketmine/item/ItemFactory" at line 298

2021-06-05 [00:43:48] [Server thread/CRITICAL]: #0 plugins/Shield.phar/src/JavierLeon9966/Shield/Shield(26): pocketmine\item\ItemFactory::registerItem(object JavierLeon9966\Shield\item\Shield)

2021-06-05 [00:43:48] [Server thread/CRITICAL]: #1 pmsrc/src/pocketmine/plugin/PluginBase(116): JavierLeon9966\Shield\Shield->onEnable()

2021-06-05 [00:43:48] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/plugin/PluginManager(552): pocketmine\plugin\PluginBase->setEnabled(boolean 1)

2021-06-05 [00:43:48] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/Server(1785): pocketmine\plugin\PluginManager->enablePlugin(object JavierLeon9966\Shield\Shield)

2021-06-05 [00:43:48] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/Server(1771): pocketmine\Server->enablePlugin(object JavierLeon9966\Shield\Shield)

2021-06-05 [00:43:48] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/Server(1854): pocketmine\Server->enablePlugins(integer 1)

2021-06-05 [00:43:48] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/command/defaults/ReloadCommand(49): pocketmine\Server->reload()

2021-06-05 [00:43:48] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/command/SimpleCommandMap(248): pocketmine\command\defaults\ReloadCommand->execute(object pocketmine\command\ConsoleCommandSender, string[6] reload, array[0])

2021-06-05 [00:43:48] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/Server(1809): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[6] reload)

2021-06-05 [00:43:48] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/Server(1422): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[6] reload)

2021-06-05 [00:43:48] [Server thread/CRITICAL]: #10 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\Server->pocketmine{closure}()

2021-06-05 [00:43:48] [Server thread/CRITICAL]: #11 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()

2021-06-05 [00:43:48] [Server thread/CRITICAL]: #12 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1622871828.7539)

2021-06-05 [00:43:48] [Server thread/CRITICAL]: #13 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()

2021-06-05 [00:43:48] [Server thread/CRITICAL]: #14 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()

2021-06-05 [00:43:48] [Server thread/CRITICAL]: #15 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[18] /home/gourse/pmmp/, string[26] /home/gourse/pmmp/plugins/)

2021-06-05 [00:43:48] [Server thread/CRITICAL]: #16 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()

2021-06-05 [00:43:48] [Server thread/CRITICAL]: #17 pmsrc(11): require(string[73] phar:///home/gourse/pmmp/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

2021-06-05 [00:43:48] [Server thread/INFO]: Disabling Shield v1.0.0`

This error doesn't occur while start, reload only.

No Compatibility

[03:16:24.796] [Server thread/ERROR]: Could not load plugin 'Shield': Incompatible network protocol version (plugin requires one of: 340, 354, 361, 388, 389, 390, 407, 408, 419, 422, 428, 431, 440, 448, 465, 471, 475, 486)

Dont load

27.04 12:19:59 [Server] Server thread/CRITICAL Could not load plugin 'Shield': Unknown dependency: OffHand
27.04 12:19:59 [Server] Server thread/INFO Loading Offhand v2.0.2
27.04 12:20:00 [Server] Server thread/INFO Enabling Offhand v2.0.2

Bug

If you use a shield and shift it will fly, this applies to Waterdog

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.