mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 20:12:54 +00:00
Removed duplicated message.
Command costs are double values now git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1532 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
6b65c5cc83
commit
a7217b5f03
2 changed files with 10 additions and 15 deletions
|
@ -101,16 +101,16 @@ public class Settings implements IConf
|
|||
return config.getBoolean("override-" + name.toLowerCase(), false);
|
||||
}
|
||||
|
||||
public int getCommandCost(IEssentialsCommand cmd)
|
||||
public double getCommandCost(IEssentialsCommand cmd)
|
||||
{
|
||||
return getCommandCost(cmd.getName());
|
||||
}
|
||||
|
||||
public int getCommandCost(String label)
|
||||
public double getCommandCost(String label)
|
||||
{
|
||||
int cost = config.getInt("command-costs." + label, 0);
|
||||
if (cost == 0)
|
||||
cost = config.getInt("cost-" + label, 0);
|
||||
double cost = config.getDouble("command-costs." + label, 0.0);
|
||||
if (cost == 0.0)
|
||||
cost = config.getDouble("cost-" + label, 0.0);
|
||||
return cost;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue