pLoc.getBlockX().toString(); ?

Discussion in 'Plugin Development' started by edocsyl, May 9, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    edocsyl

    HI

    I wanna convert a Block Location to a string, that i can print it out.
    How can i do this.
    I know it's basic java, but i tryd so much and it don't works.

    public static String cItoS(int i) {
    return Integer.toString(i);
    }

    p.SendMessage(cItoS(pLoc.getBlockX()));

    A this doesn't work. -.-
     
  2. I don't know if it was intention, but it's a lower case s in sendMessage();
    However, you can just do
    p.sendMessage("" + pLoc.getBlockX());
     
    Double0negative likes this.
Thread Status:
Not open for further replies.

Share This Page