@takaro/modules 0.0.0-next.0da151e
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.
- package/README.md +3 -0
- package/dist/BuiltinModule.d.ts +62 -0
- package/dist/BuiltinModule.d.ts.map +1 -0
- package/dist/BuiltinModule.js +245 -0
- package/dist/BuiltinModule.js.map +1 -0
- package/dist/community-modules.json +21 -0
- package/dist/dto/base.d.ts +7 -0
- package/dist/dto/base.d.ts.map +1 -0
- package/dist/dto/base.js +28 -0
- package/dist/dto/base.js.map +1 -0
- package/dist/dto/discordEvents.d.ts +32 -0
- package/dist/dto/discordEvents.d.ts.map +1 -0
- package/dist/dto/discordEvents.js +92 -0
- package/dist/dto/discordEvents.js.map +1 -0
- package/dist/dto/gameEvents.d.ts +83 -0
- package/dist/dto/gameEvents.d.ts.map +1 -0
- package/dist/dto/gameEvents.js +205 -0
- package/dist/dto/gameEvents.js.map +1 -0
- package/dist/dto/index.d.ts +54 -0
- package/dist/dto/index.d.ts.map +1 -0
- package/dist/dto/index.js +18 -0
- package/dist/dto/index.js.map +1 -0
- package/dist/dto/takaroEvents.d.ts +276 -0
- package/dist/dto/takaroEvents.d.ts.map +1 -0
- package/dist/dto/takaroEvents.js +794 -0
- package/dist/dto/takaroEvents.js.map +1 -0
- package/dist/main.d.ts +5 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +35 -0
- package/dist/main.js.map +1 -0
- package/dist/modules/chatBridge/hooks/DiscordToGame.d.ts +2 -0
- package/dist/modules/chatBridge/hooks/DiscordToGame.d.ts.map +1 -0
- package/dist/modules/chatBridge/hooks/DiscordToGame.js +18 -0
- package/dist/modules/chatBridge/hooks/DiscordToGame.js.map +1 -0
- package/dist/modules/chatBridge/hooks/GameToDiscord.d.ts +2 -0
- package/dist/modules/chatBridge/hooks/GameToDiscord.d.ts.map +1 -0
- package/dist/modules/chatBridge/hooks/GameToDiscord.js +14 -0
- package/dist/modules/chatBridge/hooks/GameToDiscord.js.map +1 -0
- package/dist/modules/chatBridge/hooks/PlayerConnected.d.ts +2 -0
- package/dist/modules/chatBridge/hooks/PlayerConnected.d.ts.map +1 -0
- package/dist/modules/chatBridge/hooks/PlayerConnected.js +9 -0
- package/dist/modules/chatBridge/hooks/PlayerConnected.js.map +1 -0
- package/dist/modules/chatBridge/hooks/PlayerDisconnected.d.ts +2 -0
- package/dist/modules/chatBridge/hooks/PlayerDisconnected.d.ts.map +1 -0
- package/dist/modules/chatBridge/hooks/PlayerDisconnected.js +9 -0
- package/dist/modules/chatBridge/hooks/PlayerDisconnected.js.map +1 -0
- package/dist/modules/chatBridge/index.d.ts +5 -0
- package/dist/modules/chatBridge/index.d.ts.map +1 -0
- package/dist/modules/chatBridge/index.js +64 -0
- package/dist/modules/chatBridge/index.js.map +1 -0
- package/dist/modules/dailyRewards/commands/daily.d.ts +2 -0
- package/dist/modules/dailyRewards/commands/daily.d.ts.map +1 -0
- package/dist/modules/dailyRewards/commands/daily.js +103 -0
- package/dist/modules/dailyRewards/commands/daily.js.map +1 -0
- package/dist/modules/dailyRewards/commands/streak.d.ts +2 -0
- package/dist/modules/dailyRewards/commands/streak.d.ts.map +1 -0
- package/dist/modules/dailyRewards/commands/streak.js +34 -0
- package/dist/modules/dailyRewards/commands/streak.js.map +1 -0
- package/dist/modules/dailyRewards/commands/topstreak.d.ts +2 -0
- package/dist/modules/dailyRewards/commands/topstreak.d.ts.map +1 -0
- package/dist/modules/dailyRewards/commands/topstreak.js +44 -0
- package/dist/modules/dailyRewards/commands/topstreak.js.map +1 -0
- package/dist/modules/dailyRewards/functions/utils.d.ts +6 -0
- package/dist/modules/dailyRewards/functions/utils.d.ts.map +1 -0
- package/dist/modules/dailyRewards/functions/utils.js +32 -0
- package/dist/modules/dailyRewards/functions/utils.js.map +1 -0
- package/dist/modules/dailyRewards/hooks/dailyLoginCheck.d.ts +2 -0
- package/dist/modules/dailyRewards/hooks/dailyLoginCheck.d.ts.map +1 -0
- package/dist/modules/dailyRewards/hooks/dailyLoginCheck.js +19 -0
- package/dist/modules/dailyRewards/hooks/dailyLoginCheck.js.map +1 -0
- package/dist/modules/dailyRewards/index.d.ts +5 -0
- package/dist/modules/dailyRewards/index.d.ts.map +1 -0
- package/dist/modules/dailyRewards/index.js +127 -0
- package/dist/modules/dailyRewards/index.js.map +1 -0
- package/dist/modules/economyUtils/commands/balance.d.ts +2 -0
- package/dist/modules/economyUtils/commands/balance.d.ts.map +1 -0
- package/dist/modules/economyUtils/commands/balance.js +7 -0
- package/dist/modules/economyUtils/commands/balance.js.map +1 -0
- package/dist/modules/economyUtils/commands/claim.d.ts +2 -0
- package/dist/modules/economyUtils/commands/claim.d.ts.map +1 -0
- package/dist/modules/economyUtils/commands/claim.js +35 -0
- package/dist/modules/economyUtils/commands/claim.js.map +1 -0
- package/dist/modules/economyUtils/commands/confirmTransfer.d.ts +2 -0
- package/dist/modules/economyUtils/commands/confirmTransfer.d.ts.map +1 -0
- package/dist/modules/economyUtils/commands/confirmTransfer.js +38 -0
- package/dist/modules/economyUtils/commands/confirmTransfer.js.map +1 -0
- package/dist/modules/economyUtils/commands/grantCurrency.d.ts +2 -0
- package/dist/modules/economyUtils/commands/grantCurrency.d.ts.map +1 -0
- package/dist/modules/economyUtils/commands/grantCurrency.js +28 -0
- package/dist/modules/economyUtils/commands/grantCurrency.js.map +1 -0
- package/dist/modules/economyUtils/commands/revokeCurrency.d.ts +2 -0
- package/dist/modules/economyUtils/commands/revokeCurrency.d.ts.map +1 -0
- package/dist/modules/economyUtils/commands/revokeCurrency.js +28 -0
- package/dist/modules/economyUtils/commands/revokeCurrency.js.map +1 -0
- package/dist/modules/economyUtils/commands/shop.d.ts +2 -0
- package/dist/modules/economyUtils/commands/shop.d.ts.map +1 -0
- package/dist/modules/economyUtils/commands/shop.js +69 -0
- package/dist/modules/economyUtils/commands/shop.js.map +1 -0
- package/dist/modules/economyUtils/commands/topCurrency.d.ts +2 -0
- package/dist/modules/economyUtils/commands/topCurrency.d.ts.map +1 -0
- package/dist/modules/economyUtils/commands/topCurrency.js +22 -0
- package/dist/modules/economyUtils/commands/topCurrency.js.map +1 -0
- package/dist/modules/economyUtils/commands/transfer.d.ts +2 -0
- package/dist/modules/economyUtils/commands/transfer.d.ts.map +1 -0
- package/dist/modules/economyUtils/commands/transfer.js +55 -0
- package/dist/modules/economyUtils/commands/transfer.js.map +1 -0
- package/dist/modules/economyUtils/cronJobs/zombieKillReward.d.ts +2 -0
- package/dist/modules/economyUtils/cronJobs/zombieKillReward.d.ts.map +1 -0
- package/dist/modules/economyUtils/cronJobs/zombieKillReward.js +66 -0
- package/dist/modules/economyUtils/cronJobs/zombieKillReward.js.map +1 -0
- package/dist/modules/economyUtils/index.d.ts +5 -0
- package/dist/modules/economyUtils/index.d.ts.map +1 -0
- package/dist/modules/economyUtils/index.js +192 -0
- package/dist/modules/economyUtils/index.js.map +1 -0
- package/dist/modules/geoBlock/hooks/IPDetected.d.ts +2 -0
- package/dist/modules/geoBlock/hooks/IPDetected.d.ts.map +1 -0
- package/dist/modules/geoBlock/hooks/IPDetected.js +50 -0
- package/dist/modules/geoBlock/hooks/IPDetected.js.map +1 -0
- package/dist/modules/geoBlock/index.d.ts +9 -0
- package/dist/modules/geoBlock/index.d.ts.map +1 -0
- package/dist/modules/geoBlock/index.js +329 -0
- package/dist/modules/geoBlock/index.js.map +1 -0
- package/dist/modules/gimme/commands/gimme.d.ts +2 -0
- package/dist/modules/gimme/commands/gimme.d.ts.map +1 -0
- package/dist/modules/gimme/commands/gimme.js +25 -0
- package/dist/modules/gimme/commands/gimme.js.map +1 -0
- package/dist/modules/gimme/index.d.ts +5 -0
- package/dist/modules/gimme/index.d.ts.map +1 -0
- package/dist/modules/gimme/index.js +75 -0
- package/dist/modules/gimme/index.js.map +1 -0
- package/dist/modules/highPingKicker/cronJobs/Ping check.d.ts +2 -0
- package/dist/modules/highPingKicker/cronJobs/Ping check.d.ts.map +1 -0
- package/dist/modules/highPingKicker/cronJobs/Ping check.js +59 -0
- package/dist/modules/highPingKicker/cronJobs/Ping check.js.map +1 -0
- package/dist/modules/highPingKicker/index.d.ts +5 -0
- package/dist/modules/highPingKicker/index.d.ts.map +1 -0
- package/dist/modules/highPingKicker/index.js +44 -0
- package/dist/modules/highPingKicker/index.js.map +1 -0
- package/dist/modules/lottery/commands/buyTicket.d.ts +2 -0
- package/dist/modules/lottery/commands/buyTicket.d.ts.map +1 -0
- package/dist/modules/lottery/commands/buyTicket.js +51 -0
- package/dist/modules/lottery/commands/buyTicket.js.map +1 -0
- package/dist/modules/lottery/commands/nextDraw.d.ts +2 -0
- package/dist/modules/lottery/commands/nextDraw.d.ts.map +1 -0
- package/dist/modules/lottery/commands/nextDraw.js +34 -0
- package/dist/modules/lottery/commands/nextDraw.js.map +1 -0
- package/dist/modules/lottery/commands/viewTickets.d.ts +2 -0
- package/dist/modules/lottery/commands/viewTickets.d.ts.map +1 -0
- package/dist/modules/lottery/commands/viewTickets.js +20 -0
- package/dist/modules/lottery/commands/viewTickets.js.map +1 -0
- package/dist/modules/lottery/cronJobs/drawLottery.d.ts +2 -0
- package/dist/modules/lottery/cronJobs/drawLottery.d.ts.map +1 -0
- package/dist/modules/lottery/cronJobs/drawLottery.js +96 -0
- package/dist/modules/lottery/cronJobs/drawLottery.js.map +1 -0
- package/dist/modules/lottery/index.d.ts +5 -0
- package/dist/modules/lottery/index.d.ts.map +1 -0
- package/dist/modules/lottery/index.js +85 -0
- package/dist/modules/lottery/index.js.map +1 -0
- package/dist/modules/playerOnboarding/commands/starterkit.d.ts +2 -0
- package/dist/modules/playerOnboarding/commands/starterkit.d.ts.map +1 -0
- package/dist/modules/playerOnboarding/commands/starterkit.js +47 -0
- package/dist/modules/playerOnboarding/commands/starterkit.js.map +1 -0
- package/dist/modules/playerOnboarding/hooks/playerConnected.d.ts +2 -0
- package/dist/modules/playerOnboarding/hooks/playerConnected.d.ts.map +1 -0
- package/dist/modules/playerOnboarding/hooks/playerConnected.js +11 -0
- package/dist/modules/playerOnboarding/hooks/playerConnected.js.map +1 -0
- package/dist/modules/playerOnboarding/index.d.ts +5 -0
- package/dist/modules/playerOnboarding/index.d.ts.map +1 -0
- package/dist/modules/playerOnboarding/index.js +83 -0
- package/dist/modules/playerOnboarding/index.js.map +1 -0
- package/dist/modules/serverMessages/cronJobs/Automated message.d.ts +2 -0
- package/dist/modules/serverMessages/cronJobs/Automated message.d.ts.map +1 -0
- package/dist/modules/serverMessages/cronJobs/Automated message.js +41 -0
- package/dist/modules/serverMessages/cronJobs/Automated message.js.map +1 -0
- package/dist/modules/serverMessages/index.d.ts +5 -0
- package/dist/modules/serverMessages/index.d.ts.map +1 -0
- package/dist/modules/serverMessages/index.js +45 -0
- package/dist/modules/serverMessages/index.js.map +1 -0
- package/dist/modules/teleports/commands/deletetp.d.ts +2 -0
- package/dist/modules/teleports/commands/deletetp.d.ts.map +1 -0
- package/dist/modules/teleports/commands/deletetp.js +20 -0
- package/dist/modules/teleports/commands/deletetp.js.map +1 -0
- package/dist/modules/teleports/commands/deletewaypoint.d.ts +2 -0
- package/dist/modules/teleports/commands/deletewaypoint.d.ts.map +1 -0
- package/dist/modules/teleports/commands/deletewaypoint.js +20 -0
- package/dist/modules/teleports/commands/deletewaypoint.js.map +1 -0
- package/dist/modules/teleports/commands/listwaypoints.d.ts +2 -0
- package/dist/modules/teleports/commands/listwaypoints.d.ts.map +1 -0
- package/dist/modules/teleports/commands/listwaypoints.js +17 -0
- package/dist/modules/teleports/commands/listwaypoints.js.map +1 -0
- package/dist/modules/teleports/commands/setprivate.d.ts +2 -0
- package/dist/modules/teleports/commands/setprivate.d.ts.map +1 -0
- package/dist/modules/teleports/commands/setprivate.js +29 -0
- package/dist/modules/teleports/commands/setprivate.js.map +1 -0
- package/dist/modules/teleports/commands/setpublic.d.ts +2 -0
- package/dist/modules/teleports/commands/setpublic.d.ts.map +1 -0
- package/dist/modules/teleports/commands/setpublic.js +45 -0
- package/dist/modules/teleports/commands/setpublic.js.map +1 -0
- package/dist/modules/teleports/commands/settp.d.ts +2 -0
- package/dist/modules/teleports/commands/settp.d.ts.map +1 -0
- package/dist/modules/teleports/commands/settp.js +40 -0
- package/dist/modules/teleports/commands/settp.js.map +1 -0
- package/dist/modules/teleports/commands/setwaypoint.d.ts +2 -0
- package/dist/modules/teleports/commands/setwaypoint.d.ts.map +1 -0
- package/dist/modules/teleports/commands/setwaypoint.js +28 -0
- package/dist/modules/teleports/commands/setwaypoint.js.map +1 -0
- package/dist/modules/teleports/commands/teleport.d.ts +2 -0
- package/dist/modules/teleports/commands/teleport.d.ts.map +1 -0
- package/dist/modules/teleports/commands/teleport.js +68 -0
- package/dist/modules/teleports/commands/teleport.js.map +1 -0
- package/dist/modules/teleports/commands/teleportwaypoint.d.ts +2 -0
- package/dist/modules/teleports/commands/teleportwaypoint.d.ts.map +1 -0
- package/dist/modules/teleports/commands/teleportwaypoint.js +43 -0
- package/dist/modules/teleports/commands/teleportwaypoint.js.map +1 -0
- package/dist/modules/teleports/commands/tplist.d.ts +2 -0
- package/dist/modules/teleports/commands/tplist.d.ts.map +1 -0
- package/dist/modules/teleports/commands/tplist.js +46 -0
- package/dist/modules/teleports/commands/tplist.js.map +1 -0
- package/dist/modules/teleports/cronJobs/Waypoint reconciler.d.ts +2 -0
- package/dist/modules/teleports/cronJobs/Waypoint reconciler.d.ts.map +1 -0
- package/dist/modules/teleports/cronJobs/Waypoint reconciler.js +6 -0
- package/dist/modules/teleports/cronJobs/Waypoint reconciler.js.map +1 -0
- package/dist/modules/teleports/functions/utils.d.ts +14 -0
- package/dist/modules/teleports/functions/utils.d.ts.map +1 -0
- package/dist/modules/teleports/functions/utils.js +156 -0
- package/dist/modules/teleports/functions/utils.js.map +1 -0
- package/dist/modules/teleports/index.d.ts +5 -0
- package/dist/modules/teleports/index.d.ts.map +1 -0
- package/dist/modules/teleports/index.js +208 -0
- package/dist/modules/teleports/index.js.map +1 -0
- package/dist/modules/timedShutdown/cronJobs/Shutdown.d.ts +2 -0
- package/dist/modules/timedShutdown/cronJobs/Shutdown.d.ts.map +1 -0
- package/dist/modules/timedShutdown/cronJobs/Shutdown.js +7 -0
- package/dist/modules/timedShutdown/cronJobs/Shutdown.js.map +1 -0
- package/dist/modules/timedShutdown/cronJobs/warning.d.ts +2 -0
- package/dist/modules/timedShutdown/cronJobs/warning.d.ts.map +1 -0
- package/dist/modules/timedShutdown/cronJobs/warning.js +10 -0
- package/dist/modules/timedShutdown/cronJobs/warning.js.map +1 -0
- package/dist/modules/timedShutdown/index.d.ts +5 -0
- package/dist/modules/timedShutdown/index.d.ts.map +1 -0
- package/dist/modules/timedShutdown/index.js +43 -0
- package/dist/modules/timedShutdown/index.js.map +1 -0
- package/dist/modules/utils/commands/help.d.ts +2 -0
- package/dist/modules/utils/commands/help.d.ts.map +1 -0
- package/dist/modules/utils/commands/help.js +84 -0
- package/dist/modules/utils/commands/help.js.map +1 -0
- package/dist/modules/utils/commands/ping.d.ts +2 -0
- package/dist/modules/utils/commands/ping.d.ts.map +1 -0
- package/dist/modules/utils/commands/ping.js +6 -0
- package/dist/modules/utils/commands/ping.js.map +1 -0
- package/dist/modules/utils/index.d.ts +5 -0
- package/dist/modules/utils/index.d.ts.map +1 -0
- package/dist/modules/utils/index.js +52 -0
- package/dist/modules/utils/index.js.map +1 -0
- package/dist/modules.json +757 -0
- package/package.json +17 -0
- package/scripts/buildBuiltinJson.ts +81 -0
- package/src/BuiltinModule.ts +159 -0
- package/src/__tests__/aliases.integration.test.ts +90 -0
- package/src/__tests__/bugRepros.integration.test.ts +485 -0
- package/src/__tests__/builtinmodule.unit.test.ts +15 -0
- package/src/__tests__/commandArgs.integration.test.ts +291 -0
- package/src/__tests__/crossServerPlayer.integration.test.ts +176 -0
- package/src/__tests__/economy/claim.integration.test.ts +250 -0
- package/src/__tests__/economy/economyUtils.integration.test.ts +495 -0
- package/src/__tests__/economy/shop.integration.test.ts +177 -0
- package/src/__tests__/economy/zombieKillReward.integration.test.ts +293 -0
- package/src/__tests__/geoblock.integration.test.ts +322 -0
- package/src/__tests__/gimme.integration.test.ts +106 -0
- package/src/__tests__/help.integration.test.ts +314 -0
- package/src/__tests__/highPingKicker.integration.test.ts +618 -0
- package/src/__tests__/lottery.integration.test.ts +344 -0
- package/src/__tests__/modulePermission.integration.test.ts +387 -0
- package/src/__tests__/onboarding.integration.test.ts +122 -0
- package/src/__tests__/ping.integration.test.ts +36 -0
- package/src/__tests__/roleExpiry.integration.test.ts +78 -0
- package/src/__tests__/serverMessages.integration.test.ts +116 -0
- package/src/__tests__/systemConfigCooldown.integration.test.ts +84 -0
- package/src/__tests__/systemConfigCost.integration.test.ts +194 -0
- package/src/__tests__/teleports/listtp.integration.test.ts +189 -0
- package/src/__tests__/teleports/publicteleports.integration.test.ts +345 -0
- package/src/__tests__/teleports/teleport.integration.test.ts +153 -0
- package/src/__tests__/teleports/tpManagement.integration.test.ts +175 -0
- package/src/__tests__/teleports/waypoints.integration.test.ts +832 -0
- package/src/community-modules/README.md +5 -0
- package/src/community-modules/modules/vote.json +19 -0
- package/src/dto/base.ts +13 -0
- package/src/dto/discordEvents.ts +69 -0
- package/src/dto/gameEvents.ts +159 -0
- package/src/dto/index.ts +25 -0
- package/src/dto/takaroEvents.ts +525 -0
- package/src/main.ts +47 -0
- package/src/modules/.eslintrc +5 -0
- package/src/modules/chatBridge/hooks/DiscordToGame.js +18 -0
- package/src/modules/chatBridge/hooks/GameToDiscord.js +18 -0
- package/src/modules/chatBridge/hooks/PlayerConnected.js +11 -0
- package/src/modules/chatBridge/hooks/PlayerDisconnected.js +11 -0
- package/src/modules/chatBridge/index.ts +64 -0
- package/src/modules/dailyRewards/commands/daily.js +114 -0
- package/src/modules/dailyRewards/commands/streak.js +42 -0
- package/src/modules/dailyRewards/commands/topstreak.js +54 -0
- package/src/modules/dailyRewards/functions/utils.js +36 -0
- package/src/modules/dailyRewards/hooks/dailyLoginCheck.js +24 -0
- package/src/modules/dailyRewards/index.ts +138 -0
- package/src/modules/economyUtils/commands/balance.js +8 -0
- package/src/modules/economyUtils/commands/claim.js +42 -0
- package/src/modules/economyUtils/commands/confirmTransfer.js +55 -0
- package/src/modules/economyUtils/commands/grantCurrency.js +34 -0
- package/src/modules/economyUtils/commands/revokeCurrency.js +34 -0
- package/src/modules/economyUtils/commands/shop.js +87 -0
- package/src/modules/economyUtils/commands/topCurrency.js +29 -0
- package/src/modules/economyUtils/commands/transfer.js +73 -0
- package/src/modules/economyUtils/cronJobs/zombieKillReward.js +82 -0
- package/src/modules/economyUtils/index.ts +197 -0
- package/src/modules/geoBlock/hooks/IPDetected.js +53 -0
- package/src/modules/geoBlock/index.ts +333 -0
- package/src/modules/gimme/commands/gimme.js +30 -0
- package/src/modules/gimme/index.ts +76 -0
- package/src/modules/highPingKicker/cronJobs/Ping check.js +68 -0
- package/src/modules/highPingKicker/index.ts +44 -0
- package/src/modules/lottery/commands/buyTicket.js +64 -0
- package/src/modules/lottery/commands/nextDraw.js +47 -0
- package/src/modules/lottery/commands/viewTickets.js +28 -0
- package/src/modules/lottery/cronJobs/drawLottery.js +124 -0
- package/src/modules/lottery/index.ts +86 -0
- package/src/modules/playerOnboarding/commands/starterkit.js +61 -0
- package/src/modules/playerOnboarding/hooks/playerConnected.js +14 -0
- package/src/modules/playerOnboarding/index.ts +86 -0
- package/src/modules/serverMessages/cronJobs/Automated message.js +47 -0
- package/src/modules/serverMessages/index.ts +46 -0
- package/src/modules/teleports/commands/deletetp.js +25 -0
- package/src/modules/teleports/commands/deletewaypoint.js +24 -0
- package/src/modules/teleports/commands/listwaypoints.js +23 -0
- package/src/modules/teleports/commands/setprivate.js +39 -0
- package/src/modules/teleports/commands/setpublic.js +60 -0
- package/src/modules/teleports/commands/settp.js +50 -0
- package/src/modules/teleports/commands/setwaypoint.js +31 -0
- package/src/modules/teleports/commands/teleport.js +84 -0
- package/src/modules/teleports/commands/teleportwaypoint.js +57 -0
- package/src/modules/teleports/commands/tplist.js +62 -0
- package/src/modules/teleports/cronJobs/Waypoint reconciler.js +7 -0
- package/src/modules/teleports/functions/utils.js +189 -0
- package/src/modules/teleports/index.ts +217 -0
- package/src/modules/timedShutdown/cronJobs/Shutdown.js +8 -0
- package/src/modules/timedShutdown/cronJobs/warning.js +13 -0
- package/src/modules/timedShutdown/index.ts +45 -0
- package/src/modules/utils/commands/help.js +100 -0
- package/src/modules/utils/commands/ping.js +7 -0
- package/src/modules/utils/index.ts +53 -0
- package/tsconfig.build.json +10 -0
- package/tsconfig.json +9 -0
- package/typedoc.json +3 -0
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { IsEnum, IsString, ValidateNested, IsOptional, IsNumber, Matches } from 'class-validator';
|
|
11
|
+
import { TakaroDTO } from '@takaro/util';
|
|
12
|
+
import { Type } from 'class-transformer';
|
|
13
|
+
import { BaseEvent } from './base.js';
|
|
14
|
+
export const GameEvents = {
|
|
15
|
+
LOG_LINE: 'log',
|
|
16
|
+
PLAYER_CONNECTED: 'player-connected',
|
|
17
|
+
PLAYER_DISCONNECTED: 'player-disconnected',
|
|
18
|
+
CHAT_MESSAGE: 'chat-message',
|
|
19
|
+
PLAYER_DEATH: 'player-death',
|
|
20
|
+
ENTITY_KILLED: 'entity-killed',
|
|
21
|
+
};
|
|
22
|
+
export class IGamePlayer extends TakaroDTO {
|
|
23
|
+
}
|
|
24
|
+
__decorate([
|
|
25
|
+
IsString(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], IGamePlayer.prototype, "gameId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
IsString(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], IGamePlayer.prototype, "name", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
IsString(),
|
|
34
|
+
IsOptional(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], IGamePlayer.prototype, "steamId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
IsString(),
|
|
39
|
+
IsOptional(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], IGamePlayer.prototype, "epicOnlineServicesId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
IsString(),
|
|
44
|
+
IsOptional(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], IGamePlayer.prototype, "xboxLiveId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
IsString(),
|
|
49
|
+
IsOptional(),
|
|
50
|
+
Matches(/^[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+$/, {
|
|
51
|
+
message: "Platform ID must be in format 'platform:id' (e.g., 'minecraft:player-uuid')",
|
|
52
|
+
}),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], IGamePlayer.prototype, "platformId", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
IsString(),
|
|
57
|
+
IsOptional(),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], IGamePlayer.prototype, "ip", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
IsNumber(),
|
|
62
|
+
IsOptional(),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], IGamePlayer.prototype, "ping", void 0);
|
|
65
|
+
export class BaseGameEvent extends BaseEvent {
|
|
66
|
+
}
|
|
67
|
+
__decorate([
|
|
68
|
+
IsEnum(GameEvents),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], BaseGameEvent.prototype, "type", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
IsString(),
|
|
73
|
+
IsOptional(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], BaseGameEvent.prototype, "msg", void 0);
|
|
76
|
+
export class EventLogLine extends BaseGameEvent {
|
|
77
|
+
constructor() {
|
|
78
|
+
super(...arguments);
|
|
79
|
+
this.type = GameEvents.LOG_LINE;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
__decorate([
|
|
83
|
+
IsString(),
|
|
84
|
+
__metadata("design:type", Object)
|
|
85
|
+
], EventLogLine.prototype, "type", void 0);
|
|
86
|
+
export class EventPlayerConnected extends BaseGameEvent {
|
|
87
|
+
constructor() {
|
|
88
|
+
super(...arguments);
|
|
89
|
+
this.type = GameEvents.PLAYER_CONNECTED;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
__decorate([
|
|
93
|
+
ValidateNested(),
|
|
94
|
+
Type(() => IGamePlayer),
|
|
95
|
+
__metadata("design:type", IGamePlayer)
|
|
96
|
+
], EventPlayerConnected.prototype, "player", void 0);
|
|
97
|
+
export class EventPlayerDisconnected extends BaseGameEvent {
|
|
98
|
+
constructor() {
|
|
99
|
+
super(...arguments);
|
|
100
|
+
this.type = GameEvents.PLAYER_DISCONNECTED;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
__decorate([
|
|
104
|
+
ValidateNested(),
|
|
105
|
+
Type(() => IGamePlayer),
|
|
106
|
+
__metadata("design:type", IGamePlayer)
|
|
107
|
+
], EventPlayerDisconnected.prototype, "player", void 0);
|
|
108
|
+
export var ChatChannel;
|
|
109
|
+
(function (ChatChannel) {
|
|
110
|
+
ChatChannel["GLOBAL"] = "global";
|
|
111
|
+
ChatChannel["TEAM"] = "team";
|
|
112
|
+
ChatChannel["FRIENDS"] = "friends";
|
|
113
|
+
ChatChannel["WHISPER"] = "whisper";
|
|
114
|
+
})(ChatChannel || (ChatChannel = {}));
|
|
115
|
+
export class EventChatMessage extends BaseGameEvent {
|
|
116
|
+
constructor() {
|
|
117
|
+
super(...arguments);
|
|
118
|
+
this.type = GameEvents.CHAT_MESSAGE;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
__decorate([
|
|
122
|
+
ValidateNested(),
|
|
123
|
+
Type(() => IGamePlayer),
|
|
124
|
+
__metadata("design:type", IGamePlayer)
|
|
125
|
+
], EventChatMessage.prototype, "player", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
IsEnum(Object.values(ChatChannel)),
|
|
128
|
+
__metadata("design:type", String)
|
|
129
|
+
], EventChatMessage.prototype, "channel", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
ValidateNested(),
|
|
132
|
+
Type(() => IGamePlayer),
|
|
133
|
+
IsOptional(),
|
|
134
|
+
__metadata("design:type", IGamePlayer)
|
|
135
|
+
], EventChatMessage.prototype, "recipient", void 0);
|
|
136
|
+
export class IPosition extends TakaroDTO {
|
|
137
|
+
}
|
|
138
|
+
__decorate([
|
|
139
|
+
IsNumber(),
|
|
140
|
+
__metadata("design:type", Number)
|
|
141
|
+
], IPosition.prototype, "x", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
IsNumber(),
|
|
144
|
+
__metadata("design:type", Number)
|
|
145
|
+
], IPosition.prototype, "y", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
IsNumber(),
|
|
148
|
+
__metadata("design:type", Number)
|
|
149
|
+
], IPosition.prototype, "z", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
IsString(),
|
|
152
|
+
IsOptional(),
|
|
153
|
+
__metadata("design:type", String)
|
|
154
|
+
], IPosition.prototype, "dimension", void 0);
|
|
155
|
+
export class EventPlayerDeath extends BaseGameEvent {
|
|
156
|
+
constructor() {
|
|
157
|
+
super(...arguments);
|
|
158
|
+
this.type = GameEvents.PLAYER_DEATH;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
__decorate([
|
|
162
|
+
ValidateNested(),
|
|
163
|
+
Type(() => IGamePlayer),
|
|
164
|
+
__metadata("design:type", IGamePlayer)
|
|
165
|
+
], EventPlayerDeath.prototype, "player", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
IsOptional(),
|
|
168
|
+
ValidateNested(),
|
|
169
|
+
Type(() => IGamePlayer),
|
|
170
|
+
__metadata("design:type", IGamePlayer)
|
|
171
|
+
], EventPlayerDeath.prototype, "attacker", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
IsOptional(),
|
|
174
|
+
ValidateNested(),
|
|
175
|
+
Type(() => IPosition),
|
|
176
|
+
__metadata("design:type", IPosition)
|
|
177
|
+
], EventPlayerDeath.prototype, "position", void 0);
|
|
178
|
+
export class EventEntityKilled extends BaseGameEvent {
|
|
179
|
+
constructor() {
|
|
180
|
+
super(...arguments);
|
|
181
|
+
this.type = GameEvents.ENTITY_KILLED;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
__decorate([
|
|
185
|
+
ValidateNested(),
|
|
186
|
+
Type(() => IGamePlayer),
|
|
187
|
+
__metadata("design:type", IGamePlayer)
|
|
188
|
+
], EventEntityKilled.prototype, "player", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
IsString(),
|
|
191
|
+
__metadata("design:type", String)
|
|
192
|
+
], EventEntityKilled.prototype, "entity", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
IsString(),
|
|
195
|
+
__metadata("design:type", String)
|
|
196
|
+
], EventEntityKilled.prototype, "weapon", void 0);
|
|
197
|
+
export const GameEventsMapping = {
|
|
198
|
+
[GameEvents.PLAYER_CONNECTED]: EventPlayerConnected,
|
|
199
|
+
[GameEvents.PLAYER_DISCONNECTED]: EventPlayerDisconnected,
|
|
200
|
+
[GameEvents.CHAT_MESSAGE]: EventChatMessage,
|
|
201
|
+
[GameEvents.PLAYER_DEATH]: EventPlayerDeath,
|
|
202
|
+
[GameEvents.ENTITY_KILLED]: EventEntityKilled,
|
|
203
|
+
[GameEvents.LOG_LINE]: EventLogLine,
|
|
204
|
+
};
|
|
205
|
+
//# sourceMappingURL=gameEvents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gameEvents.js","sourceRoot":"","sources":["../../src/dto/gameEvents.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAClG,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAGtC,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,QAAQ,EAAE,KAAK;IACf,gBAAgB,EAAE,kBAAkB;IACpC,mBAAmB,EAAE,qBAAqB;IAC1C,YAAY,EAAE,cAAc;IAC5B,YAAY,EAAE,cAAc;IAC5B,aAAa,EAAE,eAAe;CACtB,CAAC;AAIX,MAAM,OAAO,WAAY,SAAQ,SAAsB;CAsCtD;AAjCC;IADC,QAAQ,EAAE;;2CACK;AAKhB;IADC,QAAQ,EAAE;;yCACG;AAId;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;4CACI;AAIjB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;yDACiB;AAI9B;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;+CACO;AAOpB;IALC,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,OAAO,CAAC,iCAAiC,EAAE;QAC1C,OAAO,EAAE,6EAA6E;KACvF,CAAC;;+CACkB;AAIpB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;uCACD;AAIZ;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;yCACC;AAGhB,MAAM,OAAO,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AC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ValueOf } from 'type-fest';
|
|
2
|
+
import { BaseEvent } from './base.js';
|
|
3
|
+
export * from './discordEvents.js';
|
|
4
|
+
export * from './gameEvents.js';
|
|
5
|
+
export * from './takaroEvents.js';
|
|
6
|
+
export * from './base.js';
|
|
7
|
+
export declare const HookEvents: {
|
|
8
|
+
readonly ROLE_ASSIGNED: "role-assigned";
|
|
9
|
+
readonly ROLE_REMOVED: "role-removed";
|
|
10
|
+
readonly ROLE_CREATED: "role-created";
|
|
11
|
+
readonly ROLE_UPDATED: "role-updated";
|
|
12
|
+
readonly ROLE_DELETED: "role-deleted";
|
|
13
|
+
readonly COMMAND_EXECUTED: "command-executed";
|
|
14
|
+
readonly COMMAND_EXECUTION_DENIED: "command-execution-denied";
|
|
15
|
+
readonly HOOK_EXECUTED: "hook-executed";
|
|
16
|
+
readonly CRONJOB_EXECUTED: "cronjob-executed";
|
|
17
|
+
readonly CURRENCY_ADDED: "currency-added";
|
|
18
|
+
readonly CURRENCY_DEDUCTED: "currency-deducted";
|
|
19
|
+
readonly CURRENCY_RESET_ALL: "currency-reset-all";
|
|
20
|
+
readonly SETTINGS_SET: "settings-set";
|
|
21
|
+
readonly PLAYER_NEW_IP_DETECTED: "player-new-ip-detected";
|
|
22
|
+
readonly PLAYER_NEW_NAME_DETECTED: "player-new-name-detected";
|
|
23
|
+
readonly SERVER_STATUS_CHANGED: "server-status-changed";
|
|
24
|
+
readonly MODULE_CREATED: "module-created";
|
|
25
|
+
readonly MODULE_UPDATED: "module-updated";
|
|
26
|
+
readonly MODULE_DELETED: "module-deleted";
|
|
27
|
+
readonly MODULE_INSTALLED: "module-installed";
|
|
28
|
+
readonly MODULE_UNINSTALLED: "module-uninstalled";
|
|
29
|
+
readonly PLAYER_CREATED: "player-created";
|
|
30
|
+
readonly SHOP_LISTING_CREATED: "shop-listing-created";
|
|
31
|
+
readonly SHOP_LISTING_UPDATED: "shop-listing-updated";
|
|
32
|
+
readonly SHOP_LISTING_DELETED: "shop-listing-deleted";
|
|
33
|
+
readonly SHOP_ORDER_CREATED: "shop-order-created";
|
|
34
|
+
readonly SHOP_ORDER_STATUS_CHANGED: "shop-order-status-changed";
|
|
35
|
+
readonly SHOP_ORDER_DELIVERY_FAILED: "shop-order-delivery-failed";
|
|
36
|
+
readonly PLAYER_LINKED: "player-linked";
|
|
37
|
+
readonly GAMESERVER_CREATED: "gameserver-created";
|
|
38
|
+
readonly GAMESERVER_UPDATED: "gameserver-updated";
|
|
39
|
+
readonly GAMESERVER_DELETED: "gameserver-deleted";
|
|
40
|
+
readonly PLAYER_BANNED: "player-banned";
|
|
41
|
+
readonly PLAYER_UNBANNED: "player-unbanned";
|
|
42
|
+
readonly PLAYER_DELETED: "player-deleted";
|
|
43
|
+
readonly DISCORD_MESSAGE: "discord-message";
|
|
44
|
+
readonly LOG_LINE: "log";
|
|
45
|
+
readonly PLAYER_CONNECTED: "player-connected";
|
|
46
|
+
readonly PLAYER_DISCONNECTED: "player-disconnected";
|
|
47
|
+
readonly CHAT_MESSAGE: "chat-message";
|
|
48
|
+
readonly PLAYER_DEATH: "player-death";
|
|
49
|
+
readonly ENTITY_KILLED: "entity-killed";
|
|
50
|
+
};
|
|
51
|
+
export declare const EventMapping: Record<EventTypes, typeof BaseEvent<any>>;
|
|
52
|
+
export type EventPayload = ValueOf<(typeof EventMapping)[ValueOf<typeof HookEvents>]>;
|
|
53
|
+
export type EventTypes = ValueOf<typeof HookEvents>;
|
|
54
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAE1B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIb,CAAC;AAEX,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,UAAU,EAAE,OAAO,SAAS,CAAC,GAAG,CAAC,CAIzD,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,CAAC,OAAO,YAAY,CAAC,CAAC,OAAO,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC;AACtF,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DiscordEvents, DiscordEventsMapping } from './discordEvents.js';
|
|
2
|
+
import { GameEvents, GameEventsMapping } from './gameEvents.js';
|
|
3
|
+
import { TakaroEvents, TakaroEventsMapping } from './takaroEvents.js';
|
|
4
|
+
export * from './discordEvents.js';
|
|
5
|
+
export * from './gameEvents.js';
|
|
6
|
+
export * from './takaroEvents.js';
|
|
7
|
+
export * from './base.js';
|
|
8
|
+
export const HookEvents = {
|
|
9
|
+
...GameEvents,
|
|
10
|
+
...DiscordEvents,
|
|
11
|
+
...TakaroEvents,
|
|
12
|
+
};
|
|
13
|
+
export const EventMapping = {
|
|
14
|
+
...GameEventsMapping,
|
|
15
|
+
...DiscordEventsMapping,
|
|
16
|
+
...TakaroEventsMapping,
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAItE,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAE1B,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,GAAG,UAAU;IACb,GAAG,aAAa;IAChB,GAAG,YAAY;CACP,CAAC;AAEX,MAAM,CAAC,MAAM,YAAY,GAA8C;IACrE,GAAG,iBAAiB;IACpB,GAAG,oBAAoB;IACvB,GAAG,mBAAmB;CACd,CAAC"}
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { BaseEvent } from './base.js';
|
|
2
|
+
import { ValueOf } from 'type-fest';
|
|
3
|
+
import { TakaroDTO } from '@takaro/util';
|
|
4
|
+
export declare const TakaroEvents: {
|
|
5
|
+
readonly ROLE_ASSIGNED: "role-assigned";
|
|
6
|
+
readonly ROLE_REMOVED: "role-removed";
|
|
7
|
+
readonly ROLE_CREATED: "role-created";
|
|
8
|
+
readonly ROLE_UPDATED: "role-updated";
|
|
9
|
+
readonly ROLE_DELETED: "role-deleted";
|
|
10
|
+
readonly COMMAND_EXECUTED: "command-executed";
|
|
11
|
+
readonly COMMAND_EXECUTION_DENIED: "command-execution-denied";
|
|
12
|
+
readonly HOOK_EXECUTED: "hook-executed";
|
|
13
|
+
readonly CRONJOB_EXECUTED: "cronjob-executed";
|
|
14
|
+
readonly CURRENCY_ADDED: "currency-added";
|
|
15
|
+
readonly CURRENCY_DEDUCTED: "currency-deducted";
|
|
16
|
+
readonly CURRENCY_RESET_ALL: "currency-reset-all";
|
|
17
|
+
readonly SETTINGS_SET: "settings-set";
|
|
18
|
+
readonly PLAYER_NEW_IP_DETECTED: "player-new-ip-detected";
|
|
19
|
+
readonly PLAYER_NEW_NAME_DETECTED: "player-new-name-detected";
|
|
20
|
+
readonly SERVER_STATUS_CHANGED: "server-status-changed";
|
|
21
|
+
readonly MODULE_CREATED: "module-created";
|
|
22
|
+
readonly MODULE_UPDATED: "module-updated";
|
|
23
|
+
readonly MODULE_DELETED: "module-deleted";
|
|
24
|
+
readonly MODULE_INSTALLED: "module-installed";
|
|
25
|
+
readonly MODULE_UNINSTALLED: "module-uninstalled";
|
|
26
|
+
readonly PLAYER_CREATED: "player-created";
|
|
27
|
+
readonly SHOP_LISTING_CREATED: "shop-listing-created";
|
|
28
|
+
readonly SHOP_LISTING_UPDATED: "shop-listing-updated";
|
|
29
|
+
readonly SHOP_LISTING_DELETED: "shop-listing-deleted";
|
|
30
|
+
readonly SHOP_ORDER_CREATED: "shop-order-created";
|
|
31
|
+
readonly SHOP_ORDER_STATUS_CHANGED: "shop-order-status-changed";
|
|
32
|
+
readonly SHOP_ORDER_DELIVERY_FAILED: "shop-order-delivery-failed";
|
|
33
|
+
readonly PLAYER_LINKED: "player-linked";
|
|
34
|
+
readonly GAMESERVER_CREATED: "gameserver-created";
|
|
35
|
+
readonly GAMESERVER_UPDATED: "gameserver-updated";
|
|
36
|
+
readonly GAMESERVER_DELETED: "gameserver-deleted";
|
|
37
|
+
readonly PLAYER_BANNED: "player-banned";
|
|
38
|
+
readonly PLAYER_UNBANNED: "player-unbanned";
|
|
39
|
+
readonly PLAYER_DELETED: "player-deleted";
|
|
40
|
+
};
|
|
41
|
+
export declare class BaseTakaroEvent<T> extends BaseEvent<T> {
|
|
42
|
+
type: ValueOf<typeof TakaroEvents>;
|
|
43
|
+
msg: string;
|
|
44
|
+
}
|
|
45
|
+
export declare class TakaroEventPlayerNewIpDetected extends BaseEvent<TakaroEventPlayerNewIpDetected> {
|
|
46
|
+
type: "player-new-ip-detected";
|
|
47
|
+
country: string;
|
|
48
|
+
city: string;
|
|
49
|
+
longitude: string;
|
|
50
|
+
latitude: string;
|
|
51
|
+
ip: string;
|
|
52
|
+
}
|
|
53
|
+
export declare class TakaroEventPlayerNewNameDetected extends BaseEvent<TakaroEventPlayerNewNameDetected> {
|
|
54
|
+
type: "player-new-name-detected";
|
|
55
|
+
oldName: string | null;
|
|
56
|
+
newName: string;
|
|
57
|
+
}
|
|
58
|
+
export declare class TakaroEventCurrencyDeducted extends BaseEvent<TakaroEventCurrencyDeducted> {
|
|
59
|
+
type: "currency-deducted";
|
|
60
|
+
amount: number;
|
|
61
|
+
}
|
|
62
|
+
export declare class TakaroEventCurrencyAdded extends BaseEvent<TakaroEventCurrencyAdded> {
|
|
63
|
+
type: "currency-added";
|
|
64
|
+
amount: number;
|
|
65
|
+
}
|
|
66
|
+
export declare class TakaroEventCurrencyResetAll extends BaseEvent<TakaroEventCurrencyResetAll> {
|
|
67
|
+
type: "currency-reset-all";
|
|
68
|
+
affectedPlayerCount: number;
|
|
69
|
+
}
|
|
70
|
+
export declare class TakaroEventFunctionResult extends TakaroDTO<TakaroEventFunctionResult> {
|
|
71
|
+
logs: TakaroEventFunctionLog[];
|
|
72
|
+
success: boolean;
|
|
73
|
+
reason: string;
|
|
74
|
+
tryAgainIn: number;
|
|
75
|
+
}
|
|
76
|
+
export declare class TakaroEventFunctionLog extends TakaroDTO<TakaroEventFunctionLog> {
|
|
77
|
+
msg: string;
|
|
78
|
+
details: Record<string, unknown> | string | undefined;
|
|
79
|
+
}
|
|
80
|
+
export declare class TakaroEventCommandDetails extends TakaroDTO<TakaroEventCommandDetails> {
|
|
81
|
+
id: string;
|
|
82
|
+
name: string;
|
|
83
|
+
arguments: Record<string, unknown>;
|
|
84
|
+
}
|
|
85
|
+
export declare class TakaroEventHookDetails extends TakaroDTO<TakaroEventHookDetails> {
|
|
86
|
+
id: string;
|
|
87
|
+
name: string;
|
|
88
|
+
}
|
|
89
|
+
export declare class TakaroEventCronjobDetails extends TakaroDTO<TakaroEventCronjobDetails> {
|
|
90
|
+
id: string;
|
|
91
|
+
name: string;
|
|
92
|
+
}
|
|
93
|
+
export declare class TakaroEventCommandExecuted extends BaseEvent<TakaroEventCommandExecuted> {
|
|
94
|
+
type: "command-executed";
|
|
95
|
+
result: TakaroEventFunctionResult;
|
|
96
|
+
command: TakaroEventCommandDetails;
|
|
97
|
+
}
|
|
98
|
+
export declare class TakaroEventCommandExecutionDenied extends BaseEvent<TakaroEventCommandExecutionDenied> {
|
|
99
|
+
type: "command-execution-denied";
|
|
100
|
+
command: TakaroEventCommandDetails;
|
|
101
|
+
missingPermissions: string[];
|
|
102
|
+
}
|
|
103
|
+
export declare class TakaroEventHookExecuted extends BaseEvent<TakaroEventHookExecuted> {
|
|
104
|
+
type: "hook-executed";
|
|
105
|
+
result: TakaroEventFunctionResult;
|
|
106
|
+
hook: TakaroEventHookDetails;
|
|
107
|
+
}
|
|
108
|
+
export declare class TakaroEventCronjobExecuted extends BaseEvent<TakaroEventCronjobExecuted> {
|
|
109
|
+
type: "cronjob-executed";
|
|
110
|
+
result: TakaroEventFunctionResult;
|
|
111
|
+
cronjob: TakaroEventCronjobDetails;
|
|
112
|
+
}
|
|
113
|
+
export declare class TakaroEventRoleMeta extends TakaroDTO<TakaroEventRoleMeta> {
|
|
114
|
+
id: string;
|
|
115
|
+
name: string;
|
|
116
|
+
}
|
|
117
|
+
export declare class TakaroEventRoleAssigned extends BaseEvent<TakaroEventRoleAssigned> {
|
|
118
|
+
type: "role-assigned";
|
|
119
|
+
role: TakaroEventRoleMeta;
|
|
120
|
+
}
|
|
121
|
+
export declare class TakaroEventRoleRemoved extends BaseEvent<TakaroEventRoleRemoved> {
|
|
122
|
+
type: "role-removed";
|
|
123
|
+
role: TakaroEventRoleMeta;
|
|
124
|
+
}
|
|
125
|
+
export declare class TakaroEventRoleCreated extends BaseEvent<TakaroEventRoleCreated> {
|
|
126
|
+
type: "role-created";
|
|
127
|
+
role: TakaroEventRoleMeta;
|
|
128
|
+
}
|
|
129
|
+
export declare class TakaroEventRoleUpdated extends BaseEvent<TakaroEventRoleUpdated> {
|
|
130
|
+
type: "role-updated";
|
|
131
|
+
role: TakaroEventRoleMeta;
|
|
132
|
+
}
|
|
133
|
+
export declare class TakaroEventRoleDeleted extends BaseEvent<TakaroEventRoleDeleted> {
|
|
134
|
+
type: "role-deleted";
|
|
135
|
+
role: TakaroEventRoleMeta;
|
|
136
|
+
}
|
|
137
|
+
export declare class TakaroEventSettingsSet extends BaseEvent<TakaroEventSettingsSet> {
|
|
138
|
+
type: "settings-set";
|
|
139
|
+
key: string;
|
|
140
|
+
value: string | null;
|
|
141
|
+
}
|
|
142
|
+
export declare class TakaroEventServerStatusChanged extends BaseEvent<TakaroEventServerStatusChanged> {
|
|
143
|
+
type: "server-status-changed";
|
|
144
|
+
status: string;
|
|
145
|
+
details?: Record<string, unknown> | string | null;
|
|
146
|
+
}
|
|
147
|
+
export declare class TakaroEventModuleCreated extends BaseEvent<TakaroEventModuleCreated> {
|
|
148
|
+
type: "module-created";
|
|
149
|
+
}
|
|
150
|
+
export declare class TakaroEventModuleUpdated extends BaseEvent<TakaroEventModuleUpdated> {
|
|
151
|
+
type: "module-updated";
|
|
152
|
+
changeType?: 'created' | 'updated' | 'deleted';
|
|
153
|
+
componentType?: 'command' | 'hook' | 'cronjob' | 'permission' | 'function' | 'module';
|
|
154
|
+
componentName?: string;
|
|
155
|
+
componentId?: string;
|
|
156
|
+
previousValue?: Record<string, unknown>;
|
|
157
|
+
newValue?: Record<string, unknown>;
|
|
158
|
+
}
|
|
159
|
+
export declare class TakaroEventModuleDeleted extends BaseEvent<TakaroEventModuleDeleted> {
|
|
160
|
+
type: "module-deleted";
|
|
161
|
+
}
|
|
162
|
+
export declare class TakaroEventModuleInstalled extends BaseEvent<TakaroEventModuleInstalled> {
|
|
163
|
+
type: "module-installed";
|
|
164
|
+
userConfig: string;
|
|
165
|
+
systemConfig: string;
|
|
166
|
+
}
|
|
167
|
+
export declare class TakaroEventModuleUninstalled extends BaseEvent<TakaroEventModuleUninstalled> {
|
|
168
|
+
type: "module-uninstalled";
|
|
169
|
+
}
|
|
170
|
+
export declare class TakaroEventPlayerCreated extends BaseEvent<TakaroEventPlayerCreated> {
|
|
171
|
+
type: "player-created";
|
|
172
|
+
}
|
|
173
|
+
export declare class TakaroEventShopListingCreated extends BaseEvent<TakaroEventShopListingCreated> {
|
|
174
|
+
type: "shop-listing-created";
|
|
175
|
+
id: string;
|
|
176
|
+
}
|
|
177
|
+
export declare class TakaroEventShopListingUpdated extends BaseEvent<TakaroEventShopListingUpdated> {
|
|
178
|
+
type: "shop-listing-updated";
|
|
179
|
+
id: string;
|
|
180
|
+
}
|
|
181
|
+
export declare class TakaroEventShopListingDeleted extends BaseEvent<TakaroEventShopListingDeleted> {
|
|
182
|
+
type: "shop-listing-deleted";
|
|
183
|
+
id: string;
|
|
184
|
+
}
|
|
185
|
+
export declare class TakaroEventShopOrderCreated extends BaseEvent<TakaroEventShopOrderCreated> {
|
|
186
|
+
type: "shop-order-created";
|
|
187
|
+
id: string;
|
|
188
|
+
listingName: string;
|
|
189
|
+
price: number;
|
|
190
|
+
amount: number;
|
|
191
|
+
totalPrice: number;
|
|
192
|
+
items?: TakaroEventShopItem[];
|
|
193
|
+
}
|
|
194
|
+
export declare class TakaroEventShopItem extends TakaroDTO<TakaroEventShopItem> {
|
|
195
|
+
name: string;
|
|
196
|
+
code: string;
|
|
197
|
+
amount: number;
|
|
198
|
+
quality?: string;
|
|
199
|
+
}
|
|
200
|
+
export declare class TakaroEventShopOrderStatusChanged extends BaseEvent<TakaroEventShopOrderStatusChanged> {
|
|
201
|
+
type: "shop-order-status-changed";
|
|
202
|
+
id: string;
|
|
203
|
+
status: string;
|
|
204
|
+
}
|
|
205
|
+
export declare class TakaroEventShopOrderDeliveryFailed extends BaseEvent<TakaroEventShopOrderDeliveryFailed> {
|
|
206
|
+
type: "shop-order-delivery-failed";
|
|
207
|
+
id: string;
|
|
208
|
+
error: string;
|
|
209
|
+
items: TakaroEventShopItem[];
|
|
210
|
+
}
|
|
211
|
+
export declare class TakaroEventPlayerLinked extends BaseEvent<TakaroEventPlayerLinked> {
|
|
212
|
+
type: "player-linked";
|
|
213
|
+
}
|
|
214
|
+
export declare class TakaroEventGameserverCreated extends BaseEvent<TakaroEventGameserverCreated> {
|
|
215
|
+
type: "gameserver-created";
|
|
216
|
+
}
|
|
217
|
+
export declare class TakaroEventGameserverUpdated extends BaseEvent<TakaroEventGameserverUpdated> {
|
|
218
|
+
type: "gameserver-updated";
|
|
219
|
+
}
|
|
220
|
+
export declare class TakaroEventGameserverDeleted extends BaseEvent<TakaroEventGameserverDeleted> {
|
|
221
|
+
type: "gameserver-deleted";
|
|
222
|
+
}
|
|
223
|
+
export declare class TakaroEventPlayerBanned extends BaseEvent<TakaroEventPlayerBanned> {
|
|
224
|
+
type: "player-banned";
|
|
225
|
+
reason?: string;
|
|
226
|
+
until?: string;
|
|
227
|
+
isGlobal: boolean;
|
|
228
|
+
takaroManaged: boolean;
|
|
229
|
+
}
|
|
230
|
+
export declare class TakaroEventPlayerUnbanned extends BaseEvent<TakaroEventPlayerUnbanned> {
|
|
231
|
+
type: "player-unbanned";
|
|
232
|
+
isGlobal: boolean;
|
|
233
|
+
takaroManaged: boolean;
|
|
234
|
+
}
|
|
235
|
+
export declare class TakaroEventPlayerDeleted extends BaseEvent<TakaroEventPlayerDeleted> {
|
|
236
|
+
type: "player-deleted";
|
|
237
|
+
playerName?: string;
|
|
238
|
+
}
|
|
239
|
+
export declare const TakaroEventsMapping: {
|
|
240
|
+
readonly "role-assigned": typeof TakaroEventRoleAssigned;
|
|
241
|
+
readonly "player-new-ip-detected": typeof TakaroEventPlayerNewIpDetected;
|
|
242
|
+
readonly "player-new-name-detected": typeof TakaroEventPlayerNewNameDetected;
|
|
243
|
+
readonly "currency-deducted": typeof TakaroEventCurrencyDeducted;
|
|
244
|
+
readonly "currency-added": typeof TakaroEventCurrencyAdded;
|
|
245
|
+
readonly "currency-reset-all": typeof TakaroEventCurrencyResetAll;
|
|
246
|
+
readonly "command-executed": typeof TakaroEventCommandExecuted;
|
|
247
|
+
readonly "command-execution-denied": typeof TakaroEventCommandExecutionDenied;
|
|
248
|
+
readonly "role-removed": typeof TakaroEventRoleRemoved;
|
|
249
|
+
readonly "role-created": typeof TakaroEventRoleCreated;
|
|
250
|
+
readonly "role-updated": typeof TakaroEventRoleUpdated;
|
|
251
|
+
readonly "role-deleted": typeof TakaroEventRoleDeleted;
|
|
252
|
+
readonly "settings-set": typeof TakaroEventSettingsSet;
|
|
253
|
+
readonly "hook-executed": typeof TakaroEventHookExecuted;
|
|
254
|
+
readonly "cronjob-executed": typeof TakaroEventCronjobExecuted;
|
|
255
|
+
readonly "server-status-changed": typeof TakaroEventServerStatusChanged;
|
|
256
|
+
readonly "module-created": typeof TakaroEventModuleCreated;
|
|
257
|
+
readonly "module-updated": typeof TakaroEventModuleUpdated;
|
|
258
|
+
readonly "module-deleted": typeof TakaroEventModuleDeleted;
|
|
259
|
+
readonly "module-installed": typeof TakaroEventModuleInstalled;
|
|
260
|
+
readonly "module-uninstalled": typeof TakaroEventModuleUninstalled;
|
|
261
|
+
readonly "player-created": typeof TakaroEventPlayerCreated;
|
|
262
|
+
readonly "shop-listing-created": typeof TakaroEventShopListingCreated;
|
|
263
|
+
readonly "shop-listing-updated": typeof TakaroEventShopListingUpdated;
|
|
264
|
+
readonly "shop-listing-deleted": typeof TakaroEventShopListingDeleted;
|
|
265
|
+
readonly "shop-order-created": typeof TakaroEventShopOrderCreated;
|
|
266
|
+
readonly "shop-order-status-changed": typeof TakaroEventShopOrderStatusChanged;
|
|
267
|
+
readonly "shop-order-delivery-failed": typeof TakaroEventShopOrderDeliveryFailed;
|
|
268
|
+
readonly "player-linked": typeof TakaroEventPlayerLinked;
|
|
269
|
+
readonly "gameserver-created": typeof TakaroEventGameserverCreated;
|
|
270
|
+
readonly "gameserver-updated": typeof TakaroEventGameserverUpdated;
|
|
271
|
+
readonly "gameserver-deleted": typeof TakaroEventGameserverDeleted;
|
|
272
|
+
readonly "player-banned": typeof TakaroEventPlayerBanned;
|
|
273
|
+
readonly "player-unbanned": typeof TakaroEventPlayerUnbanned;
|
|
274
|
+
readonly "player-deleted": typeof TakaroEventPlayerDeleted;
|
|
275
|
+
};
|
|
276
|
+
//# sourceMappingURL=takaroEvents.d.ts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