1
0
mirror of https://e.coding.net/circlecloud/TellRaw.git synced 2024-12-25 07:08:51 +00:00
Go to file
502647092 d696742f4e chore: 更新ReadMe
Signed-off-by: 502647092 <admin@yumc.pw>
2016-09-03 16:16:03 +08:00
lib 提交丢失的库文件... 2016-01-13 14:52:32 +08:00
src/main refactor(*): 格式化代码 清理文件... 2016-03-29 14:41:30 +08:00
.classpath 更新classpath... 2016-01-13 15:35:32 +08:00
.gitignore 提交丢失的库文件... 2016-01-13 14:52:32 +08:00
.project 首次提交... 2016-01-13 13:31:39 +08:00
pom.xml 添加中心源信息... 2016-03-16 15:48:00 +08:00
README.MD chore: 更新ReadMe 2016-09-03 16:16:03 +08:00

#TellRaw A Simple Minecraft TellRaw Lib Depend GsonAgent This Lib is Compatible with 1.7.X-1.8.X

Installation

Maven Repo

<repositories>
	<repository>
		<id>yumc-repo</id>
		<url>http://repo.yumc.pw/content/groups/public/</url>
	</repository>
</repositories>

Maven Depend

<dependencies>
	<dependency>
		<groupId>cn.citycraft</groupId>
		<artifactId>TellRaw</artifactId>
		<type>jar</type>
		<version>1.0</version>
	</dependency>
	<dependency>
		<groupId>cn.citycraft</groupId>
		<artifactId>GsonAgent</artifactId>
		<type>jar</type>
		<version>1.0</version>
	</dependency>
</dependencies>

Maven Shade [Shade Or Depend]

<plugins>
  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-shade-plugin</artifactId>
      <version>2.3</version>
      <configuration>
		<artifactSet>
		  <includes>
            <include>cn.citycraft:GsonAgent</include>
		  	<include>cn.citycraft:TellRaw</include>
		  </includes>
		</artifactSet>
	  </configuration>
	  <executions>
		<execution>
		  <phase>package</phase>
		  <goals>
			<goal>shade</goal>
		  </goals>
		</execution>
	  </executions>
	</plugin>
</plugins>

Bukkit Depend [Shade Or Depend]

softdepend: [TellRaw,GsonAgent]

##Usage

FancyMessage fm = FancyMessage.newFM();
/*Item Tooltip*/
fm.then("Wood").itemTooltip(new ItemStack(Material.WOOD));
/*Web Link*/
fm.then("link").link("www.yumc.pw");
/*Command Suggest*/
fm.then("suggest").suggest("qs help");
/*Send To Player*/
fm.send(Bukkit.getPlayer("XXX"));