fixed set pdc command to utilize @s selector for gui runs
This commit is contained in:
parent
b472f2f28f
commit
07b44ae9a3
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -252,7 +252,12 @@ public final class CoswayUtil extends JavaPlugin implements Listener {
|
||||
if(args.length < 3) {
|
||||
return false;
|
||||
} else {
|
||||
Player target = getServer().getPlayer(args[0]);
|
||||
Player target = null;
|
||||
if(args[0] == "@s") {
|
||||
target = player;
|
||||
} else {
|
||||
target = getServer().getPlayer(args[0]);
|
||||
}
|
||||
assert target != null;
|
||||
setpdc(target,args[1],args[2]);
|
||||
String msg = getpdc(target,args[1]);
|
||||
@ -272,7 +277,7 @@ public final class CoswayUtil extends JavaPlugin implements Listener {
|
||||
if(msg == null) {
|
||||
returnMsg(player,"&cNo data found for &7[&6"+target.getName()+"&7]-&e"+args[1]);
|
||||
} else {
|
||||
returnMsg(player, "PDC data: &7[&6"+target+"&7]-&e"+args[1]+"="+getpdc(target, args[1]));
|
||||
returnMsg(player, "PDC data: &7[&6"+target.getName()+"&7]-&e"+args[1]+"="+getpdc(target, args[1]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user