I am trying to make a plugin for my server, and I've gotten stuck (again). I created a class to keep track of the different objects and to make handling things easier. I've gotten to the point where I can almost successfully create the object, but I can't recall the object after the command has been executed. The link to the code and the console message I get: http://pastebin.com/yx6fs0fS . You will notice on line 31 I have it set to $this->test1->coords. If I change it to $test1->coords it says undefined variable. I'm guessing I'm defining the object incorrectly. If someone could help me it would be highly appreciated.