Coder Social home page Coder Social logo

games647 / commandforward Goto Github PK

View Code? Open in Web Editor NEW
28.0 28.0 8.0 89 KB

This simple minecraft bukkit-bungee plugin forwards commands to the bungeecord proxy sent from bukkit

Home Page: https://www.spigotmc.org/resources/commandforward.27580/

License: MIT License

Java 100.00%
bungeecord command-forward minecraft plugin spigot

commandforward's People

Contributors

alijkaz avatar dependabot-preview[bot] avatar epicanard avatar games647 avatar itzguy 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

commandforward's Issues

Forward command from bungee console to bukkit

Hey! heres a suggestion:
Is it possible to do this using your method of communication between servers?
I have a plugin that executes bungee commands when a player joins, leaves, and switches server. I need a way to send a command to all my bukkit servers from bungee using that plugin.

Thanks!

Error while enabling

I'm getting the following error when enabling the server on Tuinity 1.15.2.

Error:

[20:45:09 INFO]: [CommandForward] Enabling CommandForward v0.1*
[20:45:09 ERROR]: Error occurred while enabling CommandForward v0.1 (Is it up to date?)
java.lang.IllegalArgumentException: Channel must contain : separator (attempted to use CommandForward)
at org.bukkit.plugin.messaging.StandardMessenger.validateAndCorrectChannel(StandardMessenger.java:503) ~[patched_1.15.2.jar:git-Tuinity-"64e46c6"]
at org.bukkit.plugin.messaging.StandardMessenger.registerOutgoingPluginChannel(StandardMessenger.java:183) ~[patched_1.15.2.jar:git-Tuinity-"64e46c6"]
at com.github.games647.commandforward.bukkit.CommandForwardBukkit.onEnable(CommandForwardBukkit.java:21) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.15.2.jar:git-Tuinity-"64e46c6"]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:364) ~[patched_1.15.2.jar:git-Tuinity-"64e46c6"]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:483) ~[patched_1.15.2.jar:git-Tuinity-"64e46c6"]
at org.bukkit.craftbukkit.v1_15_R1.CraftServer.enablePlugin(CraftServer.java:472) ~[patched_1.15.2.jar:git-Tuinity-"64e46c6"]
at org.bukkit.craftbukkit.v1_15_R1.CraftServer.enablePlugins(CraftServer.java:386) ~[patched_1.15.2.jar:git-Tuinity-"64e46c6"]
at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:488) ~[patched_1.15.2.jar:git-Tuinity-"64e46c6"]
at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:299) ~[patched_1.15.2.jar:git-Tuinity-"64e46c6"]
at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:897) ~[patched_1.15.2.jar:git-Tuinity-"64e46c6"]
at java.lang.Thread.run(Thread.java:834) [?:?]
[20:45:09 INFO]: [CommandForward] Disabling CommandForward v0.1

Enviroment:
Server: Tuinity version git-Tuinity-"64e46c6" (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT)
Java: openjdk 18.9 "11.0.6" 2020-01-144
OS: Ubuntu, Linux 4.15.0-99-generic (amd64)

CommandMap is Broken on Paper 1.15.2

Running /forward Alexis_Evelyn bungee from chat causes the message Error occurred executing command commandMap. No errors show up in console when running this command.

Running /forward bridgePlayer ping from chat causes the generic error message An internal error occurred while attempting to perform this command. The following error shows up in console when running this command.

[16:56:15 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'forward' in plugin CommandForward v0.3.1
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.15.2.jar:git-Paper-77]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.15.2.jar:git-Paper-77]
        at org.bukkit.craftbukkit.v1_15_R1.CraftServer.dispatchCommand(CraftServer.java:740) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.PlayerConnection.handleCommand(PlayerConnection.java:1820) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.PlayerConnection.a(PlayerConnection.java:1628) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:23) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.TickTask.run(SourceFile:18) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.MinecraftServer.ba(MinecraftServer.java:1038) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.MinecraftServer.executeNext(MinecraftServer.java:1031) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.MinecraftServer.sleepForTick(MinecraftServer.java:1015) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:938) ~[patched_1.15.2.jar:git-Paper-77]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_231]
Caused by: java.lang.NullPointerException
        at com.github.games647.commandforward.bukkit.CommandForwardBukkit.onCommand(CommandForwardBukkit.java:52) ~[?:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.15.2.jar:git-Paper-77]
        ... 17 more

Edit: I am using release 0.3.1 on both bungee and paper.

Edit 2: The plugin works only when the player is not op. Also, it's only commands like /forward Alexis_Evelyn ban Alexis_Evelyn that work (after giving the required perm first). /forward playerBridge bungee is still broken with the NullPointerException.

Edit 3: Tested Commands:

  • /forward non-existent-player ban Alexis_Evelyn - Does Not Work No Matter What (NullPointerException on bukkit side)
  • /forward playerName bungee - Only Works if Player is Not OP (Command Blocks Also Fail For Same Reason)
  • /forward console bungee - Only Works if Player is Not OP (Command Blocks Also Fail For Same Reason)

Doesn't Run on 1.15.2 Paper

# Startup Message
[16:14:15 WARN]: Legacy plugin CommandForward v0.1 does not specify an api-version.
[16:14:17 INFO]: [CommandForward] Loading CommandForward v0.1
[16:14:41 INFO]: [CommandForward] Enabling CommandForward v0.1*
[16:14:41 ERROR]: Error occurred while enabling CommandForward v0.1 (Is it up to date?)
java.lang.IllegalArgumentException: Channel must contain : separator (attempted to use CommandForward)
	at com.github.games647.commandforward.bukkit.CommandForwardBukkit.onEnable(CommandForwardBukkit.java:21) ~[?:?]
[16:14:41 INFO]: [CommandForward] Disabling CommandForward v0.1

# Attempting to run /forward
[16:10:25 ERROR]: null
org.bukkit.command.CommandException: Cannot execute command 'forward' in plugin CommandForward v0.1 - plugin is disabled.
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37) ~[patched_1.15.2.jar:git-Paper-77]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.15.2.jar:git-Paper-77]
        at org.bukkit.craftbukkit.v1_15_R1.CraftServer.dispatchCommand(CraftServer.java:740) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.PlayerConnection.handleCommand(PlayerConnection.java:1820) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.PlayerConnection.a(PlayerConnection.java:1628) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:23) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.TickTask.run(SourceFile:18) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.MinecraftServer.ba(MinecraftServer.java:1038) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.MinecraftServer.executeNext(MinecraftServer.java:1031) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:1102) ~[patched_1.15.2.jar:git-Paper-77]
        at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:934) ~[patched_1.15.2.jar:git-Paper-77]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_231]

Velocity Help

Hello, I was wondering if you have velocity support in the form of a .jar file. And please send the link if you can
Thanks.

Getting this error

Bug found when attempting to execute a forward command. Any command attempted to be forwarded comes with this error. Game error reads "Error occurred executing command commandMap"

command structure used: /forward Aminis (any bungeecommand here.)

Have attempted it with

Plugin list:

CommandForward, FAWE, LuckPerms, PlotSquared, SkinsRestorer, Vault (Spigot)

Command Forward, LuckPerms, SkinsRestorer, NuVotifier (Bungee)

Plugin version or build number (don't write latest):

0.3.1

Server Log:

https://pastebin.com/iYH0asAB

Forwarding 'end' command as a player close bungeecord server

What behavior is observed:

bungeecord server is turned off when /forward {playername} end is executed from the server console even though the player doesn't have bungeecord.command.end

What behavior is expected:

should throw same message as end command as it was executed as a player in-game when the player has no bungeecord.command.end permission

Steps/models to reproduce:

  • join the server (since the plugin need 1 player to be online on the server)
  • type /forward {playername} end in the server console
  • voila

Screenshots (if applicable)

Plugin list:

Environment description

server: git-Purpur-1894 (1.19.3)
bungeecord: git:Waterfall-Bootstrap:1.19-R0.1-SNAPSHOT:13085b9:510

Plugin version or build number (don't write latest):

> version commandforward
[06:34:47 INFO]: CommandForward version 0.4.0
[06:34:47 INFO]: Forwards commands from Bukkit to BungeeCord to execute it there

[06:34:47 INFO]: Website: https://www.spigotmc.org/resources/commandforward.bukkit/
[06:34:47 INFO]: Authors: games647 and https://github.com/games647/CommandForward/graphs/contributors

Server Log:

Hastebin / Gist link of the error, stacktrace or the complete log (if any)

server

> forward cupang_afk end
[06:35:29 INFO]: [floodgate] Floodgate player logged in as cupang_afk disconnected
[06:35:29 INFO]: cupang_afk lost connection: Disconnected
bungeecord

[06:35:29 INFO]: Closing listener [id: 0x59d6a71b, L:local:E:492231d0]
[06:35:29 INFO]: Closing listener [id: 0x1ca6ae0a, L:/[0:0:0:0:0:0:0:0%0]:35750]
[06:35:29 INFO]: Closing pending connections
[06:35:29 INFO]: Disconnecting 1 connections
[06:35:29 INFO]: [cupang_afk] disconnected with: 

...more log for shutting down process

Configuration:

Hastebin / Gist link of your config.yml file

Note:

cupang_afk is not an operator, i confirm this with deop command

> deop cupang_afk
[06:28:12 INFO]: Nothing changed. The player is not an operator

cupang_afk also never had bungeecord.command.end permission
this is confirmed with /end command executed in-game
image

command /forward {playername} is working perfectly for running command as player
for example i run /forward cupang_afk skin reset to reset skin from the player created by SkinsRestorer
image

A Problem of Perms

Hey can u plz add something as forward the command to the bc and run as a OP or something? Because I want to use this plugin to work with my BC punishment plugin and my anti cheat plugin and I want to use this to ban people. Thx XD

do you use discord?

I want to work with you can you send your discord address or e-mail address

Just does not work?

Hey!
I just installed your plugin, restarted everything and it does not work. There is no error, no response. Nothing happens.

Any clue as to why nothing happens?

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.