Hopefully fixed channel registration and deploy

This commit is contained in:
Norbi Peti 2017-08-18 02:27:19 +02:00
parent 6bbc571393
commit d997042e1a
2 changed files with 3 additions and 2 deletions

View file

@ -94,7 +94,8 @@ public class Channel {
static void RegisterChannel(Channel channel) {
channels.add(channel);
Bukkit.getPluginManager().callEvent(new ChatChannelRegisterEvent(channel));
Bukkit.getScheduler().runTask(MainPlugin.Instance,
() -> Bukkit.getPluginManager().callEvent(new ChatChannelRegisterEvent(channel))); // Wait for server start
}
public static class RecipientTestResult {

View file

@ -1,5 +1,5 @@
#!/bin/sh
FILENAME=$(find target/ -maxdepth 1 ! -name '*original*' -name '*.jar')
FILENAME=$(find ButtonCore/target/ -maxdepth 1 ! -name '*original*' -name '*.jar')
echo Found file: $FILENAME
if [ $1 = 'production' ]; then