Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

player.block.place: How to get the side and the block

Comments in 'Plugin Development' started by PEMapModder, Dec 6, 2013.

?

Which of the following do you prefer to use?

  1. Console::register("I", "prefers to", array($this,"use static."));

    100.0%
  2. $this->api->console->register("I", "prefers to", array($this,"use non-static"));

    0 vote(s)
    0.0%
  1. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    How to get the side the player tapped in player.block.place? I looked at /src/material/Block.php and the function getSide($side), instead of giving a side integer, requires a side integer :D What should I do if I want to find the coordinates the block was placed at, and the blocks to be placed?
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Sorry I meant ConsoleAPI::register() not Console::register()

Share This Page

Advertisement