mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2024-12-27 07:28:52 +00:00
feat: 添加扩展获取命令发送者方法
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
ef15eefc5d
commit
36f79decfa
@ -50,4 +50,11 @@ public class CommandArgument {
|
|||||||
return sender;
|
return sender;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return 命令发送者(自动转换)
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
public <CS> CS getSenderEx() {
|
||||||
|
return (CS) sender;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user