change @gre@ to whatever is used to display green, some clients have the newer text engine so it might be differentCode:sendServerMessage("@gre@"+p.playerName.toUpperCase() + " IS CORRECT AND GAINED 1PK POINT!");
|
Code:public static void attemptAnswer(Player p, String attempt) { if (!currentQuestion.equals("") && attempt.replaceAll("_", " ").equalsIgnoreCase(currentAnswer)) { currentQuestion = ""; p.pkPoints++; sendServerMessage(p.playerName + " IS CORRECT AND GAINED 1PK POINT!"); } }
How would i make the players name all CAPS and make the message green? Every time ive tried adding a color and TRIVIA: at the beginning before p.playerName it gives me errors
change @gre@ to whatever is used to display green, some clients have the newer text engine so it might be differentCode:sendServerMessage("@gre@"+p.playerName.toUpperCase() + " IS CORRECT AND GAINED 1PK POINT!");
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |