mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 01:49:49 -05:00
pop
Former-commit-id: 2784b05196b94fcc41bab4d87d5c03fc8054f36f
This commit is contained in:
1 parent
88e6f6ac12
commit
dc08df5d27
1 file changed
+15
-12
@@ -19,6 +19,16 @@
|
||||
|
||||
package org.maxgamer.quickshop.Util;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.nio.file.Files;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.text.DecimalFormat;
|
||||
import java.util.*;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.logging.Level;
|
||||
import lombok.SneakyThrows;
|
||||
import me.clip.placeholderapi.PlaceholderAPI;
|
||||
import net.md_5.bungee.api.chat.ClickEvent;
|
||||
@@ -47,17 +57,6 @@ import org.maxgamer.quickshop.FilePortlek.JSONFile;
|
||||
import org.maxgamer.quickshop.QuickShop;
|
||||
import org.maxgamer.quickshop.Shop.Shop;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.nio.file.Files;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.text.DecimalFormat;
|
||||
import java.util.*;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.logging.Level;
|
||||
|
||||
@SuppressWarnings("WeakerAccess")
|
||||
public class MsgUtil {
|
||||
public static String invaildMsg = "Invaild message";
|
||||
@@ -136,7 +135,11 @@ public class MsgUtil {
|
||||
Util.debugLog("Accepted the msg for player " + p.getName() + " : " + msg);
|
||||
String[] msgData = msg.split("##########");
|
||||
try {
|
||||
sendItemholochat(player, msgData[0], Util.deserialize(msgData[1]), msgData[2]);
|
||||
ItemStack data = Util.deserialize(msgData[1]);
|
||||
if (data == null) {
|
||||
throw new InvalidConfigurationException();
|
||||
}
|
||||
sendItemholochat(player, msgData[0], data, msgData[2]);
|
||||
} catch (InvalidConfigurationException e) {
|
||||
p.getPlayer().sendMessage(msgData[0] + msgData[1] + msgData[2]);
|
||||
} catch (ArrayIndexOutOfBoundsException e2) {
|
||||
|
||||
Reference in new issue
Block a user