1
0
mirror of https://bitbucket.org/HeshamTB/greet.git synced 2024-11-05 14:32:15 +01:00

build folder

This commit is contained in:
HeshamTB 2018-05-02 21:53:30 +03:00
parent 96991cb81d
commit 3190e38373
3 changed files with 5 additions and 8 deletions

Binary file not shown.

BIN
builds/greet.jar Normal file

Binary file not shown.

View File

@ -17,21 +17,20 @@ public class events implements Listener {
public void player(PlayerJoinEvent e) {
Player p = e.getPlayer();
e.setJoinMessage(prefix + ChatColor.GRAY + p.getName().toLowerCase() + ChatColor.AQUA + " joined 5radl Server!");
String pName = p.getDisplayName();
e.setJoinMessage(prefix + ChatColor.GRAY + p.getName().toLowerCase() + ChatColor.AQUA + " joined 5radl Server!");
p.sendMessage(ChatColor.AQUA +"Hello " + pName + ", Welcome to 5radl Server");
//p.sendMessage(ChatColor.AQUA +"Online Players are "+ Bukkit.getOnlinePlayers());
p.sendMessage(ChatColor.GRAY + "Online Players :");
int i = 1;
for(Player player : Bukkit.getOnlinePlayers()) {
p.sendMessage(ChatColor.RED + "" + i + "- " + player.getName());
i++;
}
p.sendMessage(ChatColor.AQUA +"Type"+ ChatColor.GREEN +" (/help greet) "+ ChatColor.AQUA+ "for list of new commands");
p.sendMessage(ChatColor.AQUA +"Type"+ ChatColor.GREEN +" (/help greet) "+ ChatColor.AQUA+ "for list of new commands");
}
@EventHandler
public void Quit(PlayerQuitEvent e ) {
Player p = e.getPlayer();
@ -44,8 +43,6 @@ public class events implements Listener {
Bukkit.getWorld("world").setFullTime(1);
Bukkit.getConsoleSender().sendMessage(prefix +"Good Morning!");
}
}