/Util-Actions

Simple util for actions, [message] Like this :)

Primary LanguageJava

(Work in progress)

Installation

Replace {version} with the latest release Codacy Badge

Gradle

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

dependencies {
    implementation 'com.github.iGabyTM:Util-Actions:{version}'
}

Maven

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

<dependency>
    <groupId>com.github.iGabyTM</groupId>
    <artifactId>Util-Actions</artifactId>
    <version>{version}</version>
</dependency>

Usage

Create a new instance of ActionManager

// The constructor requires an instance of your main class ('plugin')
final ActionManager actionManager = new ActionManager(plugin);

actionManager.execute(player, "[chat] This message will be sent by the player :)");

Actions

ID Alias Description Usage
broadcast - Send a message to all online players [broadcast] message
chat - Send player a message in chat [message] message