}, |
}, |
}, |
duelAutoAccept = { |
type = "group", |
order = 5, |
name = L["Auto-Accept Duels"], |
desc = L["The selected types have their duel requests auto-accepted (if they are allowed, above)"], |
inline = true, |
args = { |
duelAutoFriend = { |
type = "toggle", |
order = 1, |
width = "full", |
name = L["Auto-Accept Friend Duels"], |
desc = L["Toggles whether or not Players in your friends list will have their duel requests auto-accepted"], |
get = function(info) |
return LMA.db.profile.duelAutoFriend |
end, |
set = function(info,val) |
LMA.db.profile.duelAutoFriend = not LMA.db.profile.duelAutoFriend |
end, |
}, |
duelAutoParty = { |
type = "toggle", |
order = 2, |
width = "full", |
name = L["Auto-Accept Party Duels"], |
desc = L["Toggles whether or not Players in your Party will have their duel requests auto-accepted"], |
get = function(info) |
return LMA.db.profile.duelAutoParty |
end, |
set = function(info,val) |
LMA.db.profile.duelAutoParty = not LMA.db.profile.duelAutoParty |
end, |
}, |
duelAutoGuild = { |
type = "toggle", |
order = 3, |
width = "full", |
name = L["Auto-Accept Guildmate Duels"], |
desc = L["Toggles whether or not Players in your Guild will have their duel requests auto-accepted"], |
get = function(info) |
return LMA.db.profile.duelAutoGuild |
end, |
set = function(info,val) |
LMA.db.profile.duelAutoGuild = not LMA.db.profile.duelAutoGuild |
end, |
}, |
}, |
}, |
}, |
} |
|
options.args.tradeSettings = { |
type = "group", |
order = 3, |
name = L["Trade Options"], |
inline = true, |
args = { |
ignoreTrade = { |
type = "toggle", |
order = 1, |
width = "full", |
name = L["Ignore Trades"], |
desc = L["Toggles whether or not Trades are ignored"], |
get = function(info) |
return LMA.db.profile.ignoreTrade |
end, |
set = function(info,val) |
LMA.db.profile.ignoreTrade = not LMA.db.profile.ignoreTrade |
end, |
}, |
}, |
} |
|
options.args.partySettings = { |
type = "group", |
order = 4, |
name = L["Party Invitation Options"], |
inline = true, |
args = { |
ignoreParty = { |
type = "toggle", |
order = 1, |
width = "full", |
name = L["Ignore Party Invitions"], |
desc = L["Toggles whether or not Party Invitations are ignored"], |
get = function(info) |
return LMA.db.profile.ignoreParty |
end, |
set = function(info,val) |
LMA.db.profile.ignoreParty = not LMA.db.profile.ignoreParty |
end, |
}, |
partyReply = { |
type = "toggle", |
order = 2, |
width = "full", |
name = L["Reply to Blocked Party Invitations"], |
desc = L["Toggles whether or not you '/w' the player who invited you to a Party"], |
get = function(info) |
return LMA.db.profile.partyReply |
end, |
set = function(info,val) |
LMA.db.profile.partyReply = not LMA.db.profile.partyReply |
end, |
}, |
partyReplyMsg = { |
type = "input", |
order = 3, |
width = "full", |
name = L["Party Invitation Blocked Message"], |
desc = L["This is the message you will send to the player who invited you to a Party"], |
usage = L["<Your Message Here>"], |
get = function(info) |
return LMA.db.profile.partyReplyMsg |
end, |
set = function(info,val) |
LMA.db.profile.partyReplyMsg = val |
end, |
disabled = function() |
return not LMA.db.profile.partyReply |
end, |
}, |
partyAllowed = { |
type = "group", |
order= 4, |
name = L["Allowed for Party Invitations"], |
inline = true, |
args = { |
partyAllowFriends = { |
type = "toggle", |
order = 1, |
name = L["Allow Friends to invite you to a Party"], |
desc = L["Toggles whether or not players in your Friends list can invite you to a Party without being blocked"], |
width = "full", |
get = function(info) |
return LMA.db.profile.partyAllowFriends |
end, |
set = function(info,val) |
LMA.db.profile.partyAllowFriends = not LMA.db.profile.partyAllowFriends |
end, |
}, |
partyAllowGuild = { |
type = "toggle", |
order = 2, |
width = "full", |
name = L["Allow Guildmates to invite you to a Party"], |
desc = L["Toggles whether or not players in your Guild can invite you to a Party without being blocked"], |
get = function(info) |
return LMA.db.profile.partyAllowGuild |
end, |
set = function(info,val) |
LMA.db.profile.partyAllowGuild = not LMA.db.profile.partyAllowGuild |
end, |
}, |
}, |
}, |
partyAutoAccept = { |
type = "group", |
order = 5, |
name = L["Auto-Accept Party Invitations"], |
inline = true, |
args = { |
partyAutoFriend = { |
type = "toggle", |
order = 1, |
width = "full", |
name = L["Auto-Accept Friend Party Invitations"], |
desc = L["Toggles whether or not Players in your friends list will have their party invitations auto-accepted"], |
get = function(info) |
return LMA.db.profile.partyAutoFriend |
end, |
set = function(info,val) |
LMA.db.profile.partyAutoFriend = not LMA.db.profile.partyAutoFriend |
end, |
}, |
partyAutoGuild = { |
type = "toggle", |
order = 2, |
width = "full", |
name = L["Auto-Accept Guildmate Party Invitations"], |
desc = L["Toggles whether or not Players in your Guild will have their party invitations auto-accepted"], |
get = function(info) |
return LMA.db.profile.partyAutoGuild |
end, |
set = function(info,val) |
LMA.db.profile.partyAutoGuild = not LMA.db.profile.partyAutoGuild |
end, |
}, |
}, |
}, |
}, |
} |
|
options.args.guildSettings = { |
type = "group", |
order = 5, |
name = L["Guild Invite Options"], |
inline = true, |
args = { |
ignoreGuild = { |
type = "toggle", |
order = 1, |
width = "full", |
name = L["Ignore Guild Invites"], |
desc = L["Toggles whether or not Guild Invitations are ignored"], |
get = function(info) |
return LMA.db.profile.ignoreGuild |
end, |
set = function(info,val) |
LMA.db.profile.ignoreGuild = not LMA.db.profile.ignoreGuild |
end, |
}, |
guildReply = { |
type = "toggle", |
order = 2, |
width = "full", |
name = L["Reply to Blocked Guild Invitess"], |
desc = L["Toggles whether or not you '/w' the player who Invited you to a Guild"], |
get = function(info) |
return LMA.db.profile.guildReply |
end, |
set = function(info,val) |
LMA.db.profile.guildReply = not LMA.db.profile.guildReply |
end, |
}, |
guildReplyMsg = { |
type = "input", |
order = 3, |
width = "full", |
name = L["Guild Invite Blocked Message"], |
desc = L["This is the message you will send to the player who Invited you to a Guild."], |
usage = L["<Your Message Here>"], |
get = function(info) |
return LMA.db.profile.guildReplyMsg |
end, |
set = function(info,val) |
LMA.db.profile.guildReplyMsg = val |
end, |
disabled = function() return not LMA.db.profile.guildReply end, |
}, |
guildAllowed = { |
type = "group", |
order = 4, |
name = L["Allowed for Guild Invites"], |
inline = true, |
args = { |
guildAllowFriends = { |
type = "toggle", |
order = 1, |
width = "full", |
name = L["Allow Friends to Invite you"], |
desc = L["Toggles whether or not players in your Friends list can Invite you without being blocked"], |
get = function(info) |
return LMA.db.profile.guildAllowFriends |
end, |
set = function(info,val) |
LMA.db.profile.guildAllowFriends = not LMA.db.profile.guildAllowFriends |
end, |
}, |
guildAllowParty = { |
type = "toggle", |
order = 2, |
width = "full", |
name = L["Allow Party members to Invite you"], |
desc = L["Toggles whether or not players in your Party can Invite you without being blocked"], |
get = function(info) |
return LMA.db.profile.guildAllowParty |
end, |
set = function(info,val) |
LMA.db.profile.guildAllowParty = not LMA.db.profile.guildAllowParty |
end, |
}, |
}, |
}, |
guildAutoAccept = { |
type = "group", |
order = 5, |
name = L["Auto-Accept Guild Invitations"], |
inline = true, |
args = { |
guildAutoFriend = { |
type = "toggle", |
order = 1, |
width = "full", |
name = L["Auto-Accept Friend Guild Invitations"], |
desc = L["Toggles whether or not Players in your friends list will have their Guild Invitations auto-accepted"], |
get = function(info) |
return LMA.db.profile.guildAutoFriend |
end, |
set = function(info,val) |
LMA.db.profile.guildAutoFriend = not LMA.db.profile.guildAutoFriend |
end, |
}, |
guildAutoParty = { |
type = "toggle", |
order = 2, |
width = "full", |
name = L["Auto-Accept Party Duels"], |
desc = L["Toggles whether or not Players in your Party will have their Guild Invitations auto-accepted"], |
get = function(info) |
return LMA.db.profile.guildAutoParty |
end, |
set = function(info,val) |
LMA.db.profile.guildAutoParty = not LMA.db.profile.guildAutoParty |
end, |
}, |
}, |
}, |
}, |
} |
|
function LMA:OnEnable() |
self.blocks = { ['*'] = 0 } |
self.thissessionblocked = nil |