Saving Chest Data in World Edit Selection.

Discussion in 'Plugin Development' started by Mr_Squidels, Jan 8, 2014.

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


    Hello! I am in need of help on how to save chest data in a world edit selection for my plugin. I have created a rollback area listener, that works. It's just I don't know how to save whats in the chest into maybe a .yml or something? Thanks!
  2. Offline


    Mr_Squidels Show us the code you have so far, then we can help with it.
  3. Offline


    Sorry for the late reply! That's only part of it though, there is much more rollback stuff in other classes.
    public class Rollback {
        private String                world;
        private int                    previd;
        private int                    newid;
        private byte                prevdata;
        private byte                newdata;
        private int                    x;
        private int                    y;
        private int                    z;
        public Rollback(String world, int previd, byte prevdata, int x, int y, int z) {
   = world;
            this.previd = previd;
            this.prevdata = prevdata;
            this.newid = 0;
            this.newdata = 0;
            this.x = x;
            this.y = y;
            this.z = z;
        public String getWorld() {
        public byte getPrevdata() {
            return this.prevdata;
        public byte getNewdata() {
            return this.newdata;
        public int getPrevid() {
            return this.previd;
        public int getNewid() {
            return this.newid;
        public int getX() {
            return this.x;
        public int getY() {
            return this.y;
        public int getZ() {
            return this.z;
Thread Status:
Not open for further replies.

Share This Page