mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Default disable ProtocolLib support, update old control panel
Former-commit-id: 5e95397440027241a3d287067b25991357342885 [formerly 37f21756a590a762bf104ce478c443a37b4251b5] Former-commit-id: e1d6e0e21c5426a130de7cb85b0f5917a2d82913
This commit is contained in:
1 parent
068ce1dcba
commit
59b429e523
2 files changed
+32
-7
No files matched your search
@@ -812,7 +812,7 @@ public class QuickShop extends JavaPlugin {
|
||||
getConfig().set("database.use-varchar", true);
|
||||
getConfig().set("limits.old-algorithm", false);
|
||||
getConfig().set("shop.pay-player-from-unlimited-shop-owner", false);
|
||||
getConfig().set("plugin.ProtocolLib", true);
|
||||
getConfig().set("plugin.ProtocolLib", false);
|
||||
getConfig().set("plugin.Multiverse-Core", true);
|
||||
getConfig().set("config-version", 9);
|
||||
selectedVersion = 9;
|
||||
|
||||
@@ -197,7 +197,12 @@ public class MsgUtil {
|
||||
if (sender.hasPermission("quickshop.unlimited")) {
|
||||
String Text = MsgUtil.getMessage("controlpanel.unlimited", bool2String(shop.isUnlimited()));
|
||||
String hoverText = MsgUtil.getMessage("controlpanel.unlimited-hover");
|
||||
String clickCommand = "/qs unlimited";
|
||||
String type = "unlimited";
|
||||
String clickCommand = "/qs silentunlimited " + shop.getLocation().getWorld().getName() + " "
|
||||
+ shop.getLocation().getBlockX() + " " + shop.getLocation().getBlockY() + " "
|
||||
+ shop.getLocation().getBlockZ() + " " + "controlpanel.sign." + type + ".line1" + " "
|
||||
+ "controlpanel.sign." + type + ".line2" + " " + "controlpanel.sign." + type + ".line3" + " "
|
||||
+ "controlpanel.sign." + type + ".line4";
|
||||
MsgUtil.sendPanelMessage(sender, Text, hoverText, clickCommand);
|
||||
}
|
||||
// Buying/Selling Mode
|
||||
@@ -205,12 +210,22 @@ public class MsgUtil {
|
||||
if (shop.isSelling()) {
|
||||
String Text = MsgUtil.getMessage("controlpanel.mode-selling");
|
||||
String hoverText = MsgUtil.getMessage("controlpanel.mode-selling-hover");
|
||||
String clickCommand = "/qs buy";
|
||||
String type = "buy";
|
||||
String clickCommand = "/qs silentbuy " + shop.getLocation().getWorld().getName() + " "
|
||||
+ shop.getLocation().getBlockX() + " " + shop.getLocation().getBlockY() + " "
|
||||
+ shop.getLocation().getBlockZ() + " " + "controlpanel.sign." + type + ".line1"
|
||||
+ " " + "controlpanel.sign." + type + ".line2" + " " + "controlpanel.sign." + type + ".line3"
|
||||
+ " " + "controlpanel.sign." + type + ".line4";
|
||||
MsgUtil.sendPanelMessage(sender, Text, hoverText, clickCommand);
|
||||
} else if (shop.isBuying()) {
|
||||
String Text = MsgUtil.getMessage("controlpanel.mode-buying");
|
||||
String hoverText = MsgUtil.getMessage("controlpanel.mode-buying-hover");
|
||||
String clickCommand = "/qs sell";
|
||||
String type = "sell";
|
||||
String clickCommand = "/qs silentsell " + shop.getLocation().getWorld().getName() + " "
|
||||
+ shop.getLocation().getBlockX() + " " + shop.getLocation().getBlockY() + " "
|
||||
+ shop.getLocation().getBlockZ() + " " +"controlpanel.sign." + type + ".line1"
|
||||
+ " " + "controlpanel.sign." + type + ".line2" + " " + "controlpanel.sign." + type + ".line3"
|
||||
+ " " + "controlpanel.sign." + type + ".line4";
|
||||
MsgUtil.sendPanelMessage(sender, Text, hoverText, clickCommand);
|
||||
}
|
||||
}
|
||||
@@ -240,14 +255,24 @@ public class MsgUtil {
|
||||
if (sender.hasPermission("quickshop.empty")) {
|
||||
String Text = MsgUtil.getMessage("controlpanel.empty", String.valueOf(shop.getPrice()));
|
||||
String hoverText = MsgUtil.getMessage("controlpanel.empty-hover");
|
||||
String clickCommand = "/qs empty";
|
||||
String type = "empty";
|
||||
String clickCommand = "/qs silentempty " + shop.getLocation().getWorld().getName() + " "
|
||||
+ shop.getLocation().getBlockX() + " " + shop.getLocation().getBlockY() + " "
|
||||
+ shop.getLocation().getBlockZ() + " " +"controlpanel.sign." + type + ".line1" + " "
|
||||
+ "controlpanel.sign." + type + ".line2" + " " + "controlpanel.sign." + type + ".line3" + " "
|
||||
+ "controlpanel.sign." + type + ".line4";
|
||||
MsgUtil.sendPanelMessage(sender, Text, hoverText, clickCommand);
|
||||
}
|
||||
// Remove
|
||||
if (sender.hasPermission("quickshop.other.destroy") || shop.getOwner().equals(((Player)sender).getUniqueId())) {
|
||||
String Text = MsgUtil.getMessage("controlpanel.remove", String.valueOf(shop.getPrice()));
|
||||
String hoverText = MsgUtil.getMessage("controlpanel.remove-hover");
|
||||
String clickCommand = "/qs remove "+shop.getLocation().getBlockX()+" "+shop.getLocation().getBlockY()+" "+shop.getLocation().getBlockZ();
|
||||
String type = "remove";
|
||||
String clickCommand = "/qs silentremove " + shop.getLocation().getWorld().getName() + " "
|
||||
+ shop.getLocation().getBlockX() + " " + shop.getLocation().getBlockY() + " "
|
||||
+ shop.getLocation().getBlockZ() + " " + "controlpanel.sign." + type + ".line1" + " "
|
||||
+ "controlpanel.sign." + type + ".line2" + " " + "controlpanel.sign." + type + ".line3" + " "
|
||||
+ "controlpanel.sign." + type + ".line4";
|
||||
MsgUtil.sendPanelMessage(sender, Text, hoverText, clickCommand);
|
||||
}
|
||||
|
||||
@@ -344,7 +369,7 @@ public class MsgUtil {
|
||||
+ "controlpanel.sign." + type + ".line4";
|
||||
MsgUtil.sendPanelMessage(sender, Text, hoverText, clickCommand);
|
||||
}
|
||||
// Refill
|
||||
// Empty
|
||||
if (sender.hasPermission("quickshop.empty")) {
|
||||
String Text = MsgUtil.getMessage("controlpanel.empty", String.valueOf(shop.getPrice()));
|
||||
String hoverText = MsgUtil.getMessage("controlpanel.empty-hover");
|
||||
|
||||
Reference in new issue
Block a user