Filled simple my commands plugin

Discussion in 'Plugin Requests' started by swaggod, May 3, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    swaggod

    so in this plugin I want to have my own commands

    config example:

    Code:
    '1':
    command: /help   <-- command can be over written
    cool-down: 10        <---- cooldown in sec
    permission: 'help.help' <--- command permission
    output:                      <--- so when you run /help it will send player this msg
    - 'example'                 <---  msg
    - 'example'
    - 'example'
    - 'example'
    - 'example'
    
    '2'
    command: /rules
    cool-down: 0
    permission: 'none'  <--- none means no permission
    out-put:
    - 'example'
    - 'example'
    - 'example'
    I can have multiple same command with different permission
     
    Last edited: May 4, 2017
  2. Offline

    S1ant

    You Could either get someone to make a Plugin that does these commands, I'd be happy to, or you could use a plugin called Skript
     
  3. Offline

    swaggod

    @S1ant
    no i just need a plugin that lets me make my own commands as shown in the post and those commands that i put in the post are just examples
     
  4. Offline

    EndureBlackout

    Get the plugin MyCommand


    Sent from my iPhone using Tapatalk
     
  5. Online

    timtower Administrator Administrator Moderator

    @swaggod DynamicAliases can make its own commands.
    No cooldowns though
     
  6. Offline

    swaggod

    I don't do what I want

    It Don't work
     
  7. Online

    timtower Administrator Administrator Moderator

    @swaggod Define "Don't work"
    Due to the cooldowns?
     
  8. Offline

    swaggod

    no I put a help command with different output and commands don't work it showed me default essentials help
     
  9. Online

    timtower Administrator Administrator Moderator

    @swaggod That would be Essentials messing everything up.
    This is why I dislike it.
    Overrides pretty much all commands.
     
  10. Offline

    swaggod

    But MyCommand plugin works but it dont let me have same multiple commands with different permissions
     
    Last edited: May 14, 2017
  11. Offline

    swaggod

  12. Offline

    swaggod

  13. Offline

    swaggod

  14. Offline

    swaggod

  15. Offline

    swaggod

  16. Offline

    RcExtract

    @swaggod What is the output? Is it a couple line of strings? Or couple line of commands?
     
  17. Offline

    swaggod

    out put is text
     
  18. Offline

    Caderape2

    Last edited: May 28, 2017
  19. Offline

    swaggod

  20. Offline

    Caderape2

    @swaggod
    I updated my first link. the config file has changed, so refresh it.
     
  21. Offline

    swaggod

    Can you please tell me more about outputSection1, 2 ..etc?

    Edit: Can you add a world option like this

    Code:
    help:
      description: "Display the help"
      cooldown: 1
      permissions: 'none'
        outputSection1:
          permission: "lobby.help"
          world:
          - Lobby
          output:
          - "&7&m-------------&7[ &b&lHelp &7]&m-------------"
          - "&5* &b&l/Hub &8>> &e&lTo go to the hub."
          - "&5* &b&l/Server &8>> &e&lTo see all the servers."
          - "&5* &b&l/Rules &8>> &E&lTo see ALL the Rules."
          - "&5* &b&l/Vote &8>> &e&lTo Vote for the server."
          - "&5* &b&l/Buy &8>> &e&lTo support the server."
          - "&7&m-------------&7[ &b&lHelp &7]&m-------------"
        outputSection2:
          permission: "skyblock.help"
          world:
         - ASkyBlock
         - ASkyBlock_nether
          output:
          - "&7&m-------------&7[ &b&lHelp &7]&m-------------"
          - "&5* &b&l/Hub &8>> &e&lTo go to the hub."
          - "&5* &b&l/Rules &8>> &E&lTo see ALL the Rules."
          - "&5* &b&l/Vote &8>> &e&lTo Vote for the server."
          - "&5* &b&l/Buy &8>> &e&lTo support the server."
          - "&5* &b&l/Is &8>> &E&lTo make an Island."
          - "&5* &b&l/Is help&8>> &E&lTo see all the skyblock commands."
          - "&5* &b&l/Q &8>> &E&lTo see all the Quests."
          - "&5* &b&l/Ah &8>> &E&lTo Auction your items."
          - "&5* &b&l/Shop &8>> &E&lTo open up a GUI Shop."
          - "&5* &b&l/Spawners &8>> &E&lTo open up a GUI Spawner Shop."
          - "&5* &b&l/Ce &8>> &E&lFor Custom Enchants."
          - "&7&m-------------&7[ &b&lHelp &7]&m-------------"
        outputSection3:
          permission: "survival.help"
          world:
         - Survival
         - Survival_nether
          output:
          - "&7&m-------------&7[ &b&lHelp &7]&m-------------"
          - "&5* &b&l/Hub &8>> &e&lTo go to the hub."
          - "&5* &b&l/Rules &8>> &E&lTo see ALL the Rules."
          - "&5* &b&l/Vote &8>> &e&lTo Vote for the server."
          - "&5* &b&l/Buy &8>> &e&lTo support the server."
          - "&5* &b&l/Skills &8>> &E&lTo see all the Skills."
          - "&5* &b&l/Shop &8>> &E&lTo open up a GUI Shop."
          - "&7&m-------------&7[ &b&lHelp &7]&m-------------"
        outputSection4:
          permission: "kitpvp.help"
          world:
         - Kitpvpmap
          output:
          - "&7&m-------------&7[ &b&lHelp &7]&m-------------"
          - "&5* &b&l/Hub &8>> &e&lTo go to the hub."
          - "&5* &b&l/Rules &8>> &E&lTo see ALL the Rules."
          - "&5* &b&l/Vote &8>> &e&lTo Vote for the server."
          - "&5* &b&l/Buy &8>> &e&lTo support the server."
          - "&5* &b&l/Leave &8>> &E&lTo leave FFA."
          - "&7&m-------------&7[ &b&lHelp &7]&m-------------"
     
    Last edited: May 28, 2017
  22. Offline

    Caderape2

    @swaggod
    I think you understand how outputsSection works. Like u did, they just have to have a different name, so continue to add outputSection5, 6 etc... and it will be fine. This is just a way to separate the message to send compared to the permission

    I updated the main link. World Name are case sensitive.

    Code:
    test2:
      description: "Second test command"
      cooldown: 10
      permissions:
        outputSection1:
          permission: customcommand.test.second
          world:
         - world
         - world_nether
          output:
          - "&aYou did the second test command"
    I followed your example so you should not have to refresh the config
     
    Last edited: May 28, 2017
Thread Status:
Not open for further replies.

Share This Page