Giter VIP home page Giter VIP logo

offhand's Introduction

Offhand

A PocketMine-MP plugin that implements Offhand (and OffhandInventory)

This plugin is going to be abandoned

Since PM4 has Offhand support, this plugin is going to be abandoned.

Thanks for using this plugin!

Introduction

PocketMine-MP does not support Offhand

This plugin will enable Offhand on your server

If you are experiencing bug, please open an issue on issue tracker

offhand's People

Contributors

alvin0319 avatar ipad54 avatar javierleon9966 avatar mrninja008 avatar pechenkapm avatar wertzui123 avatar worti3 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

offhand's Issues

Bugs

Error:
[Server thread/CRITICAL]: InvalidArgumentException: "Requested force ID 119 already in use" (EXCEPTION) in "pmsrc/src/pocketmine/Player" at line 4089 [13:32:43] [Server thread/CRITICAL]: #0 plugins/OffHand.phar/src/alvin0319/Offhand/Offhand(80): pocketmine\Player->addWindow(object alvin0319\Offhand\PlayerOffhandInventory, integer 119, boolean 1)

Software:
• PocketMine-MP API 3.18.0
• Linux Ubuntu

Update

Plz update the plugin offhand is 1.17

Quetion

If PM4 is released, will this plugin be updated to PM4?

Not loading anymore?

Was working, Now it's not - DID NOTHING.

Here's what's showing up in Console, - Server won't run unless I remove it, - again, I change nothing lol .. Just won't work, Thanks in advanced!!

  • :ISSUE: -

ParseError: "syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)" (EXCEPTION) in "plugins/Offhand(5).phar/src/alvin0319/Offhand/Offhand" at line 50

[18:17:17] [Server thread/CRITICAL]: #0 pmsrc/vendor/pocketmine/classloader/src/BaseClassLoader(124): BaseClassLoader->loadClass(string[25] alvin0319\Offhand\Offhand)

[18:17:17] [Server thread/CRITICAL]: #1 (): BaseClassLoader->{closure}(string[25] alvin0319\Offhand\Offhand)

[18:17:17] [Server thread/CRITICAL]: #2 (): spl_autoload_call(string[25] alvin0319\Offhand\Offhand)

[18:17:17] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/plugin/PluginManager(167): class_exists(string[25] alvin0319\Offhand\Offhand, boolean 1)

[18:17:17] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/plugin/PluginManager(346): pocketmine\plugin\PluginManager->loadPlugin(string[38] /home/gs-40244/plugins/Offhand(5).phar, array[2])

[18:17:17] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/Server(1529): pocketmine\plugin\PluginManager->loadPlugins(string[23] /home/gs-40244/plugins/)

[18:17:17] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[15] /home/gs-40244/, string[23] /home/gs-40244/plugins/)

[18:17:17] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()

[18:17:17] [Server thread/CRITICAL]: #8 pmsrc(11): require(string[96] phar:///pro/bin/mcpe/pocketmine-stable-1.16.220/PocketMine-MP.phar/src/pocketmin)

(EDIT)

Wanted to add, -- I did download the phar, Zip it, And mess around etc etc to see if i could fix things, - Can't figure it out, Hope you're still active! Lol.

bug?

OffHand player items are not visible in other players, but functions are working

PM4

you can create a branch ‘PM4’, it will have this plugin on PMMP 4.0

Error

I using plugin api, and when i use
if($this->hand->getOffHandInventory($player)->getItemInOffHand() instanceof Arrow){}
Server return null

Off hand

28C0849A-6DEE-4507-9C0E-60355BEBE67B
Hi yes uh this is xXgal4xy_h7p3rXx on discord it won’t let me use the off hand plugin on bedrock Edition and it’s on and enabled just won’t let me put anything on off hand How do I fix it?

Suggestion

Make compatibility with VanillaX Plugin

connection

Can i talk to you on discord? SpainLacksRain#8162

Texture bug

arrows, totems and fireworks is black in the OffHand

Sneak error

I got ur 2 plugins, offhand and shield but when i sneak the server give me a error and kick me out :(

[Server thread/CRITICAL]: Error: "Call to undefined method pocketmine\Player::getOffHandInventory()" (EXCEPTION) in "plugins/Shield/src/alvin0319/ShieldPlugin/ShieldPlugin" at line 61
[18:12:37] [Server thread/DEBUG]: #0 src/pocketmine/plugin/MethodEventExecutor(42): alvin0319\ShieldPlugin\ShieldPlugin->handleToggleSneak(object pocketmine\event\player\PlayerToggleSneakEvent)
[18:12:37] [Server thread/DEBUG]: #1 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object alvin0319\ShieldPlugin\ShieldPlugin, object pocketmine\event\player\PlayerToggleSneakEvent)
[18:12:37] [Server thread/DEBUG]: #2 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerToggleSneakEvent)
[18:12:37] [Server thread/DEBUG]: #3 src/pocketmine/Player(2867): pocketmine\event\Event->call()
[18:12:37] [Server thread/DEBUG]: #4 src/pocketmine/Player(2825): pocketmine\Player->toggleSneak(boolean 1)
[18:12:37] [Server thread/DEBUG]: #5 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(174): pocketmine\Player->handlePlayerAction(object pocketmine\network\mcpe\protocol\PlayerActionPacket)
[18:12:37] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/protocol/PlayerActionPacket(88): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handlePlayerAction(object pocketmine\network\mcpe\protocol\PlayerActionPacket)
[18:12:37] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\PlayerActionPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[18:12:37] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/protocol/BatchPacket(126): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\PlayerActionPacket)
[18:12:37] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[18:12:37] [Server thread/DEBUG]: #10 src/pocketmine/Player(3121): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[18:12:37] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[18:12:37] [Server thread/DEBUG]: #12 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[17] 81.0.33.209 33149, object raklib\protocol\EncapsulatedPacket, integer 0)
[18:12:37] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
[18:12:37] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
[18:12:37] [Server thread/DEBUG]: #15 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
[18:12:37] [Server thread/DEBUG]: #16 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
[18:12:37] [Server thread/DEBUG]: #17 src/pocketmine/Server(2146): pocketmine\snooze\SleeperHandler->sleepUntil(double 1591294357.6112)
[18:12:37] [Server thread/DEBUG]: #18 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
[18:12:37] [Server thread/DEBUG]: #19 src/pocketmine/Server(1584): pocketmine\Server->start()
[18:12:37] [Server thread/DEBUG]: #20 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[18:12:37] [Server thread/DEBUG]: #21 src/pocketmine/PocketMine(295): pocketmine\server()
[18:12:37] [Server thread/DEBUG]: #22 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Bug

if you teleport, and then you return to the player, then you will not see the item in his offhand

Crash on join

[21:16:09] [Server thread/CRITICAL]: InvalidArgumentException: "Cannot remove fixed window 119 (alvin0319\Offhand\PlayerOffhandInventory) from El3ctr0Games" (EXCEPTION) in "pmsrc/src/pocketmine/Player" at line 4145
I never had anything in my offhand.

Server error

 "Argument 1 passed to pocketmine\item\Item::equalsExact() must be an instance of pocketmine\item\Item, instance of pocketmine\network\mcpe\protocol\types\inventory\ItemStackWrapper given, called in phar:///home/minecraft/plugins/OffHand_dev-29.phar/src/alvin0319/Offhand/Offhand.php on line 94" (EXCEPTION) in "pmsrc/src/pocketmine/item/Item" at line 764

[13:30:06] [Server thread/CRITICAL]: #0 plugins/OffHand_dev-29.phar/src/alvin0319/Offhand/Offhand(94): pocketmine\item\Item->equalsExact(object pocketmine\network\mcpe\protocol\types\inventory\ItemStackWrapper)

[13:30:06] [Server thread/CRITICAL]: #1 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): alvin0319\Offhand\Offhand->onDataPacketReceive(object pocketmine\event\server\DataPacketReceiveEvent)

[13:30:06] [Server thread/CRITICAL]: #2

Other Players Will Not See Offhand Item

Even when an item is in the offhand (lets say for instance, a shield), it will not show to other players looking at the player with the item in the offhand

Bug

I can't equip two swords the bugs then return to inventory

Error whith lastest version of PMMP & Plugin

Pocketmine Version : v1.16.220
Plugin Version : Poggit Build DEV 30

[12:48:11] [Server thread/CRITICAL]: ParseError: "syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)" (EXCEPTION) in "plugins/OffHand_dev-30.phar/src/alvin0319/Offhand/Offhand" at line 50
[12:48:11] [Server thread/CRITICAL]: #0 pmsrc/vendor/pocketmine/classloader/src/BaseClassLoader(124): BaseClassLoader->loadClass(string[25] alvin0319\Offhand\Offhand)
[12:48:11] [Server thread/CRITICAL]: #1 (): BaseClassLoader->{closure}(string[25] alvin0319\Offhand\Offhand)
[12:48:11] [Server thread/CRITICAL]: #2 (): spl_autoload_call(string[25] alvin0319\Offhand\Offhand)
[12:48:11] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/plugin/PluginManager(167): class_exists(string[25] alvin0319\Offhand\Offhand, boolean 1)
[12:48:11] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/plugin/PluginManager(346): pocketmine\plugin\PluginManager->loadPlugin(string[74] C:\Users\Benjamin\Documents\PocketMine-MP 2020\plugins\OffHand_dev-30.phar, array[2])
[12:48:11] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/Server(1529): pocketmine\plugin\PluginManager->loadPlugins(string[55] C:\Users\Benjamin\Documents\PocketMine-MP 2020\plugins\)
[12:48:11] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[47] C:\Users\Benjamin\Documents\PocketMine-MP 2020\, string[55] C:\Users\Benjamin\Documents\PocketMine-MP 2020\plugins\)
[12:48:11] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
[12:48:11] [Server thread/CRITICAL]: #8 pmsrc(11): require(string[102] phar://C:/Users/Benjamin/Documents/PocketMine-MP 2020/PocketMine-MP.phar/src/poc)

Thanks

Bug

If you put item in OffHand, then it is visible only to you. For others, it is not visible

Question?!

Which items can i hold in Offhand?
I have tested this plugin with torches, arrows and other stuff.
But only Arrow works.
Is this a Bug or Not available at this time?

Offhand Dev 8
Pocketmine 3.15.1

Internal Server Error

[00:33:42] [Server thread/CRITICAL]: Error: "Call to undefined method pocketmine\item\ItemBlock::write()" (EXCEPTION) in "pmsrc/src/pocketmine/network/mcpe/protocol/MobEquipmentPacket" at line 55

[00:33:42] [Server thread/CRITICAL]: #0 pmsrc/src/pocketmine/network/mcpe/protocol/DataPacket(127): pocketmine\network\mcpe\protocol\MobEquipmentPacket->encodePayload()

[00:33:42] [Server thread/CRITICAL]: #1 pmsrc/src/pocketmine/Server(1705): pocketmine\network\mcpe\protocol\DataPacket->encode()

[00:33:42] [Server thread/CRITICAL]: #2 plugins/OffHand_dev-30.phar/src/alvin0319/Offhand/PlayerOffhandInventory(79): pocketmine\Server->broadcastPacket(array[1], object pocketmine\network\mcpe\protocol\MobEquipmentPacket)

[00:33:42] [Server thread/CRITICAL]: #3 plugins/OffHand_dev-30.phar/src/alvin0319/Offhand/PlayerOffhandInventory(66): alvin0319\Offhand\PlayerOffhandInventory->broadcastMobEquipment()

[00:33:42] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/inventory/BaseInventory(177): alvin0319\Offhand\PlayerOffhandInventory->onSlotChange(integer 0, object pocketmine\item\ItemBlock, boolean 1)

[00:33:42] [Server thread/CRITICAL]: #5 plugins/OffHand_dev-30.phar/src/alvin0319/Offhand/PlayerOffhandInventory(61): pocketmine\inventory\BaseInventory->setItem(integer 0, object pocketmine\item\ItemBlock)

[00:33:42] [Server thread/CRITICAL]: #6 plugins/OffHand_dev-30.phar/src/alvin0319/Offhand/Offhand(78): alvin0319\Offhand\PlayerOffhandInventory->setItemInOffhand(object pocketmine\item\ItemBlock)

[00:33:42] [Server thread/CRITICAL]: #7 plugins/OffHand_dev-30.phar/src/alvin0319/Offhand/Offhand(62): alvin0319\Offhand\Offhand->getOffhandInventory(object JackMD\NameSpaceRemover\CustomPlayer)

[00:33:42] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): alvin0319\Offhand\Offhand->onPlayerLogin(object pocketmine\event\player\PlayerLoginEvent)

[00:33:42] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object alvin0319\Offhand\Offhand, object pocketmine\event\player\PlayerLoginEvent)

[00:33:42] [Server thread/CRITICAL]: #10 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerLoginEvent)

[00:33:42] [Server thread/CRITICAL]: #11 pmsrc/src/pocketmine/Player(2238): pocketmine\event\Event->call()

[00:33:42] [Server thread/CRITICAL]: #12 pmsrc/src/pocketmine/Player(2218): pocketmine\Player->completeLoginSequence()

[00:33:42] [Server thread/CRITICAL]: #13 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(125): pocketmine\Player->handleResourcePackClientResponse(object pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket)

[00:33:42] [Server thread/CRITICAL]: #14 pmsrc/src/pocketmine/network/mcpe/protocol/ResourcePackClientResponsePacket(62): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleResourcePackClientResponse(object pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket)

[00:33:42] [Server thread/CRITICAL]: #15 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)

[00:33:42] [Server thread/CRITICAL]: #16 pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket(130): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket)

[00:33:42] [Server thread/CRITICAL]: #17 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)

[00:33:42] [Server thread/CRITICAL]: #18 pmsrc/src/pocketmine/Player(3311): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)

[00:33:42] [Server thread/CRITICAL]: #19 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)

[00:33:42] [Server thread/CRITICAL]: #20 pmsrc/vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[19] 88.241.51.107 42330, object raklib\protocol\EncapsulatedPacket, integer 0)

[00:33:42] [Server thread/CRITICAL]: #21 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()

[00:33:42] [Server thread/CRITICAL]: #22 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()

[00:33:42] [Server thread/CRITICAL]: #23 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}()

[00:33:42] [Server thread/CRITICAL]: #24 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()

[00:33:42] [Server thread/CRITICAL]: #25 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1617834822.8831)

[00:33:42] [Server thread/CRITICAL]: #26 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()

[00:33:42] [Server thread/CRITICAL]: #27 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()

[00:33:42] [Server thread/CRITICAL]: #28 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/minecraft/, string[24] /home/minecraft/plugins/)

[00:33:42] [Server thread/CRITICAL]: #29 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()

[00:33:42] [Server thread/CRITICAL]: #30 pmsrc(11): require(string[68] phar:///home/minecraft/pocketmine.phar/src/pocketmine/PocketMine

How fix

How fix drop item in creative?

Crash

Not working i have crash of worldguard with this plugin
#0 plugins/3347_pe_worldguard.phar/src/MihaiChirculete/WorldGuard/WorldGuard(442): pocketmine\utils\Utils::errorExceptionHandler

Issue

How can i get getItemInOffHand?

Suggestions

Can u make a backup plugin for pmmp which backup on google drive

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.