mirror of
https://github.com/Zrips/Jobs.git
synced 2024-12-01 23:13:48 +01:00
resetexploreregion is disable by default.
This commit is contained in:
parent
6f6d8a17d9
commit
383e1b1d61
@ -17,6 +17,11 @@ public class resetexploreregion implements Cmd {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!Jobs.getGCManager().resetExploringData) {
|
||||||
|
sender.sendMessage(Jobs.getLanguage().getMessage("command.resetexploreregion.output.notenabled"));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
final String worldName = args[1];
|
final String worldName = args[1];
|
||||||
if(!worldName.matches(REGEX)) {
|
if(!worldName.matches(REGEX)) {
|
||||||
sender.sendMessage(Jobs.getLanguage().getMessage("command.resetexploreregion.output.invalidname"));
|
sender.sendMessage(Jobs.getLanguage().getMessage("command.resetexploreregion.output.invalidname"));
|
||||||
|
@ -89,7 +89,7 @@ public class GeneralConfigManager {
|
|||||||
public boolean ignoreOreGenerators, useBlockProtection, enableSchedule, PayForRenaming, PayForEnchantingOnAnvil, PayForEachCraft, SignsEnabled,
|
public boolean ignoreOreGenerators, useBlockProtection, enableSchedule, PayForRenaming, PayForEnchantingOnAnvil, PayForEachCraft, SignsEnabled,
|
||||||
SignsColorizeJobName, ShowToplistInScoreboard, useGlobalTimer, useSilkTouchProtection, UseCustomNames,
|
SignsColorizeJobName, ShowToplistInScoreboard, useGlobalTimer, useSilkTouchProtection, UseCustomNames,
|
||||||
PreventSlimeSplit, PreventMagmaCubeSplit, PreventHopperFillUps, PreventBrewingStandFillUps,
|
PreventSlimeSplit, PreventMagmaCubeSplit, PreventHopperFillUps, PreventBrewingStandFillUps,
|
||||||
BrowseUseNewLook, payExploringWhenGliding = false, disablePaymentIfMaxLevelReached, disablePaymentIfRiding,
|
BrowseUseNewLook, payExploringWhenGliding = false, resetExploringData = false, disablePaymentIfMaxLevelReached, disablePaymentIfRiding,
|
||||||
boostedItemsInOffHand = false, boostedItemsInMainHand, boostedArmorItems/*, preventCropResizePayment*/, payItemDurabilityLoss,
|
boostedItemsInOffHand = false, boostedItemsInMainHand, boostedArmorItems/*, preventCropResizePayment*/, payItemDurabilityLoss,
|
||||||
applyToNegativeIncome, useMinimumOveralPayment, useMinimumOveralPoints, useMinimumOveralExp, useBreederFinder,
|
applyToNegativeIncome, useMinimumOveralPayment, useMinimumOveralPoints, useMinimumOveralExp, useBreederFinder,
|
||||||
CancelCowMilking, fixAtMaxLevel, TitleChangeChat, TitleChangeActionBar, LevelChangeChat,
|
CancelCowMilking, fixAtMaxLevel, TitleChangeChat, TitleChangeActionBar, LevelChangeChat,
|
||||||
@ -456,6 +456,9 @@ public class GeneralConfigManager {
|
|||||||
payExploringWhenGliding = c.get("enable-pay-for-exploring-when-gliding", false);
|
payExploringWhenGliding = c.get("enable-pay-for-exploring-when-gliding", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
c.addComment("enable-reset-exploring-data", "Option to allow reset exploring data.");
|
||||||
|
resetExploringData = c.get("enable-reset-exploring-data", false);
|
||||||
|
|
||||||
c.addComment("disablePaymentIfRiding", "Disables the payment when the player riding on an entity.");
|
c.addComment("disablePaymentIfRiding", "Disables the payment when the player riding on an entity.");
|
||||||
disablePaymentIfRiding = c.get("disablePaymentIfRiding", false);
|
disablePaymentIfRiding = c.get("disablePaymentIfRiding", false);
|
||||||
|
|
||||||
|
@ -209,11 +209,12 @@ public class LanguageManager {
|
|||||||
c.get("command.limit.output.reachedpointslimit2", "&eYou can check your limit with &2/jobs limit &ecommand");
|
c.get("command.limit.output.reachedpointslimit2", "&eYou can check your limit with &2/jobs limit &ecommand");
|
||||||
c.get("command.limit.output.notenabled", "&eMoney limit is not enabled");
|
c.get("command.limit.output.notenabled", "&eMoney limit is not enabled");
|
||||||
|
|
||||||
c.get("command.resetexploreregion.help.info", "Resets world data of Explorering");
|
c.get("command.resetexploreregion.help.info", "Resets region data of Explorering");
|
||||||
c.get("command.resetexploreregion.help.args", "world [worldname]");
|
c.get("command.resetexploreregion.help.args", "world [worldname]");
|
||||||
Jobs.getGCManager().getCommandArgs().put("resetlimit", Arrays.asList("world", "[worldname]"));
|
Jobs.getGCManager().getCommandArgs().put("resetlimit", Arrays.asList("world", "[worldname]"));
|
||||||
|
c.get("command.resetexploreregion.output.notenabled", "&eNot enabled.");
|
||||||
c.get("command.resetexploreregion.output.invalidname", "&eInvalid world name");
|
c.get("command.resetexploreregion.output.invalidname", "&eInvalid world name");
|
||||||
c.get("command.resetexploreregion.output.reseted", "&eWorld data has been reset for: &2%worldname%");
|
c.get("command.resetexploreregion.output.reseted", "&eExploring region data has been reset for: &2%worldname%");
|
||||||
|
|
||||||
c.get("command.resetlimit.help.info", "Resets a player's payment limits");
|
c.get("command.resetlimit.help.info", "Resets a player's payment limits");
|
||||||
c.get("command.resetlimit.help.args", "[playername]");
|
c.get("command.resetlimit.help.args", "[playername]");
|
||||||
|
@ -156,6 +156,7 @@ command:
|
|||||||
info: '指定したワールドの探索情報をリセットします'
|
info: '指定したワールドの探索情報をリセットします'
|
||||||
args: 'world [worldname]'
|
args: 'world [worldname]'
|
||||||
output:
|
output:
|
||||||
|
notenabled: '機能が無効化されています'
|
||||||
invalidname: 'ワールド名が不正です'
|
invalidname: 'ワールド名が不正です'
|
||||||
reseted: '&2%worldname% &eの探索情報をリセットしました'
|
reseted: '&2%worldname% &eの探索情報をリセットしました'
|
||||||
resetlimit:
|
resetlimit:
|
||||||
|
Loading…
Reference in New Issue
Block a user