Clean up and add javadoc

Former-commit-id: 81debcc0d170e0882512b8786d13ed6d115c4fd3
This commit is contained in:
sandtechnology committed 2020-11-07 01:07:19 +08:00
1 parent c9c222e098
commit 696f578bb0
3 files changed
+5 -5

No files matched your search

@@ -47,7 +47,7 @@ public class SubCommand_Paste implements CommandProcesser {
new BukkitRunnable() {
@Override
public void run() {
MsgUtil.sendMessage(sender, "Please wait, we're uploading the data to the pastebin...");
MsgUtil.sendMessage(sender, "§aPlease wait, we're uploading the data to the pastebin...");
final Paste paste = new Paste(plugin);
final String pasteText = paste.genNewPaste();
String pasteResult = paste.paste(pasteText);
@@ -166,6 +166,9 @@ public interface Shop {
/**
* Get sign texts on shop's sign.
*
* @return String arrays represents sign texts:
* Index | Content
* Line 0: Header
* Line 1: Shop Type
* Line 2: Shop Item Name
@@ -1289,11 +1289,8 @@ public class Util {
@NotNull
public static String readToString(@NotNull File file) {
byte[] filecontent = new byte[(int) file.length()];
try {
FileInputStream in = new FileInputStream(file);
try (FileInputStream in = new FileInputStream(file)) {
in.read(filecontent);
in.close();
} catch (IOException e) {
e.printStackTrace();
}