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

    Mr_Squidels

    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

    Commander9292

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

    Mr_Squidels

    Sorry for the late reply! That's only part of it though, there is much more rollback stuff in other classes.
    Code:
    package com.Squidels.SkyWars.games;
     
    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) {
            this.world = 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() {
            return this.world;
        }
       
        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