Disable Certain Potions

Discussion in 'Plugin Requests' started by mbogacz, May 30, 2016.

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

    I Al Istannen

    @mbogacz
    Do other plugins generate the folder?
     
  2. Offline

    MrGeneralQ

    I just did it again. Remove your old plugin. download it once more. And try again. Make sure you got the very lastest version I posted

    Recent downloadlink

    Perhaps @I Al Istannen or @timtower know what is wrong? You can decompile the plugin if you want. But it does work fine for me.
     
  3. Offline

    mbogacz

    I downloaded the most recent one, did not work
    Yes all my other plugins work perfectly
     
  4. Offline

    MrGeneralQ

    Give the console error please. Are the commands working? What version of minecraft are you using?
     
  5. Offline

    I Al Istannen

    @mbogacz
    Works for me too. As MrGeneralQ used the JavaPlugin saveDefaultConfig() method, I can't really think of why it shouldn't work.

    @MrGeneralQ
    You could try creating the file manually:
    Code:
    Files.createDirectories(getDataFolder().toPath());
    Files.createFile(getDataFolder().toPath().resolve("config.yml"));
    I just used Files and Paths, as I read that the error messages are a bit more specific.
     
  6. Offline

    mbogacz

    1.7.10

    the is no error it simply doesnt load at all, like the folder with the config does not load at all

    perhaps you could hop on the server and maybe help out?

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

    timtower Administrator Administrator Moderator

  8. Offline

    MrGeneralQ

    I could do that but it wouldn't help you out. Try testing the it. Does it give you a message? Also, try /potionreload (this will reload the config)
     
  9. Offline

    mbogacz

    http://pastebin.com/FXNaYPHr
    What do you mean by try testing the it? /potionreload does not work
    Maybe a screenshot of my plugins will help?
     

    Attached Files:

  10. Online

    timtower Administrator Administrator Moderator

    @mbogacz Please get the full log by copying the content of the latest.log.
    This is just 300 lines, that are word wrapped (new line after ... chars)
     
  11. Offline

    mbogacz

    http://pastebin.com/v7DAZ6jb
     
  12. Offline

    MrGeneralQ

    If you told me that before, it would save us a lot of time. I check my plugin.yml for syntax errors. One sec

    Code:
    name: potionrestrict
    version: 1.0
    main: me.mrgeneralq.potionrestrict.Main
    commands:
      potionname:
        usage: /potionname
        description: Get the potion name of the potion in your hand   
      potionreload:
        usage: /potionreload
        description: Reloads the potion config
    that is the plugin.yml. Did you change anything in it? This should work fine. @timtower & @I Al Istannen , you see anything wrong? I don't .
     
  13. Offline

    I Al Istannen

    @MrGeneralQ
    At the end of this line
    "description: Get the potion name of the potion in your hand "
    is a tab. Nasty one :p
     
  14. Offline

    MrGeneralQ

    Omg xD one sec :p

    @mbogacz

    Should work now :p thanks @I Al Istannen !

    Download

    Tell me if it works now. Thnx
     
  15. Offline

    mbogacz

    Almost everything is almost perfect, except the splash potions still work after restricting them. Is there a seperate way to restrict this type of potion?

    Nevermind I think I found my mistake, thank you so much!!!!!!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
  16. Offline

    I Al Istannen

    @MrGeneralQ
    No problem :)

    Glad it works now!

    Was hard enough :p
     
  17. Offline

    mbogacz

  18. Offline

    MrGeneralQ

  19. Offline

    mbogacz

    One glitch... the instant damage 1 splash potion isnt disabled after i disabled that certain potion...
     
  20. Offline

    MrGeneralQ

    Are you sure?
     
  21. Offline

    mbogacz

    Yes sir, when i do /potionname for this potion, it says "an internal error occurred while attempting to perform this command". This only occurs when i hold out the instant damage 1 potion
     
  22. Online

    timtower Administrator Administrator Moderator

Thread Status:
Not open for further replies.

Share This Page