4444import org .jetbrains .annotations .Nullable ;
4545import org .maxgamer .quickshop .QuickShop ;
4646import org .maxgamer .quickshop .ServiceInjector ;
47+ import org .maxgamer .quickshop .api .annotations .Unstable ;
4748import org .maxgamer .quickshop .api .database .WarpedResultSet ;
4849import org .maxgamer .quickshop .api .event .ShopControlPanelOpenEvent ;
4950import org .maxgamer .quickshop .api .shop .Shop ;
@@ -128,6 +129,8 @@ public static boolean flush(@NotNull OfflinePlayer p) {
128129 * @param itemBukkitName ItemBukkitName(e.g. Material.STONE.name())
129130 * @return String Item's i18n name.
130131 */
132+ @ Unstable
133+ @ Deprecated
131134 public static String getItemi18n (@ NotNull String itemBukkitName ) {
132135 if (itemBukkitName .isEmpty ()) {
133136 return "Item is empty" ;
@@ -162,10 +165,14 @@ public static String fillArgs(@Nullable String raw, @Nullable String... args) {
162165 return raw ;
163166 }
164167
168+ @ Unstable
169+ @ Deprecated
165170 public static void loadGameLanguage (@ NotNull String languageCode ) {
166171 gameLanguage = ServiceInjector .getGameLanguage (new MojangGameLanguageImpl (plugin , languageCode ));
167172 }
168173
174+ @ Unstable
175+ @ Deprecated
169176 public static void loadI18nFile () {
170177 //Update instance
171178 plugin = QuickShop .getInstance ();
@@ -175,6 +182,8 @@ public static void loadI18nFile() {
175182 loadGameLanguage (plugin .getConfig ().getString ("game-language" , "default" ));
176183 }
177184
185+ @ Unstable
186+ @ Deprecated
178187 public static void loadEnchi18n () {
179188 plugin .getLogger ().info ("Loading enchantments translations..." );
180189 File enchi18nFile = new File (plugin .getDataFolder (), "enchi18n.yml" );
@@ -210,6 +219,8 @@ public static void loadEnchi18n() {
210219 /**
211220 * Load Itemi18n fron file
212221 */
222+ @ Unstable
223+ @ Deprecated
213224 public static void loadItemi18n () {
214225 plugin .getLogger ().info ("Loading items translations..." );
215226 File itemi18nFile = new File (plugin .getDataFolder (), "itemi18n.yml" );
@@ -244,6 +255,8 @@ public static void loadItemi18n() {
244255 }
245256 }
246257
258+ @ Unstable
259+ @ Deprecated
247260 public static void loadPotioni18n () {
248261 plugin .getLogger ().info ("Loading potions translations..." );
249262 File potioni18nFile = new File (plugin .getDataFolder (), "potioni18n.yml" );
@@ -302,14 +315,6 @@ public static void loadTransactionMessages() {
302315 }
303316 }
304317
305- //For backward compatibility
306- @ Deprecated
307- public static void sendColoredMessage (@ NotNull CommandSender sender , @ NotNull ChatColor chatColor , @ Nullable String ... messages ) {
308- for (String message : messages ) {
309- sendDirectMessage (sender , chatColor + message );
310- }
311- }
312-
313318 /**
314319 * @param player The name of the player to message
315320 * @param transactionMessage The message to send them Sends the given player a message if they're online.
@@ -567,13 +572,14 @@ public static void sendMessageToOps(@NotNull String message) {
567572 }
568573
569574
570-
571575 /**
572576 * Get Enchantment's i18n name.
573577 *
574578 * @param key The Enchantment.
575579 * @return Enchantment's i18n name.
576580 */
581+ @ Unstable
582+ @ Deprecated
577583 public static String getEnchi18n (@ NotNull Enchantment key ) {
578584 String enchString = key .getKey ().getKey ();
579585 if (enchString .isEmpty ()) {
@@ -624,6 +630,8 @@ private static void printEnchantment(ChatSheetPrinter chatSheetPrinter, Map<Ench
624630 * @param potion potionType
625631 * @return Potion's i18n name.
626632 */
633+ @ Unstable
634+ @ Deprecated
627635 public static String getPotioni18n (@ NotNull PotionEffectType potion ) {
628636 String potionString = potion .getName ().trim ();
629637 if (potionString .isEmpty ()) {
0 commit comments