Skip to content

Commit

Permalink
working bungee
Browse files Browse the repository at this point in the history
  • Loading branch information
michaljaz committed Jan 2, 2024
1 parent a24283f commit 7e921f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void onEnable() {
@Override
public void onCommand(String command) {
Bukkit.getScheduler().runTask(BukkitShopMCPlugin.this, () -> Bukkit.dispatchCommand(getServer().getConsoleSender(), command));
getLogger().info("Executed command:" + command);
getLogger().info("Executed command: " + command);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,11 @@
import net.md_5.bungee.api.plugin.Plugin;
import net.md_5.bungee.api.scheduler.ScheduledTask;
import net.md_5.bungee.config.Configuration;
import net.md_5.bungee.config.YamlConfiguration;
import org.java_websocket.handshake.ServerHandshake;

import java.io.File;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import java.util.logging.Level;

import static net.md_5.bungee.config.ConfigurationProvider.getProvider;

public class BungeeShopMCPlugin extends Plugin {
private Socket socket;
public static Config config;
Expand Down Expand Up @@ -54,7 +49,7 @@ public void onOpen(ServerHandshake handshakedata) {
@Override
public void onCommand(String command) {
proxyServer.getPluginManager().dispatchCommand(proxyServer.getConsole(), command);
getLogger().info("Executed command:" + command);
getLogger().info("Executed command: " + command);
}


Expand Down

0 comments on commit 7e921f2

Please sign in to comment.