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

I need help

Comments in 'Plugin Development' started by SM11, Aug 2, 2015.

  1. SM11
    Offline

    SM11 Active Member

    Joined:
    Jun 21, 2015
    Posts:
    117
    Minecraft User:
    SM11
    I need some help making a custom plugin which freezes someone on a command for a certain time, Thanks Please help
  2. Kvetinac97
    Offline

    Kvetinac97 Active Member Plugin Developer

    Joined:
    Nov 17, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    Kvetinac97
    I suggest you make players stats array and write player names into it. Then make a function isFreezed which check if players name is in players array, then just cancell PlayerMoveEvent if isFreezed returns true ;)
    Minecrafter9203 likes this.
  3. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Have a look at $player->blocked. Not sure if it is part of the versioned API (where you are supposed to use it in plugins and it has backwards compatibility guaranteed) though.
    Minecrafter9203 likes this.

Share This Page

Advertisement