@@ -192,9 +191,9 @@ public final class CommandMap {
...
@@ -192,9 +191,9 @@ public final class CommandMap {
// 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),true);// We check every time in case the target is deleted 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")