[WIP] Command Targeting overhaul

This commit is contained in:
AnimeGitB
2022-05-04 16:02:09 +09:30
committed by Melledy
parent 4e0ebe56a6
commit 82ec63c4e4
41 changed files with 115 additions and 90 deletions

View File

@@ -18,7 +18,7 @@ import java.util.*;
public final class GiveAllCommand implements CommandHandler {
@Override
public void execute(Player sender, List<String> args) {
public void execute(Player sender, Player targetPlayer, List<String> args) {
int target, amount = 99999;
switch (args.size()) {
@@ -63,7 +63,6 @@ public final class GiveAllCommand implements CommandHandler {
return;
}
Player targetPlayer = Grasscutter.getGameServer().getPlayerByUid(target);
if (targetPlayer == null) {
CommandHandler.sendMessage(sender, Grasscutter.getLanguage().Player_not_found);
return;