Need Quick Help Updating a Plugin

Discussion in 'Plugin Development' started by antondubek2, Mar 2, 2015.

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

    antondubek2

    I'm still relatively new to java and I am still playing around trying to get used to the ins and outs of it all so to speak. A friend sent me a source code to a plugin that due to the recent update to 1.8 has stopped working. I have fixed most of the deprecated imports and things but still am having an issue.

    'import com.sk89q.worldedit.LocalPlayer;' has been deprecated with the note online 'Not used anymore; the CUI begins the handshake.'

    I was wondering if someone could shine some light on this for me so I can fix these which currently are lined out in the code.

    Code:
    hasSession
    createEditSession
    EditSession

    another issue I am having is with the:

    Code:
    setClipboard
    getClipboard().paste
    both the setClipboard and .paste are underlined with the error ' The method setClipboard(ClipboardHolder) in the type LocalSession is not applicable for the arguments (CuboidClipboard) '

    Again any pointers or just simple answers would be great.

    Much appreciated
    Anton
     
  2. Offline

    Epicballzy

    Can you show us full code?
     
  3. Offline

    antondubek2

    http://pastebin.com/upQTQV8q It doesn't have the lined out parts in it though

    Anyone help me at all here?

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

Share This Page