Skip to content

Commit

Permalink
fix issues with floodgate players
Browse files Browse the repository at this point in the history
  • Loading branch information
silentnoodlemaster committed Jan 5, 2021
1 parent 6f0d685 commit b049277
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/fi/silentnoodlemaster/helloword/HelloWorld.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public void onEnable() {
}
@EventHandler
public void onJoin(PlayerJoinEvent event) {
String name = event.getPlayer().getName();
String uuid = event.getPlayer().getUniqueId().toString();
String message = this.getConfig().getString("message");
String command = String.format("tellraw %s %s", name, message);
String command = String.format("tellraw %s %s", uuid, message);
getServer().dispatchCommand(getServer().getConsoleSender(), command);
}
@Override
Expand Down

0 comments on commit b049277

Please sign in to comment.