Simple and highly configurable staffchat
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Oskar Nordling d7be18f0cb
Merge pull request #13 from oskar3123/5-discordsrv-support-2
2 years ago
src/main #5: DiscordSRV support 2 2 years ago
.coveralls.yml test coveralls 2 6 years ago
.gitignore escape backslashes and dollarsigns correctly, fixed #3 and add event to cancel or change the format programmatically 6 years ago
.travis.yml update travis jdk config 2 years ago
README.md update readme shields 2 years ago
_config.yml Update _config.yml 6 years ago
pom.xml #5: add DiscordSRV support 2 years ago

README.md

Travis-CI Downloads

Latest Release Github commits (since latest release) Latest Pre-release Github commits (since latest pre-release)

Open Issues Closed Issues Open Pull requests Closed Pull requests

StaffChat

Simple and highly configurable staffchat

Download

You can download the plugin from the Spigot resource page or via the GitHub releases

Event API (For developers)

Bukkit/Spigot

Because the event API in 1.14+ is now strict between sync and async events you should check whether this was called synchronously or asynchronously by using event.isAsynchronous()

public class StaffChatListener implements Listener
{

    @EventHandler
    public void onStaffChat(StaffChatEvent event)
    {
        // String format = event.getFormat();
        // event.setFormat("&b{NAME} >> {MESSAGE}");
        // String message = event.getMessage();
        // Player player = event.getPlayer();
        // event.setCancelled(true);
    }

}

Register the listener with

getServer().getPluginManager().registerEvents(new StaffChatListener(), this);

in your plugin onEnable.

BungeeCord

public class StaffChatListener implements Listener
{

    @EventHandler
    public void onStaffChat(BungeeStaffChatEvent event)
    {
        // String format = event.getFormat();
        // event.setFormat("&b{NAME} >> {MESSAGE}");
        // String message = event.getMessage();
        // Player player = event.getPlayer();
        // event.setCancelled(true);
    }

}

Register the listener with

getProxy().getPluginManager().registerListener(this, new StaffChatListener());

in your plugin onEnable.