Comments (7)
The first error is caused by the plugin attempting to load it's default configuration files. Make sure you set up the plugin: https://github.com/JackNoordhuis/DiscordRelay-PocketMine/wiki/Configuring. The second error is caused as the plugin failed to start and then pocketmine attempts to disable it, this should never happen if the plugin loads the configuration correctly.
from discordrelay-pocketmine.
Thanks for the response, sadly I ran into another error when the plugin is enabling. Please see the attached code at the bottom to view my configuration file.
Error report:
[02:37:11] [Server thread/CRITICAL]: RuntimeException: "Tried to register a relay channel twice!" (EXCEPTION) in "plugins/DiscordRelay/src/jacknoordhuis/discordrelay/models/RelayOptions" at line 87
I also got the second error again, but I assume that will disappear once we get this working.
Settings file:
### Discord-Relay v0.0.2-ALPHA configuration file ###
general:
# The default channel messages are relayed to and from discord.
# Will respect both relay-from-discord and relay-to-discord flags (can be set to only relay one way.)
default-channel:
bot:
token: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
channels:
- name: lobby-chat
discord-id: 544790094461272065
embed-color: 16771072
options:
embed: true
relay-from-discord: true
relay-to-discord: true
- name: lobby-logs
discord-id: 544794898046517249
options:
relay-to-discord: true
relay-from-discord: false
embed: true
console-levels:
info:
embed-color: 16777215 # White - Info
notice:
embed-color: 2612166 # Aqua - Notice
debug:
embed-color: 10743551 # Light Aqua - Debug
- name: error-reports
discord-id: 544791880420818964
options:
embed: true
embed-color: 16721408
relay-to-discord: true
relay-from-discord: false
console-levels: [emergency, alert, critical, error]
from discordrelay-pocketmine.
Are you modifying the correct config file? PocketMine now stores plugin configs in /plugin_data
. Are you running from source or using the release phar?
from discordrelay-pocketmine.
Yes of course I'm modifying the correct config, hence the error... Also there is no phar for 0.0.2-ALPHA
, only one for 0.0.1-ALPHA
, although neither of them work with my setup. See the image below for the path to my config file. I've also tried to delete the DiscordRelay folder in plugin_data and reenter my info, that gave me the same error as before, even with with the second release source code.
Image:
@JackNoordhuis Any update on how to fix this?
from discordrelay-pocketmine.
Your configuration works fine for me:
[13:28:27] [RelayThread thread/WARNING]: Unable to find channel #544790094461272065, a bridge will not be setup for this channel.
[13:28:27] [RelayThread thread/WARNING]: Unable to find channel #544794898046517249, a bridge will not be setup for this channel.
[13:28:27] [RelayThread thread/WARNING]: Unable to find channel #544791880420818964, a bridge will not be setup for this channel.
[13:28:28] [RelayThread thread/DEBUG]: Logged in as pocketmine-bridge#0617 created on 24.09.2017 22:53:30
Once the plugin is loading the correct configuration you'll run into an issue with the default channel being null, you should specify your lobby-chat channel as the default as the plugin currently only supports sending players in-game messages to one channel (default-channel).
Then you will most likely run into the same issues as described in #1 which is a pretty common problem so use google if the solution I provided doesn't work for you.
I'm going to close this issue for now unless you can give me some way of reproducing your problem on my machine. As dumb or annoying as it sounds it seems like the plugin is reading the wrong configuration file whether that is the fault of the plugin or not remains to be proven.
from discordrelay-pocketmine.
Ok thanks for the help.
from discordrelay-pocketmine.
I've just uploaded a compiled phar for the v0.0.2-ALPHA release as well. If you have any more questions or want help trying to debug the issue contact me on discord (JackNoordhuis#0001
) or ask in the pocketmine discord (https://discord.gg/XDugAkJ).
from discordrelay-pocketmine.
Related Issues (10)
- Getting an error when plugin starting HOT 1
- errors HOT 2
- Plugin don't loads HOT 3
- Error HOT 2
- Bot HOT 6
- Server Crash - Line 47 HOT 1
- Plugin fails to establish connection to discord. HOT 1
- TLS handshake fails HOT 1
- DOES NOT WORK
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discordrelay-pocketmine.