Skip to content

Commit

Permalink
Update license header
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed Sep 24, 2020
1 parent 7123b33 commit d6f4f95
Showing 1 changed file with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
/*
* Impersonate
* Copyright (C) 2020 Ladysnake
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; If not, see <https://www.gnu.org/licenses>.
*/
package io.github.ladysnake.impersonate.impl.mixin;

import com.mojang.authlib.GameProfile;
import io.github.ladysnake.impersonate.Impersonate;
import io.github.ladysnake.impersonate.impl.ImpersonateText;
import net.minecraft.server.command.ListCommand;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.text.Text;
Expand All @@ -29,7 +45,7 @@ private static void fakeNameAndUuid(ServerPlayerEntity player, CallbackInfoRetur
GameProfile impersonatedProfile = Impersonate.IMPERSONATION.get(player).getImpersonatedProfile();

if (impersonatedProfile != null) {
args[0] = ImpersonateText.get(player);
// Name is already covered by PlayerEntity#getName mixin
args[1] = impersonatedProfile.getId();
}
}
Expand Down

0 comments on commit d6f4f95

Please sign in to comment.