mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-27 18:41:28 +01:00
Cleanup of KHobbits commit
This commit is contained in:
parent
503b4fee55
commit
ca29f18850
@ -69,10 +69,10 @@ public class Commandhelp extends EssentialsCommand
|
||||
private List<String> getHelpLines(User user, String match) throws Exception
|
||||
{
|
||||
List<String> retval = new ArrayList<String>();
|
||||
File helpFile = new File(ess.getDataFolder(), "help_"+Util.sanitizeFileName(user.getName()) +".txt");
|
||||
File helpFile = new File(ess.getDataFolder(), "help_" + Util.sanitizeFileName(user.getName()) + ".txt");
|
||||
if (!helpFile.exists())
|
||||
{
|
||||
helpFile = new File(ess.getDataFolder(), "help_"+Util.sanitizeFileName(user.getGroup()) +".txt");
|
||||
helpFile = new File(ess.getDataFolder(), "help_" + Util.sanitizeFileName(user.getGroup()) + ".txt");
|
||||
}
|
||||
if (!helpFile.exists())
|
||||
{
|
||||
@ -81,7 +81,8 @@ public class Commandhelp extends EssentialsCommand
|
||||
if (helpFile.exists())
|
||||
{
|
||||
final BufferedReader bufferedReader = new BufferedReader(new FileReader(helpFile));
|
||||
try {
|
||||
try
|
||||
{
|
||||
|
||||
while (bufferedReader.ready())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user