Speedgot
ActionAnnouncer
-----
All in one action bar announcement plugin!
Download Now
36.6 KB .jar
Overview
Updates (
--
)
Reviews (
---
)
Version History
Discussion
Fixed %online% lol.... Added API methods for other plugins to send ActionBar announcements!
1.0.6
This version fixes %online% not showing the amount of players but rather the player list......
Added API for other plugins/developers to use!
You can hook into ActionAnnouncer and send ActionBar announcements with a very simple method!
Here is an example of the API usage.
Code (Text):
package me.clip.actiontest;
import me.clip.actionannouncer.ActionAPI;
import org.bukkit.Bukkit;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockBreakEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.plugin.java.JavaPlugin;
public class ActionAnnouncerHookTest extends JavaPlugin implements Listener {
@Override
public void onEnable() {
if (Bukkit.getServer().getPluginManager().getPlugin("ActionAnnouncer") == null
|| !Bukkit.getServer().getPluginManager().getPlugin("ActionAnnouncer").isEnabled()) {
getLogger().warning("could not hook into ActionAnnouncer!");
}
else {
Bukkit.getServer().getPluginManager().registerEvents(this, this);
}
}
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
public void onBlockBreak(BlockBreakEvent event) {
ActionAPI.sendPlayerAnnouncement(event.getPlayer(), "You broke a block!");
}
@EventHandler
public void onJoin(PlayerJoinEvent event) {
if (event.getPlayer().getName().equals("extended_clip")) {
ActionAPI.sendServerAnnouncement("extended_clip has joined the game guys!");
}
}
}
----------
,
Oct 3, 2014
View on SpigotMC
Resource Information
Author:
----------
Total Downloads:
37,965
First Release:
Oct 2, 2014
Last Update:
Dec 18, 2021
Category:
---------------
All-Time Rating:
97 ratings
Version
-----
Released:
--------------------
Downloads:
------
Version Rating:
----------------------
--
ratings
Ask Questions / Get Support