Minor changes

This commit is contained in:
Steven Lawson 2012-03-06 15:46:35 -05:00
parent 2d1ff05dda
commit f631655873
5 changed files with 1075 additions and 1068 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,8 +1,8 @@
build.xml.data.CRC32=fc2d0ea5
build.xml.script.CRC32=ea976fe1
build.xml.stylesheet.CRC32=28e38971@1.38.3.45
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=fc2d0ea5
nbproject/build-impl.xml.script.CRC32=c47fa280
nbproject/build-impl.xml.stylesheet.CRC32=0ae3a408@1.44.1.45
build.xml.data.CRC32=fc2d0ea5
build.xml.script.CRC32=ea976fe1
build.xml.stylesheet.CRC32=28e38971@1.38.3.45
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=fc2d0ea5
nbproject/build-impl.xml.script.CRC32=d2c78d70
nbproject/build-impl.xml.stylesheet.CRC32=fcddb364@1.50.2.46

View file

@ -2,18 +2,18 @@ package com.bekvon.bukkit.mctelnet;
import java.io.File;
import java.io.IOException;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.bukkit.plugin.java.JavaPlugin;
import java.net.InetAddress;
import java.util.Iterator;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.plugin.java.JavaPlugin;
public class MCTelnet extends JavaPlugin
{

View file

@ -1,10 +1,6 @@
package com.bekvon.bukkit.mctelnet;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.*;
import java.net.Socket;
import java.util.Set;
import java.util.logging.Handler;
@ -314,6 +310,14 @@ public class TelnetListener extends Handler implements CommandSender
writeOut(ChatColor.stripColor(string) + "\r\n:");
}
public void sendMessage(String[] strings)
{
for (String string : strings)
{
sendMessage(string);
}
}
public Server getServer()
{
return plugin.getServer();
@ -373,12 +377,10 @@ public class TelnetListener extends Handler implements CommandSender
public void removeAttachment(PermissionAttachment pa)
{
return;
}
public void recalculatePermissions()
{
return;
}
public Set<PermissionAttachmentInfo> getEffectivePermissions()
@ -393,11 +395,5 @@ public class TelnetListener extends Handler implements CommandSender
public void setOp(boolean bln)
{
return;
}
public void sendMessage(String[] strings)
{
throw new UnsupportedOperationException("Not supported yet.");
}
}

View file

@ -82,7 +82,7 @@ public class TelnetUtil
plugin.getDataFolder().mkdirs();
output = new FileOutputStream(actual);
byte[] buf = new byte[8192];
int length = 0;
int length;
while ((length = input.read(buf)) > 0)
{
output.write(buf, 0, length);