bump
|
Fixed. Thanks theowner123, and Say wut?.
bump
Check the "ismuted" method is looking @ the right location
I forgot, the method was commented out. I was too busy to fix this error, so i just added // in front of it. Help with the error pl0x. =D
[spoil]
src\server\Connection.java:312: unreachable statement
return true;
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
Press any key to continue . . .
[/spoil]
make it
im sending all the mute files though, just incase:return;
Chat.java (packets)
connection.javaif (!Connection.isMuted(c))
c.setChatTextUpdateRequired(true);
}
intialize:
muteUsers();public static void unMuteUser(String name) {
mutedNames.remove(name);
deleteFromFile("./Data/bans/UsersMuted.txt", name);
}Create a .txt UsersMuted > DATA/BANS/public static void muteUsers() {
try {
BufferedReader in = new BufferedReader(new FileReader("./Data/bans/UsersMuted.txt"));
String data = null;
try {
while ((data = in.readLine()) != null) {
mutedNames.add(data);
}
} finally {
in.close();
}
} catch (IOException e) {
e.printStackTrace();
}
}
> DATA/BANS/UsersMuted.txt +
You just got to delete that return true;
because it already returns to the mute.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |