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