Say constructor
Say(
- dynamic msg
The Say Class writes a simple message or an entity in the chat.
You can't put both parameters in Say!
Implementation
Say(dynamic msg) {
if (msg is Entity) {
message = msg.toString();
} else if (msg is String) {
message = msg;
} else {
throw ('Please insert either an entity or a string!');
}
}