MoreMessages | JoinMessage | QuitMessage | KillMessage | AutoBroadcaster 1.0

Register now to download for free
For messages
Tags
Tags
None
MoreMessages is a plugin to get more messages in minecraft
Config:
MoreMessages:
joinmessage: '&8[&a+&8]&7%player%'
leavemessage: '&8[&c-&8]&7%player%'
killbroadcastmessage: '&a%player% &7Has been killed by &c%killer%'
autobroadcaster: '&aWelcome to this server'
Have fun
OpenSource
@EventHandler
public void onJoin(PlayerJoinEvent e) {
Player p = e.getPlayer();
e.setJoinMessage(ChatColor.translateAlternateColorCodes((char)'&', getConfig().getString("MoreMessage.joinmessage").replace("%player%", "" + p.getName())));
}
@EventHandler
public void onQuit(PlayerQuitEvent e) {
Player p = e.getPlayer();
e.setQuitMessage(ChatColor.translateAlternateColorCodes((char)'&', getConfig().getString("MoreMessage.leavemessage").replace("%player%", "" + p.getName())));
}
@EventHandler
public void onPlayerKill(PlayerDeathEvent e) {
Player p = e.getEntity().getPlayer();
Player killer = e.getEntity().getKiller();
Bukkit.broadcastMessage(getConfig().getString("MoreMessage.killbroadcastmessage").replace("%player%", "" + p.getName()).replace("%killer%", "" + killer.getName()));
}
}

Latest reviews

make it so i can have more than one auto broadcast message please

Author

Author
Senneistheboss
Downloads
13
Views
429
First release
Last update
Rating
4.00 star(s) 1 ratings
Top
You need to upgrade!
Our dark style is reserved for our Premium members. Upgrade here.