Simple and highly configurable staffchat
Go to file
Oskar Nordling 0e7a6e58e2
test coveralls 2
2018-05-15 00:57:54 +02:00
src/main escape backslashes and dollarsigns correctly, fixed #3 and add event to cancel or change the format programmatically 2018-05-01 03:44:50 +02:00
.coveralls.yml test coveralls 2 2018-05-15 00:57:54 +02:00
.gitignore escape backslashes and dollarsigns correctly, fixed #3 and add event to cancel or change the format programmatically 2018-05-01 03:44:50 +02:00
.travis.yml Try to fix travis config 2017-07-03 07:24:23 +02:00
README.md Change documentation a bit 2018-05-01 04:06:17 +02:00
_config.yml Update _config.yml 2018-01-04 15:44:24 +01:00
pom.xml test coveralls 2018-05-15 00:53:29 +02:00

README.md

Travis-CI All Release Latest Release Github commits (since latest release)

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

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.