-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathClasses
More file actions
46 lines (26 loc) · 1.39 KB
/
Classes
File metadata and controls
46 lines (26 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@EventHandler
public void onPlayerJoinEvent(PlayerJoinEvent event) {
Player player = (Player) event.getPlayer();
int h = playerInventory.getHelmet().getTypeId();
int c = playerInventory.getChestPlate().getTypeId();
int l = playerInventory.getLeggings().getTypeId();
int b = playerInventory.getBoots().getTypeId();
if(h == 306 && c == 307 && l == 308 && b == 309) {
player.sendMessage(ChatColor.DARK_BLUE + "Class> " + ChatColor.YELLOW + "You are currently a " + ChatColor.GOLD + "Wind Nomad");
}
if(h == !! && c == !! & b == !!) {
player.sendMessage(ChatColor.DARK_BLUE + "Class> " + ChatColor.YELLOW + "You are currently a " + ChatColor.GOLD + "Fire Nomad");
}
if(h == !! && c == !! & b == !!) {
player.sendMessage(ChatColor.DARK_BLUE + "Class> " + ChatColor.YELLOW + "You are currently a " + ChatColor.GOLD + "Water Nomad");
}
if(h == !! && c == !! & b == !!) {
player.sendMessage(ChatColor.DARK_BLUE + "Class> " + ChatColor.YELLOW + "You are currently an " + ChatColor.GOLD + "Earth Nomad");
}
if(h == !! && c == !! & b == !!) {
player.sendMessage(ChatColor.DARK_BLUE + "Class> " + ChatColor.YELLOW + "You are currently a " + ChatColor.GOLD + "Warrior");
}
if(h == !! && c == !! & b == !!) {
player.sendMessage(ChatColor.DARK_BLUE + "Class> " + ChatColor.YELLOW + "You currently have no class ");
}
}