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.
|
2 years ago | |
---|---|---|
src/main | 2 years ago | |
.coveralls.yml | 6 years ago | |
.gitignore | 6 years ago | |
.travis.yml | 2 years ago | |
README.md | 2 years ago | |
_config.yml | 6 years ago | |
pom.xml | 2 years ago |
README.md
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.