Merge pull request #200 from blha303/master

Closed a possible resource leak (in currently unused code), updated README.md to point to DBO instead of Github's deprecated downloads section
This commit is contained in:
Brett Flannigan
2013-01-04 08:11:29 -08:00
3 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,6 @@ public class EssentialsFeatures
private static class LocalChatListener implements Listener
{
@SuppressWarnings("unused")
@EventHandler(priority = EventPriority.NORMAL)
public void onPlayerChat(EssentialsLocalChatEvent event)
{

View File

@ -94,6 +94,7 @@ public class DiscUtil
ReadableByteChannel rbc = Channels.newChannel(url.openStream());
FileOutputStream fos = new FileOutputStream(file);
fos.getChannel().transferFrom(rbc, 0, 1 << 24);
fos.close();
return true;
}
catch (Exception e)