Solved no command error or something?

Discussion in 'Plugin Development' started by kapseljava, Dec 9, 2018.

Thread Status:
Not open for further replies.
  1. Well im remixing some plugins together and I have problems with issuing commands. Plugin loads clearly without errors, but when I enter any command there is no error or anything. Even the command functionality isn't working. Below I paste both classes one is main second contains commands (sethome, home). They are saved in package as separate .java files (as the Eclipse shows). Also I'm giving the plugin.yml file below.
    https://pastebin.com/HLkYxjhz - commands class
    https://pastebin.com/kKJCmaku - main class
    https://pastebin.com/gBXjpadB - plugin.yml
    [​IMG]
     
  2. Offline

    timtower Administrator Administrator Moderator

    Moved to plugin development.
    @kapseljava Merging plugins isn't always the best idea (that besides the point)
    Please post your full server log using https://pastebin.com
     
  3. https://pastebin.com/3zMkW48N
    i wanted to write those "modules" myself in one plugin to dont have to reinstall 5 or 6 simple plugins like warp or sethome to play with friends
     
  4. Offline

    timtower Administrator Administrator Moderator

    @kapseljava You can only have 1 class extending JavaPlugin
     
  5. gotta check that solution

    edit:
    I have deleted the "extend JavaPlugin" commands class but now the getDataFolder() is undefined. What should I do?
    (btw im quite new to java)
     
  6. @kapseljava

    What you basically need to do is combine the main class of every plugin (the one that extends JavaPlugin) into a single class (that should also extend JavaPlugin). And I don't think it's a great idea to try this kind of stuff without knowing java (and doing this kind of stuff at all is also questionable).
     
  7. alright, i know what to do, thanks for help
     
Thread Status:
Not open for further replies.

Share This Page