summaryrefslogtreecommitdiffstats
path: root/EssentialsiConomyBridge5/src/com/iConomy/system/BankAccount.java
blob: c3d74d01d9ebc4e01f85f0584fb9ae05da17dc4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package com.iConomy.system;

import com.earth2me.essentials.api.Economy;


public class BankAccount
{
	private String BankName;
	private String BankId;
	private String AccountName;

	public BankAccount(String BankName, String BankId, String AccountName)
	{
		this.BankName = BankName;
		this.BankId = BankId;
		this.AccountName = AccountName;
	}

	public String getBankName()
	{
		return this.BankName;
	}

	public String getBankId()
	{
		return this.BankId;
	}

	public void getAccountName(String AccountName)
	{
		this.AccountName = AccountName;
	}

	public Holdings getHoldings()
	{
		return new Holdings(this.BankId, this.AccountName, true);
	}

	public void remove(String name)
	{
		if (Economy.accountExist(BankId))
		{
			Economy.removeAccount(BankId);
		}
		return;
	}
}