[Version 0.7.6.3]
- Fixed issue with displaying iConomy prices - iConomy is now hooked on "sg reload" if not already hooked and enabled - iConomy is now unhooked on "sg reload" if hooked and disabled
This commit is contained in:
parent
5046af37a0
commit
7655989ddc
4
README
4
README
@ -204,6 +204,10 @@ createConflict=Gate conflicts with existing gate
|
|||||||
=============
|
=============
|
||||||
Changes
|
Changes
|
||||||
=============
|
=============
|
||||||
|
[Version 0.7.6.3]
|
||||||
|
- Fixed issue with displaying iConomy prices
|
||||||
|
- iConomy is now hooked on "sg reload" if not already hooked and enabled
|
||||||
|
- iConomy is now unhooked on "sg reload" if hooked and disabled
|
||||||
[Version 0.7.6.2]
|
[Version 0.7.6.2]
|
||||||
- Button now activates if gate is opened, allowing redstone interaction
|
- Button now activates if gate is opened, allowing redstone interaction
|
||||||
- Fixed issue with sign line lengths. All sign text should now fit with color codes.
|
- Fixed issue with sign line lengths. All sign text should now fit with color codes.
|
||||||
|
@ -613,7 +613,7 @@ public class Stargate extends JavaPlugin {
|
|||||||
public static String replaceVars(String format, String[] search, String[] replace) {
|
public static String replaceVars(String format, String[] search, String[] replace) {
|
||||||
if (search.length != replace.length) return "";
|
if (search.length != replace.length) return "";
|
||||||
for (int i = 0; i < search.length; i++) {
|
for (int i = 0; i < search.length; i++) {
|
||||||
format = format.replaceAll(search[i], replace[i]);
|
format = format.replace(search[i], replace[i]);
|
||||||
}
|
}
|
||||||
return format;
|
return format;
|
||||||
}
|
}
|
||||||
@ -1224,6 +1224,21 @@ public class Stargate extends JavaPlugin {
|
|||||||
reloadGates();
|
reloadGates();
|
||||||
lang.setLang(langName);
|
lang.setLang(langName);
|
||||||
lang.reload();
|
lang.reload();
|
||||||
|
|
||||||
|
// Load iConomy support if enabled/clear if disabled
|
||||||
|
if (iConomyHandler.useiConomy && iConomyHandler.register == null && iConomyHandler.economy == null) {
|
||||||
|
if (iConomyHandler.setupeConomy(pm)) {
|
||||||
|
if (iConomyHandler.register != null)
|
||||||
|
log.info("[Stargate] Register v" + iConomyHandler.register.getDescription().getVersion() + " found");
|
||||||
|
if (iConomyHandler.economy != null)
|
||||||
|
log.info("[Stargate] Vault v" + iConomyHandler.vault.getDescription().getVersion() + " found");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!iConomyHandler.useiConomy) {
|
||||||
|
iConomyHandler.vault = null;
|
||||||
|
iConomyHandler.register = null;
|
||||||
|
iConomyHandler.economy = null;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -31,7 +31,6 @@ import com.nijikokun.register.payment.Methods;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
public class iConomyHandler {
|
public class iConomyHandler {
|
||||||
public static String pName = "Stargate";
|
|
||||||
public static boolean useiConomy = false;
|
public static boolean useiConomy = false;
|
||||||
public static Register register = null;
|
public static Register register = null;
|
||||||
public static Vault vault = null;
|
public static Vault vault = null;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: Stargate
|
name: Stargate
|
||||||
main: net.TheDgtl.Stargate.Stargate
|
main: net.TheDgtl.Stargate.Stargate
|
||||||
version: 0.7.6.2
|
version: 0.7.6.3
|
||||||
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