Add configurable vault sizes. Recoded PR 17 to optimize permission checks and put things in correct classes. Updated to version 3.4.0-SNAPSHOT

This commit is contained in:
drtshock
2013-10-11 15:44:31 -05:00
parent ab7b316c88
commit 82a35617bd
11 changed files with 97 additions and 49 deletions
@@ -0,0 +1,45 @@
package com.drtshock.playervaults.vaultmanagement;
/**
* A class that stores information about a vault viewing including the holder of
* the vault, and the vault number.
*/
public class VaultViewInfo {
String holder;
int number;
/**
* Make a VaultViewObject
*
* @param s The holder of the vault.
* @param i The vault number.
*/
public VaultViewInfo(String s, int i) {
this.holder = s;
this.number = i;
}
/**
* Get the holder of the vault.
*
* @return The holder of the vault.
*/
public String getHolder() {
return this.holder;
}
/**
* Get the vault number.
*
* @return The vault number.
*/
public int getNumber() {
return this.number;
}
@Override
public String toString() {
return this.holder + " " + this.number;
}
}