Library Levitate - Register commands the easy way!

Discussion in 'Resources' started by ketrwu14, Oct 24, 2015.

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

    ketrwu14

    Levitate is an awesome and easy to use Command-Library for Bukkit/Spigot-Plugins.
    It allowes you to register commands with arguments, permissions and description in seconds. There also is no need to register it in the plugin.yml.

    Example
    Check out a simple Kill-Command written with Levitate in less than 1 minute:
    https://gist.github.com/KennethWussmann/346bd855d2db4c4ad3bc

    Features
    • Checks arguments to be vaild
    • Checks permission
    • Registers command directly to Bukkit/Spigot without plugin.yml
    • Supports command aliases
    • Bukkit/Spigot-Version independent
    • HelpMap with detailed Command-List
    • TabComplete
    • Extendable

    Getting started
    Please check our wiki to get started.

    Download
    Levitate is available on Github.

    License
    Levitate is licensed under GNU General Public License Version 2.
     
    Last edited: Oct 25, 2015
  2. Offline

    sethrem

    Wow dude so much more efficient than. p.setHealth(0);
     
  3. Offline

    ketrwu14

    I think you have misunderstood something
     
  4. Offline

    sethrem

    @ketrwu14 No i didn't there is not point of using this lib for making commands.
     
  5. Offline

    ketrwu14

    @sethrem
    For sure there are reasons.
    You don't need to validate user inputs, create TabCompletion, check permissions and it's faster and cleaner.

    A litte example.
    Give-Command with Levitate: https://gist.github.com/KennethWussmann/68dccf4b2ecd748cc487
    And without Levitate: https://gist.github.com/KennethWussmann/3fd188ca19e8b72e5e59

    And the example without Levitate is longer, has no permission check, help information and TabCompletion. For sure, you can implement it, but it would make the class a lot bigger and messy. And of course you can split it in more classes and methods to keep it clean, or just use Levitate which does this by itself.

    But it's up to you.
     
    Last edited: Oct 25, 2015
    cococow123 likes this.
  6. Offline

    BlizzardFyre

    God damn, I am really impressed. Extremely well done
     
  7. Offline

    Maxx_Qc

    Does it support sub command?
     
  8. Offline

    ketrwu14

    Yes, of course.
     
  9. Offline

    ketrwu14

  10. Love it :)
     
    ketrwu14 likes this.
  11. Offline

    cococow123

    Can I put it in a separate class, other than the main class?
     
  12. Offline

    teej107

    Of course! You can put anything in any class. Code is very versatile.
     
  13. Offline

    cococow123

  14. Offline

    ketrwu14

Thread Status:
Not open for further replies.

Share This Page