My plugin will not work.

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

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


    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. config.yml:
    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,
  2. Offline


    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.

        - -> me]
  3. Offline


    Put -> me] in quotes
  4. Offline


    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