X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=inline;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FProfile.java;h=18ec602e7c10b393414f3cd4f31b2b6835bd03d2;hb=13540271116aaa7b350d283ce8a8b97fce7e8123;hp=b1040b3f0bebc686769e37fe9a42d07c6ae01416;hpb=11059e54480499b3a173ca5e6db30de45cf15196;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/data/Profile.java b/src/main/java/net/pterodactylus/sone/data/Profile.java index b1040b3..18ec602 100644 --- a/src/main/java/net/pterodactylus/sone/data/Profile.java +++ b/src/main/java/net/pterodactylus/sone/data/Profile.java @@ -38,11 +38,21 @@ public class Profile { } /** + * Creates a copy of a profile. + * + * @param profile + * The profile to copy + */ + public Profile(Profile profile) { + this.username = profile.username; + } + + /** * Returns the name of the user this profile belongs to. * * @return The name of the user this profile belongs to */ - public String username() { + public String getUsername() { return username; }