inxomnyaa / ItemFrameCommands

Run commands via item frames
https://poggit.pmmp.io/ci/thebigsmileXD/ItemFrameCommands/~
GNU General Public License v3.0
6 stars 0 forks source link

Error to run command /frame addcmd player gamemode 1 #2

Closed SuperAdam47 closed 5 years ago

SuperAdam47 commented 5 years ago
array(1) {
  [0]=>
  array(2) {
    [0]=>
    object(pocketmine\nbt\tag\StringTag)#14375 (3) {
      ["value":"pocketmine\nbt\tag\StringTag":private]=>
      string(6) "player"
      ["__name":protected]=>
      string(2) "as"
      ["cloning":protected]=>
      bool(false)
    }
    [1]=>
    object(pocketmine\nbt\tag\StringTag)#14429 (3) {
      ["value":"pocketmine\nbt\tag\StringTag":private]=>
      string(10) "gamemode 1"
      ["__name":protected]=>
      string(3) "cmd"
      ["cloning":protected]=>
      bool(false)
    }
  }
}
[18:58:21] [Server thread/CRITICAL]: TypeError: "Argument 1 passed to pocketmine\nbt\tag\ListTag::push() must be an instance of pocketmine\nbt\tag\NamedTag, array given, called in phar://C:/Users/aronf/Desktop/yedeksetup/GrandTheftDogs Sunucusu/PocketMine-MP.phar/vendor/pocketmine/nbt/src/tag/ListTag.php on line 54" (EXCEPTION) in "vendor/pocketmine/nbt/src/tag/ListTag" at line 158
SuperAdam47 commented 5 years ago

@thebigsmileXD

inxomnyaa commented 5 years ago

No need to ping, this is my repo, i am pinged anyways.

This plugin is really out of date, i will push an update with a change in the future. It will use an ui to simplify the input

inxomnyaa commented 5 years ago

Fixed again