Watchdog Announcement
function randomInteger(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
var script = registerScript({
name: 'Watchdog',
version: '0.0.0',
authors: ['Shurpe']
});
script.registerModule({
name: 'Watchdog',
category: 'Fun',
description: ''
}, function (module) {
module.on('update', function() {
if (mc.thePlayer.ticksExisted % 6000 == 0) {
Chat.print('')
Chat.print('§4[§4WATCHDOG ANNOUNCEMENT]')
Chat.print('Watchdog has banned §c§l' + randomInteger(1, 99) + ',' + randomInteger(100, 999) + ' §rplayers in the last 7 days.')
Chat.print('Staff have banned an additional §c§l' + randomInteger(1, 99) + ',' + randomInteger(100, 999) + ' §rin the last 7 days.')
Chat.print('§cBlacklisted modifications are a bannable offence!')
Chat.print('')
}
});
});