Find User here you can look for a user

Ape chat suggestion (anti-spam, age check)

3y
#1
@bastecklein

Anti spam

Using HashMap feature, like (from internet):

 Map<String, Long> lastMessageTime = new HashMap<String, Long>();

@EventHandler
public void onPlayerChat(AsyncPlayerChatEvent event){
String playerName = event.getPlayer().getName();
if(this.lastMessageTime.containsKey(playerName)){
long lastMessage = this.lastMessageTime.get(playerName);
long currentMessage = System.currentTimeMillis();
long difference = currentMessage - lastMessage;
String convertlong = Long.toString(difference);
int getdifference = Integer.valueOf(convertlong);
if (getdifference < plugin.getConfig().getInt("AntiSpam.AllowedMessageInterval")){
event.getPlayer().sendMessage(ChatColor.DARK_RED + "Message cancelled due to chat spam");
event.setCancelled(true);
}

Maybe, with a exponential auto-mute system, like:

https://tibia.fandom.com/wiki/Mute


word filter
elimination or warning mod

Because having players talk about hacking the game in chat.. isn't very nice.

Or using special character for make chaos.

Age Check

I have no idea how the law work in USA, but in EU is illegal to offer at child chat / webchat / social, if under some age (min 13y, in some state 16y). Every service need to apply, even service based outside EU.
1y
#2
Går det att hyra dig till att bygga ett interperium med radiokanal och fotbolls strukturbetting?
är ute efter +voice & +op med en bot som kan skapa reklam som L news och Q bits. mvh!

Linkback References

Ape Chat

Launch the Web Interface

Welcome
Ape Apps, LLC is an independent software development company founded in 2010 by Brandon Stecklein. Over the years, Ape Apps has published over 400 apps and games across various platforms. You can get in touch with Brandon on Twitter or by leaving a post on his wall @bastecklein
App of the Day