From 03b4ba2db4e8b0921557f94e49cda87de97025a5 Mon Sep 17 00:00:00 2001 From: snowleo Date: Tue, 10 May 2011 21:58:08 +0000 Subject: [PATCH] Creating info.txt, if it does not exist. git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1418 e251c2fe-e539-e718-e476-b85c1f46cddb --- .../src/com/earth2me/essentials/commands/Commandinfo.java | 1 + Essentials/src/messages.properties | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandinfo.java b/Essentials/src/com/earth2me/essentials/commands/Commandinfo.java index e1563c4e6..664cfb67b 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandinfo.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandinfo.java @@ -60,6 +60,7 @@ public class Commandinfo extends EssentialsCommand else { sender.sendMessage(Util.i18n("infoFileDoesNotExist")); + file.createNewFile(); return; } diff --git a/Essentials/src/messages.properties b/Essentials/src/messages.properties index 29484ac09..241e181ab 100644 --- a/Essentials/src/messages.properties +++ b/Essentials/src/messages.properties @@ -162,7 +162,7 @@ healOther = \u00a77Healed {0}. helpPages = Page \u00a7c {0} \u00a7f of \u00a7c {1} \u00a7f: helpConsole = To view help from the console, type ?. helpOp = \u00a7c[HelpOp]\u00a7f \u00a77 {0} :\u00a7f {1} -infoFileDoesNotExist = File info.txt does not exist. +infoFileDoesNotExist = File info.txt does not exist. Creating one for you. infoPages = Page \u00a7c {0} \u00a7f of \u00a7c {1} \u00a7f: infoChapter = Select chapter: infoUnknownChapter = Unknown chapter: