[This is preliminary documentation and is subject to change.]

Request player to confirm an action. Player is prompted to type "/ok", and when he/she does, custom callback will be called

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.3.2 (0.6.3.2)

Syntax

   
 C# 
[StringFormatMethodAttribute("message")]
public void Confirm(
	ConfirmationCallback callback,
	Object callbackParameter,
	string message,
	params Object[] args
)

Parameters

callback
ConfirmationCallback
Method to call when player confirms.
callbackParameter
Object
Argument to pass to the callback. May be null.
message
String
Message to print before "Type /ok to continue".
args
array<Object>[]()[][]
Optional String.Format() arguments, for the message.

Exceptions

ExceptionCondition
System..::..ArgumentNullException If callback, message, or args is null.

See Also