public void giveItem(Player ply, Registration plugin) {
ItemStack i = new ItemStack(Material.WRITTEN_BOOK);
ItemFactory itemFactory = plugin.getServer().getItemFactory();
BookMeta bookMeta = (BookMeta) itemFactory.getItemMeta(Material.WRITTEN_BOOK);
bookMeta.setTitle("The Manual");
bookMeta.setAuthor("Shank");
bookMeta.setPages("Welcome to BlockShock, a ShankShock Production.\n\nThis manual contains the rules, commands, and basics for surviving on the server.\n\nMore info @ ShankShock.Com.",
"## The Rules\n\n1. No chat spamming.\n2. No hacking mods.\n3. Don't steal, break, or cause grief to any player or their creations.\n4. Don't ask for admin.\n5. Don't advertise.\n6. Respect all players.",
"## Commands\n\n1. The usual home/warp commands.\n2. /inventory\n3. /shop\n4. /name",
"## Mods\n\nExplosions & TNT are disabled. Creepers can't break your stuff. You can't drown. Falling damage and fire spread are disabled too.",
"## Conversations\n\nSome commands, such as the inventory and shop commands, will take over your chat box. Simply type a response to what they ask for to use them. You can always exit with /quit.",
"## Exiting Spawn\n\nTo exit spawn, simply warp to another location.\n\n/warp ShadowVale",
"## Help\n\nAdmins have light blue name colors in chat. The owners are dark red and cyan. You can ask them for any help you need, though they don't have to give it. Admins aren't your slaves.",
"## More Info\n\nMore information can be found at:\n\nwiki.shankshock.com\nshankshock.com");
i.setItemMeta(bookMeta);
ply.getInventory().addItem(i);
}
RuleBookItem.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:ShankShock-Core
作者:
评论列表
文章目录