Method: Minecraft::Commands#welcome
- Defined in:
- lib/minecraft/commands.rb
#welcome(user, *args) ⇒ Object
Note:
ops: op
Changes or appends to the welcome message. Use !welcome + foo to add foo.
69 70 71 72 73 74 75 76 77 78 |
# File 'lib/minecraft/commands.rb', line 69 def welcome(user, *args) if args.first == "+" @welcome_message += " " + args[1..-1].join(" ") @server.puts "say Appended to welcome message." else @welcome_message = args.join(" ") @server.puts "say Changed welcome message." end ("basicxman") end |