@@ -150,6 +150,8 @@ public class InteractiveChatDiscordSrvAddon extends JavaPlugin implements Listen
150
150
public boolean itemUseTooltipImageOnBaseItem = false ;
151
151
public boolean itemAltAir = true ;
152
152
public String itemTitle = "%player_name%'s Item" ;
153
+ public String inventoryTitle = "%player_name%'s Inventory" ;
154
+ public String enderTitle ;
153
155
public long itemDisplayTimeout = 300000 ;
154
156
public boolean hideLodestoneCompassPos = true ;
155
157
public boolean invShowLevel = true ;
@@ -283,8 +285,8 @@ public class InteractiveChatDiscordSrvAddon extends JavaPlugin implements Listen
283
285
public static ICPlaceholder enderChestPlaceholder = null ;
284
286
public ItemStack invFrame1 = null ;
285
287
public ItemStack invFrame2 = null ;
286
- public static ItemStack itemFrame1 ;
287
- public static ItemStack itemFrame2 ;
288
+ public ItemStack itemFrame1 ;
289
+ public ItemStack itemFrame2 ;
288
290
public static Map <UUID , ICPlaceholder > placeholderList = new LinkedHashMap <>();
289
291
290
292
public int itemTagMaxLength = 32767 ;
@@ -306,6 +308,7 @@ public class InteractiveChatDiscordSrvAddon extends JavaPlugin implements Listen
306
308
private ResourceManager resourceManager ;
307
309
public ModelRenderer modelRenderer ;
308
310
public ExecutorService mediaReadingService ;
311
+ public static PlaceholderCooldownManager placeholderCooldownManager ;
309
312
310
313
protected Map <String , byte []> extras = new ConcurrentHashMap <>();
311
314
@@ -358,6 +361,8 @@ public void onEnable() {
358
361
DiscordSRV .api .subscribe (new OutboundToDiscordEvents ());
359
362
DiscordSRV .api .subscribe (new InboundToGameEvents ());
360
363
364
+ placeholderCooldownManager = new PlaceholderCooldownManager ();
365
+
361
366
getServer ().getPluginManager ().registerEvents (this , this );
362
367
getServer ().getPluginManager ().registerEvents (new InboundToGameEvents (), this );
363
368
getServer ().getPluginManager ().registerEvents (new OutboundToDiscordEvents (), this );
@@ -515,7 +520,9 @@ public void reloadConfig() {
515
520
516
521
itemUseTooltipImageOnBaseItem = config .getConfiguration ().getBoolean ("InventoryImage.Item.UseTooltipImageOnBaseItem" );
517
522
itemAltAir = config .getConfiguration ().getBoolean ("InventoryImage.Item.AlternateAirTexture" );
518
- itemTitle = ChatColorUtils .translateAlternateColorCodes ('&' , config .getConfiguration ().getString ("InventoryImage.Item.InventoryTitle" ));
523
+ itemTitle = ChatColorUtils .translateAlternateColorCodes ('&' , config .getConfiguration ().getString ("InventoryImage.Item.ItemTitle" ));
524
+ inventoryTitle = ChatColorUtils .translateAlternateColorCodes ('&' , config .getConfiguration ().getString ("InventoryImage.Inventory.InventoryTitle" ));
525
+ enderTitle = ChatColorUtils .translateAlternateColorCodes ('&' , config .getConfiguration ().getString ("InventoryImage.EnderChest.Text" ));
519
526
itemDisplayTimeout = config .getConfiguration ().getLong ("Settings.Timeout" ) * 60 * 1000 ;
520
527
hideLodestoneCompassPos = config .getConfiguration ().getBoolean ("Settings.HideLodestoneCompassPos" );
521
528
@@ -708,6 +715,9 @@ public void reloadConfig() {
708
715
invFrame1 = new ItemStack (Material .valueOf (getConfig ().getString ("InventoryImage.Inventory.Frame.Primary" )), 1 );
709
716
invFrame2 = new ItemStack (Material .valueOf (getConfig ().getString ("InventoryImage.Inventory.Frame.Secondary" )), 1 );
710
717
718
+ itemFrame1 = new ItemStack (Material .valueOf (getConfig ().getString ("InventoryImage.Item.Frame.Primary" )), 1 );
719
+ itemFrame2 = new ItemStack (Material .valueOf (getConfig ().getString ("InventoryImage.Item.Frame.Secondary" )), 1 );
720
+
711
721
universalCooldown = config .getConfiguration ().getLong ("Settings.UniversalCooldown" ) * 1000 ;
712
722
713
723
FontTextureResource .setCacheTime (cacheTimeout );
0 commit comments