You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sender.sendMessage(MessageUtils.getAndFormatMsg(false, "messages.invalidUrlError", "&cThe URL is invalid!"));
85
+
sender.sendMessage(MessageUtils.getAndFormatMsg(false, "invalidUrlError", "&cThe URL is invalid!"));
86
86
returnfalse;
87
87
}
88
88
89
89
if (!url.startsWith("http://") && !url.startsWith("https://")) {
90
-
sender.sendMessage(MessageUtils.getAndFormatMsg(false, "messages.urlProtocolError", "&cThe URL must start with 'http://' or 'https://'!"));
90
+
sender.sendMessage(MessageUtils.getAndFormatMsg(false, "urlProtocolError", "&cThe URL must start with 'http://' or 'https://'!"));
91
91
returnfalse;
92
92
}
93
93
94
94
LinkManager.addLink(id, name, url, allowCommand);
95
-
sender.sendMessage(MessageUtils.getAndFormatMsg(true, "messages.addLinkMsg", "&7Successfully added link with id %id%!", newMessageUtils.Replaceable("%id%", id)));
95
+
sender.sendMessage(MessageUtils.getAndFormatMsg(true, "addLinkMsg", "&7Successfully added link with id %id%!", newMessageUtils.Replaceable("%id%", id)));
96
96
if (showHints) {
97
-
sender.sendMessage(MessageUtils.getAndFormatMsg(false, "messages.rejoinHint", "<#E9D502>⚠ To update the Serverlinks, please rejoin the server!"));
98
-
sender.sendMessage(MessageUtils.getAndFormatMsg(false, "messages.moreConfigOptionsHint", "<#E9D502>⚠ For more configuration options, please refer to the config.yml file!"));
97
+
sender.sendMessage(MessageUtils.getAndFormatMsg(false, "rejoinHint", "<#E9D502>⚠ To update the Serverlinks, please rejoin the server!"));
98
+
sender.sendMessage(MessageUtils.getAndFormatMsg(false, "moreConfigOptionsHint", "<#E9D502>⚠ For more configuration options, please refer to the config.yml file!"));
sender.sendMessage(MessageUtils.getAndFormatMsg(true, "messages.removeLinkMsg", "&7Successfully removed link with id %id%!", newMessageUtils.Replaceable("%id%", id)));
117
-
if (showHints) sender.sendMessage(MessageUtils.getAndFormatMsg(false, "messages.rejoinHint", "&cTo update the Serverlinks, please rejoin the server!"));
116
+
sender.sendMessage(MessageUtils.getAndFormatMsg(true, "removeLinkMsg", "&7Successfully removed link with id %id%!", newMessageUtils.Replaceable("%id%", id)));
117
+
if (showHints) sender.sendMessage(MessageUtils.getAndFormatMsg(false, "rejoinHint", "&cTo update the Serverlinks, please rejoin the server!"));
0 commit comments