Add option to turn off the teleportation bugfix

This commit is contained in:
Acrobot 2013-02-15 19:04:20 +01:00
parent 5264f5d2df
commit 951a065493
2 changed files with 10 additions and 1 deletions

View File

@ -181,7 +181,10 @@ public class ChestShop extends JavaPlugin {
registerEvent(new ShopRefundListener());
registerEvent(new ShortNameSaver());
registerEvent(new TeleportFixListener());
if (!Properties.TURN_OFF_CRAFTBUKKIT_TELEPORTATION_BUGFIX) {
registerEvent(new TeleportFixListener());
}
}
private void registerPreShopCreationEvents() {

View File

@ -152,4 +152,10 @@ public class Properties {
@ConfigurationComment("How much Heroes exp should people get for creating a ChestShop?")
public static double HEROES_EXP = 100;
public static byte NEWLINE_HEROES_EXP; ///////////////////////////////////////////////////
@ConfigurationComment("Do you want to turn off the CraftBukkit teleportation bugfix, which closes the inventory screen on teleport? " +
"(If you're using xAuth, you might want to turn it on) - only applies to CraftBukkit versions lower than 1.4.7-R1.1")
public static boolean TURN_OFF_CRAFTBUKKIT_TELEPORTATION_BUGFIX = false;
}