mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-26 02:19:48 -05:00
Clean up and add javadoc
Former-commit-id: 81debcc0d170e0882512b8786d13ed6d115c4fd3
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user