Jenkins Build Server: http://builds.rvs.kr/job/MCLibrary/
@Command(args = "test")
static class TestCommand {
@Command(args = "first")
public void execute(CommandSenderWrapper wrapper, CommandArguments args) {
wrapper.sendMessage("Example command 1");
}
@Command(args = "second")
public void execute(CommandSenderWrapper wrapper, CommandArguments args) {
wrapper.sendMessage("Example command 2");
}
@Command(args = "first b")
public void execute(CommandSenderWrapper wrapper, CommandArguments args) {
wrapper.sendMessage("Example command 3");
}
@Command(args = "second")
static class TestSubCommand {
@Command(args = "b")
public void execute(CommandSenderWrapper wrapper, CommandArguments args) {
wrapper.sendMessage("Example command 4");
}
}
}
> test first
Example command 1
> test second
Example command 2
> test first b
Example command 3
> test second b
Example command 4
new SimpleGUI(new GUIData(InventoryType.CHEST)
.title("MCLibrary GUI")
.item(13, new ItemStack(Material.CHEST)))
.handler(handlers -> handlers.add(
CancelHandler.TOP,
new ClickHandler().handler(13, event ->
GUI.sendMessage(event, "&aHello, MCLibrary"))
))
.open(player);
- DefaultInventoryProcessor: Default GUI
- PagingInventoryProcessor: Pageable GUI
ItemStack item = new ItemBuilder(Material.DIAMOND)
.display("A Diamond")
.lore(
"MCLibrary",
"ItemStack"
)
.build();
new ItemWrapper(item)
.setName("Modified Display")
.setLore(
"Modified",
"Lore"
);
- PlayerWalkEvent: Fires when player's x or y or z is changed
- Cooldown: Cooldown util
- Region: Simple region
- ClickWizard: Get player's clicked pos
- RegionWizard: Get defined region by the player