mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2025-01-22 21:42:44 +01:00
prefixed classes
This commit is contained in:
parent
177b72e437
commit
480a7008f4
@ -17,9 +17,9 @@
|
||||
*/
|
||||
package de.florianmichael.viafabricplus.definition.c0_30.command;
|
||||
|
||||
import de.florianmichael.viafabricplus.definition.c0_30.command.impl.Help;
|
||||
import de.florianmichael.viafabricplus.definition.c0_30.command.impl.ListExtensions;
|
||||
import de.florianmichael.viafabricplus.definition.c0_30.command.impl.SetTime;
|
||||
import de.florianmichael.viafabricplus.definition.c0_30.command.impl.HelpCommand;
|
||||
import de.florianmichael.viafabricplus.definition.c0_30.command.impl.ListExtensionsCommand;
|
||||
import de.florianmichael.viafabricplus.definition.c0_30.command.impl.SetTimeCommand;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@ -29,8 +29,8 @@ public class ClassicProtocolCommands {
|
||||
public final static List<ICommand> commands = new ArrayList<>();
|
||||
|
||||
public static void load() {
|
||||
commands.add(new Help());
|
||||
commands.add(new SetTime());
|
||||
commands.add(new ListExtensions());
|
||||
commands.add(new HelpCommand());
|
||||
commands.add(new SetTimeCommand());
|
||||
commands.add(new ListExtensionsCommand());
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ import de.florianmichael.viafabricplus.definition.c0_30.command.ClassicProtocolC
|
||||
import de.florianmichael.viafabricplus.definition.c0_30.command.ICommand;
|
||||
import net.minecraft.util.Formatting;
|
||||
|
||||
public class Help implements ICommand {
|
||||
public class HelpCommand implements ICommand {
|
||||
|
||||
@Override
|
||||
public String name() {
|
||||
@ -35,7 +35,7 @@ public class Help implements ICommand {
|
||||
|
||||
@Override
|
||||
public void execute(String[] args) {
|
||||
sendFeedback(Formatting.GREEN + " Loaded " + Formatting.GOLD + ClassicProtocolCommands.commands.size() + Formatting.GREEN + " commands");
|
||||
sendFeedback(Formatting.GREEN + " Loaded " + Formatting.GOLD + (ClassicProtocolCommands.commands.size() - 1) + Formatting.GREEN + " commands");
|
||||
|
||||
for (ICommand command : ClassicProtocolCommands.commands) {
|
||||
if (command.name().equals(name())) continue;
|
@ -24,7 +24,7 @@ import net.minecraft.util.Formatting;
|
||||
import net.raphimc.vialegacy.api.LegacyProtocolVersion;
|
||||
import net.raphimc.vialegacy.protocols.classic.protocolc0_28_30toc0_28_30cpe.storage.ExtensionProtocolMetadataStorage;
|
||||
|
||||
public class ListExtensions implements ICommand {
|
||||
public class ListExtensionsCommand implements ICommand {
|
||||
@Override
|
||||
public String name() {
|
||||
return "listextensions";
|
@ -23,7 +23,7 @@ import net.minecraft.util.Formatting;
|
||||
import net.raphimc.vialegacy.api.LegacyProtocolVersion;
|
||||
import net.raphimc.vialegacy.protocols.alpha.protocola1_0_17_1_0_17_4toa1_0_16_2.storage.TimeLockStorage;
|
||||
|
||||
public class SetTime implements ICommand {
|
||||
public class SetTimeCommand implements ICommand {
|
||||
@Override
|
||||
public String name() {
|
||||
return "settime";
|
Loading…
Reference in New Issue
Block a user