src/main/javascript/events/events.js

tidy up variable names
This commit is contained in:
walterhiggins 2013-12-15 21:27:23 +00:00
parent bcf44fe345
commit 03220a03e8

View file

@ -185,10 +185,10 @@ plugin("homes", {
define a set of command options that can be used by players
*/
var options = {
set: function(){homes.set();},
'set': function(){homes.set();},
'delete': function(){ homes.remove();},
help: function(){ self.sendMessage(homes.help());},
list: function(){
'help': function(){ self.sendMessage(homes.help());},
'list': function(){
var visitable = homes.list();
if (visitable.length == 0){
self.sendMessage("There are no homes to visit");
@ -200,7 +200,7 @@ plugin("homes", {
]);
}
},
ilist: function(){
'ilist': function(){
var potentialVisitors = homes.ilist();
if (potentialVisitors.length == 0)
self.sendMessage("No one can visit your home");
@ -209,7 +209,7 @@ plugin("homes", {
"These " + potentialVisitors.length + "players can visit your home",
potentialVisitors.join(", ")]);
},
invite: function(params){
'invite': function(params){
if (params.length == 1){
self.sendMessage("You must provide a player's name");
return;
@ -221,7 +221,7 @@ plugin("homes", {
else
homes.invite(self,guest);
},
uninvite: function(params){
'uninvite': function(params){
if (params.length == 1){
self.sendMessage("You must provide a player's name");
return;
@ -241,13 +241,13 @@ plugin("homes", {
homes.close();
self.sendMessage("Your home is closed to the public");
},
listall: function(){
'listall': function(){
if (!self.isOp())
self.sendMessage("Only operators can do this");
else
self.sendMessage(homes.listall().join(", "));
},
clear: function(params){
'clear': function(params){
if (!self.isOp())
self.sendMessage("Only operators can do this");
else