Skip to content

Commit 17c5af3

Browse files
committed
Don't send personalised information to sender
1 parent 1a15146 commit 17c5af3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DynmapCore/src/main/java/org/dynmap/WebAuthManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ else if (player == null) { /* Console? */
207207
sender.sendMessage("Enter username and registration code when prompted on web page (" + publicRegistrationURL.toString() + ") to complete registration");
208208
if(other) {
209209
DynmapPlayer p = core.getServer().getPlayer(uid);
210-
if(p != null) {
210+
if(p != null && sender != p) {
211211
p.sendMessage("The registration of your account for web access has been started.");
212212
p.sendMessage("To complete the process, access the Login page on the Dynmap map");
213213
p.sendMessage("Registration code: " + regkey);

0 commit comments

Comments
 (0)