// If there's still no targetPlayer at this point, use previously-set target
// If there's still no targetPlayer at this point, use previously-set target
if(targetPlayer==null){
if(targetPlayer==null){
if(targetPlayerIds.containsKey(playerId)){
if(targetPlayerIds.containsKey(playerId)){
targetPlayer=Grasscutter.getGameServer().getPlayerByUid(targetPlayerIds.get(playerId));// We check every time in case the target goes offline after being targeted
targetPlayer=Grasscutter.getGameServer().getPlayerByUid(targetPlayerIds.get(playerId));// We check every time in case the target goes offline after being targeted
@Command(label="giveart",usage="giveart <artifactId> <mainPropId> [<appendPropId>[,<times>]]... [level]",description="Gives the player a specified artifact",aliases={"gart"},permission="player.giveart")
@Command(label="giveart",usage="giveart <artifactId> <mainPropId> [<appendPropId>[,<times>]]... [level]",description="Gives the player a specified artifact",aliases={"gart"},permission="player.giveart")