public class GodWarsDungeon extends Script {
private Position position = new Position(0,0,0); // obviously have the correct co-ordinates
//in your onPaint do this
@[member='Override']
public void onPaint(Graphics2D g) {
g.draw(position.getPolygon(bot));
}
The reason why graphics did not resolve was because by default your onPaint(Graphics2D g) is set at g so you can change that to whatever you want :P (the g part)