Advertisement
Guest User

Untitled

a guest
Apr 9th, 2020
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     if (airport === "JTPH" || airport === "JSLL") {
  2.         if (pos === "CLR" || pos === "GND" || pos === "TWR" || pos === "DIR" || pos === "CTR") {
  3.             if (airport === "JTPH" || airport === "JSLL") {
  4.                 if (member.roles.cache.has(r => r.name === "Delivery ATC")) {
  5.                     if (pos === "CLR") {
  6.                         message.channel.send("You have logged in as Clearance Delivery at " + airport)
  7.                     } else {
  8.                         message.channel.send("This position does not exist or you are not ranked high enough to serve this position.")
  9.                     }
  10.                 } else if (member.roles.cache.has(r => r.name === "Ground ATC")) {
  11.                     if (pos === "CLR" || pos === "GND") {
  12.                         message.channel.send("You have logged in as " + pos + " at " + airport)
  13.                     } else {
  14.                         message.channel.send("This position does not exist or you are not ranked high enough to serve this position.")
  15.                     }
  16.                 } else if(member.roles.cache.has(r => r.name === "Tower ATC")) {
  17.                     if(pos === "CLR" || pos === "GND" || pos === "TWR"){
  18.                         message.channel.send("You have logged in as " + pos + " at " + airport)
  19.                     } else {
  20.                         message.channel.send("This position does not exist or you are not ranked high enough to serve this position.")
  21.                     }
  22.                 } else if(member.roles.cache.has(r => r.name === "Director ATC")){
  23.                     if(pos === "CLR" || pos === "GND" || pos === "TWR" || pos === "DIR"){
  24.                         message.channel.send("You have logged in as " + pos + " at " + airport)
  25.                     } else {
  26.                         message.channel.send("This position does not exist or you are not ranked high enough to serve this position.")
  27.                     }
  28.                 } else if(member.roles.cache.has(r => r.name === "Center ATC")){
  29.                     message.channel.send("You have logged in as " + pos + " at " + airport)
  30.                 }
  31.             } else {
  32.                 return message.channel.send("Invalid airport!")
  33.             }
  34.         } else return message.channel.send("Invalid Position!")
  35.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement