Try commands.java
|
hey i was wondering how to make a custom yell for a certain person because in this source [rune-evo] i only have the file yellhandler.java and .class
and it contains this
code
Code:
package com.rs.game.player.content.custom;
import com.rs.game.World;
import com.rs.game.player.Player;
public class YellHandler {
public static boolean isValidText(Player player, String message) {
String[] invalid = { "<euro", "<img", "<img=", "<col", "<col=", "<shad", "<shad=", "<str>", "<u>" };
for (String s : invalid)
if (message.contains(s)) {
player.getPackets().sendGameMessage("You cannot add additional code to the message.");
return false;
}
return true;
}
public static void sendYell(Player player, String message) {
if (isValidText(player, message)) {
for (Player players : World.getPlayers()) {
if (players == null || !players.isRunning())
continue;
players.getPackets().sendGameMessage(""+RightsMana ger.getInfo(player, player.getRights())+": "+message+"");
}
}
return;
}
}
also if i can get help making every player be able to yell that will be great thanks a lot hope someone can help me!
Try commands.java
yes there is a file called regular players. but it only for reg players and they cant yell...
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |