A simple command text plugin

Discussion in 'Archived: Plugin Requests' started by RaidPirate, Mar 31, 2013.

  1. Offline

    RaidPirate

    Before I get started, thank you very much for taking the time to look at my thread, also if you could read below what my requests for this plugin are and tell me if I've just been very blind and not seen one already.

    Requirements : The ability to add text commands, like in the essentials plugin if you do /help it shows a list of configurable text of your choice. I want one where you can create your own command e.g /Vanilla [ for my server ] and it explains about the server type Vanilla, with configurable text obviously
    I don't mind what name you give the plugin, but if you don't mind could it please be called " TextAndCommand " thanks.

    If anyone could make this for me or give me a link to another similar plugin, it would be very much so appreciated.
    Thanks!
    Raid.
     
  2. Offline

    Reteckz

    Not possible I think as you need to set the possible commands with a description in the plugin.yml in order to use them. I would be able to code this, but then you would have to add every command with description again in the plugin.yml inside the java file inside your plugins folder.

    If you still want me to do this, send me a PM ;)
     
  3. Offline

    GoldSchmiedi

    If you want to bounds a selfmade Command to a Command try: SimpleAlias
    If you want to create a Command that displays a Text into the Chat use: InfoCommands
     
  4. Offline

    Nnnnneeeedddd

    This is possible because you only have to put the first command argument in to the plugin.yml. In the plugin that i have made for you, there will be a folder generated with a config.yml in it that looks like this:

    Code:
    commands:
      help:
      - '&6This is help menu'
      - '&9/t: gets a text command'
    So here you can see there is a commands section then a list labelled 'help' each different line of the list is a different line to the player in this case:

    <font color="#ff9900">This is help menu<font color="#000000"> Then the new line</font></font>
    <font color="#0000ff">/t: get's a text command</font>

    A player would access this command by going '/t help.' You personally can add /t <your commands> by going into the config and adding another list:

    Code:
    commands:
      help:
      - '&6This is help menu'
      - '&9/t: gets a text command'
      mycommand:
      - '&2This is awesome'
      - '&6This is the second line'
    now if the player goes /t <mycommand> it will say:

    <font color="#00ff00">This is awesome</font>
    <font color="#ff9900">This is the second line</font>

    <font color="#000000">I wanted to make sure you understood what to do with the config it is very simple.</font>
    If you are confused PM me.

    The .jar file is located <Edit by Moderator: Redacted mediafire url>

    PS: You have full responsibility over this plugin when it starts up it will say written by [GoldSchmiedi]

    Ned
     
    Last edited by a moderator: Nov 7, 2016

Share This Page