Skip to content

Commit 59a2066

Browse files
committed
Adjustments to handling bedrock players
1 parent 699d74c commit 59a2066

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

VotingPlugin/src/main/java/com/bencodez/votingplugin/listeners/PlayerVoteListener.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ public void onplayerVote(PlayerVoteEvent event) {
5454
if (!PlayerManager.getInstance().isValidUser(playerName, plugin.getConfigFile().isAllowUnJoinedCheckServer())) {
5555
if (!playerName.startsWith(plugin.getOptions().getBedrockPlayerPrefix())
5656
&& !plugin.getOptions().getBedrockPlayerPrefix().isEmpty()) {
57-
if (PlayerManager.getInstance().isValidUser(plugin.getOptions().getBedrockPlayerPrefix() + playerName,
57+
if (!event.isBungee() && PlayerManager.getInstance().isValidUser(
58+
plugin.getOptions().getBedrockPlayerPrefix() + playerName,
5859
plugin.getConfigFile().isAllowUnJoinedCheckServer())) {
5960
plugin.debug("Detected a bedrock user without bedrock prefix, adjusting");
6061
playerName = plugin.getOptions().getBedrockPlayerPrefix() + playerName;

VotingPlugin/src/main/java/com/bencodez/votingplugin/proxy/VotingPluginProxy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ public synchronized void vote(String player, String service, boolean realVote, b
10391039

10401040
if (uuid == null || uuid.isEmpty()) {
10411041
uuid = getUUID(player);
1042-
if (uuid.isEmpty()) {
1042+
if (uuid.isEmpty() && !player.startsWith(getConfig().getBedrockPlayerPrefix())) {
10431043
String uuid1 = getUUID(getConfig().getBedrockPlayerPrefix() + player);
10441044
if (!uuid1.isEmpty()) {
10451045
debug("Detected bedrock player without prefix, adjusting...");

0 commit comments

Comments
 (0)