GithubHelp home page GithubHelp logo

thunderdoesplugins / staffchat Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 9.0 75 KB

An Advance staff chat plugins for your staff members

License: ISC License

PHP 100.00%
pmmp pmmp-plugins mcpe staffchat plugin pocketmine

staffchat's Introduction

Staff Chat

Advance private chat plugins for your staff members

Allows you to create a staff chat between staff members with permissions and chat prefix

If you want to make a video of it, please link back to this repo in your description, you may request your videos to be featured here if it meet reasonable quality

How to install and use

To download compiled PHAR, please click the poggit view button above then scroll down selecting the latest by clicking on Direct for latest version, or you can click on latest release "Direct Download"

Put this in your Plugins, start the server to generate a config file, you may edit the config to suit your needs, scroll down for more info on configuration files

To chat into staff chat type your prefix followed by your message, no spaces are required For example prefix is . so typing ".this message will be sent to staff chat" will sent that message to staff chat letting all online staff to know

To chat into staff chat without prefix or commands use "/sc on" this will put all of your message into staff chat for convenience if you wish to have long conversations "/sc off" when you are done

To chat into staff chat as console type "/sc say "

Console can also choose to receive staff chat or not by "/sc attach on/off"

Intended Usage

This plugin was created to allow servers with multiple staff members to cooperate together while chatting silently between each other without /tell and with ease of use!

Commands:

Commands start with /staffchat alias is /sc

Command Info
say Send a message to staff channel (this is for the console)
on/off/toggle Switch current chat mode (chats directly into staff chat)
reload Reloads configs and flushes internal data
attach <true/false> Attach console into/out of staff chat
check [player] Checks player staff chat status and permissions
list List player with staff chat permissions and is chatting

Configs:

Config Value Info
prefix Used to send a message directly into staff chat Example: ".hello staff" you may set it to any value you prefer
auto-attach Automatically make console listen to staff chat on start?
console-prefix Console logging prefix for Staff Chat
player-format Staff chat formatting example: "![bold]StaffChat![reset]%sender%>%msg%"
plugin-format Staff chat formatting for plugins
functions (BETA) Enable functions See #functions section below for more
joinleave Enable join leave announce message to staff
join/leave Join leave format

There's also references inside config file

Functions:

You can use function by typing "$name" in staff chat and will be replaced with appropriate text(buggy might not work)

Function Name Usage
$pos Replaces it with your level,x,y,z
$ping Replaces $ping with bolded green and play Enderman teleport+Anvil fall sound to all staff
$near(distance number)$ Replaces it with "Near Me(count):" and Playername(GM:mode Dist:number)

Permissions:

permission node Info
staffchat.read Allow players to read chat
staffchat.chat Allow players to chat into chat
staffchat.attach Allow players to attach or detach console from chat
staffchat.check Allow players to check other player's staff chat status
staffchat.list Allow players to list players staff chat status

By default all permission nodes are granted for operators.

Video

Tutorial by JJ Birdman

staffchat's People

Contributors

nathanfredericks avatar poggit-bot avatar thunder33345 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

staffchat's Issues

Add proper permission node

Could you make is so players cant see the command /staffchat i get they cant use it but its annoying

DEV EDIT: add proper permission check so PMMP knows to hide the command if they dont have permission

pmmp 4.0.0 crash

using .hello or /staffchat say hello crashes

[20:04:01.757] [Server thread/CRITICAL]: Error: "Call to undefined method Thunder33345\StaffChat\Commands\StaffChatCommand::playerBroadcast()" (EXCEPTION) in "plugins/StaffChat.phar/src/Thunder33345/StaffChat/Commands/StaffChatCommand" at line 187
--- Stack trace ---
#0 plugins/StaffChat.phar/src/Thunder33345/StaffChat/Commands/StaffChatCommand(59): Thunder33345\StaffChat\Commands\StaffChatCommand->consoleBroadcast(object pocketmine\player\Player#25557, string[2] hi)
#1 pmsrc/src/command/SimpleCommandMap(220): Thunder33345\StaffChat\Commands\StaffChatCommand->execute(object pocketmine\player\Player#25557, string[9] staffchat, array[1])
#2 pmsrc/src/Server(1394): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#25557, string[16] staffchat say hi)
#3 pmsrc/src/player/Player(1337): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#25557, string[16] staffchat say hi)
#4 pmsrc/src/network/mcpe/handler/InGamePacketHandler(688): pocketmine\player\Player->chat(string[17] /staffchat say hi)
#5 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(60): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#116404)
#6 pmsrc/src/network/mcpe/NetworkSession(395): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#92452)
#7 pmsrc/src/network/mcpe/NetworkSession(358): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#116404, string[38] M./staffchat say hi..In*...z...:......)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(192): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[42] S.../.ILKK.H,Q(N.T..d.......p.......|.....)
#9 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(integer 0, string[51] ............mfe.[..!Z.....k..,.(.,d.....0...g.YH.^)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(122): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#24077)
#11 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib{closure}()
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#13 pmsrc/src/Server(1645): pocketmine\snooze\SleeperHandler->sleepUntil(double 1638421441.756)
#14 pmsrc/src/Server(1034): pocketmine\Server->tickProcessor()
#15 pmsrc/src/PocketMine(301): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[31] C:\MCPE Servers\Skyblock 4.0.0, string[39] C:\MCPE Servers\Skyblock 4.0.0\plugins)
#16 pmsrc/src/PocketMine(324): pocketmine\server()
#17 pmsrc(11): require(string[75] phar://C:/MCPE Servers/Skyblock 4.0.0/PocketMine-MP.phar/src/PocketMine.php)
--- End of exception information ---
[20:04:01.761] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
[20:04:01.779] [Server thread/EMERGENCY]: Please upload the "C:/MCPE Servers/Skyblock 4.0.0/crashdumps/Wed_Dec_1-20.04.01-AKST_2021.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.
[20:04:01.785] [Server thread/EMERGENCY]: Forcing server shutdown

Permission Issues

I want my members to use /say and than i give him staffchat.attach but he can't use it
NO PERMS

Video!

I made a video on this plugin here as it says that you might be looking for one, really good plugin btw!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.