Spellbook

Spellbook

Spellbooks are Book and Quill or Written Book whose contents start with a special string(Defined in config.yml).

By left clicking at a block or air, you can activate a spellbook whose content(without that special string) will be executed like a server script.

A spellbook have:

  • A reference to the running server: server
  • A reference to the running player: player
  • A reference to the block you clicked: block

Example: Fireball~

1
2
3
#the special string
java_import org.bukkit.entity.Fireball
player.launchProjectile Fireball.java_class

Comments

Posts Quoted:
Reply
Clear All Quotes