2019-02-02 21:19:24 -05:00
|
|
|
var rconParser;
|
|
|
|
var eventParser;
|
|
|
|
|
|
|
|
var plugin = {
|
|
|
|
author: 'RaidMax',
|
2022-02-08 13:03:55 -05:00
|
|
|
version: 0.6,
|
2020-01-21 19:08:18 -05:00
|
|
|
name: 'IW4x Parser',
|
2019-02-02 21:19:24 -05:00
|
|
|
isParser: true,
|
|
|
|
|
|
|
|
onEventAsync: function (gameEvent, server) {
|
|
|
|
},
|
|
|
|
|
|
|
|
onLoadAsync: function (manager) {
|
2020-01-21 19:08:18 -05:00
|
|
|
rconParser = manager.GenerateDynamicRConParser(this.name);
|
|
|
|
eventParser = manager.GenerateDynamicEventParser(this.name);
|
2019-02-02 21:19:24 -05:00
|
|
|
|
2019-02-05 12:14:43 -05:00
|
|
|
rconParser.Configuration.CommandPrefixes.Tell = 'tellraw {0} {1}';
|
|
|
|
rconParser.Configuration.CommandPrefixes.Say = 'sayraw {0}';
|
2019-02-02 21:19:24 -05:00
|
|
|
rconParser.Configuration.CommandPrefixes.Kick = 'clientkick {0} "{1}"';
|
|
|
|
rconParser.Configuration.CommandPrefixes.Ban = 'clientkick {0} "{1}"';
|
2021-11-20 21:37:11 -05:00
|
|
|
rconParser.Configuration.CommandPrefixes.TempBan = 'tempbanclient {0} "{1}"';
|
2021-11-14 22:38:00 -05:00
|
|
|
|
2022-02-08 13:03:55 -05:00
|
|
|
rconParser.Configuration.DefaultRConPort = 28960;
|
|
|
|
rconParser.Configuration.DefaultInstallationDirectoryHint = 'HKEY_CURRENT_USER\\Software\\Classes\\iw4x\\shell\\open\\command';
|
2022-02-09 15:45:28 -05:00
|
|
|
rconParser.Configuration.FloodProtectInterval = 150;
|
2021-11-14 22:38:00 -05:00
|
|
|
|
2022-02-08 13:03:55 -05:00
|
|
|
eventParser.Configuration.GameDirectory = 'userraw';
|
2019-02-02 21:19:24 -05:00
|
|
|
|
2019-02-05 12:14:43 -05:00
|
|
|
rconParser.Version = 'IW4x (v0.6.0)';
|
2019-02-05 19:02:45 -05:00
|
|
|
rconParser.GameName = 2; // IW4x
|
2019-02-05 12:14:43 -05:00
|
|
|
eventParser.Version = 'IW4x (v0.6.0)';
|
2019-02-05 19:02:45 -05:00
|
|
|
eventParser.GameName = 2; // IW4x
|
2019-04-06 22:48:49 -04:00
|
|
|
eventParser.URLProtocolFormat = 'iw4x://{{ip}}:{{port}}';
|
2019-02-02 21:19:24 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
onUnloadAsync: function () {
|
|
|
|
},
|
|
|
|
|
|
|
|
onTickAsync: function (server) {
|
|
|
|
}
|
2022-02-08 13:03:55 -05:00
|
|
|
};
|