mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2025-02-22 02:41:29 +01:00
updated TODO, added new setting to control the command system
This commit is contained in:
parent
3ce8ede16c
commit
177b72e437
@ -14,6 +14,7 @@ If you just want to talk or need help with ViaFabricPlus feel free to join my
|
||||
- [x] ViaLegacy implementation
|
||||
- [x] ViaAprilFools implementation
|
||||
- [x] BetaCraft implementation for MP Pass
|
||||
- [x] Classic command system
|
||||
|
||||
## Clientside related Fixes
|
||||
- [x] Bounding boxes for all versions
|
||||
@ -41,8 +42,6 @@ If you just want to talk or need help with ViaFabricPlus feel free to join my
|
||||
- [ ] BetaCraft server list screen
|
||||
- [ ] More extensions for Classic Protocol Extensions protocol
|
||||
- [ ] Window click interactions in <= 1.16.5
|
||||
- [ ] Classic command system
|
||||
- [ ] More API for C-CPE
|
||||
|
||||
## Custom classic protocol extensions
|
||||
- **WeatherType** extension (version **1**)
|
||||
|
@ -20,6 +20,7 @@ package de.florianmichael.viafabricplus.provider;
|
||||
import com.viaversion.viaversion.api.connection.UserConnection;
|
||||
import de.florianmichael.viafabricplus.definition.c0_30.command.ClassicProtocolCommands;
|
||||
import de.florianmichael.viafabricplus.definition.c0_30.command.ICommand;
|
||||
import de.florianmichael.viafabricplus.settings.groups.GeneralSettings;
|
||||
import net.raphimc.vialegacy.ViaLegacy;
|
||||
import net.raphimc.vialegacy.protocols.classic.protocola1_0_15toc0_28_30.providers.ClassicCustomCommandProvider;
|
||||
|
||||
@ -30,6 +31,8 @@ public class ViaFabricPlusClassicCustomCommandProvider extends ClassicCustomComm
|
||||
|
||||
@Override
|
||||
public boolean handleChatMessage(UserConnection user, String message) {
|
||||
if (!GeneralSettings.getClassWrapper().allowClassicProtocolCommandUsage.getValue()) return super.handleChatMessage(user, message);
|
||||
|
||||
try {
|
||||
if (message.startsWith(ClassicProtocolCommands.COMMAND_PREFIX)) {
|
||||
message = message.substring(ClassicProtocolCommands.COMMAND_PREFIX.length());
|
||||
|
@ -26,6 +26,7 @@ public class GeneralSettings extends SettingGroup {
|
||||
|
||||
public final ModeSetting mainButtonOrientation = new ModeSetting(this, "Main button orientation", "Left; Top", "Right; Top", "Left; Bottom", "Right: Bottom");
|
||||
public final BooleanSetting removeNotAvailableItemsFromCreativeTab = new BooleanSetting(this, "Remove not available items from creative tab", true);
|
||||
public final BooleanSetting allowClassicProtocolCommandUsage = new BooleanSetting(this, "Allow classic protocol command usage", true);
|
||||
public final BooleanSetting automaticallyChangeValuesBasedOnTheCurrentVersion = new BooleanSetting(this, "Automatically change Settings based on the current version", true);
|
||||
|
||||
public GeneralSettings() {
|
||||
|
Loading…
Reference in New Issue
Block a user