mirror of
				https://e.coding.net/circlecloud/YumCore.git
				synced 2025-11-03 23:06:02 +00:00 
			
		
		
		
	@@ -46,6 +46,19 @@ public class Tellraw {
 | 
			
		||||
        System.out.println(Tellraw.create("命令").command("yum list").tip("点击查看插件列表").toJsonString());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 命令与提示
 | 
			
		||||
     *
 | 
			
		||||
     * @param command
 | 
			
		||||
     *            命令
 | 
			
		||||
     * @param tip
 | 
			
		||||
     *            提示
 | 
			
		||||
     * @return {@link Tellraw}
 | 
			
		||||
     */
 | 
			
		||||
    public Tellraw cmd_tip(final String command, final String... tip) {
 | 
			
		||||
        return command(command).tip(tip);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 执行命令
 | 
			
		||||
     *
 | 
			
		||||
@@ -140,6 +153,9 @@ public class Tellraw {
 | 
			
		||||
     * @return {@link Tellraw}
 | 
			
		||||
     */
 | 
			
		||||
    public Tellraw tip(final List<String> texts) {
 | 
			
		||||
        if (texts.size() == 0) {
 | 
			
		||||
            return this;
 | 
			
		||||
        }
 | 
			
		||||
        final StringBuffer text = new StringBuffer();
 | 
			
		||||
        for (final String t : texts) {
 | 
			
		||||
            text.append(t).append("\n");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user