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[0][0]. If I change it to $test1->coords[0][0] it says undefined variable. I'm guessing I'm defining the object incorrectly. If someone could help me it would be highly appreciated.
What about line 50?"$test1 = new Mine($args[0],$this->x1,$this->y1,$this->z1,$this->x2,$this->y2,$this->z2);"
Well, finally after a day of trying different things, it came to me at dinner to try to do $this->test1 = new Mine instead of just $test1 = new Mine. Thanks guys but I figured it out myself.