ConsoleCommandSender

Discussion in 'Plugin Development' started by lmc, Sep 28, 2011.

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

    lmc

    Yo..

    Ive come to upgrading buycraft to 1185, and ive realised that the Constructor for ConsoleCommandSender has now been set to protected, preventing me from being able to use the class as i used to. How is it now ment to be implemented?
     
  2. Offline

    tips48

    Its not...:D (wrong section)
     
  3. Offline

    lmc

    I just got told to post in here from another section ? :S:S
     
  4. Offline

    Shamebot

    It's the right section.

    Instantiating a new ConsoleCommandSender led to some bugs.
    You can get an instance of it with server.getConsoleSender().
     
  5. Offline

    tips48

    Sorry, thought this was in resources. Your right :)
     
  6. Offline

    lmc

    Thanks dude! Ill try it out!
     
  7. Offline

    lmc

    Ok this isnt working, getConsoleSender() dosent exist in 1185?
     
  8. Offline

    tips48

    It was added in like 1187 or something...
     
  9. Offline

    lmc

    Yea, its just me getting mixed up with the latest builds, sorted it now - thanks for the help anyway
     
    tips48 likes this.
Thread Status:
Not open for further replies.

Share This Page