Skip to content

Commit ae2dc5a

Browse files
authored
Merge pull request #19 from tutinoko2048/module-update
Module update
2 parents 411aeef + 806609a commit ae2dc5a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
"dependencies": [
2121
{
2222
"uuid": "6f4b6893-1bb6-42fd-b458-7fa3d0c89616",
23-
"version": [ 0, 1, 0 ]
23+
"version": "1.0.0-beta"
2424
},
2525
{
2626
"uuid": "b26a4d4c-afdf-4690-88f8-931846312678",
27-
"version": [ 0, 1, 0 ]
27+
"version": "1.0.0-beta"
2828
}
2929
]
3030
}

scripts/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
import { world, Player } from 'mojang-minecraft';
1+
import { system, world, Player } from 'mojang-minecraft';
22
import './ac.js';
33
import config from './config.js';
44

55
console.warn('[TN-AntiCheat] index.js >> loaded');
66

7+
system.events.beforeWatchdogTerminate.subscribe(ev => {
8+
ev.cancel = true;
9+
});
10+
711
Player.prototype.kick = function (reason = 'No reason') {
812
if (this.hasTag(config.tag.op)) return;
913
try {

0 commit comments

Comments
 (0)