Module: Bukkit::BanList
- Defined in:
- lib/bukkit/ban_list.rb
Defined Under Namespace
Modules: Type
Instance Method Summary collapse
-
#ban(target, reason, expires, source) ⇒ Bukkit::BanEntry
(also: #addBan)
Adds a ban to this list.
-
#ban_entries ⇒ Array
(also: #getBanEntries)
Gets a set containing every BanEntry in this list.
-
#ban_entry(target) ⇒ Bukkit::BanEntry
(also: #getBanEntry)
Gets a BanEntry by target.
-
#banned?(target) ⇒ boolean
(also: #isBanned)
Gets if a BanEntry exists for the target, indicating an active ban status.
-
#pardon(target) ⇒ Object
Removes the specified target from this list, therefore indicating a “not banned” status/.
Instance Method Details
#ban(target, reason, expires, source) ⇒ Bukkit::BanEntry Also known as: addBan
Adds a ban to this list. If a previous ban exists, this will update the previous entry.
32 |
# File 'lib/bukkit/ban_list.rb', line 32 def ban(target, reason, expires, source); end |
#ban_entries ⇒ Array Also known as: getBanEntries
Gets a set containing every Bukkit::BanEntry in this list.
38 |
# File 'lib/bukkit/ban_list.rb', line 38 def ban_entries; end |
#ban_entry(target) ⇒ Bukkit::BanEntry Also known as: getBanEntry
Gets a Bukkit::BanEntry by target.
19 |
# File 'lib/bukkit/ban_list.rb', line 19 def ban_entry(target); end |
#banned?(target) ⇒ boolean Also known as: isBanned
Gets if a Bukkit::BanEntry exists for the target, indicating an active ban status.
47 |
# File 'lib/bukkit/ban_list.rb', line 47 def banned?(target); end |
#pardon(target) ⇒ Object
Removes the specified target from this list, therefore indicating a
"not banned" status/
54 |
# File 'lib/bukkit/ban_list.rb', line 54 def pardon(target); end |