mirror of
https://github.com/MilkBowl/VaultAPI.git
synced 2024-11-15 06:55:14 +01:00
1209 lines
76 KiB
HTML
1209 lines
76 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc -->
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title>Economy (Vault)</title>
|
|
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
|
<script type="text/javascript" src="../../../../script.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
try {
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="Economy (Vault)";
|
|
}
|
|
}
|
|
catch(err) {
|
|
}
|
|
//-->
|
|
var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":38,"i6":6,"i7":6,"i8":38,"i9":38,"i10":6,"i11":6,"i12":6,"i13":6,"i14":6,"i15":38,"i16":38,"i17":6,"i18":6,"i19":6,"i20":6,"i21":38,"i22":38,"i23":6,"i24":6,"i25":6,"i26":6,"i27":38,"i28":38,"i29":6,"i30":6,"i31":38,"i32":38,"i33":6,"i34":6,"i35":38,"i36":6,"i37":38,"i38":6,"i39":6,"i40":6,"i41":38,"i42":38};
|
|
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],32:["t6","Deprecated Methods"]};
|
|
var altColor = "altColor";
|
|
var rowColor = "rowColor";
|
|
var tableTab = "tableTab";
|
|
var activeTableTab = "activeTableTab";
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar.top">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a name="navbar.top.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="class-use/Economy.html">Use</a></li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../../index-all.html">Index</a></li>
|
|
<li><a href="../../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../../net/milkbowl/vault/economy/AbstractEconomy.html" title="class in net.milkbowl.vault.economy"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../../index.html?net/milkbowl/vault/economy/Economy.html" target="_top">Frames</a></li>
|
|
<li><a href="Economy.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip.navbar.top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="subTitle">net.milkbowl.vault.economy</div>
|
|
<h2 title="Interface Economy" class="title">Interface Economy</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<dl>
|
|
<dt>All Known Implementing Classes:</dt>
|
|
<dd><a href="../../../../net/milkbowl/vault/economy/AbstractEconomy.html" title="class in net.milkbowl.vault.economy">AbstractEconomy</a></dd>
|
|
</dl>
|
|
<hr>
|
|
<br>
|
|
<pre>public interface <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.27">Economy</a></pre>
|
|
<div class="block">The main economy API</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd"> </span></span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Method and Description</th>
|
|
</tr>
|
|
<tr id="i0" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#bankBalance-java.lang.String-">bankBalance</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code>
|
|
<div class="block">Returns the amount the bank has</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i1" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#bankDeposit-java.lang.String-double-">bankDeposit</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
double amount)</code>
|
|
<div class="block">Deposit an amount into a bank account - DO NOT USE NEGATIVE AMOUNTS</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i2" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#bankHas-java.lang.String-double-">bankHas</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
double amount)</code>
|
|
<div class="block">Returns true or false whether the bank has the amount specified - DO NOT USE NEGATIVE AMOUNTS</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i3" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#bankWithdraw-java.lang.String-double-">bankWithdraw</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
double amount)</code>
|
|
<div class="block">Withdraw an amount from a bank account - DO NOT USE NEGATIVE AMOUNTS</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i4" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#createBank-java.lang.String-org.bukkit.OfflinePlayer-">createBank</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
org.bukkit.OfflinePlayer player)</code>
|
|
<div class="block">Creates a bank account with the specified name and the player as the owner</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i5" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#createBank-java.lang.String-java.lang.String-">createBank</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> player)</code>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="block"><span class="deprecationComment">As of VaultAPI 1.4 use {<a href="../../../../net/milkbowl/vault/economy/Economy.html#createBank-java.lang.String-org.bukkit.OfflinePlayer-"><code>createBank(String, OfflinePlayer)</code></a> instead.</span></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i6" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#createPlayerAccount-org.bukkit.OfflinePlayer-">createPlayerAccount</a></span>(org.bukkit.OfflinePlayer player)</code>
|
|
<div class="block">Attempts to create a player account for the given player</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i7" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#createPlayerAccount-org.bukkit.OfflinePlayer-java.lang.String-">createPlayerAccount</a></span>(org.bukkit.OfflinePlayer player,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> worldName)</code>
|
|
<div class="block">Attempts to create a player account for the given player on the specified world
|
|
IMPLEMENTATION SPECIFIC - if an economy plugin does not support this then false will always be returned.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i8" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#createPlayerAccount-java.lang.String-">createPlayerAccount</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName)</code>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="block"><span class="deprecationComment">As of VaultAPI 1.4 use {<a href="../../../../net/milkbowl/vault/economy/Economy.html#createPlayerAccount-org.bukkit.OfflinePlayer-"><code>createPlayerAccount(OfflinePlayer)</code></a> instead.</span></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i9" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#createPlayerAccount-java.lang.String-java.lang.String-">createPlayerAccount</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> worldName)</code>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="block"><span class="deprecationComment">As of VaultAPI 1.4 use {<a href="../../../../net/milkbowl/vault/economy/Economy.html#createPlayerAccount-org.bukkit.OfflinePlayer-java.lang.String-"><code>createPlayerAccount(OfflinePlayer, String)</code></a> instead.</span></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i10" class="altColor">
|
|
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#currencyNamePlural--">currencyNamePlural</a></span>()</code>
|
|
<div class="block">Returns the name of the currency in plural form.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i11" class="rowColor">
|
|
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#currencyNameSingular--">currencyNameSingular</a></span>()</code>
|
|
<div class="block">Returns the name of the currency in singular form.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i12" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#deleteBank-java.lang.String-">deleteBank</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code>
|
|
<div class="block">Deletes a bank account with the specified name.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i13" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#depositPlayer-org.bukkit.OfflinePlayer-double-">depositPlayer</a></span>(org.bukkit.OfflinePlayer player,
|
|
double amount)</code>
|
|
<div class="block">Deposit an amount to a player - DO NOT USE NEGATIVE AMOUNTS</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i14" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#depositPlayer-org.bukkit.OfflinePlayer-java.lang.String-double-">depositPlayer</a></span>(org.bukkit.OfflinePlayer player,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> worldName,
|
|
double amount)</code>
|
|
<div class="block">Deposit an amount to a player - DO NOT USE NEGATIVE AMOUNTS
|
|
IMPLEMENTATION SPECIFIC - if an economy plugin does not support this the global balance will be returned.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i15" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#depositPlayer-java.lang.String-double-">depositPlayer</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName,
|
|
double amount)</code>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="block"><span class="deprecationComment">As of VaultAPI 1.4 use <a href="../../../../net/milkbowl/vault/economy/Economy.html#depositPlayer-org.bukkit.OfflinePlayer-double-"><code>depositPlayer(OfflinePlayer, double)</code></a> instead.</span></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i16" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#depositPlayer-java.lang.String-java.lang.String-double-">depositPlayer</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> worldName,
|
|
double amount)</code>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="block"><span class="deprecationComment">As of VaultAPI 1.4 use <a href="../../../../net/milkbowl/vault/economy/Economy.html#depositPlayer-org.bukkit.OfflinePlayer-java.lang.String-double-"><code>depositPlayer(OfflinePlayer, String, double)</code></a> instead.</span></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i17" class="rowColor">
|
|
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#format-double-">format</a></span>(double amount)</code>
|
|
<div class="block">Format amount into a human readable String This provides translation into
|
|
economy specific formatting to improve consistency between plugins.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i18" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#fractionalDigits--">fractionalDigits</a></span>()</code>
|
|
<div class="block">Some economy plugins round off after a certain number of digits.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i19" class="rowColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#getBalance-org.bukkit.OfflinePlayer-">getBalance</a></span>(org.bukkit.OfflinePlayer player)</code>
|
|
<div class="block">Gets balance of a player</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i20" class="altColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#getBalance-org.bukkit.OfflinePlayer-java.lang.String-">getBalance</a></span>(org.bukkit.OfflinePlayer player,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> world)</code>
|
|
<div class="block">Gets balance of a player on the specified world.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i21" class="rowColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#getBalance-java.lang.String-">getBalance</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName)</code>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="block"><span class="deprecationComment">As of VaultAPI 1.4 use <a href="../../../../net/milkbowl/vault/economy/Economy.html#getBalance-org.bukkit.OfflinePlayer-"><code>getBalance(OfflinePlayer)</code></a> instead.</span></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i22" class="altColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#getBalance-java.lang.String-java.lang.String-">getBalance</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> world)</code>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="block"><span class="deprecationComment">As of VaultAPI 1.4 use <a href="../../../../net/milkbowl/vault/economy/Economy.html#getBalance-org.bukkit.OfflinePlayer-java.lang.String-"><code>getBalance(OfflinePlayer, String)</code></a> instead.</span></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i23" class="rowColor">
|
|
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#getBanks--">getBanks</a></span>()</code>
|
|
<div class="block">Gets the list of banks</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i24" class="altColor">
|
|
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#getName--">getName</a></span>()</code>
|
|
<div class="block">Gets name of economy method</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i25" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#has-org.bukkit.OfflinePlayer-double-">has</a></span>(org.bukkit.OfflinePlayer player,
|
|
double amount)</code>
|
|
<div class="block">Checks if the player account has the amount - DO NOT USE NEGATIVE AMOUNTS</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i26" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#has-org.bukkit.OfflinePlayer-java.lang.String-double-">has</a></span>(org.bukkit.OfflinePlayer player,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> worldName,
|
|
double amount)</code>
|
|
<div class="block">Checks if the player account has the amount in a given world - DO NOT USE NEGATIVE AMOUNTS
|
|
IMPLEMENTATION SPECIFIC - if an economy plugin does not support this the global balance will be returned.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i27" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#has-java.lang.String-double-">has</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName,
|
|
double amount)</code>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="block"><span class="deprecationComment">As of VaultAPI 1.4 use <a href="../../../../net/milkbowl/vault/economy/Economy.html#has-org.bukkit.OfflinePlayer-double-"><code>has(OfflinePlayer, double)</code></a> instead.</span></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i28" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#has-java.lang.String-java.lang.String-double-">has</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> worldName,
|
|
double amount)</code>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="block"><span class="deprecationComment">As of VaultAPI 1.4 use @{link <a href="../../../../net/milkbowl/vault/economy/Economy.html#has-org.bukkit.OfflinePlayer-java.lang.String-double-"><code>has(OfflinePlayer, String, double)</code></a> instead.</span></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i29" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#hasAccount-org.bukkit.OfflinePlayer-">hasAccount</a></span>(org.bukkit.OfflinePlayer player)</code>
|
|
<div class="block">Checks if this player has an account on the server yet
|
|
This will always return true if the player has joined the server at least once
|
|
as all major economy plugins auto-generate a player account when the player joins the server</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i30" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#hasAccount-org.bukkit.OfflinePlayer-java.lang.String-">hasAccount</a></span>(org.bukkit.OfflinePlayer player,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> worldName)</code>
|
|
<div class="block">Checks if this player has an account on the server yet on the given world
|
|
This will always return true if the player has joined the server at least once
|
|
as all major economy plugins auto-generate a player account when the player joins the server</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i31" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#hasAccount-java.lang.String-">hasAccount</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName)</code>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="block"><span class="deprecationComment">As of VaultAPI 1.4 use <a href="../../../../net/milkbowl/vault/economy/Economy.html#hasAccount-org.bukkit.OfflinePlayer-"><code>hasAccount(OfflinePlayer)</code></a> instead.</span></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i32" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#hasAccount-java.lang.String-java.lang.String-">hasAccount</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> worldName)</code>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="block"><span class="deprecationComment">As of VaultAPI 1.4 use <a href="../../../../net/milkbowl/vault/economy/Economy.html#hasAccount-org.bukkit.OfflinePlayer-java.lang.String-"><code>hasAccount(OfflinePlayer, String)</code></a> instead.</span></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i33" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#hasBankSupport--">hasBankSupport</a></span>()</code>
|
|
<div class="block">Returns true if the given implementation supports banks.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i34" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#isBankMember-java.lang.String-org.bukkit.OfflinePlayer-">isBankMember</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
org.bukkit.OfflinePlayer player)</code>
|
|
<div class="block">Check if the player is a member of the bank account</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i35" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#isBankMember-java.lang.String-java.lang.String-">isBankMember</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName)</code>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="block"><span class="deprecationComment">As of VaultAPI 1.4 use {<a href="../../../../net/milkbowl/vault/economy/Economy.html#isBankMember-java.lang.String-org.bukkit.OfflinePlayer-"><code>isBankMember(String, OfflinePlayer)</code></a> instead.</span></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i36" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#isBankOwner-java.lang.String-org.bukkit.OfflinePlayer-">isBankOwner</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
org.bukkit.OfflinePlayer player)</code>
|
|
<div class="block">Check if a player is the owner of a bank account</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i37" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#isBankOwner-java.lang.String-java.lang.String-">isBankOwner</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName)</code>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="block"><span class="deprecationComment">As of VaultAPI 1.4 use {<a href="../../../../net/milkbowl/vault/economy/Economy.html#isBankOwner-java.lang.String-org.bukkit.OfflinePlayer-"><code>isBankOwner(String, OfflinePlayer)</code></a> instead.</span></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i38" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#isEnabled--">isEnabled</a></span>()</code>
|
|
<div class="block">Checks if economy method is enabled.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i39" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#withdrawPlayer-org.bukkit.OfflinePlayer-double-">withdrawPlayer</a></span>(org.bukkit.OfflinePlayer player,
|
|
double amount)</code>
|
|
<div class="block">Withdraw an amount from a player - DO NOT USE NEGATIVE AMOUNTS</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i40" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#withdrawPlayer-org.bukkit.OfflinePlayer-java.lang.String-double-">withdrawPlayer</a></span>(org.bukkit.OfflinePlayer player,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> worldName,
|
|
double amount)</code>
|
|
<div class="block">Withdraw an amount from a player on a given world - DO NOT USE NEGATIVE AMOUNTS
|
|
IMPLEMENTATION SPECIFIC - if an economy plugin does not support this the global balance will be returned.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i41" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#withdrawPlayer-java.lang.String-double-">withdrawPlayer</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName,
|
|
double amount)</code>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="block"><span class="deprecationComment">As of VaultAPI 1.4 use <a href="../../../../net/milkbowl/vault/economy/Economy.html#withdrawPlayer-org.bukkit.OfflinePlayer-double-"><code>withdrawPlayer(OfflinePlayer, double)</code></a> instead.</span></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i42" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/milkbowl/vault/economy/Economy.html#withdrawPlayer-java.lang.String-java.lang.String-double-">withdrawPlayer</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> worldName,
|
|
double amount)</code>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="block"><span class="deprecationComment">As of VaultAPI 1.4 use <a href="../../../../net/milkbowl/vault/economy/Economy.html#withdrawPlayer-org.bukkit.OfflinePlayer-java.lang.String-double-"><code>withdrawPlayer(OfflinePlayer, String, double)</code></a> instead.</span></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a name="isEnabled--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isEnabled</h4>
|
|
<pre>boolean <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.33">isEnabled</a>()</pre>
|
|
<div class="block">Checks if economy method is enabled.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Success or Failure</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getName--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getName</h4>
|
|
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.39">getName</a>()</pre>
|
|
<div class="block">Gets name of economy method</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Name of Economy Method</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="hasBankSupport--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hasBankSupport</h4>
|
|
<pre>boolean <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.45">hasBankSupport</a>()</pre>
|
|
<div class="block">Returns true if the given implementation supports banks.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>true if the implementation supports banks</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="fractionalDigits--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>fractionalDigits</h4>
|
|
<pre>int <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.53">fractionalDigits</a>()</pre>
|
|
<div class="block">Some economy plugins round off after a certain number of digits.
|
|
This function returns the number of digits the plugin keeps
|
|
or -1 if no rounding occurs.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>number of digits after the decimal point kept</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="format-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>format</h4>
|
|
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.62">format</a>(double amount)</pre>
|
|
<div class="block">Format amount into a human readable String This provides translation into
|
|
economy specific formatting to improve consistency between plugins.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>amount</code> - to format</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Human readable string describing amount</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="currencyNamePlural--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>currencyNamePlural</h4>
|
|
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.70">currencyNamePlural</a>()</pre>
|
|
<div class="block">Returns the name of the currency in plural form.
|
|
If the economy being used does not support currency names then an empty string will be returned.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>name of the currency (plural)</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="currencyNameSingular--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>currencyNameSingular</h4>
|
|
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.79">currencyNameSingular</a>()</pre>
|
|
<div class="block">Returns the name of the currency in singular form.
|
|
If the economy being used does not support currency names then an empty string will be returned.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>name of the currency (singular)</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="hasAccount-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hasAccount</h4>
|
|
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
|
|
boolean <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.86">hasAccount</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName)</pre>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">As of VaultAPI 1.4 use <a href="../../../../net/milkbowl/vault/economy/Economy.html#hasAccount-org.bukkit.OfflinePlayer-"><code>hasAccount(OfflinePlayer)</code></a> instead.</span></div>
|
|
</li>
|
|
</ul>
|
|
<a name="hasAccount-org.bukkit.OfflinePlayer-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hasAccount</h4>
|
|
<pre>boolean <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.96">hasAccount</a>(org.bukkit.OfflinePlayer player)</pre>
|
|
<div class="block">Checks if this player has an account on the server yet
|
|
This will always return true if the player has joined the server at least once
|
|
as all major economy plugins auto-generate a player account when the player joins the server</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>player</code> - to check</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>if the player has an account</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="hasAccount-java.lang.String-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hasAccount</h4>
|
|
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
|
|
boolean <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.102">hasAccount</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> worldName)</pre>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">As of VaultAPI 1.4 use <a href="../../../../net/milkbowl/vault/economy/Economy.html#hasAccount-org.bukkit.OfflinePlayer-java.lang.String-"><code>hasAccount(OfflinePlayer, String)</code></a> instead.</span></div>
|
|
</li>
|
|
</ul>
|
|
<a name="hasAccount-org.bukkit.OfflinePlayer-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hasAccount</h4>
|
|
<pre>boolean <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.113">hasAccount</a>(org.bukkit.OfflinePlayer player,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> worldName)</pre>
|
|
<div class="block">Checks if this player has an account on the server yet on the given world
|
|
This will always return true if the player has joined the server at least once
|
|
as all major economy plugins auto-generate a player account when the player joins the server</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>player</code> - to check in the world</dd>
|
|
<dd><code>worldName</code> - world-specific account</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>if the player has an account</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getBalance-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getBalance</h4>
|
|
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
|
|
double <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.119">getBalance</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName)</pre>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">As of VaultAPI 1.4 use <a href="../../../../net/milkbowl/vault/economy/Economy.html#getBalance-org.bukkit.OfflinePlayer-"><code>getBalance(OfflinePlayer)</code></a> instead.</span></div>
|
|
</li>
|
|
</ul>
|
|
<a name="getBalance-org.bukkit.OfflinePlayer-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getBalance</h4>
|
|
<pre>double <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.127">getBalance</a>(org.bukkit.OfflinePlayer player)</pre>
|
|
<div class="block">Gets balance of a player</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>player</code> - of the player</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Amount currently held in players account</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getBalance-java.lang.String-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getBalance</h4>
|
|
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
|
|
double <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.133">getBalance</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> world)</pre>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">As of VaultAPI 1.4 use <a href="../../../../net/milkbowl/vault/economy/Economy.html#getBalance-org.bukkit.OfflinePlayer-java.lang.String-"><code>getBalance(OfflinePlayer, String)</code></a> instead.</span></div>
|
|
</li>
|
|
</ul>
|
|
<a name="getBalance-org.bukkit.OfflinePlayer-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getBalance</h4>
|
|
<pre>double <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.142">getBalance</a>(org.bukkit.OfflinePlayer player,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> world)</pre>
|
|
<div class="block">Gets balance of a player on the specified world.
|
|
IMPLEMENTATION SPECIFIC - if an economy plugin does not support this the global balance will be returned.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>player</code> - to check</dd>
|
|
<dd><code>world</code> - name of the world</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Amount currently held in players account</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="has-java.lang.String-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>has</h4>
|
|
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
|
|
boolean <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.148">has</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName,
|
|
double amount)</pre>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">As of VaultAPI 1.4 use <a href="../../../../net/milkbowl/vault/economy/Economy.html#has-org.bukkit.OfflinePlayer-double-"><code>has(OfflinePlayer, double)</code></a> instead.</span></div>
|
|
</li>
|
|
</ul>
|
|
<a name="has-org.bukkit.OfflinePlayer-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>has</h4>
|
|
<pre>boolean <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.157">has</a>(org.bukkit.OfflinePlayer player,
|
|
double amount)</pre>
|
|
<div class="block">Checks if the player account has the amount - DO NOT USE NEGATIVE AMOUNTS</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>player</code> - to check</dd>
|
|
<dd><code>amount</code> - to check for</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>True if <b>player</b> has <b>amount</b>, False else wise</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="has-java.lang.String-java.lang.String-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>has</h4>
|
|
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
|
|
boolean <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.163">has</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> worldName,
|
|
double amount)</pre>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">As of VaultAPI 1.4 use @{link <a href="../../../../net/milkbowl/vault/economy/Economy.html#has-org.bukkit.OfflinePlayer-java.lang.String-double-"><code>has(OfflinePlayer, String, double)</code></a> instead.</span></div>
|
|
</li>
|
|
</ul>
|
|
<a name="has-org.bukkit.OfflinePlayer-java.lang.String-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>has</h4>
|
|
<pre>boolean <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.174">has</a>(org.bukkit.OfflinePlayer player,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> worldName,
|
|
double amount)</pre>
|
|
<div class="block">Checks if the player account has the amount in a given world - DO NOT USE NEGATIVE AMOUNTS
|
|
IMPLEMENTATION SPECIFIC - if an economy plugin does not support this the global balance will be returned.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>player</code> - to check</dd>
|
|
<dd><code>worldName</code> - to check with</dd>
|
|
<dd><code>amount</code> - to check for</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>True if <b>player</b> has <b>amount</b>, False else wise</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="withdrawPlayer-java.lang.String-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>withdrawPlayer</h4>
|
|
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
|
|
<a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.180">withdrawPlayer</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName,
|
|
double amount)</pre>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">As of VaultAPI 1.4 use <a href="../../../../net/milkbowl/vault/economy/Economy.html#withdrawPlayer-org.bukkit.OfflinePlayer-double-"><code>withdrawPlayer(OfflinePlayer, double)</code></a> instead.</span></div>
|
|
</li>
|
|
</ul>
|
|
<a name="withdrawPlayer-org.bukkit.OfflinePlayer-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>withdrawPlayer</h4>
|
|
<pre><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.189">withdrawPlayer</a>(org.bukkit.OfflinePlayer player,
|
|
double amount)</pre>
|
|
<div class="block">Withdraw an amount from a player - DO NOT USE NEGATIVE AMOUNTS</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>player</code> - to withdraw from</dd>
|
|
<dd><code>amount</code> - Amount to withdraw</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Detailed response of transaction</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="withdrawPlayer-java.lang.String-java.lang.String-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>withdrawPlayer</h4>
|
|
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
|
|
<a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.195">withdrawPlayer</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> worldName,
|
|
double amount)</pre>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">As of VaultAPI 1.4 use <a href="../../../../net/milkbowl/vault/economy/Economy.html#withdrawPlayer-org.bukkit.OfflinePlayer-java.lang.String-double-"><code>withdrawPlayer(OfflinePlayer, String, double)</code></a> instead.</span></div>
|
|
</li>
|
|
</ul>
|
|
<a name="withdrawPlayer-org.bukkit.OfflinePlayer-java.lang.String-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>withdrawPlayer</h4>
|
|
<pre><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.205">withdrawPlayer</a>(org.bukkit.OfflinePlayer player,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> worldName,
|
|
double amount)</pre>
|
|
<div class="block">Withdraw an amount from a player on a given world - DO NOT USE NEGATIVE AMOUNTS
|
|
IMPLEMENTATION SPECIFIC - if an economy plugin does not support this the global balance will be returned.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>player</code> - to withdraw from</dd>
|
|
<dd><code>worldName</code> - - name of the world</dd>
|
|
<dd><code>amount</code> - Amount to withdraw</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Detailed response of transaction</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="depositPlayer-java.lang.String-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>depositPlayer</h4>
|
|
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
|
|
<a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.211">depositPlayer</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName,
|
|
double amount)</pre>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">As of VaultAPI 1.4 use <a href="../../../../net/milkbowl/vault/economy/Economy.html#depositPlayer-org.bukkit.OfflinePlayer-double-"><code>depositPlayer(OfflinePlayer, double)</code></a> instead.</span></div>
|
|
</li>
|
|
</ul>
|
|
<a name="depositPlayer-org.bukkit.OfflinePlayer-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>depositPlayer</h4>
|
|
<pre><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.220">depositPlayer</a>(org.bukkit.OfflinePlayer player,
|
|
double amount)</pre>
|
|
<div class="block">Deposit an amount to a player - DO NOT USE NEGATIVE AMOUNTS</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>player</code> - to deposit to</dd>
|
|
<dd><code>amount</code> - Amount to deposit</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Detailed response of transaction</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="depositPlayer-java.lang.String-java.lang.String-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>depositPlayer</h4>
|
|
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
|
|
<a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.226">depositPlayer</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> worldName,
|
|
double amount)</pre>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">As of VaultAPI 1.4 use <a href="../../../../net/milkbowl/vault/economy/Economy.html#depositPlayer-org.bukkit.OfflinePlayer-java.lang.String-double-"><code>depositPlayer(OfflinePlayer, String, double)</code></a> instead.</span></div>
|
|
</li>
|
|
</ul>
|
|
<a name="depositPlayer-org.bukkit.OfflinePlayer-java.lang.String-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>depositPlayer</h4>
|
|
<pre><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.237">depositPlayer</a>(org.bukkit.OfflinePlayer player,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> worldName,
|
|
double amount)</pre>
|
|
<div class="block">Deposit an amount to a player - DO NOT USE NEGATIVE AMOUNTS
|
|
IMPLEMENTATION SPECIFIC - if an economy plugin does not support this the global balance will be returned.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>player</code> - to deposit to</dd>
|
|
<dd><code>worldName</code> - name of the world</dd>
|
|
<dd><code>amount</code> - Amount to deposit</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Detailed response of transaction</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="createBank-java.lang.String-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createBank</h4>
|
|
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
|
|
<a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.243">createBank</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> player)</pre>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">As of VaultAPI 1.4 use {<a href="../../../../net/milkbowl/vault/economy/Economy.html#createBank-java.lang.String-org.bukkit.OfflinePlayer-"><code>createBank(String, OfflinePlayer)</code></a> instead.</span></div>
|
|
</li>
|
|
</ul>
|
|
<a name="createBank-java.lang.String-org.bukkit.OfflinePlayer-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createBank</h4>
|
|
<pre><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.251">createBank</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
org.bukkit.OfflinePlayer player)</pre>
|
|
<div class="block">Creates a bank account with the specified name and the player as the owner</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>name</code> - of account</dd>
|
|
<dd><code>player</code> - the account should be linked to</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>EconomyResponse Object</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="deleteBank-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>deleteBank</h4>
|
|
<pre><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.258">deleteBank</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
|
|
<div class="block">Deletes a bank account with the specified name.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>name</code> - of the back to delete</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>if the operation completed successfully</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="bankBalance-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>bankBalance</h4>
|
|
<pre><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.265">bankBalance</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
|
|
<div class="block">Returns the amount the bank has</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>name</code> - of the account</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>EconomyResponse Object</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="bankHas-java.lang.String-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>bankHas</h4>
|
|
<pre><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.274">bankHas</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
double amount)</pre>
|
|
<div class="block">Returns true or false whether the bank has the amount specified - DO NOT USE NEGATIVE AMOUNTS</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>name</code> - of the account</dd>
|
|
<dd><code>amount</code> - to check for</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>EconomyResponse Object</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="bankWithdraw-java.lang.String-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>bankWithdraw</h4>
|
|
<pre><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.283">bankWithdraw</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
double amount)</pre>
|
|
<div class="block">Withdraw an amount from a bank account - DO NOT USE NEGATIVE AMOUNTS</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>name</code> - of the account</dd>
|
|
<dd><code>amount</code> - to withdraw</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>EconomyResponse Object</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="bankDeposit-java.lang.String-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>bankDeposit</h4>
|
|
<pre><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.292">bankDeposit</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
double amount)</pre>
|
|
<div class="block">Deposit an amount into a bank account - DO NOT USE NEGATIVE AMOUNTS</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>name</code> - of the account</dd>
|
|
<dd><code>amount</code> - to deposit</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>EconomyResponse Object</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="isBankOwner-java.lang.String-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isBankOwner</h4>
|
|
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
|
|
<a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.298">isBankOwner</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName)</pre>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">As of VaultAPI 1.4 use {<a href="../../../../net/milkbowl/vault/economy/Economy.html#isBankOwner-java.lang.String-org.bukkit.OfflinePlayer-"><code>isBankOwner(String, OfflinePlayer)</code></a> instead.</span></div>
|
|
</li>
|
|
</ul>
|
|
<a name="isBankOwner-java.lang.String-org.bukkit.OfflinePlayer-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isBankOwner</h4>
|
|
<pre><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.307">isBankOwner</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
org.bukkit.OfflinePlayer player)</pre>
|
|
<div class="block">Check if a player is the owner of a bank account</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>name</code> - of the account</dd>
|
|
<dd><code>player</code> - to check for ownership</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>EconomyResponse Object</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="isBankMember-java.lang.String-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isBankMember</h4>
|
|
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
|
|
<a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.313">isBankMember</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName)</pre>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">As of VaultAPI 1.4 use {<a href="../../../../net/milkbowl/vault/economy/Economy.html#isBankMember-java.lang.String-org.bukkit.OfflinePlayer-"><code>isBankMember(String, OfflinePlayer)</code></a> instead.</span></div>
|
|
</li>
|
|
</ul>
|
|
<a name="isBankMember-java.lang.String-org.bukkit.OfflinePlayer-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isBankMember</h4>
|
|
<pre><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy">EconomyResponse</a> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.322">isBankMember</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
org.bukkit.OfflinePlayer player)</pre>
|
|
<div class="block">Check if the player is a member of the bank account</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>name</code> - of the account</dd>
|
|
<dd><code>player</code> - to check membership</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>EconomyResponse Object</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getBanks--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getBanks</h4>
|
|
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.328">getBanks</a>()</pre>
|
|
<div class="block">Gets the list of banks</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the List of Banks</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="createPlayerAccount-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createPlayerAccount</h4>
|
|
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
|
|
boolean <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.334">createPlayerAccount</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName)</pre>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">As of VaultAPI 1.4 use {<a href="../../../../net/milkbowl/vault/economy/Economy.html#createPlayerAccount-org.bukkit.OfflinePlayer-"><code>createPlayerAccount(OfflinePlayer)</code></a> instead.</span></div>
|
|
</li>
|
|
</ul>
|
|
<a name="createPlayerAccount-org.bukkit.OfflinePlayer-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createPlayerAccount</h4>
|
|
<pre>boolean <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.341">createPlayerAccount</a>(org.bukkit.OfflinePlayer player)</pre>
|
|
<div class="block">Attempts to create a player account for the given player</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>player</code> - OfflinePlayer</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>if the account creation was successful</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="createPlayerAccount-java.lang.String-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createPlayerAccount</h4>
|
|
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
|
|
boolean <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.347">createPlayerAccount</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> playerName,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> worldName)</pre>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">As of VaultAPI 1.4 use {<a href="../../../../net/milkbowl/vault/economy/Economy.html#createPlayerAccount-org.bukkit.OfflinePlayer-java.lang.String-"><code>createPlayerAccount(OfflinePlayer, String)</code></a> instead.</span></div>
|
|
</li>
|
|
</ul>
|
|
<a name="createPlayerAccount-org.bukkit.OfflinePlayer-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>createPlayerAccount</h4>
|
|
<pre>boolean <a href="../../../../src-html/net/milkbowl/vault/economy/Economy.html#line.356">createPlayerAccount</a>(org.bukkit.OfflinePlayer player,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> worldName)</pre>
|
|
<div class="block">Attempts to create a player account for the given player on the specified world
|
|
IMPLEMENTATION SPECIFIC - if an economy plugin does not support this then false will always be returned.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>player</code> - OfflinePlayer</dd>
|
|
<dd><code>worldName</code> - String name of the world</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>if the account creation was successful</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a name="navbar.bottom">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a name="navbar.bottom.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="class-use/Economy.html">Use</a></li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../../index-all.html">Index</a></li>
|
|
<li><a href="../../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../../net/milkbowl/vault/economy/AbstractEconomy.html" title="class in net.milkbowl.vault.economy"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../../net/milkbowl/vault/economy/EconomyResponse.html" title="class in net.milkbowl.vault.economy"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../../index.html?net/milkbowl/vault/economy/Economy.html" target="_top">Frames</a></li>
|
|
<li><a href="Economy.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip.navbar.bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
<p class="legalCopy"><small><b>Milkbowl, 2020</b></small></p>
|
|
</body>
|
|
</html>
|