Coder Social home page Coder Social logo

discord-mcpe's Introduction

Discord-MCPE

Discord-MCPE Logo

Connect your PocketMine server with Discord™!

Installing:

  1. Download phar from Poggit™
  2. Put it in /plugins folder
  3. Start server
  4. Edit config
  5. Reload server

Config:

webhook_url: Your discord webhook url.

chat_url: Webhook url for the /discord command and when somebody chats. Set to 0 to use default.

username: The username the plugin uses in discord.

chat_username: The username of the plugin for /discord and when someone chats. Set to 0 to use default.

chat_format: Format in discord that the plugin uses when sending a message. {player} and {message} can be used.

start_message: Message sent when server starts.

shutdown_message: Message sent when server stops.

join_message: Message sent when player joins. {player} can be used.

quit_message: Message sent when player leaves. {player} can be used.

death_message: Message sent when player get killed. {player} can be used.

command: Enable/disable "/discord"

chat_prefix: Prefix for chat. When "!" and someone says !Hello, Hello is send to Discord

chat: Send everything to Discord. Recommended to keep this disabled, but it can be used.

pureperms: Support for PurePerms rank names. PurePerms ranks use the prefix {rank}. If not enabled, {rank} tags will show as "{rank}".

debug: Show error messages.

Making a Discord™ webhook:

  1. Open Discord
  2. Go to your server
  3. Make a new chat channel / Open one
  4. Click on the settings icon beside your chat channel name
  5. Click Webhooks => New
  6. Click "Copy" under Webhook URL
  7. Paste it in the config
  8. No more!

discord-mcpe's People

Contributors

aericio avatar avgzing avatar badubsl avatar inspectorgadget avatar poggit-bot avatar superop535 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

discord-mcpe's Issues

Suggestion:

Make a command:
/discord [message]
and make
args[0] = $message

Private channel

I have the channels set to private but it's not coming through is there a way to setup a discord rank to allow it to go through... my ingame says messege was sent...

/reload makes plugin think server stopped

Upon using /reload, it sends a message to discord saying the server stopped and turned back on.

image
image

It's not really that big of an issue (could be ignored, who cares), but could probably add a new message in config for reloads.

Does not resolve discordapp

23:46:58 ERROR > [Discord-MCPE] Error: Could not resolve host: discordapp.com
23:46:58 INFO > [Discord-MCPE] Discord message wasn't sent!

Send messages back to server?

Not really an issue, but I wondering if this plugin can also send messages back to the server from discord? If it doesn't already, could you possibly add this to the plugin? <3

Config error

I'm using latest commit but when it attempts to load it says please update Config and it disables itself

main needs updating

so i tried your latest build and it wasnt working so i was looking at the code and in main it still said 1.0.0 so i updated that on my side (can pull from me since you own the plugin) but it does say this Error: Error reading ca cert file /etc/ssl/certs/ca-certificates.crt - mbedTLS: (-0x3E00) PK - Read/write of file failed and Discord message wasn't send! while it still does send the messages.

Questions and idea's

Ask questions here, make sure to check if you're question isn't already answerred.

If you have an idea for the plugin, say it!

Going not

I can not do that, I made the webhook URL clean but nothing works

Not Error

[16:55:35] [Server thread/ERROR]: [Discord-MCPE] Error:
[16:55:35] [Server thread/INFO]: [Discord-MCPE] Discord message wasn't send!

API 9

Please update to API Alpha 9. Thank you!

Fatal Error: Decleration of...

Hello, let me make this simple.
I used this .phar - https://poggit.pmmp.io/babs/66b2
I used normal plugin installation steps (Pop it in the plugins folder and do a reload)
The stuff below is the console output:

Fatal error: Declaration of Niekert\DiscordMCPE\Main::onCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $cmd, string $label, array $args) must be compatible with pocketmine\command\CommandExecutor::onCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $command, string $label, array $args): bool in phar://
/root/plugins/Discord-MCPE.phar/src/Niekert/DiscordMCPE/Main.php on line 13
[20:52:02] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
[20:52:02] [Server thread/EMERGENCY]: Please upload the "/root/crashdumps/Thu_Aug_3-20.52.02-UTC_2017.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.

I am running API 3.0.0-ALPHA7 on a Linux VPS
Here is the crash dump: https://pastebin.com/0TrYVZeg

Update to latest API

Hi, my name is brexmania123 and i was wondering if you could update the discord - mcpe plugin/bot. i was planning on using it on a server i help on but the version doesnt work since it isnt configured for the latest api. could you fix this. the latest version is 3.0.0-ALPHA11. If you could get this done soon i would be grateful. THX

Fix this

2017-09-23 [17:15:01] �[Server thread/CRITICAL]: Error: "Cannot call constructor" (EXCEPTION) in "Discord - BlawoHD/src/Niekert/DiscordMCPE/Tasks/SendTaskAsync" at line 21� 2017-09-23 [17:15:01] �[Server thread/DEBUG]: #0 Discord - BlawoHD/src/Niekert/DiscordMCPE/Main(162): Niekert\DiscordMCPE\Tasks\SendTaskAsync->__construct(string nolog, NULL , string a:2:{s:7:"content";N;s:8:"username";N;})� 2017-09-23 [17:15:01] �[Server thread/DEBUG]: #1 Discord - BlawoHD/src/Niekert/DiscordMCPE/Main(38): Niekert\DiscordMCPE\Main->sendMessage(NULL , NULL )� 2017-09-23 [17:15:01] �[Server thread/DEBUG]: #2 src/pocketmine/plugin/PluginBase(92): Niekert\DiscordMCPE\Main->onDisable()� 2017-09-23 [17:15:01] �[Server thread/DEBUG]: #3 Discord - BlawoHD/src/Niekert/DiscordMCPE/Main(84): pocketmine\plugin\PluginBase->setEnabled(boolean )� 2017-09-23 [17:15:01] �[Server thread/DEBUG]: #4 Discord - BlawoHD/src/Niekert/DiscordMCPE/Main(24): Niekert\DiscordMCPE\Main->setvars()� 2017-09-23 [17:15:01] �[Server thread/DEBUG]: #5 src/pocketmine/plugin/PluginBase(90): Niekert\DiscordMCPE\Main->onEnable()� 2017-09-23 [17:15:01] �[Server thread/DEBUG]: #6 DevTools-1.phar/src/FolderPluginLoader/FolderPluginLoader(125): pocketmine\plugin\PluginBase->setEnabled(boolean 1)� 2017-09-23 [17:15:01] �[Server thread/DEBUG]: #7 src/pocketmine/plugin/PluginManager(603): FolderPluginLoader\FolderPluginLoader->enablePlugin(Niekert\DiscordMCPE\Main object)� 2017-09-23 [17:15:01] �[Server thread/DEBUG]: #8 src/pocketmine/Server(1925): pocketmine\plugin\PluginManager->enablePlugin(Niekert\DiscordMCPE\Main object)� 2017-09-23 [17:15:01] �[Server thread/DEBUG]: #9 src/pocketmine/Server(1911): pocketmine\Server->enablePlugin(Niekert\DiscordMCPE\Main object)� 2017-09-23 [17:15:01] �[Server thread/DEBUG]: #10 src/pocketmine/Server(1697): pocketmine\Server->enablePlugins(integer 1)� 2017-09-23 [17:15:01] �[Server thread/DEBUG]: #11 src/pocketmine/PocketMine(553): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///home/MCPE/Factions/PocketMine-MP.phar/, string /home/MCPE/Factions/, string /home/MCPE/Factions/plugins/)� 2017-09-23 [17:15:01] �[Server thread/DEBUG]: #12 /home/MCPE/Factions/PocketMine-MP.phar(1): require(string phar:///home/MCPE/Factions/PocketMine-MP.phar/src/pocketmine/PocketMine.php)�

I use API 3.0.0-ALPHA8

Unexpected thing

A few weeks ago this plugin was working fine, I had chat enabled so it sends everything to discord channel but I've realised it's no longer working, the plugin is enabled and /discord works, but if I just type anything into server chat, it doesn't show on discord

Api 2.0.0

Please make it for api 2.0.0
Please I really want it please 🙏 😭 😢

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.