?Code:} if (cmd.startsWith("server")) { c.Yell("[Server]: "+cmd.substring(7)+"");
|
Im trying to make a public announce command.
Basically ::yell but instead the command needs to be ::ann and it needs to say "ann" next to their name
and there needs to be a timer..say..one :ann every 3 seconds or so?
can anyone help me with this?
(No, my server does NOT currently have :yell, therefore i cant just change it)
?Code:} if (cmd.startsWith("server")) { c.Yell("[Server]: "+cmd.substring(7)+"");
uhh idk if thats right..dont look right =O..idk
edit: fuck it, just copy and paste the yell command here lol
Try this
Code:if (command.startsWith("message") && command.length() > 8 && playerRights > 2) { String text = command.substring(8); yell("[SERVER]: " + Character.toUpperCase(text.charAt(0)) + text.substring(1)); }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |