SavageFactions 1.0.21-BETA-3
Tweaked fly disabler, hitting mobs wont disable it. Fly bypass permisssions logic redone issues with safezone fly and warzone fly fixed Fixed click to claim in f map Changed tooltips ot one line in map because of heavy load in areas with lots of claims option to disable banners Kicking throwing error cause of typo in lang file. Tnt Bank limit added.
This commit is contained in:
@@ -30,6 +30,10 @@ public class CmdBanner extends FCommand {
|
||||
|
||||
@Override
|
||||
public void perform() {
|
||||
if (!P.p.getConfig().getBoolean("fbanners.Enabled")) {
|
||||
|
||||
return;
|
||||
}
|
||||
if (!fme.hasMoney(P.p.getConfig().getInt("fbanners.Banner-Cost", 5000))) {
|
||||
msg(TL.COMMAND_BANNER_NOTENOUGHMONEY);
|
||||
return;
|
||||
@@ -42,7 +46,7 @@ public class CmdBanner extends FCommand {
|
||||
|
||||
public boolean hasMoney(FPlayer fme, int amt) {
|
||||
Economy econ = P.p.getEcon();
|
||||
if (econ.getBalance((Player) fme.getPlayer()) >= amt) {
|
||||
if (econ.getBalance(fme.getPlayer()) >= amt) {
|
||||
return true;
|
||||
} else {
|
||||
fme.msg(TL.COMMAND_BANNER_NOTENOUGHMONEY);
|
||||
|
||||
Reference in New Issue
Block a user