Add the missing break statements in the jailing listener.

This commit is contained in:
graywolf336 2016-05-31 11:54:05 -05:00
parent 922280d69c
commit 1b3d8c7bdf
No known key found for this signature in database
GPG Key ID: F8F0E59498A452CF

View File

@ -64,6 +64,7 @@ public class JailingListener implements Listener {
meta.setColor(Color.fromBGR(Integer.parseInt(colors[2]), Integer.parseInt(colors[1]), Integer.parseInt(colors[0])));
item.setItemMeta(meta);
event.getPlayer().getInventory().setHelmet(item);
break;
default:
break;
}
@ -80,6 +81,7 @@ public class JailingListener implements Listener {
meta.setColor(Color.fromBGR(Integer.parseInt(colors[2]), Integer.parseInt(colors[1]), Integer.parseInt(colors[0])));
item.setItemMeta(meta);
event.getPlayer().getInventory().setChestplate(item);
break;
default:
break;
}
@ -96,6 +98,7 @@ public class JailingListener implements Listener {
meta.setColor(Color.fromBGR(Integer.parseInt(colors[2]), Integer.parseInt(colors[1]), Integer.parseInt(colors[0])));
item.setItemMeta(meta);
event.getPlayer().getInventory().setLeggings(item);
break;
default:
break;
}
@ -112,6 +115,7 @@ public class JailingListener implements Listener {
meta.setColor(Color.fromBGR(Integer.parseInt(colors[2]), Integer.parseInt(colors[1]), Integer.parseInt(colors[0])));
item.setItemMeta(meta);
event.getPlayer().getInventory().setBoots(item);
break;
default:
break;
}