• 周年纪念勋章活动已圆满结束,如有已购买但仍未申请的用户,可以通过对应勋章的下载链接申请~
BetterChat-更好的聊天

LSE BetterChat-更好的聊天 v1.1.6

  1. 1.Support for LSE player API variables
    2.Support for PAPI variables
    3.Support for setting forbidden words
    4.Customizable personal chat format
    5.Export interface for other plugins to connect (higher extensibility)
    6.Forbidden words
Installation method

  1. 1.Download the compressed package and place it in the ./plugins folder to decompress
    2.Restart the server or use ll load for the plugin
    It is recommended to restart, as I am not sure if there will be any issues with ll load
Plugin configuration file

JSON:
{
"config": {
"Prefix": "§r[§aBetterChat§r] ", // Plugin prefix
"Msg_duration": 5 // Bubble display duration
},
"api": { // Custom interface
"{饼干}": "",
"{护甲}": "",
"{鸡腿}": "",
"{Y}": "",
...
},
"forbiddenWords": [ // Forbidden words
"*[B]",
"[/B]*"
]
}

Player data configuration file

JSON:
{
"data": [
{
"name": " Real name of player 1 ",
"nick": " Custom name set by player 1 ",
"title": " Title of player 1 ",
"message": " Last message sent by player 1 ",
"time": 0, // Remaining bubble display time, in seconds
"chat_format": "{player_titles} {player_name}>> {player_msg}" // Chat format for player 1
},
{
"name": " Real name of player 2 ",
"nick": " Custom name set by player 2 ",
"title": " Title of player 2 ",
"message": " Last message sent by player 2 ",
"time": 0, // Remaining bubble display time, in seconds
"chat_format": "{player_titles} {player_name}>> {player_msg}" // Chat format for player 2
}
]
}

Commands

The plugin adds the alias betterchat bchat
With subcommands: rename, setitle, format, gui

Rename a player, ordinary players can only rename themselves, administrators can rename everyone
bchat rename <Player> <string>

Set a title, only administrators can modify
bchat setitle <Player> <string>

Open the chat format modification menu
bchat format

Open the main menu
bchat gui

Integration

  1. 1.const updata_BetterChat_PlayersData= ll.imports('BetterChat_updataPlayersData','updata_BetterChat_PlayersData')
    Function to modify player data
/**

  • Update or add player data to storage
  • If the player already exists, update their data; if not, add new player data
  • @param {string} name - The real name of the player
  • @param {string} nick - The custom nickname of the player
  • @param {string} title - The title of the player
  • @param {string} message - The message of the player
  • @param {number} time - The duration of the bubble display (seconds)
  • @returns {void} - This function is used to modify the player data file and does not return any value
    */
    function updatePlayerData(name, nick, title, message, time, chat_format)
  1. 2.const get_BetterChat_PlayerData= ll.imports('BetterChat_getPlayerData','get_BetterChat_PlayerData')
/**

  • Get the player data of the specified name
  • If no matching name is found, return null
  • @param {string} name - The name of the player to search for
  • @returns {Object|null} - The player data object found, or null if not found
    */
    function getPlayerData(name)
  1. 3.const BetterChat_mainGUI= ll.imports('BetterChat_mainGUI','BetterChat_mainGUI')
/**

  • Display the main menu of the BetterChat plugin to the player
  • @param {Object} player - The player object sending the form
  • @returns {void} - This function does not return any value
    */
    function GUI(player)
This plugin is a refactored version of SimpleChat, authorized by SimpleChat, and unauthorized reproduction is prohibited.
If there are bugs, you can go to the discussion board to feedback. If you find the review process troublesome, you can add QQ: 427836458
后退
顶部 底部