1.15.2 Is it possible to block saved toolbars in creative mode for players?

Discussion in 'Spigot Plugin Development' started by Msql, Jan 25, 2020.

  1. Is it possible to block saved toolbars in creative mode for players?
    If yes, how to do it? Is it possible with bukkit api?
     
  2. Since you only want to check for those shoes; you can simply listen to the InventoryCreativeEvent and check if the item has said attribute. The Event fires nine times for the nine quick-bar slots.
     
  3. IllegalStack is an exploit blocking plugin that does this (among other things) but basically you can’t do it with the bukkit api, you’ll have to read and block the packet sent from the client that loads up the saved toolbar. Which requires using either protocollib or using NMS to interface with the incoming packets. There just isn’t a way to block the incoming packet via the bukkit api.


    Sent from my iPhone using Tapatalk