summaryrefslogtreecommitdiff
path: root/NET/worlds/console/BBChatCommand.java
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-03 16:38:41 -0700
committerFuwn <[email protected]>2021-05-03 16:38:41 -0700
commite1e781bb2135ef78592226f1a3eaba4925702f1f (patch)
tree8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/console/BBChatCommand.java
downloadworlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.tar.xz
worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.zip
:star:HEADmain
Diffstat (limited to 'NET/worlds/console/BBChatCommand.java')
-rw-r--r--NET/worlds/console/BBChatCommand.java45
1 files changed, 45 insertions, 0 deletions
diff --git a/NET/worlds/console/BBChatCommand.java b/NET/worlds/console/BBChatCommand.java
new file mode 100644
index 0000000..2d6e7fe
--- /dev/null
+++ b/NET/worlds/console/BBChatCommand.java
@@ -0,0 +1,45 @@
+/* */ package NET.worlds.console;
+/* */
+/* */ import java.io.DataInputStream;
+/* */ import java.io.DataOutputStream;
+/* */ import java.io.IOException;
+/* */
+/* */ public class BBChatCommand extends BlackBoxCommand
+/* */ {
+/* */ private String chatLine;
+/* */
+/* */ public BBChatCommand(String line)
+/* */ {
+/* 13 */ this();
+/* 14 */ this.chatLine = new String(line);
+/* */ }
+/* */
+/* */ public BBChatCommand() {
+/* 18 */ this.commandType = 0;
+/* */ }
+/* */
+/* */ public boolean execute()
+/* */ {
+/* 23 */ Console.println(this.chatLine);
+/* 24 */ doCallback(true);
+/* 25 */ return true;
+/* */ }
+/* */
+/* */ public void save(DataOutputStream dos) throws IOException
+/* */ {
+/* 30 */ super.save(dos);
+/* 31 */ dos.writeUTF(this.chatLine);
+/* */ }
+/* */
+/* */ public void load(DataInputStream dis) throws IOException
+/* */ {
+/* 36 */ super.load(dis);
+/* 37 */ this.chatLine = new String(dis.readUTF());
+/* */ }
+/* */ }
+
+
+/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\console\BBChatCommand.class
+ * Java compiler version: 6 (50.0)
+ * JD-Core Version: 0.7.1
+ */ \ No newline at end of file