tebexio / Tebex-Minecraft

The new Tebex plugin for Minecraft, supporting Bukkit, Bungeecord, Velocity, Spigot, and PaperSpigot
https://tebex.io
GNU General Public License v3.0
14 stars 35 forks source link

[Spigot/Minecraft Offline] Error On Commands being sent #27

Closed usernamegithu210 closed 7 months ago

usernamegithu210 commented 7 months ago

Closed.

WildBamaBoy commented 7 months ago

I think this was caused by f4179ba but I am not initially able to reproduce this.

~Is your server running in online mode or offline mode?~ I should really read the title.

Can you enable debug mode via the plugin as well, use /tebex debug true and paste your logs after the next command check runs. We should see [debug] log entries alongside errors similar to the ones you're showing here.

usernamegithu210 commented 7 months ago

My java server is on "online" mode in the server.properties and requires everyone to have a fully paid for java account. However, I have geyser/online mode selected for my Tebex store as I use a plugin which allows offline players(aka Geyser/Floodgate/Bedrock MC players to join my java server. However, it isn't an interferance with the plugin, as I was still getting the error without Geyser installed.

I assume the error is because it's trying to run offline server commands onto an online server. However, I need to have it set as offline since geyser/bedrock players enter their xbox usernames.

here are my logs after resending commands from the store (aka buying a package) https://privnote.com/1eWj7lqf#8bH8mG0Wf

^^ I used privnote to only allow one person to look at it, please make a copy if you need to refrence it.

WildBamaBoy commented 7 months ago

Try setting the plugin to proxy mode which will force it to use usernames instead of user IDs. In plugins/Tebex/config.yml, scroll to the bottom and you'll see:

# These settings are exclusive to this server.
# Do not share these credentials with anyone.
server:
  # Proxy Mode
  # If you are using BungeeCord/Velocity, set this to true.
  proxy: false

Change proxy: false to proxy: true, save, and restart. Let me know if the issue continues.

usernamegithu210 commented 7 months ago

All works perfectly now! I suggest adding these steps on the tebex website to properly setup the plguin

WildBamaBoy commented 7 months ago

Thanks, glad it works! We will review our documentation as well to make sure it's up-to-date.