mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 04:04:58 +00:00
Kill Discord properly
This commit is contained in:
parent
5ebc7596e5
commit
b222edc531
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@ package me.StevenLawson.TotalFreedomMod.commands;
|
||||||
|
|
||||||
import me.StevenLawson.TotalFreedomMod.config.ConfigurationEntry;
|
import me.StevenLawson.TotalFreedomMod.config.ConfigurationEntry;
|
||||||
import me.StevenLawson.TotalFreedomMod.config.MainConfig;
|
import me.StevenLawson.TotalFreedomMod.config.MainConfig;
|
||||||
|
import me.StevenLawson.TotalFreedomMod.discord.bridge.DiscordBridge;
|
||||||
import me.StevenLawson.TotalFreedomMod.util.SynchronousUtil;
|
import me.StevenLawson.TotalFreedomMod.util.SynchronousUtil;
|
||||||
import me.StevenLawson.TotalFreedomMod.util.Utilities;
|
import me.StevenLawson.TotalFreedomMod.util.Utilities;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
|
@ -27,6 +28,7 @@ public class Command_updatetfm extends FreedomCommand {
|
||||||
ProcessBuilder proc = new ProcessBuilder("/bin/bash", "-c", command);
|
ProcessBuilder proc = new ProcessBuilder("/bin/bash", "-c", command);
|
||||||
Process process = proc.start();
|
Process process = proc.start();
|
||||||
process.waitFor();
|
process.waitFor();
|
||||||
|
DiscordBridge.transmitMessage("**TFM is being reloaded...**", true);
|
||||||
playerMsg(sender, "Compiled TFM! Reloading...");
|
playerMsg(sender, "Compiled TFM! Reloading...");
|
||||||
Utilities.adminAction(sender.getName(), "Compilation successful, reloading TFM...", false);
|
Utilities.adminAction(sender.getName(), "Compilation successful, reloading TFM...", false);
|
||||||
for (Player onlinePlayer : Bukkit.getOnlinePlayers()) {
|
for (Player onlinePlayer : Bukkit.getOnlinePlayers()) {
|
||||||
|
|
Loading…
Reference in a new issue