Solved Replace Words

Discussion in 'Plugin Development' started by WeDaBeast, Jun 4, 2014.

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

    WeDaBeast

    solved
     
  2. Offline

    CoderMusgrove

    Your problem could be that you need to use event.setMessage(String);
    First, grab the string, set your replacements, then call event.setMessage(String);
     
  3. Offline

    teej107

    Thats ok. I don't understand your issue either. But from looking at your code, you need to do this. The replaceAll() method doesn't change the string, it return a new string.
    Edit: And do what CoderMusgrove suggested as well.
     
    CoderMusgrove likes this.
  4. Offline

    CoderMusgrove

    Oh yes, I didn't think about that. So you'll have to set it each time you use the replaceAll() method :p
     
  5. Offline

    XvBaseballkidvX

    [​IMG]
     
    augustt198, Garris0n and Jake0oo0 like this.
  6. Offline

    augustt198

    Why are you extending `Listener` from some random package...
    [​IMG]
     
    XvBaseballkidvX likes this.
  7. Offline

    Jake0oo0

    even worse.
    Code:
    import javax.xml.bind.Marshaller.Listener;
     
  8. Offline

    number1_Master



    ^^^

    You also don't have to add those spaces in the replaceAll calls ...
     
  9. Offline

    Garris0n

    You also shouldn't use replaceAll() unless you're using regex.
    And the class doesn't implement CommandExecutor, so that command won't work.

    [​IMG]
     
Thread Status:
Not open for further replies.

Share This Page