Skip to content

Commit d5a3164

Browse files
committed
oops
1 parent bbcd05b commit d5a3164

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

scripts/example/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import { configuration } from '../library/build/configurations.js';
88
Server.on('ready', data => {
99
Server.broadcast(`World has been loaded in ${data.loadTime} ticks!`);
1010
});
11+
12+
//This is how you would do the chat ranks
1113
Server.on('beforeMessage', data => {
1214
if(data.message.startsWith(configuration.prefix)) return;
1315
displayRank(data);

src/example/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { writeLeaderboard } from '../library/miscellaneous/leaderboard.js';
21
import './commands/import-commands.js';
32

43
//Event Example
@@ -10,6 +9,8 @@ import { configuration } from '../library/build/configurations.js';
109
Server.on('ready', data => {
1110
Server.broadcast(`World has been loaded in ${data.loadTime} ticks!`);
1211
});
12+
13+
//This is how you would do the chat ranks
1314
Server.on('beforeMessage', data => {
1415
if(data.message.startsWith(configuration.prefix)) return;
1516
displayRank(data);

0 commit comments

Comments
 (0)