Hello! I dont believe this plugin exists so im requesting its existence I would like a plugin called 'Chest Vault' to be made to supply a user/player with a private vault. This would be achieved through hitting an enderchest or by typing /cv into chat. The idea behind this plugin is to allow a user to store ingame winnings in a chest which they can come back to once relogging. The command to open the chest would be /cv [number] (number being the vault page chosen like 1-10) When hitting a enderchest a gui will pop-up on the screen and have a number on it. I've seen things like this called vaults on the computer. If this plugin (or something similar exists im sorry for wasting time and would like a link). Thanks, MC ATECH
it's quite possible to achieve there's have been a faulty private plugin called "private vault" would be a good one to start as an concept but there's issues generally around destroying blocks since the players cant have virtual inventory(unless you make a client sided chest out of packets, but who knows how the server anti cheat will respond to this) an idea for others who are interested in making this is to aim for it to be able to open using enderchest/chest, the open via command part can be confusing and harder
NetherChest is a plugin that works like this (but not exactly the same): https://github.com/Muirfield/NetherChests
Yeah, I know about this plugin. It's just too different to edit or to fork due to the differences I want
How kind! Basically everything I mentioned at the start of the post! :3 •But maybe; could there be pages added? Green wool and maybe red wool for back and forth.. •Would it be possible for a sell block like item 246:8 in the top of the chest which works with another plugin called Sell so when a player taps it he/she sell the whole chests contents? (Just an idea) •The chest either costs money to buy in the first place or say $200 to use each time •opening/closing message telling the player if they spent money •maybe make it a double chest gui instead of single? Lol loads of possibilités but the main aim is to make it like my first post on this.. (ChestVault) Please reply with what is possible. Thanks.
Wait, I found a plugin like ChestVault, it's only called PrivateVaults: https://github.com/BukkitPlaysMC/PrivateVaults
PHP: [PocketMine] > Unhandled exception executing command 'pv 0' in pv: Argument 2 passed to pocketmine\tile\Tile::createTile() must be an instance of pocketmine\level\Level, instance of pocketmine\level\format\Chunk given, called in phar://C:/Users/mc8at/Desktop/TNT run server/plugins/phar_PrivateVaults-master (1)_CfjcRBtNQseZgR4.phar/src/KairusDarkSeeker/PrivateVaults/PrivateVaults.php on line 109[PocketMine] > TypeError: "Argument 2 passed to pocketmine\tile\Tile::createTile() must be an instance of pocketmine\level\Level, instance of pocketmine\level\format\Chunk given, called in phar://C:/Users/mc8at/Desktop/TNT run server/plugins/phar_PrivateVaults-master (1)_CfjcRBtNQseZgR4.phar/src/KairusDarkSeeker/PrivateVaults/PrivateVaults.php on line 109" (EXCEPTION) in "/src/pocketmine/tile/Tile" at line 102 error... It might because i ran it on a server thats software wasn't pm..
Add the [Solved] tag to the title when you don't need this anymore (your question is answered/you found the perfect plugin).
The plugin is already using ->getlevel() PHP: $chest = $event->getPlayer()->getLevel()->getTile(new Position($event->getPlayer()->x, $event->getPlayer()->y, $event->getPlayer()->z));
PHP: $nbt->Items->setTagType(NBT::TAG_Compound); $tile = Tile::createTile("Chest", $player->getLevel()->getChunk($player->getX() >> 4, $player->getZ() >> 4), $nbt); if($player instanceof Player) { $player = $player->getName(); } Still not working.. help?
BTW that plugin seems to originate form the "PrivateVault" i mentioned, it's just some of it's code is tweaked to include their author name even tho they did not originally made it there's a few obvious flaw, like this one sets the chest at block 128 which may destroy building blocks and i doubt there's any checks so it will run into loosing items if i open a vault in the same X,Z cords of another player
Your answer is in the error. -.- PHP: $nbt->Items->setTagType(NBT::TAG_Compound); $tile = Tile::createTile("Chest", $player->getLevel(), $nbt); if($player instanceof Player) { $player = $player->getName(); } The second argument of Tile::createTile() needs to be a Level, not a chunk.