Resource icon

ChatManager 1.2.2

No permission to download
Fougerite Compatibility
All Versions
Plugin's Engine
C# (Modules)
Plugin Dependencies
PermissionsManager(required)
Complete chat system, having as functions:
anti-flood
time to send message
block repeated phrases
block color
change words
mute and unmute
tags


For tags to work, PermissionsManager is required from version 1.0.1 or higher.

config/config.json
JSON:
{
  "prefix": "ChatManager",
  "permission": "chamanager.use",
  "noRepeatMessage": false,
  "antiFloodMessages": false,
  "repMessages": false,
  "blockMessages": false,
  "blockColor": false,
  "chatBlock": false,
  "messagesBlock": [
    "test"
  ],
  "replacedMessages": {
    "Hello": "Ola"
  },
  "timeMessages": 3.0,
  "cmdMute": "mute",
  "cmdUnmute": "unmute"
}


config/tags.json
JSON:
{
  "owner": {
    "prefix": "[Owner]",
    "suffix": "[G]",
    "colorChat": "[color #DF0101]",
    "permission": "owner"
  },
  "vip": {
    "prefix": "[VIP]",
    "suffix": null,
    "colorChat": "[color yellow]",
    "permission": "vip"
  }
}
lang/messages.json
JSON:
{
  "messages": {
    "noPermission": "You are not allowed to use this command!",
    "noRepeatMessage": "You have already written this message before.",
    "antiFlood": "You have to wait {sec} seconds to send another message.",
    "workBlock": "The word {work} is blocked on the server!",
    "blockColor": "the use of colors are blocked in the chat.",
    "chatBlock": "chat is disabled on the server!",
    "youMuted": "You're fined for {sec} seconds!",
    "helpCmdMute": "Use /{command} {playerName} {seconds} - to mutate a player!",
    "helpCmdUnmute": "Use /{command} {playerName} - to dismantle a player!",
    "playerNull": "Player not found!",
    "playerMute": "You fined the {player} player for {sec} seconds!",
    "playerIsNotMute": "{player} is not mutated!",
    "playerUnmute": "You demoted the {player} player!"
  }
}

Developers

get player tag:
C#:
public static ChatManagerModule chatAPI;

private static void Test(Fougerite.Player player)
{
    player.Message(chatAPI.playerTAG(player));
}
get player suffix:
C#:
public static ChatManagerModule chatAPI;

private static void Test(Fougerite.Player player)
{
    player.Message(chatAPI.playerSuffix(player));
}
get color chat player:
C#:
public static ChatManagerModule chatAPI;

private static void Test(Fougerite.Player player)
{
    player.Message(chatAPI.playerChatColor(player));
}
Author
N0Va_DR0N3
Downloads
70
Views
367
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from N0Va_DR0N3

Latest updates

  1. New references

    new references for developers, if they want to use the same in their plugins. Optimization of...
  2. Saving tags

    Tags are now saved, and shown in tags.json
  3. New functions and optimization

    Messages previously found in the config can now be found in the folder "lang-> messages.json"...

Latest reviews

Nice