Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
* This file is part of ViaFabricPlus - https://github.com/ViaVersion/ViaFabricPlus
* Copyright (C) 2021-2026 the original authors
* - FlorianMichael/EnZaXD <[email protected]>
* - RK_01/RaphiMC
* Copyright (C) 2023-2026 ViaVersion and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package com.viaversion.viafabricplus.protocoltranslator.impl.command;

import com.viaversion.viafabricplus.screen.impl.SettingsScreen;
import com.viaversion.viaversion.api.command.ViaCommandSender;

public final class SettingsCommand implements VFPViaSubCommand {

@Override
public String name() {
return "settings";
}

@Override
public String description() {
return "Opens ViaFabricPlus's configuration/options screen";
}

@Override
public boolean execute(ViaCommandSender sender, String[] args) {
SettingsScreen.INSTANCE.open(null);
return true;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public ViaFabricPlusVLCommandHandler() {

this.registerSubCommand(new ListExtensionsCommand());
this.registerSubCommand(new SetTimeCommand());
this.registerSubCommand(new SettingsCommand());
}

public int execute(final CommandContext<FabricClientCommandSource> ctx) {
Expand Down