IW4M-Admin/Plugins/ScriptPlugins/ParserIW4x.js

33 lines
1001 B
JavaScript
Raw Normal View History

2019-02-02 21:19:24 -05:00
var rconParser;
var eventParser;
var plugin = {
author: 'RaidMax',
version: 0.1,
name: 'IW3 Parser',
isParser: true,
onEventAsync: function (gameEvent, server) {
},
onLoadAsync: function (manager) {
rconParser = manager.GenerateDynamicRConParser();
eventParser = manager.GenerateDynamicEventParser();
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}"';
rconParser.Configuration.CommandPrefixes.TempBan = 'tempbanclient {0} "{1}"';
eventParser.Configuration.GameDirectory = 'userraw';
2019-02-02 21:19:24 -05:00
rconParser.Version = 'IW4x (v0.6.0)';
eventParser.Version = 'IW4x (v0.6.0)';
2019-02-02 21:19:24 -05:00
},
onUnloadAsync: function () {
},
onTickAsync: function (server) {
}
};