Skip to content

Commit a3c4053

Browse files
Updated AMP to 2.6.0.8, srcds API methods added (even though they are deprecated in the panel, will be removed later)
1 parent f6279f1 commit a3c4053

File tree

8 files changed

+476
-2
lines changed

8 files changed

+476
-2
lines changed

AMPVersion.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.6.0.4
1+
2.6.0.8

APISpec.json

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3764,6 +3764,127 @@
37643764
"IsComplexType": false
37653765
}
37663766
},
3767+
"srcdsModule": {
3768+
"BanUserByID": {
3769+
"Description": null,
3770+
"Returns": null,
3771+
"Parameters": [
3772+
{
3773+
"Description": "",
3774+
"Name": "ID",
3775+
"Optional": false,
3776+
"ParamEnumValues": null,
3777+
"TypeName": "String"
3778+
}
3779+
],
3780+
"ReturnTypeName": "Void",
3781+
"IsComplexType": false
3782+
},
3783+
"GetMapCycle": {
3784+
"Description": null,
3785+
"Returns": null,
3786+
"Parameters": [],
3787+
"ReturnTypeName": "List<String>",
3788+
"IsComplexType": false
3789+
},
3790+
"InsertMapEntry": {
3791+
"Description": null,
3792+
"Returns": null,
3793+
"Parameters": [
3794+
{
3795+
"Description": "",
3796+
"Name": "MapName",
3797+
"Optional": false,
3798+
"ParamEnumValues": null,
3799+
"TypeName": "String"
3800+
}
3801+
],
3802+
"ReturnTypeName": "Void",
3803+
"IsComplexType": false
3804+
},
3805+
"KickUserByID": {
3806+
"Description": null,
3807+
"Returns": null,
3808+
"Parameters": [
3809+
{
3810+
"Description": "",
3811+
"Name": "ID",
3812+
"Optional": false,
3813+
"ParamEnumValues": null,
3814+
"TypeName": "String"
3815+
}
3816+
],
3817+
"ReturnTypeName": "Void",
3818+
"IsComplexType": false
3819+
},
3820+
"MoveMapEntry": {
3821+
"Description": null,
3822+
"Returns": null,
3823+
"Parameters": [
3824+
{
3825+
"Description": "",
3826+
"Name": "Index",
3827+
"Optional": false,
3828+
"ParamEnumValues": null,
3829+
"TypeName": "Int32"
3830+
},
3831+
{
3832+
"Description": "",
3833+
"Name": "NewIndex",
3834+
"Optional": false,
3835+
"ParamEnumValues": null,
3836+
"TypeName": "Int32"
3837+
}
3838+
],
3839+
"ReturnTypeName": "Void",
3840+
"IsComplexType": false
3841+
},
3842+
"RecordDemo": {
3843+
"Description": null,
3844+
"Returns": null,
3845+
"Parameters": [
3846+
{
3847+
"Description": "",
3848+
"Name": "Name",
3849+
"Optional": false,
3850+
"ParamEnumValues": null,
3851+
"TypeName": "String"
3852+
}
3853+
],
3854+
"ReturnTypeName": "ActionResult",
3855+
"IsComplexType": true
3856+
},
3857+
"RemoveMapEntry": {
3858+
"Description": null,
3859+
"Returns": null,
3860+
"Parameters": [
3861+
{
3862+
"Description": "",
3863+
"Name": "Index",
3864+
"Optional": false,
3865+
"ParamEnumValues": null,
3866+
"TypeName": "Int32"
3867+
}
3868+
],
3869+
"ReturnTypeName": "Void",
3870+
"IsComplexType": false
3871+
},
3872+
"ReplaceMapList": {
3873+
"Description": null,
3874+
"Returns": null,
3875+
"Parameters": [
3876+
{
3877+
"Description": "",
3878+
"Name": "MapList",
3879+
"Optional": false,
3880+
"ParamEnumValues": null,
3881+
"TypeName": "String[]"
3882+
}
3883+
],
3884+
"ReturnTypeName": "Void",
3885+
"IsComplexType": false
3886+
}
3887+
},
37673888
"steamcmdplugin": {
37683889
"CancelSteamGuard": {
37693890
"Description": null,

FriendlySpec.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,14 @@ RustModule.Ban(ID: String) -> Void
209209
RustModule.Kick(ID: String) -> Void
210210
RustModule.WipeBlueprints() -> Void
211211
RustModule.WipeMap() -> Void
212+
srcdsModule.BanUserByID(ID: String) -> Void
213+
srcdsModule.GetMapCycle() -> List<String>
214+
srcdsModule.InsertMapEntry(MapName: String) -> Void
215+
srcdsModule.KickUserByID(ID: String) -> Void
216+
srcdsModule.MoveMapEntry(Index: Int32, NewIndex: Int32) -> Void
217+
srcdsModule.RecordDemo(Name: String) -> ActionResult
218+
srcdsModule.RemoveMapEntry(Index: Int32) -> Void
219+
srcdsModule.ReplaceMapList(MapList: String[]) -> Void
212220
steamcmdplugin.CancelSteamGuard() -> Void
213221
steamcmdplugin.SteamGuardCode(code: String) -> Void
214222
steamcmdplugin.SteamUsernamePassword(username: String, password: String) -> Void

ModuleInheritance.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,16 @@
3636
"RCONPlugin",
3737
"RustModule",
3838
"steamcmdplugin"
39+
],
40+
"srcds": [
41+
"AnalyticsPlugin",
42+
"CommonCorePlugin",
43+
"Core",
44+
"EmailSenderPlugin",
45+
"FileManagerPlugin",
46+
"LocalFileBackupPlugin",
47+
"RCONPlugin",
48+
"srcdsModule",
49+
"steamcmdplugin"
3950
]
4051
}

TypedAPISpec.json

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3098,6 +3098,127 @@
30983098
"IsComplexType": false
30993099
}
31003100
},
3101+
"srcdsModule": {
3102+
"BanUserByID": {
3103+
"Description": null,
3104+
"Returns": null,
3105+
"Parameters": [
3106+
{
3107+
"Description": "",
3108+
"Name": "ID",
3109+
"Optional": false,
3110+
"ParamEnumValues": null,
3111+
"TypeName": "String"
3112+
}
3113+
],
3114+
"ReturnTypeName": "Void",
3115+
"IsComplexType": false
3116+
},
3117+
"GetMapCycle": {
3118+
"Description": null,
3119+
"Returns": null,
3120+
"Parameters": [],
3121+
"ReturnTypeName": "List<String>",
3122+
"IsComplexType": false
3123+
},
3124+
"InsertMapEntry": {
3125+
"Description": null,
3126+
"Returns": null,
3127+
"Parameters": [
3128+
{
3129+
"Description": "",
3130+
"Name": "MapName",
3131+
"Optional": false,
3132+
"ParamEnumValues": null,
3133+
"TypeName": "String"
3134+
}
3135+
],
3136+
"ReturnTypeName": "Void",
3137+
"IsComplexType": false
3138+
},
3139+
"KickUserByID": {
3140+
"Description": null,
3141+
"Returns": null,
3142+
"Parameters": [
3143+
{
3144+
"Description": "",
3145+
"Name": "ID",
3146+
"Optional": false,
3147+
"ParamEnumValues": null,
3148+
"TypeName": "String"
3149+
}
3150+
],
3151+
"ReturnTypeName": "Void",
3152+
"IsComplexType": false
3153+
},
3154+
"MoveMapEntry": {
3155+
"Description": null,
3156+
"Returns": null,
3157+
"Parameters": [
3158+
{
3159+
"Description": "",
3160+
"Name": "Index",
3161+
"Optional": false,
3162+
"ParamEnumValues": null,
3163+
"TypeName": "Int32"
3164+
},
3165+
{
3166+
"Description": "",
3167+
"Name": "NewIndex",
3168+
"Optional": false,
3169+
"ParamEnumValues": null,
3170+
"TypeName": "Int32"
3171+
}
3172+
],
3173+
"ReturnTypeName": "Void",
3174+
"IsComplexType": false
3175+
},
3176+
"RecordDemo": {
3177+
"Description": null,
3178+
"Returns": null,
3179+
"Parameters": [
3180+
{
3181+
"Description": "",
3182+
"Name": "Name",
3183+
"Optional": false,
3184+
"ParamEnumValues": null,
3185+
"TypeName": "String"
3186+
}
3187+
],
3188+
"ReturnTypeName": "ActionResult",
3189+
"IsComplexType": true
3190+
},
3191+
"RemoveMapEntry": {
3192+
"Description": null,
3193+
"Returns": null,
3194+
"Parameters": [
3195+
{
3196+
"Description": "",
3197+
"Name": "Index",
3198+
"Optional": false,
3199+
"ParamEnumValues": null,
3200+
"TypeName": "Int32"
3201+
}
3202+
],
3203+
"ReturnTypeName": "Void",
3204+
"IsComplexType": false
3205+
},
3206+
"ReplaceMapList": {
3207+
"Description": null,
3208+
"Returns": null,
3209+
"Parameters": [
3210+
{
3211+
"Description": "",
3212+
"Name": "MapList",
3213+
"Optional": false,
3214+
"ParamEnumValues": null,
3215+
"TypeName": "String[]"
3216+
}
3217+
],
3218+
"ReturnTypeName": "Void",
3219+
"IsComplexType": false
3220+
}
3221+
},
31013222
"steamcmdplugin": {
31023223
"CancelSteamGuard": {
31033224
"Parameters": [],

libraries/python/ampapi/modules.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,32 @@ def __init__(self, auth: AuthProvider):
118118
self.RCONPlugin = RCONPluginAsync(self)
119119
self.RustModule = RustModuleAsync(self)
120120
self.steamcmdplugin = steamcmdpluginAsync(self)
121+
122+
class srcds(CommonAPI):
123+
AnalyticsPlugin = Final[AnalyticsPlugin]
124+
LocalFileBackupPlugin = Final[LocalFileBackupPlugin]
125+
RCONPlugin = Final[RCONPlugin]
126+
srcdsModule = Final[srcdsModule]
127+
steamcmdplugin = Final[steamcmdplugin]
128+
def __init__(self, auth: AuthProvider):
129+
super().__init__(auth)
130+
self.AnalyticsPlugin = AnalyticsPlugin(self)
131+
self.LocalFileBackupPlugin = LocalFileBackupPlugin(self)
132+
self.RCONPlugin = RCONPlugin(self)
133+
self.srcdsModule = srcdsModule(self)
134+
self.steamcmdplugin = steamcmdplugin(self)
135+
136+
class srcdsAsync(CommonAPIAsync):
137+
AnalyticsPlugin = Final[AnalyticsPluginAsync]
138+
LocalFileBackupPlugin = Final[LocalFileBackupPluginAsync]
139+
RCONPlugin = Final[RCONPluginAsync]
140+
srcdsModule = Final[srcdsModuleAsync]
141+
steamcmdplugin = Final[steamcmdpluginAsync]
142+
143+
def __init__(self, auth: AuthProvider):
144+
super().__init__(auth)
145+
self.AnalyticsPlugin = AnalyticsPluginAsync(self)
146+
self.LocalFileBackupPlugin = LocalFileBackupPluginAsync(self)
147+
self.RCONPlugin = RCONPluginAsync(self)
148+
self.srcdsModule = srcdsModuleAsync(self)
149+
self.steamcmdplugin = steamcmdpluginAsync(self)

0 commit comments

Comments
 (0)