I'm trying to make a ender chest plugin (access a chest from anywhere by command)not sure if this is possible but if so I need help with part of the code
then create a chest/tile at a position of the map and give foreach enderchest a other ID and the ID == Chest's X or Z Coordinate and open it xD
PHP: $this->chest = new ChestInventory(Tile::CreateTile("Chest",$level->getChunk(0 >> 4, 0>> 4),new Compound("VirtualChest", [ new Enum("Items", []), new String("id", "Chest"), new Int("x", 0), new Int("y", 0), new Int("z", 0) ])));$player->addWindow($this->chest);//open inventory to player
Really, if you did actually start 3 weeks ago, you shouldn't start with something complicated like this.