My plugin will not work.

Discussion in 'Plugin Development' started by smartguy27, Feb 1, 2014.

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

    smartguy27

    I'm making a plugin, but it will not work. I can't find out what's wrong with it, can you help please? Here are the pastebin links. Main.java: http://pastebin.com/UULB1yKq config.yml: http://pastebin.com/T7MyX5AD
    What is wrong with my plugin? It should cancel chat messages that contain "-> me]" and message the player to not send fake messages. It does neither one.
    Thanks in advance,
    smartguy27
     
  2. Offline

    morshu9001

    Not sure if it matters, but whenever I see example YAML code for a string list, there are 4 spaces before each entry, not 2 as you have it. The spacing matters I think. You could also set a breakpoint to check if getConfig().getStringList("msgprefixes") actually has anything in it.


    Code:
    msgprefixes:
        - -> me]
     
  3. Offline

    _Filip

    Put -> me] in quotes
     
  4. Offline

    smartguy27

    I'll try that. Even if it doesn't work, thank you for trying. :)

    "This post has been edited 407 times."

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
Thread Status:
Not open for further replies.

Share This Page