Code Monkey home page Code Monkey logo

itemframecommands's Introduction

ItemFrameCommands

Run commands via item frames

Features

This plugin allows you to add commands to item frames, which execute when a player hits the frame

It allows commands to be executed as player or as console.

Usage

Usage is quite simple. First you place and item frame. Then you can add an item if you'd like, but that is not necessary, as it can be done later via a command.

Then you run /frame addcmd, which opens an UI, where you select the executor and command

Every time you run a /frame command, you must hit the item frame you want to edit afterwards, or execute /frame abort to cancel editing.

/help frame [subcommand] will show further help about the command usage & its subcommands

Permissions

  • All commands: frame
  • subcommands: frame.{subcommand}

TODO

  • Enhance README with images & Poggit links & full command overview

itemframecommands's People

Contributors

inxomnyaa avatar poggit-bot avatar

Stargazers

Sergiy Chernega avatar  avatar  avatar SD Hakka Sig(sdsd16) avatar Daniel Boris L avatar YUNK avatar

Watchers

 avatar Daniel Boris L avatar

itemframecommands's Issues

Error

[09:53:13] [Server thread/CRITICAL]: Error: "Call to a member function getAllValues() on null" (EXCEPTION) in "plugins/ItemFrameCommands_dev-3.phar/src/xenialdan/ItemFrameCommands/EventListener" at line 97

lastest ItemFrameCommands version PMMP API 3.6.1

error

[Server thread/CRITICAL]: Error: "Class 'xenialdan\customui\windows\CustomForm' not found" (EXCEPTION) in "plugins/ItemFrameCommands-master/src/xenialdan/ItemFrameCommands/subcommand/AddSubCommand" at line 24

Commands do not implement PluginIdentifiableCommand

This prevents Poggit from detecting the command, and hence the plugin cannot be searched at https://poggit.pmmp.io/cmds

This issue has been reported to Commando at CortexPE/Commando#26, but before @CortexPE fixes it (which is most likely impossible without a BC break), it is the responsibility of plugins to make sure they implement this interface.

This is not a critical issue, so your plugin is not immediately rejected. However, please make sure this issue is resolved in your next update.

This issue was created via GitHub API automatically, but you are welcome to reply to this issue to contact me. Sorry about not reading the CONTRIBUTING.md in this repo ๐Ÿ™ƒ

Error to run command /frame addcmd player gamemode 1

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

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.