How to save an arena to a config.

Discussion in 'Plugin Development' started by Gamesareme, Aug 16, 2014.

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

    Gamesareme

    So I have been looking though some world edit code, and have found a few things I was doing wrong.
    So this is my code currently.
    Code:java
    1. Selection s = plugin.getWorldEdit().getSelection(player);
    2. Vector size = new Vector(s.getLength(), s.getHeight(), s.getWidth());
    3. Vector or = new Vector(player.getLocation().getX(), player.getLocation().getY(), player.getLocation().getZ());
    4. CuboidClipboard ccb = new CuboidClipboard(size, or);

    Before I was putting the wrong positions into the CuboidClipboard. Sadly my modifications did not work. So I no longer get the error in the terminal, but when I paste the the CuboidClipboard it does not work. So I believe that it is pasting fine. I think the error is that it is not saving my entire selection. The file size is only 1mb. Can any one see why the code I have above is not saving the entire selection?

    I have been looking at this link for a while now.
    https://github.com/sk89q/WorldEdit/...k89q/worldedit/command/ClipboardCommands.java
    It shows how world edit saves stuff, but I can't get it to work for my self. :'(
    Can some one possibly show me how they have done this?

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

Share This Page