You are using the dev version of nrelay, which is currently on v7.6.1
The plugin you are using was built for the master version of nrelay, which is currently on v6.20.0
Because there was a major version increment, the plugin is not compatible with v7.x.x
You can either downgrade to v6.20.0, or wait for a new version of the plugin to be released.
Alternatively, if you would like to stay on version 7, and just need a tracker with basic functionality, you can use this extremely concise tracker which is written for v7.
Code:
import { Library, Logger } from './../core';
import { PlayerTracker } from '../stdlib/player-tracker';
const NAMES = [
'Eendi',
'Oshyu',
'Saylt'
];
@Library({ name: 'Mini Tracker', author: 'Killer Be Killed' })
class MiniTracker {
constructor(tracker: PlayerTracker) {
tracker.on('enter', (player) => {
if (NAMES.indexOf(player.name) !== -1) {
Logger.log('Mini Tracker', `${player.name} entered ${player.server}`);
}
});
}
}
This tracker will simply print "Eendi entered Australia" when a player in the NAMES array enters the same server as the bot.