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

Get commands a player runs

Comments in 'Plugin Development' started by Angelo Vidrio, Jan 6, 2015.

  1. Angelo Vidrio
    Offline

    Angelo Vidrio Active Member Plugin Developer

    Joined:
    Jan 16, 2014
    Posts:
    123
    Plugins:
    5
    Minecraft User:
    LilCrispy45
    How to get the commands that a player runs?
  2. 64FF00
    Offline

    64FF00 Active Member Plugin Developer

    Joined:
    May 11, 2014
    Posts:
    298
    Plugins:
    2
    Minecraft User:
    64FF00
    iksaku and PEMapModder like this.
  3. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Keep in mind that it is fired for everything a player sends, whether or not it starts with a /slash.
  4. V_Champion
    Offline

    V_Champion New Member

    Joined:
    Feb 27, 2014
    Posts:
    2
    Minecraft User:
    V_Champion
    It's still useful because the console is very quiet and nobody can know what other players are saying in the console. So yeah, i don't see a bad thing about it.
  5. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,132
    Plugins:
    4
    Minecraft User:
    iksaku
    This event returns everything that a player send on chat, so if you want to detect a command, checkout if the whole string starts with a slash ('/')
    Angelo Vidrio likes this.
  6. hoyinm14mc
    Offline

    hoyinm14mc Notable Member Plugin Developer

    Joined:
    Jun 4, 2014
    Posts:
    502
    Plugins:
    9
    Minecraft User:
    hoyinm14mc
    Junhua likes this.

Share This Page

Advertisement