Skip to content

Commit b93983f

Browse files
authored
fix: include doc, ci download/upload actions bump to v4 (#3)
1 parent a3e628e commit b93983f

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
cp -R addons/sourcemod/gamedata /tmp/package/common/addons/sourcemod/
2727
2828
- name: Upload build archive for test runners
29-
uses: actions/upload-artifact@v3
29+
uses: actions/upload-artifact@v4
3030
with:
3131
name: ${{ runner.os }}
3232
path: /tmp/package
@@ -60,7 +60,7 @@ jobs:
6060
runs-on: ubuntu-latest
6161
steps:
6262
- name: Download artifacts
63-
uses: actions/download-artifact@v3
63+
uses: actions/download-artifact@v4
6464

6565
- name: Versioning
6666
run: |

addons/sourcemod/scripting/SelectiveBhop.sp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ public Plugin myinfo =
3939
name = "Selective Bunnyhop",
4040
author = "BotoX + .Rushaway",
4141
description = "Disables bunnyhop on certain players/groups",
42-
version = "1.1.1"
42+
version = SelectiveBhop_VERSION,
43+
url = "https://github.com/srcdslab/sm-plugin-SelectiveBhop"
4344
}
4445

4546
public void OnPluginStart()

addons/sourcemod/scripting/include/SelectiveBhop.inc

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,29 @@
33
#endif
44
#define _SelectiveBhop_Included
55

6+
#define SelectiveBhop_V_MAJOR "1"
7+
#define SelectiveBhop_V_MINOR "2"
8+
#define SelectiveBhop_V_PATCH "0"
9+
10+
#define SelectiveBhop_VERSION SelectiveBhop_V_MAJOR..."."...SelectiveBhop_V_MINOR..."."...SelectiveBhop_V_PATCH
11+
12+
/**
13+
* Sets whether bunnyhopping is limited for a client.
14+
*
15+
* @param client Client index
16+
* @param bLimited True to limit bunnyhopping, false to allow it
17+
* @return 0 on success, -1 on failure
18+
* @error Invalid client index or client not in game
19+
*/
620
native int LimitBhop(int client, bool bLimited);
21+
22+
/**
23+
* Checks if bunnyhopping is limited for a client.
24+
*
25+
* @param client Client index
26+
* @return True if bunnyhopping is limited, false otherwise
27+
* @error Invalid client index or client not in game
28+
*/
729
native int IsBhopLimited(int client);
830

931
public SharedPlugin __pl_SelectiveBhop =
@@ -18,7 +40,7 @@ public SharedPlugin __pl_SelectiveBhop =
1840
};
1941

2042
#if !defined REQUIRE_PLUGIN
21-
public __pl_SelectiveBhop_SetNTVOptional()
43+
public void __pl_SelectiveBhop_SetNTVOptional()
2244
{
2345
MarkNativeAsOptional("LimitBhop");
2446
MarkNativeAsOptional("IsBhopLimited");

0 commit comments

Comments
 (0)