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:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user