I'm tired of having to work around PEX's screwed up logic. As of this
update a warning is issued if PEX is found without the Permissions Bridge, I will no longer be offering support for PEX. [Version 0.7.5.5] - PEX is built of fail, if we have it, use bridge instead. [Version 0.7.5.4] - Fix issue with private gates for players with long names
This commit is contained in:
parent
f676e2520f
commit
f33586ced8
4
README
4
README
@ -201,6 +201,10 @@ createConflict=Gate conflicts with existing gate
|
|||||||
=============
|
=============
|
||||||
Changes
|
Changes
|
||||||
=============
|
=============
|
||||||
|
[Version 0.7.5.5]
|
||||||
|
- PEX is built of fail, if we have it, use bridge instead.
|
||||||
|
[Version 0.7.5.4]
|
||||||
|
- Fix issue with private gates for players with long names
|
||||||
[Version 0.7.5.3]
|
[Version 0.7.5.3]
|
||||||
- Added another check for Perm bridges.
|
- Added another check for Perm bridges.
|
||||||
[Version 0.7.5.2]
|
[Version 0.7.5.2]
|
||||||
|
@ -124,8 +124,12 @@ public class Stargate extends JavaPlugin {
|
|||||||
// Check to see if iConomy/Permissions is loaded yet.
|
// Check to see if iConomy/Permissions is loaded yet.
|
||||||
permissions = (Permissions)checkPlugin("Permissions");
|
permissions = (Permissions)checkPlugin("Permissions");
|
||||||
if (permissions != null && (permissions.getDescription().getVersion().equals("2.7.2") || permissions.getDescription().getVersion().equals("2.7.7"))) {
|
if (permissions != null && (permissions.getDescription().getVersion().equals("2.7.2") || permissions.getDescription().getVersion().equals("2.7.7"))) {
|
||||||
log.info("[Stargate] Permissions is 2.7.2/2.7.7, most likely a bridge, disabling.");
|
if (pm.getPlugin("PermissionsEx") != null) {
|
||||||
permissions = null;
|
log.info("[Stargate] Found PEX, main plugin is built of fail, use bridge");
|
||||||
|
} else {
|
||||||
|
log.info("[Stargate] Permissions is 2.7.2/2.7.7, most likely a bridge, disabling.");
|
||||||
|
permissions = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (iConomyHandler.setupeConomy(pm)) {
|
if (iConomyHandler.setupeConomy(pm)) {
|
||||||
if (iConomyHandler.register != null)
|
if (iConomyHandler.register != null)
|
||||||
@ -135,6 +139,10 @@ public class Stargate extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getServer().getScheduler().scheduleSyncRepeatingTask(this, new SGThread(), 0L, 100L);
|
getServer().getScheduler().scheduleSyncRepeatingTask(this, new SGThread(), 0L, 100L);
|
||||||
|
|
||||||
|
if (pm.getPlugin("PermissionsEx") != null && pm.getPlugin("Permissions") == null) {
|
||||||
|
log.warning("[Stargate] Stargate is not guaranteed to work with PEX without the Permissions Bridge. Please do not request support unless you switch to a real Permissions handler.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void loadConfig() {
|
public void loadConfig() {
|
||||||
@ -362,7 +370,9 @@ public class Stargate extends JavaPlugin {
|
|||||||
// Can access this network
|
// Can access this network
|
||||||
if (hasPerm(player, "stargate.network." + network)) return true;
|
if (hasPerm(player, "stargate.network." + network)) return true;
|
||||||
// Is able to create personal gates (Assumption is made they can also access them)
|
// Is able to create personal gates (Assumption is made they can also access them)
|
||||||
if (network.equals(player.getName()) && hasPerm(player, "stargate.create.personal")) return true;
|
String playerName = player.getName();
|
||||||
|
if (playerName.length() > 11) playerName = playerName.substring(0, 11);
|
||||||
|
if (network.equals(playerName) && hasPerm(player, "stargate.create.personal")) return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1068,7 +1078,17 @@ public class Stargate extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
if (permissions == null) {
|
if (permissions == null) {
|
||||||
PluginDescriptionFile desc = event.getPlugin().getDescription();
|
PluginDescriptionFile desc = event.getPlugin().getDescription();
|
||||||
if (desc.getName().equalsIgnoreCase("Permissions") && !desc.getVersion().equals("2.7.2") && !desc.getVersion().equals("2.7.7")) {
|
if (desc.getName().equalsIgnoreCase("Permissions")) {
|
||||||
|
|
||||||
|
if (pm.getPlugin("PermissionsEx") == null) {
|
||||||
|
if (desc.getVersion().equals("2.7.2") || desc.getVersion().equals("2.7.7")) {
|
||||||
|
log.info("[Stargate] Permissions is 2.7.2/2.7.7, most likely a bridge, disabling.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
log.info("[Stargate] Found PEX. Main plugin is built of fail. Use bridge instead");
|
||||||
|
}
|
||||||
|
|
||||||
permissions = (Permissions)checkPlugin(event.getPlugin());
|
permissions = (Permissions)checkPlugin(event.getPlugin());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: Stargate
|
name: Stargate
|
||||||
main: net.TheDgtl.Stargate.Stargate
|
main: net.TheDgtl.Stargate.Stargate
|
||||||
version: 0.7.5.3
|
version: 0.7.5.5
|
||||||
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