Skip to content

Releases: ChatTriggers/ChatTriggers

2.2.1

08 Jul 02:58
ff17997
Compare
Choose a tag to compare
  • Fix certificate issue on older Java versions that caused issues with importing (@MisterCheezeCake)
  • Fix modules sometimes evaluating twice when imported from different locations
  • Fix trigger priorities sometimes not working correctly (@camnwalter)
  • Color required modules gray in the /ct modules menu (@NoahTheNerd)

2.2.0

01 Apr 23:46
Compare
Choose a tag to compare
  • Added extra parameter to Image.fromUrl to control the cached image name
  • Added FileLib.{encodeBase64,decodeBase64} (@Debuggingss)
  • Added Gui.register{Opened,Closed} (@DalwynWasTaken)
  • Added Player.isMoving (@realfork)
  • Added ability to filter the class type using .setFilteredClass(Class) for the following triggers: renderEntity, postRenderEntity, renderTileEntity, postRenderTileEntity (@Marvinschs)
  • Added a top-level NBT helper to make parsing NBT easier (@camnwalter)
  • Added KeyBind.{unregisterKeyPress,unregisterKeyRelease,unregisterKeyDown}() (@Marvinschs)
  • Added Display.{unregisterClicked,unregisterHovered,unregisterMouseLeave,unregisterDragged}() (@Marvinschs)
  • Added ability to pass Class<*> objects which inherit from Forge's Event class into the first parameter of register. This allows you to register for arbitrary events.
  • Show module dependencies on the module graph GUI (@camnwalter)
  • Fixed step trigger firing a bunch of extra times when registering it after a call to unregister.
  • Fixed links in TextComponent instances not being clickable (@camnwalter )
  • Fixed ChatLib.say not triggering messageSent (@Debuggingss)
  • Fixed not being able to /ct load after a /ct unload (@camnwalter)
  • Fixed not having to manually /ct load after importing a module with a .jar file (@camnwalter)

2.1.5

06 Aug 15:07
c2f1808
Compare
Choose a tag to compare
  • Added Image.destroy() to clean up an image's texture from memory (@Soopyboo32)
  • Added Image(java.io.File) (@Squagward)
  • Added a method to perform class filtering for packet triggers:
    register('packetSent', () => {}).setPacketClass(MyPacketClass.class);
    register('packetSent', () => {}).setPacketClasses([A.class, B.class, C.class]);

2.1.4

20 May 00:57
Compare
Choose a tag to compare

Fix rhino-related performance issue relating to packet triggers (@Squagward)

2.1.3

14 May 22:19
Compare
Choose a tag to compare
  • Fixed performance issue relating to Threads
  • Implemented custom tab completions for command triggers (@Squagward)
  • Added some utility Display methods: removeLine, show, hide (@Squagward)

2.1.2

12 May 12:45
Compare
Choose a tag to compare

Fixed a significant performance issue.

2.1.1

11 May 12:37
Compare
Choose a tag to compare

Fixed not being able to call register from new Threads.

2.1.0

10 May 17:02
Compare
Choose a tag to compare

Additions

  • Added Display::setRegisterType("RENDER_OVERLAY_EVENT" | "POST_GUI_RENDER_EVENT") to control when the GUI draws (@DalwynWasTaken)
  • Added Particle::getColor() (@Debuggingss)
  • Added FileLib::{delete,deleteDirectory}() (@Squagward)
  • Added Client.currentGui.getSlotUnderMouse(), which returns a new CT Slot wrapper class (@appable0)
  • Added Item::{setName, setLore}() (@Squagward)
  • Added support for newlines in Renderer.drawStringWithShadow (@Squagward)
  • Added Client.connect(ip: String) (@Squagward)
  • Added end argument to print so the newline can be omitted (@Debuggingss)
    • E.g.: print('a string', '')
  • New triggers:
    • renderTitle(title: String, subtitle: String, event: Event) triggers when a title is drawn to the screen (@Squagward)
    • renderSlot(slot: Slot, gui: GuiContainer, event: Event) triggers when a slot is being drawn (@appable0)
    • renderItemIntoGui(item: Item, x: Int, y: Int, event: Event) triggers when an item is drawn into a gui (@appable0)
    • renderItemOverlayIntoGui(item: Item, x: Int, y: Int, event: Event) triggers when an item overlay (stack count/damage) is drawn into a gui (@appable0)
    • renderHand(event: Event) triggers for the hand drawing, can be cancelled (@Squagward)

Fixes/Changes:

  • Media keys no longer trigger all keybinds (@Squagward)
  • chatComponentClicked no longer triggers more often than it should (@Squagward)
  • A criteria now counts as formatted if it contains the § character (@Squagward)
  • Deleting modules with jar files is now possible (@Squagward)
  • gameLoad now properly triggers on game load (previously it would only trigger on /ct load) (@Debuggingss)
  • Fixed cast error in Sound (@Squagward)
  • Removed unused /generatebindings command and associated logic (@Debuggingss)
  • Fixed slots being incorrect for certain GUIs (@Squagward)
  • Enable color in the console by default (@Debuggingss)

2.0.4

17 Mar 12:44
Compare
Choose a tag to compare

Additions:

  • Add renderScoreboard trigger (@Squagward)
  • Add Scoreboard.setTitle (@Squagward)
  • Add Player{,MP}.getTeam() (@Squagward)
  • Add World.stopAllSounds() (@Squagward)
  • Add NBTTagList.insertTag() (@Squagward)
  • Add Scoreboard.getScoreboard() and Scoreboard.getSidebar() (@Squagward)
  • Add a bunch of NBTTagCompound setters (@Squagward)
  • Add ability for Display to use postGuiRender trigger (@DalwynWasTaken)

Changes:

  • DisplayLine.addLine now returns itself for method chaining (@DalwynWasTaken)

Fixes:

  • Fixed invokeJS (@Squagward)
  • Only trigger Gui scroll when open, fix NPE (@Squagward)
  • Fixed Sound cast error (@Squagward)
  • Fixed Display clicking/dragging when using alignment (@Squagward)

2.0.3

22 Feb 17:11
Compare
Choose a tag to compare

Fix an issue with some Client methods being unavailable.