Thanks, but is there a way to make it so that /hub only clears their inventory when they are in the 1vs1 match? Or make it so that it only clears Inv in specific world?
Because I have a normal kitpvp arena too, with a shop that you can buy items, I hope it doesn't clear their inventory when they do /hub there
Its technically possible, but more complicated. Clearing in certain worlds is much easier than in certain arenas.
Why don't you make the 1v1 plugin clear the inventory on EntityLevelChangeEvent instead of the MSpawns plugin doing that?
Thats a good idea, actually. Its possible to do it for specific worlds if you add a config option... But... I would rather write a completly new plugin for doing that, none of the original plugins are the right place for that. Additionally, you could then update Mspawns and 1vs1 to newer versions (when they come out) without loosing the fix code.
R.I.P. its very complicated it needs Observer technology... It will take some more time I guess but it will work. here is the progress: https://github.com/DarkWav/ClearInvOnWorldChange
And here we go i finished the plugin: https://github.com/DarkWav/ClearInvOnWorldChange [Phar Download] This plugin will allow you to clear players' inventories when they leave certain worlds. You can set the worlds in which you want that the players inventories get cleared if they leave in the Config of the plugin. This is a standalone Plugin, you can install it as a normal Plugin without having to change any other Plugin. After you installed this Plugin, please use the original versions of MSpawns and 1vs1 again as the versions with changed code are no longer neccessary.
Ran into another little problem with 1vs1 code: Code: [18:01:59] [Server thread/CRITICAL]: Unhandled exception executing command 'match' in match: Call to undefined function Minifixio\onevsone\model\getServer() [18:01:59] [Server thread/CRITICAL]: Error: "Call to undefined function Minifixio\onevsone\model\getServer()" (EXCEPTION) in "1vs1-master/src/Minifixio/onevsone/model/Arena" at line 74 [18:01:59] [Server thread/DEBUG]: #0 1vs1-master/src/Minifixio/onevsone/ArenaManager(185): Minifixio\onevsone\model\Arena->startRound(array Array()) [18:01:59] [Server thread/DEBUG]: #1 1vs1-master/src/Minifixio/onevsone/ArenaManager(150): Minifixio\onevsone\ArenaManager->launchNewRounds() [18:01:59] [Server thread/DEBUG]: #2 1vs1-master/src/Minifixio/onevsone/command/JoinCommand(44): Minifixio\onevsone\ArenaManager->addNewPlayerToQueue(pocketmine\Player object) [18:01:59] [Server thread/DEBUG]: #3 src/pocketmine/command/SimpleCommandMap(258): Minifixio\onevsone\command\JoinCommand->execute(pocketmine\Player object, string match, array Array()) [18:01:59] [Server thread/DEBUG]: #4 src/pocketmine/Server(1955): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\Player object, string match) [18:01:59] [Server thread/DEBUG]: #5 Slapper-master/src/slapper/Main(168): pocketmine\Server->dispatchCommand(pocketmine\Player object, string match) [18:01:59] [Server thread/DEBUG]: #6 src/pocketmine/command/PluginCommand(58): slapper\Main->onCommand(pocketmine\command\ConsoleCommandSender object, pocketmine\command\PluginCommand object, string rca, array Array()) [18:01:59] [Server thread/DEBUG]: #7 src/pocketmine/command/SimpleCommandMap(258): pocketmine\command\PluginCommand->execute(pocketmine\command\ConsoleCommandSender object, string rca, array Array()) [18:01:59] [Server thread/DEBUG]: #8 src/pocketmine/Server(1955): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\command\ConsoleCommandSender object, string rca "MSG100NG" match) [18:01:59] [Server thread/DEBUG]: #9 Slapper-master/src/slapper/Main(645): pocketmine\Server->dispatchCommand(pocketmine\command\ConsoleCommandSender object, string rca "MSG100NG" match) [18:01:59] [Server thread/DEBUG]: #10 src/pocketmine/plugin/MethodEventExecutor(38): slapper\Main->onEntityDamage(slapper\events\SlapperHitEvent object) [18:01:59] [Server thread/DEBUG]: #11 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(slapper\Main object, pocketmine\event\entity\EntityDamageByEntityEvent object) [18:01:59] [Server thread/DEBUG]: #12 src/pocketmine/plugin/PluginManager(756): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\entity\EntityDamageByEntityEvent object) [18:01:59] [Server thread/DEBUG]: #13 src/pocketmine/entity/Entity(891): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\entity\EntityDamageByEntityEvent object) [18:01:59] [Server thread/DEBUG]: #14 src/pocketmine/entity/Living(532): pocketmine\entity\Entity->attack(pocketmine\event\entity\EntityDamageByEntityEvent object) [18:01:59] [Server thread/DEBUG]: #15 src/pocketmine/Player(2513): pocketmine\entity\Living->attack(pocketmine\event\entity\EntityDamageByEntityEvent object) [18:01:59] [Server thread/DEBUG]: #16 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(132): pocketmine\Player->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object) [18:01:59] [Server thread/DEBUG]: #17 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(155): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object) [18:01:59] [Server thread/DEBUG]: #18 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object) [18:01:59] [Server thread/DEBUG]: #19 src/pocketmine/network/mcpe/protocol/BatchPacket(114): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object) [18:01:59] [Server thread/DEBUG]: #20 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object) [18:01:59] [Server thread/DEBUG]: #21 src/pocketmine/Player(3036): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object) [18:01:59] [Server thread/DEBUG]: #22 src/pocketmine/network/mcpe/RakLibInterface(158): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object) [18:01:59] [Server thread/DEBUG]: #23 vendor/pocketmine/raklib/src/server/ServerHandler(98): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 192.168.15.24 57175, raklib\protocol\EncapsulatedPacket object, integer 0) [18:01:59] [Server thread/DEBUG]: #24 src/pocketmine/network/mcpe/RakLibInterface(103): raklib\server\ServerHandler->handlePacket() [18:01:59] [Server thread/DEBUG]: #25 src/pocketmine/network/Network(94): pocketmine\network\mcpe\RakLibInterface->process() [18:01:59] [Server thread/DEBUG]: #26 src/pocketmine/network/mcpe/RakLibInterface(80): pocketmine\network\Network->processInterface(pocketmine\network\mcpe\RakLibInterface object) [18:01:59] [Server thread/DEBUG]: #27 vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}() [18:01:59] [Server thread/DEBUG]: #28 vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications() [18:01:59] [Server thread/DEBUG]: #29 src/pocketmine/Server(2258): pocketmine\snooze\SleeperHandler->sleepUntil(double 1531216919.2992) [18:01:59] [Server thread/DEBUG]: #30 src/pocketmine/Server(2129): pocketmine\Server->tickProcessor() [18:01:59] [Server thread/DEBUG]: #31 src/pocketmine/Server(1710): pocketmine\Server->start() [18:01:59] [Server thread/DEBUG]: #32 src/pocketmine/PocketMine(237): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\\Desktop\PocketMine-MP\, string C:\Users\\Desktop\PocketMine-MP\plugins\) [18:01:59] [Server thread/DEBUG]: #33 C:/Users//Desktop/PocketMine-MP/PocketMine-MP.phar(1): require(string phar://C:/Users//Desktop/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
1. Make sure to update to this version of ClearInvOnWorldChange as the old version is buggy. iiFlamingBlaze and DaPigGuy notified me about it, thanks to them. 2. thats probably a missing class import in the plugin, the author of 1vs1 may fix that for you actually if you tell him.
Thanks, but the author is inactive, there's like 17 opened issues and the last commit was 3 years ago. Are you able to fix the code?
I've been searching for hours but no working 1vs1 plugins that are compatible with 3.0.0 I really need help updating the plugin.