Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void handleArmor(Client c, int itemId, int X, int Y) {
- if(!c.spawned) {
- this.xCoord = X;
- this.yCoord = Y;
- for(int i = 0; i < ARMORREQUIRED.length; i++) {
- for(int f = 0; f < ARMORREQUIRED[0].length; f++) {
- if(itemId == ARMORREQUIRED[i][f]) {
- if(hasItem(c, ARMORREQUIRED[i][0], true) && hasItem(c, ARMORREQUIRED[i][1], true) && hasItem(c, ARMORREQUIRED[i][2], true)) {
- animateArmor(c, new int[] {ARMORREQUIRED[i][0], ARMORREQUIRED[i][1], ARMORREQUIRED[i][2]}, ARMORREQUIRED[i][3], ARMORREQUIRED[i][4], ARMORREQUIRED[i][5], ARMORREQUIRED[i][6], ARMORREQUIRED[i][7]);
- }
- }
- }
- }
- } else {
- c.sendMessage("You already have armor spawned!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement