Module: Bukkit::BanEntry

Defined in:
lib/bukkit/ban_entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#creationObject Also known as: getCreated

Returns the value of attribute creation.



5
6
7
# File 'lib/bukkit/ban_entry.rb', line 5

def creation
  @creation
end

#expirationObject Also known as: getExpiration

Returns the value of attribute expiration.



5
6
7
# File 'lib/bukkit/ban_entry.rb', line 5

def expiration
  @expiration
end

#reasonObject Also known as: getReason

Returns the value of attribute reason.



5
6
7
# File 'lib/bukkit/ban_entry.rb', line 5

def reason
  @reason
end

#sourceObject Also known as: getSource

Returns the value of attribute source.



5
6
7
# File 'lib/bukkit/ban_entry.rb', line 5

def source
  @source
end

#targetObject Also known as: getTarget

Returns the value of attribute target.



5
6
7
# File 'lib/bukkit/ban_entry.rb', line 5

def target
  @target
end

Instance Method Details

#saveObject

Saves the ban entry, overwriting any previous data in the ban list

Saving the ban entry of an unbanned player will cause the player to be banned once again.



29
# File 'lib/bukkit/ban_entry.rb', line 29

def save; end