Code Patterns

Copy-paste examples for common plugin tasks. Commands, events, ECS, GUI, and more.

← Back to Patterns
command

Map Command

/map command using AbstractCommand

Example Code

java
package dev.myplugin.example;

import com.hypixel.hytale.server.core.command.system.basecommands.AbstractCommandCollection;

public class ExampleCommand extends AbstractCommandCollection {

	public ExampleCommand() {
		super("map", "description");
		addSubCommand(new MapVoteCommand());
		addSubCommand(new FinishCurrentMapCommand());
	}


}