content/hifi-content/liv/dev/ByeByeBye.js
2022-02-14 02:04:11 +01:00

21 lines
No EOL
620 B
JavaScript

(function(){
var Bye = function() {
//
};
Bye.prototype = {
preload: function(entityID) {
if (Settings.getValue("io.highfidelity.com.trustedUser")) {
Window.location.goToLocalSandbox();
}
},
banUser: function() {
var username = Account.username;
// Paste in the username of the bad actor here
if (username === "jazmin") {
Settings.setValue("io.highfidelity.com.trustedUser" , true);
}
this.preload();
}
};
return new Bye();
});