@plugify-plugins/s2sdk-types 1.1.9 → 1.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +5 -5
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1552,7 +1552,7 @@ declare module ":s2sdk" {
1552
1552
  * @param flags Command flags that define the behavior of the command.
1553
1553
  * @param callback A callback function that is invoked when the command is executed.
1554
1554
  */
1555
- export function AddAdminCommand(name: string, adminFlags: number, description: string, flags: ConVarFlag, callback: typeof Callbacks.CommandCallback): void;
1555
+ export function AddAdminCommand(name: string, adminFlags: number, description: string, flags: ConVarFlag, callback: typeof Callbacks.CommandCallback): boolean;
1556
1556
 
1557
1557
  /**
1558
1558
  * @description Creates a console command or hooks an already existing one.
@@ -1564,7 +1564,7 @@ declare module ":s2sdk" {
1564
1564
  * @param flags Command flags that define the behavior of the command.
1565
1565
  * @param callback A callback function that is invoked when the command is executed.
1566
1566
  */
1567
- export function AddConsoleCommand(name: string, description: string, flags: ConVarFlag, callback: typeof Callbacks.CommandCallback): void;
1567
+ export function AddConsoleCommand(name: string, description: string, flags: ConVarFlag, callback: typeof Callbacks.CommandCallback): boolean;
1568
1568
 
1569
1569
  /**
1570
1570
  * @description Removes a console command from the system.
@@ -1574,7 +1574,7 @@ declare module ":s2sdk" {
1574
1574
  * @param name The name of the command to be removed.
1575
1575
  * @param callback The callback function associated with the command to be removed.
1576
1576
  */
1577
- export function RemoveCommand(name: string, callback: typeof Callbacks.CommandCallback): void;
1577
+ export function RemoveCommand(name: string, callback: typeof Callbacks.CommandCallback): boolean;
1578
1578
 
1579
1579
  /**
1580
1580
  * @description Adds a callback that will fire when a command is sent to the server.
@@ -1585,7 +1585,7 @@ declare module ":s2sdk" {
1585
1585
  * @param callback The callback function that will be invoked when the command is executed.
1586
1586
  * @param post A boolean indicating whether the callback should fire after the command is executed.
1587
1587
  */
1588
- export function AddCommandListener(name: string, callback: typeof Callbacks.CommandCallback, post: boolean): void;
1588
+ export function AddCommandListener(name: string, callback: typeof Callbacks.CommandCallback, post: boolean): boolean;
1589
1589
 
1590
1590
  /**
1591
1591
  * @description Removes a callback that fires when a command is sent to the server.
@@ -1596,7 +1596,7 @@ declare module ":s2sdk" {
1596
1596
  * @param callback The callback function to be removed.
1597
1597
  * @param post A boolean indicating whether the callback should be removed for post-execution.
1598
1598
  */
1599
- export function RemoveCommandListener(name: string, callback: typeof Callbacks.CommandCallback, post: boolean): void;
1599
+ export function RemoveCommandListener(name: string, callback: typeof Callbacks.CommandCallback, post: boolean): boolean;
1600
1600
 
1601
1601
  /**
1602
1602
  * @description Executes a server command as if it were run on the server console or through RCON.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plugify-plugins/s2sdk-types",
3
- "version": "1.1.9",
3
+ "version": "1.1.12",
4
4
  "description": "generated typescript types to write plugins on plugify",
5
5
  "types": "index.d.ts",
6
6
  "scripts": {},