Skip to content

Easy-to-use Book API for Spigot

Notifications You must be signed in to change notification settings

Remixful/PenAndPaper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pen And Paper

Create JSON Written Books with ease

About:

Get ready to write!
Pen And Paper is an API which allows developers to create and manipulate Written Books in a straightforward and effortless manner. Whether it be used for lore, guides or just good old fun - Pen And Paper will get the job done.

Dependencies:

PowerNBT

Links:

Javadocs

How To Use:

WrittenBook wb = new WrittenBook();
// Write to the current page (page 0)
WrittenBookText text = wb.writeLine("Hello world!");
text.setColor(ChatColor.RED);
// writeLine adds a newline character at the end, while write does not
wb.write("This is line ");
wb.writeLine("2").setColor(ChatColor.DARK_PURPLE);
wb.write("&nLine 3");

You've now created the first page of your new Written Book. Thanks, Pen And Paper!

That wasn't so hard was it? It's now time to publish our new Written Book and share it with the world!

ItemStack wbitem = wb.publish();

TO BE CONTINUED

About

Easy-to-use Book API for Spigot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages