Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (airport === "JTPH" || airport === "JSLL") {
- if (pos === "CLR" || pos === "GND" || pos === "TWR" || pos === "DIR" || pos === "CTR") {
- if (airport === "JTPH" || airport === "JSLL") {
- if (member.roles.cache.has(r => r.name === "Delivery ATC")) {
- if (pos === "CLR") {
- message.channel.send("You have logged in as Clearance Delivery at " + airport)
- } else {
- message.channel.send("This position does not exist or you are not ranked high enough to serve this position.")
- }
- } else if (member.roles.cache.has(r => r.name === "Ground ATC")) {
- if (pos === "CLR" || pos === "GND") {
- message.channel.send("You have logged in as " + pos + " at " + airport)
- } else {
- message.channel.send("This position does not exist or you are not ranked high enough to serve this position.")
- }
- } else if(member.roles.cache.has(r => r.name === "Tower ATC")) {
- if(pos === "CLR" || pos === "GND" || pos === "TWR"){
- message.channel.send("You have logged in as " + pos + " at " + airport)
- } else {
- message.channel.send("This position does not exist or you are not ranked high enough to serve this position.")
- }
- } else if(member.roles.cache.has(r => r.name === "Director ATC")){
- if(pos === "CLR" || pos === "GND" || pos === "TWR" || pos === "DIR"){
- message.channel.send("You have logged in as " + pos + " at " + airport)
- } else {
- message.channel.send("This position does not exist or you are not ranked high enough to serve this position.")
- }
- } else if(member.roles.cache.has(r => r.name === "Center ATC")){
- message.channel.send("You have logged in as " + pos + " at " + airport)
- }
- } else {
- return message.channel.send("Invalid airport!")
- }
- } else return message.channel.send("Invalid Position!")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement