From 4df570bdb0c23ce6e6572717ab0b3cbf192cfa15 Mon Sep 17 00:00:00 2001 From: Ben Woo <30431861+benwoo1110@users.noreply.github.com> Date: Thu, 4 Dec 2025 00:00:33 +0800 Subject: [PATCH] Add tip for last location configuration wiki link --- .../multiverse/inventories/commands/ToggleCommand.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/org/mvplugins/multiverse/inventories/commands/ToggleCommand.java b/src/main/java/org/mvplugins/multiverse/inventories/commands/ToggleCommand.java index a6e93e9e..9519550c 100644 --- a/src/main/java/org/mvplugins/multiverse/inventories/commands/ToggleCommand.java +++ b/src/main/java/org/mvplugins/multiverse/inventories/commands/ToggleCommand.java @@ -4,6 +4,7 @@ import org.mvplugins.multiverse.core.command.MVCommandIssuer; import org.mvplugins.multiverse.inventories.config.InventoriesConfig; import org.mvplugins.multiverse.inventories.share.Sharable; +import org.mvplugins.multiverse.inventories.share.Sharables; import org.mvplugins.multiverse.inventories.share.Shares; import org.mvplugins.multiverse.core.command.MVCommandManager; import org.mvplugins.multiverse.external.acf.commands.annotation.CommandAlias; @@ -54,6 +55,13 @@ void onToggleCommand( } else { optionalShares.add(sharable); issuer.sendInfo(MVInvi18n.TOGGLE_NOWUSINGOPTIONAL, replace("{share}").with(sharable.getNames()[0])); + + // special tip to our wiki page, hopefully this reduces the number of people asking the + // same old questions about last location config options on discord. + if (sharable == Sharables.LAST_LOCATION) { + issuer.sendInfo("For more information on configuring last location, please see: " + + "https://mvplugins.org/inventories/how-to/configure-last-location/"); + } } inventoriesConfig.setActiveOptionalShares(optionalShares); inventoriesConfig.save();