Skip to content

Commit 4df570b

Browse files
committed
Add tip for last location configuration wiki link
1 parent 66d766c commit 4df570b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/org/mvplugins/multiverse/inventories/commands/ToggleCommand.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import org.mvplugins.multiverse.core.command.MVCommandIssuer;
55
import org.mvplugins.multiverse.inventories.config.InventoriesConfig;
66
import org.mvplugins.multiverse.inventories.share.Sharable;
7+
import org.mvplugins.multiverse.inventories.share.Sharables;
78
import org.mvplugins.multiverse.inventories.share.Shares;
89
import org.mvplugins.multiverse.core.command.MVCommandManager;
910
import org.mvplugins.multiverse.external.acf.commands.annotation.CommandAlias;
@@ -54,6 +55,13 @@ void onToggleCommand(
5455
} else {
5556
optionalShares.add(sharable);
5657
issuer.sendInfo(MVInvi18n.TOGGLE_NOWUSINGOPTIONAL, replace("{share}").with(sharable.getNames()[0]));
58+
59+
// special tip to our wiki page, hopefully this reduces the number of people asking the
60+
// same old questions about last location config options on discord.
61+
if (sharable == Sharables.LAST_LOCATION) {
62+
issuer.sendInfo("For more information on configuring last location, please see: " +
63+
"https://mvplugins.org/inventories/how-to/configure-last-location/");
64+
}
5765
}
5866
inventoriesConfig.setActiveOptionalShares(optionalShares);
5967
inventoriesConfig.save();

0 commit comments

Comments
 (0)