mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-27 03:27:37 +01:00
Removed use of bukkit ChatColor #587
This commit is contained in:
parent
8cd2419d63
commit
25707bdb4c
@ -18,7 +18,6 @@ import com.djrapitops.plugin.command.CommandNode;
|
|||||||
import com.djrapitops.plugin.command.CommandType;
|
import com.djrapitops.plugin.command.CommandType;
|
||||||
import com.djrapitops.plugin.command.CommandUtils;
|
import com.djrapitops.plugin.command.CommandUtils;
|
||||||
import com.djrapitops.plugin.command.ISender;
|
import com.djrapitops.plugin.command.ISender;
|
||||||
import org.bukkit.ChatColor;
|
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
@ -53,7 +52,7 @@ public class AnalyzeCommand extends CommandNode {
|
|||||||
sendWebUserNotificationIfNecessary(sender);
|
sendWebUserNotificationIfNecessary(sender);
|
||||||
sendLink(server, sender);
|
sendLink(server, sender);
|
||||||
} catch (DBException | WebException e) {
|
} catch (DBException | WebException e) {
|
||||||
sender.sendMessage(ChatColor.RED + " Error occurred: " + e.toString());
|
sender.sendMessage("§cError occurred: " + e.toString());
|
||||||
Log.toLog(this.getClass(), e);
|
Log.toLog(this.getClass(), e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -80,7 +79,7 @@ public class AnalyzeCommand extends CommandNode {
|
|||||||
|
|
||||||
boolean senderHasWebUser = Database.getActive().check().doesWebUserExists(sender.getName());
|
boolean senderHasWebUser = Database.getActive().check().doesWebUserExists(sender.getName());
|
||||||
if (!senderHasWebUser) {
|
if (!senderHasWebUser) {
|
||||||
sender.sendMessage(ChatColor.YELLOW + "[Plan] You might not have a web user, use /plan register <password>");
|
sender.sendMessage("§e[Plan] You might not have a web user, use /plan register <password>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,6 @@ import com.djrapitops.plugin.command.CommandUtils;
|
|||||||
import com.djrapitops.plugin.command.ISender;
|
import com.djrapitops.plugin.command.ISender;
|
||||||
import com.djrapitops.plugin.task.AbsRunnable;
|
import com.djrapitops.plugin.task.AbsRunnable;
|
||||||
import com.djrapitops.plugin.task.RunnableFactory;
|
import com.djrapitops.plugin.task.RunnableFactory;
|
||||||
import org.bukkit.ChatColor;
|
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
@ -65,16 +64,16 @@ public class InspectCommand extends CommandNode {
|
|||||||
boolean senderHasWebUser = activeDB.check().doesWebUserExists(sender.getName());
|
boolean senderHasWebUser = activeDB.check().doesWebUserExists(sender.getName());
|
||||||
|
|
||||||
if (!senderHasWebUser) {
|
if (!senderHasWebUser) {
|
||||||
sender.sendMessage(ChatColor.YELLOW + "[Plan] You might not have a web user, use /plan register <password>");
|
sender.sendMessage("§e[Plan] You might not have a web user, use /plan register <password>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Processing.submit(new InspectCacheRequestProcessor(uuid, sender, playerName));
|
Processing.submit(new InspectCacheRequestProcessor(uuid, sender, playerName));
|
||||||
} catch (FatalDBException ex) {
|
} catch (FatalDBException ex) {
|
||||||
Log.toLog(this.getClass(), ex);
|
Log.toLog(this.getClass(), ex);
|
||||||
sender.sendMessage(ChatColor.RED + "Fatal database exception occurred: " + ex.getMessage());
|
sender.sendMessage("§cFatal database exception occurred: " + ex.getMessage());
|
||||||
} catch (DBException ex) {
|
} catch (DBException ex) {
|
||||||
Log.toLog(this.getClass(), ex);
|
Log.toLog(this.getClass(), ex);
|
||||||
sender.sendMessage(ChatColor.YELLOW + "Non-Fatal database exception occurred: " + ex.getMessage());
|
sender.sendMessage("§eNon-Fatal database exception occurred: " + ex.getMessage());
|
||||||
} finally {
|
} finally {
|
||||||
this.cancel();
|
this.cancel();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user