Giter VIP home page Giter VIP logo

cocosmenu's Introduction

Maven:

<repository>
	<id>jitpack.io</id>
	<url>https://jitpack.io</url>
</repository>

<dependency>
	<groupId>com.github.zitreF</groupId>
	<artifactId>CocosMenu</artifactId>
	<version>2.6.1</version>
</dependency>

Gradle:

repositories {
	maven { url 'https://jitpack.io' }												     
}

dependencies {
    implementation 'com.github.zitreF:CocosMenu:2.6.1'
}

Example usage:

public class TestPlugin extends JavaPlugin {
    @Override
    public void onEnable() {
        new TestMenu();
    }

    @Command(name = "test", aliases = "tescik", permission = "test.admin", permissionMessage = "&cNie posiadasz permisji!")
    public class TestMenu extends Menu {

        public TestMenu() {
            super("test", 3);
            this.update();
        }

        @Override
        @Scheduled(async = true, delay = 20, repeat = 20)
        public void update() {
            GuiHelper.fillBottom(getInventory(), new ItemStack(Material.BLACK_STAINED_GLASS_PANE));
            ItemBuilder builder = ItemBuilder.from(Material.PLAYER_HEAD).withSkullOwner("QLNUS");
            this.addItems(builder.buildItem());
            this.setItem(10, new ItemStack(Material.DIRT)).onInventoryClick((event, player) -> {
                player.sendMessage("Hello world!");
            });
            this.onInventoryClick((event, player) -> {
                event.setCancelled(true);
            });
        }
    }
}

cocosmenu's People

Contributors

qlnn avatar robalmeister avatar zitref avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cocosmenu's Issues

Dodatki do inventory - animacje

Witam, przychodze z pomyslem, aby zrobic animacje np. otwierania skrzynek csgo do uzycia w tej swietnej bibliotece. Jestem fanem waszej tworczosci, a takie udogodnienie serio by bylo giga OP (zadna libka chyba nie ma takich opcji). Dodatkowo fajnie by bylo rozwijac to bo serio ulatwia robote czasami. Pozdrawiam

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.