[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: fCraftAssembly: fCraft (in fCraft.dll) Version: 0.6.3.0 (0.6.3.0)
Syntax
| C# |
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
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | If callback, message, or args is null. |