mirror of
https://bitbucket.org/HeshamTB/greet.git
synced 2024-11-22 06:32:16 +01:00
build folder
This commit is contained in:
parent
96991cb81d
commit
3190e38373
Binary file not shown.
BIN
builds/greet.jar
Normal file
BIN
builds/greet.jar
Normal file
Binary file not shown.
@ -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!");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user