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
|
Changes
|
||||||
=============
|
=============
|
||||||
|
[Version 0.30]
|
||||||
|
- Fixed a bug in iConomy checking.
|
||||||
[Version 0.29]
|
[Version 0.29]
|
||||||
- Added iConomy support. Currently only works with iConomy 4.4 until Niji fixes 4.5
|
- 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]
|
[Version 0.28]
|
||||||
- Fixed an issue with removing stargates during load
|
- Fixed an issue with removing stargates during load
|
||||||
[Version 0.27]
|
[Version 0.27]
|
||||||
|
@ -9,6 +9,7 @@ import java.util.Iterator;
|
|||||||
import java.util.Scanner;
|
import java.util.Scanner;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
@ -623,6 +624,13 @@ public class Portal {
|
|||||||
if ((gate == null) || (buttonVector == null)) {
|
if ((gate == null) || (buttonVector == null)) {
|
||||||
return null;
|
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;
|
Portal portal = null;
|
||||||
|
|
||||||
|
@ -371,12 +371,6 @@ public class Stargate extends JavaPlugin {
|
|||||||
// Initialize a stargate
|
// Initialize a stargate
|
||||||
if (hasPerm(player, "stargate.create", player.isOp()) ||
|
if (hasPerm(player, "stargate.create", player.isOp()) ||
|
||||||
hasPerm(player, "stargate.create.personal", false)) {
|
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));
|
SignPost sign = new SignPost(new Blox(block));
|
||||||
// Set sign text so we can create a gate with it.
|
// Set sign text so we can create a gate with it.
|
||||||
sign.setText(0, event.getLine(0));
|
sign.setText(0, event.getLine(0));
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: Stargate
|
name: Stargate
|
||||||
main: net.TheDgtl.Stargate.Stargate
|
main: net.TheDgtl.Stargate.Stargate
|
||||||
version: 0.29
|
version: 0.30
|
||||||
description: Stargate mod for Bukkit
|
description: Stargate mod for Bukkit
|
||||||
author: Drakia
|
author: Drakia
|
||||||
website: http://www.thedgtl.net
|
website: http://www.thedgtl.net
|
Loading…
Reference in New Issue
Block a user