Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
notbeer committed Sep 22, 2021
1 parent bbcd05b commit d5a3164
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scripts/example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { configuration } from '../library/build/configurations.js';
Server.on('ready', data => {
Server.broadcast(`World has been loaded in ${data.loadTime} ticks!`);
});
//This is how you would do the chat ranks
Server.on('beforeMessage', data => {
if(data.message.startsWith(configuration.prefix)) return;
displayRank(data);
Expand Down
3 changes: 2 additions & 1 deletion src/example/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { writeLeaderboard } from '../library/miscellaneous/leaderboard.js';
import './commands/import-commands.js';

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

0 comments on commit d5a3164

Please sign in to comment.