I'm bad with cross class hashmaps I guess :(
This commit is contained in:
@@ -102,7 +102,9 @@ public class Listeners implements Listener {
|
|||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onClose(InventoryCloseEvent event) {
|
public void onClose(InventoryCloseEvent event) {
|
||||||
|
System.out.println(feedback.hashSize());
|
||||||
if(feedback.hasKey(event.getPlayer().getName())) {
|
if(feedback.hasKey(event.getPlayer().getName())) {
|
||||||
|
System.out.println("haskey :D");
|
||||||
HumanEntity he = event.getPlayer();
|
HumanEntity he = event.getPlayer();
|
||||||
if(he instanceof Player) {
|
if(he instanceof Player) {
|
||||||
Player player = (Player) he;
|
Player player = (Player) he;
|
||||||
|
|||||||
@@ -39,4 +39,9 @@ public class Feedback {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int hashSize() {
|
||||||
|
int size = inVault.size();
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ public class OwnVault {
|
|||||||
ChatColor.DARK_RED + "]" + ChatColor.WHITE + ": ";
|
ChatColor.DARK_RED + "]" + ChatColor.WHITE + ": ";
|
||||||
|
|
||||||
public boolean openOwnVault(CommandSender sender, String arg0) {
|
public boolean openOwnVault(CommandSender sender, String arg0) {
|
||||||
System.out.println("Passed to ownvault class.");
|
|
||||||
if(arg0.matches("^[0-9]{1,2}$")) {
|
if(arg0.matches("^[0-9]{1,2}$")) {
|
||||||
System.out.println("yay regex!");
|
System.out.println("yay regex!");
|
||||||
if(sender.hasPermission("playervaults.amount." + arg0)) {
|
if(sender.hasPermission("playervaults.amount." + arg0)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user