Fixed a bug in iConomy checking.
This commit is contained in:
parent
2860b13412
commit
905cf2ac45
3
README
3
README
@ -90,8 +90,11 @@ not-enough-money-message - The message displayed if a player lacks money to do s
|
||||
=============
|
||||
Changes
|
||||
=============
|
||||
[Version 0.30]
|
||||
- Fixed a bug in iConomy checking.
|
||||
[Version 0.29]
|
||||
- Added iConomy support. Currently only works with iConomy 4.4 until Niji fixes 4.5
|
||||
- Thanks @Jonbas for the base iConomy implementation
|
||||
[Version 0.28]
|
||||
- Fixed an issue with removing stargates during load
|
||||
[Version 0.27]
|
||||
|
@ -9,6 +9,7 @@ import java.util.Iterator;
|
||||
import java.util.Scanner;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.World;
|
||||
@ -624,6 +625,13 @@ public class Portal {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (iConomyHandler.useiConomy() && !iConomyHandler.chargePlayer(player.getName(), iConomyHandler.createCost)) {
|
||||
if (!iConomyHandler.inFundMsg.isEmpty()) {
|
||||
player.sendMessage(ChatColor.RED + iConomyHandler.inFundMsg);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Portal portal = null;
|
||||
|
||||
Blox button = null;
|
||||
|
@ -371,12 +371,6 @@ public class Stargate extends JavaPlugin {
|
||||
// Initialize a stargate
|
||||
if (hasPerm(player, "stargate.create", player.isOp()) ||
|
||||
hasPerm(player, "stargate.create.personal", false)) {
|
||||
if (iConomyHandler.useiConomy() && !iConomyHandler.chargePlayer(player.getName(), iConomyHandler.createCost)) {
|
||||
if (!iConomyHandler.inFundMsg.isEmpty()) {
|
||||
player.sendMessage(ChatColor.RED + iConomyHandler.inFundMsg);
|
||||
}
|
||||
return;
|
||||
}
|
||||
SignPost sign = new SignPost(new Blox(block));
|
||||
// Set sign text so we can create a gate with it.
|
||||
sign.setText(0, event.getLine(0));
|
||||
|
@ -1,6 +1,6 @@
|
||||
name: Stargate
|
||||
main: net.TheDgtl.Stargate.Stargate
|
||||
version: 0.29
|
||||
version: 0.30
|
||||
description: Stargate mod for Bukkit
|
||||
author: Drakia
|
||||
website: http://www.thedgtl.net
|
Loading…
Reference in New Issue
Block a user