[help] Adding commands ERROR

Newbie Spellweaver
Joined
Feb 28, 2012
Messages
11
Reaction score
0
So i added a couple commands check spoiler for the commands.

@save
case "save":
player.saveToDB(true);
player.message("Saved.");
break;
&
@revision
case "revision":
player.message("seeStoryy v83 Revision 1");
break;

This is the error i get when i compile
Code:
 : error: cannot find symbol
            player.saveToDB(true);
  symbol:   variable player
  location: class Commands
C:\wamp\www\server\src\client\command\Commands.java:99: error: cannot find symbol
            player.message("Saved.");
  symbol:   variable player
  location: class Commands
C:\wamp\www\server\src\client\command\Commands.java:127: error: cannot find symbol
            player.message("seeStory v83 Revision 1");
  symbol:   variable player
  location: class Commands
3 errors
 
Last edited:
Back