Commit Graph

160 Commits

Author SHA1 Message Date
Skillet
e1d73594d0 remove unneeded lines 2023-04-08 18:12:32 -04:00
Skillet
7cd7e7cd1a
Update index.js 2023-03-20 12:06:51 -04:00
Skillet
b4454bc508
Update index.js 2023-03-13 16:28:57 -04:00
Skillet
c2294ba003
Update index.js 2023-03-11 17:24:52 -05:00
Skillet
4d5e30c1d2
Update index.js 2023-03-11 16:12:54 -05:00
Skillet
494139c14a
Update index.js 2023-03-11 16:06:56 -05:00
Skillet
aa9efec073
Update index.js 2023-03-09 10:48:32 -05:00
Skillet
d1b8c7e9f6
Update index.js 2023-03-06 14:51:30 -05:00
Skillet
c9fdc13362
Update index.js 2023-02-20 05:34:37 -05:00
Skillet
6146072886
Update index.js 2023-02-20 05:25:25 -05:00
Skillet
904e93df1d
Update index.js 2023-02-18 16:03:51 -05:00
Skillet
08370ab0c9
Update index.js 2023-02-17 08:05:58 -05:00
Skillet
89b0e3fe59
Update index.js 2023-02-17 02:17:58 -05:00
Skillet
ee8bbf5ccc
Update index.js 2023-02-16 22:22:38 -05:00
Skillet
adb00d5474
Update index.js 2023-02-16 01:18:43 -05:00
Skillet
38fa85b64b
add player_name_changed event 2023-02-15 18:02:44 -05:00
Skillet
8c34efce76
Update index.js 2023-02-15 08:52:10 -05:00
Skillet
22388fbfb7
add console log 2023-02-15 08:07:15 -05:00
Thomas Smyth
b5c60ea9cf
Merge branch 'master' into SqCreationRCON 2023-01-02 19:01:09 +00:00
ect0s
3ebd5e2c3c Keep SquadID in Event Emitter data 2023-01-01 19:27:23 -05:00
ect0s
3f3be7c027 Add round-tickets and round-ended events; discord-roundended plugin
Adds round-tickets regex to logparser; this will fire when the server prints new log lines related to tickets and factions.

Adds round-ended regex to log parser and event; this event forwards round tickets where we have both a winner and a loser to the main server object.

discord-roundended: This plugin is similar but functionally different from round winner, due to cases where the server experiences a draw.
2022-09-28 21:11:11 -04:00
ect0s
90ed90cb68 SquadCreated Regex and Event Emitter
Move Squad Created To RCON rcon.js

Move Squad Created emitter to RCON index.js
2022-06-04 10:42:20 -04:00
Thomas Smyth
26a8d53f2e
Merge pull request #237 from ect0s/adminlist-fetch-update
Update admin list on layer changes
2022-05-18 09:06:35 +01:00
ect0s
57b741fbc8 Guard for Duration.
We may miss admins going into camera in the case of RCON shutdowns/SquadJS restarts.

This code should guard a promise rejection in the case an admin is not in the current tracking list.
2022-05-15 11:22:06 -04:00
ect0s
46ab36624a Added regular Adminlist update to newgame 2022-04-23 11:10:00 -04:00
ect0s
4ca8839675
Add data to UPDATED_A2S_INFORMATION event 2021-08-07 22:44:29 +01:00
ect0s
e73449e342 Update index.js 2021-07-02 16:00:38 -04:00
ect0s
f472676e3e Added Force to getPlayerBySteamID inside SQUAD_CREATED emitter 2021-07-02 11:34:58 -04:00
ect0s
9e0c5cd1b1 Add Full player object to SQUAD_CREATED
Added full player to SQUAD_CREATED event

Refactored DiscordSquadCreated Plugin
2021-07-01 20:22:34 -04:00
ect0s
aef75781bc Added Event Handling in main server 2021-06-29 19:48:23 -04:00
Thomas Smyth
f84d154d1c
Merge pull request #171 from 11TStudio/rconWarnKickBan
Add new events for admins warning, kicking and banning players
2021-03-08 20:32:16 +00:00
Levent007
10be536c7b New RCON event emit for BAN, KICK, WARN + rcon.ban method 2021-03-08 21:26:22 +01:00
Thomas Smyth
7e0f414376 Fix nextMapToBeVoted assignment 2021-03-08 15:07:18 +00:00
Levent007
c5bd408b02 fixing init of this.players where it was throwing undefined on first time 2021-03-08 12:34:32 +01:00
Levent007
31fb8a4f5d changing the init for this.players after the for loop 2021-03-07 21:32:44 +01:00
Levent007
425df2725f Forget to add getSquadByID method 2021-03-07 20:43:45 +01:00
Levent007
d646329efc players methos now have squad and team names + new method getSquad 2021-03-07 20:38:46 +01:00
Thomas Smyth
2367ed89e4 Tidy PLAYER_DISCONNECTED event 2021-03-07 14:29:57 +00:00
Dusan Milutinovic
0e7bc2fc91 Fixed bug #148. Added PLAYER_DISCONNECTED event 2021-03-02 00:05:46 +01:00
Thomas Smyth
62d925b4fd Add queue length to player count in API ping 2021-02-26 15:53:01 +00:00
Thomas Smyth
89ee15de3f Use A2S player count in API ping 2021-02-26 15:48:45 +00:00
Thomas Smyth
2704b099de Tidy SquadJS API ping error message 2021-02-26 10:56:26 +00:00
Thomas Smyth
19f5b8f879 Rename deployable take damage event 2021-02-03 23:30:54 +00:00
Thomas Smyth
28540fce26 Add deployable take damage event 2021-02-03 22:31:38 +00:00
Thomas Smyth
476afc0688 Track admin cam usage over RCON instead of logs 2021-02-03 19:17:25 +00:00
Thomas Smyth
b5a3f4c59b Initial Squad v2 Layer Support 2021-02-03 17:33:01 +00:00
SeanWalsh95
76129078c3 rm async/await on non asynchronous functions and calls 2021-01-12 12:02:38 -05:00
SeanWalsh95
4aa0412ee5 move adminList logic to pulling from server instead of storing copy on init
changes per https://github.com/Thomas-Smyth/SquadJS/pull/125#issuecomment-758783309
2021-01-12 11:59:08 -05:00
SeanWalsh95
5c5be9295c Fix bug whre getAdmin returns perms instead of S64IDs 2021-01-12 11:33:28 -05:00
Thomas Smyth
90795883fd Update dependencies 2021-01-09 15:16:00 +00:00
Thomas Smyth
8ca9c0b38b Update SquadJS API requests 2021-01-09 14:51:59 +00:00
Thomas Smyth
23518b4d97 Add SCBL plugin 2021-01-07 20:52:55 +00:00
Thomas Smyth
4a9521a8f9 Merge branch 'beta' into pr/112 2020-12-26 17:58:20 +00:00
11T Studio
203f357888
Check only via layerclassname
This would fix the issues with showing the last played layer and not the current one.
2020-12-22 23:25:42 +01:00
SeanWalsh95
7d37369de9 alternate cfg for FTP + readme changes
nested ftp config inside server cfg to pass entire cfg to LogParser, alterations are overridden as needed.

Formatted readme to be able to find relevent sections quicker by collapseing detailed content.

moved info about creating plugins to plugin folder and refrenced from main readme

Small changes to readme to support new formats in the cfg file
2020-12-16 14:00:40 -05:00
Levent007
c787aa3565 Adding support for multi-ip rcon 2020-12-12 21:47:06 +01:00
Thomas Smyth
baf07a79b6 Refactor log parser 2020-12-10 20:46:29 +00:00
Thomas Smyth
f434e94199 Refactor RCON 2020-12-10 18:51:32 +00:00
Thomas Smyth
255e9c7968 Convert AutoKickUnassigned & Tidy Code 2020-12-08 16:40:56 +00:00
Thomas Smyth
fae5dd4efa
Merge branch 'v2' into auto-kick-afk 2020-12-08 12:17:02 +00:00
Thomas Smyth
fc629ebc77 DBLog Plugin 2020-12-08 12:13:53 +00:00
Thomas Smyth
e02a5417f6 Add matches to DBLog 2020-12-06 23:09:33 +00:00
Thomas Smyth
3fb00b6dd1 Add player counts to DBLog 2020-12-06 21:45:06 +00:00
Thomas Smyth
915ec298f3 Lint 2020-12-06 21:23:05 +00:00
Thomas Smyth
6107612fb2 DBLog Plugin WIP 2020-12-06 21:21:41 +00:00
Thomas Smyth
3daf73de86 Add more logging from SquadServer 2020-11-09 21:10:32 +00:00
Thomas Smyth
8de7368163 lint 2020-11-08 00:10:55 +00:00
SeanWalsh95
00370ec283
Merge branch 'v2' into auto-kick-afk 2020-11-07 18:50:40 -05:00
SeanWalsh95
11b8801c2f move fetching admin lists to util 2020-11-07 18:43:08 -05:00
Thomas Smyth
9d45d4c13d Refactor SquadServer factory 2020-11-07 12:03:25 +00:00
SeanWalsh95
6ad552b7b0 Descriptive Plugin Error Message
error message for the case where a plugin is defined in the config file but does not exist in the codebase
2020-11-05 11:32:25 -05:00
SeanWalsh95
013ace439f Merge branch 'v2' of https://github.com/Thomas-Smyth/SquadJS into Thomas-Smyth-v2 2020-11-05 11:02:16 -05:00
Thomas Smyth
d32d3000d9 Refactor template scripts 2020-11-04 23:17:21 +00:00
SeanWalsh95
f63dfa26a4 move remoteAdmins to connectors 2020-10-30 17:17:53 -04:00
SeanWalsh95
7dd1e57953 rename afk => unassigned
+ typo
2020-10-30 15:58:31 -04:00
SeanWalsh95
9d3178ce2b more readable group matching 2020-10-29 13:14:20 -04:00
SeanWalsh95
ce76895e10 add logging/ fix logic 2020-10-28 15:33:21 -04:00
SeanWalsh95
602b8bf720 more descriptive option name 2020-10-27 18:09:11 -04:00
SeanWalsh95
41f9572986 add admins from remote adminlist 2020-10-27 17:31:05 -04:00
SeanWalsh95
e2e1c80a29
Merge branch 'v2' into auto-kick-afk 2020-10-25 20:39:34 -04:00
SeanWalsh95
20f0e101eb add PLAYER_TEAM_CHANGE/PLAYER_SQUAD_CHANGE events 2020-10-25 20:15:08 -04:00
Thomas Smyth
359b0319da Rcon client rewrite 2020-10-26 00:11:47 +00:00
Thomas Smyth
0d5bd481f0 Add additional logging to LogParser 2020-10-25 14:28:36 +00:00
Thomas Smyth
7262533f0e Use Logger in LogParser and RCON 2020-10-25 14:24:48 +00:00
Thomas Smyth
e39d36d6d2 Refactor logging 2020-10-25 13:59:57 +00:00
Thomas Smyth
4189e4dc53 Send SquadJS version in API ping 2020-10-25 13:42:34 +00:00
Thomas Smyth
56b48b0dd4 Update SquadJS API route 2020-10-25 13:37:24 +00:00
Thomas Smyth
1bf1317800 Ping config information to SquadJS API 2020-10-23 11:38:06 +01:00
Thomas Smyth
58ffc88085 Add support for useListForSize 2020-10-22 18:18:44 +01:00
Thomas Smyth
cfbebb4ad4 TeamRandomizer plugin 2020-10-21 22:49:07 +01:00
Thomas Smyth
3f67128160 Accept config as environmental variable 2020-10-21 21:00:37 +01:00
Thomas Smyth
d6ccde4db6 DiscordRoundWinner plugin 2020-10-21 20:28:29 +01:00
Thomas Smyth
2ba158ca7a Improve DiscordSubsystemRestarter responses 2020-10-14 19:51:33 +01:00
Thomas Smyth
84762a4a5c DiscordAdminCamLogs & DiscordSubsystemRestarter plugins 2020-10-14 19:50:35 +01:00
Thomas Smyth
68c685ff19 Improve log parsing 2020-10-14 17:01:19 +01:00
Thomas Smyth
7d7d4369f0 DiscordAdminRequest plugin 2020-10-13 12:08:21 +01:00
Thomas Smyth
2061429e42 DiscordRcon Permissions
Adaptation of https://github.com/Thomas-Smyth/SquadJS/pull/85

Co-Authored-By: SeanWalsh95 <14982667+SeanWalsh95@users.noreply.github.com>
2020-10-12 22:04:51 +01:00
Thomas Smyth
f923e9179e Add ftpHost option 2020-10-12 21:38:15 +01:00
Thomas Smyth
122a4a5ec0 Wrap intervalled data collection in try catch blocks 2020-10-05 22:53:24 +01:00
Thomas Smyth
4501ab9779 ChatCommands, IntervalledBroadcasts & SeedingMode plugins 2020-10-05 22:47:33 +01:00