1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 14:05:25 +01:00

resetexploreregion is disable by default.

This commit is contained in:
chacho4 2022-02-15 15:40:30 +09:00
parent 6f6d8a17d9
commit 383e1b1d61
4 changed files with 13 additions and 3 deletions

View File

@ -17,6 +17,11 @@ public class resetexploreregion implements Cmd {
return true;
}
if (!Jobs.getGCManager().resetExploringData) {
sender.sendMessage(Jobs.getLanguage().getMessage("command.resetexploreregion.output.notenabled"));
return true;
}
final String worldName = args[1];
if(!worldName.matches(REGEX)) {
sender.sendMessage(Jobs.getLanguage().getMessage("command.resetexploreregion.output.invalidname"));

View File

@ -89,7 +89,7 @@ public class GeneralConfigManager {
public boolean ignoreOreGenerators, useBlockProtection, enableSchedule, PayForRenaming, PayForEnchantingOnAnvil, PayForEachCraft, SignsEnabled,
SignsColorizeJobName, ShowToplistInScoreboard, useGlobalTimer, useSilkTouchProtection, UseCustomNames,
PreventSlimeSplit, PreventMagmaCubeSplit, PreventHopperFillUps, PreventBrewingStandFillUps,
BrowseUseNewLook, payExploringWhenGliding = false, disablePaymentIfMaxLevelReached, disablePaymentIfRiding,
BrowseUseNewLook, payExploringWhenGliding = false, resetExploringData = false, disablePaymentIfMaxLevelReached, disablePaymentIfRiding,
boostedItemsInOffHand = false, boostedItemsInMainHand, boostedArmorItems/*, preventCropResizePayment*/, payItemDurabilityLoss,
applyToNegativeIncome, useMinimumOveralPayment, useMinimumOveralPoints, useMinimumOveralExp, useBreederFinder,
CancelCowMilking, fixAtMaxLevel, TitleChangeChat, TitleChangeActionBar, LevelChangeChat,
@ -456,6 +456,9 @@ public class GeneralConfigManager {
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.");
disablePaymentIfRiding = c.get("disablePaymentIfRiding", false);

View File

@ -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.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]");
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.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.args", "[playername]");

View File

@ -156,6 +156,7 @@ command:
info: '指定したワールドの探索情報をリセットします'
args: 'world [worldname]'
output:
notenabled: '機能が無効化されています'
invalidname: 'ワールド名が不正です'
reseted: '&2%worldname% &eの探索情報をリセットしました'
resetlimit: