Long time no see! I haven't uploaded a plugin to Spigot in forever. Well I'm finally back and ready to push some new resources out for you awesome people.
About
If you find any bugs or errors while using this plugin, please feel free to P.M. me or post your problem in the discussion section. I should be able to respond within a couple hours of posting.
Usage
It is very simple to use, since there is no config, you can use it right out of the box.
After installing type, '/n help' or '/n help' in chat, it should show a menu like the one below.
That's all you really need to know about this plugin. Using those commands you can get all of the functionality out of the plugin that you want.
Configuration
Images
Here are a few images from the plugin:
Spoiler: Recent Notes Menu
Spoiler: Note Reviewer Menu
Developer API
To create the API for this plugin, I used Bukkit's built in service provider system. Here is what a sample plugin would look like:
Code (Java):
package
com.struckplayz.notes.test
;
import org.bukkit.command.Command ;
import org.bukkit.command.CommandSender ;
import org.bukkit.entity.Player ;
import org.bukkit.plugin.RegisteredServiceProvider ;
import org.bukkit.plugin.java.JavaPlugin ;
import com.struckplayz.notes.NotesAPI ;
import com.struckplayz.notes.note.Note ;
import com.struckplayz.notes.note.NoteType ;
public class NoteTest extends JavaPlugin {
private NotesAPI noteAPI ;
public void onEnable ( ) {
if ( setupNotesAPI ( ) ) {
getLogger ( ) . info ( "Successfully found the NotesAPI!" ) ;
} else {
getLogger ( ) . info ( "Failed to find the NotesAPI." ) ;
}
}
public boolean onCommand ( CommandSender sender, Command command, String label, String [ ] args ) {
if ( command. getName ( ) . equalsIgnoreCase ( "giveMeNote" ) ) {
if ( ! ( sender instanceof Player ) ) {
return true ;
}
Player player = ( Player ) sender ;
Note note = noteAPI. constructNote ( "Test" , "YOU" , NoteType. FLIRT ) ;
noteAPI. giveNote ( player, note ) ;
}
return true ;
}
public boolean setupNotesAPI ( ) {
if ( getServer ( ) . getPluginManager ( ) . getPlugin ( "Notes" ) == null ) {
return false ;
}
RegisteredServiceProvider < NotesAPI > rsp = getServer ( ) . getServicesManager ( ) . getRegistration ( NotesAPI. class ) ;
if ( rsp == null ) {
return false ;
}
noteAPI = rsp. getProvider ( ) ;
return noteAPI != null ;
}
}
import org.bukkit.command.Command ;
import org.bukkit.command.CommandSender ;
import org.bukkit.entity.Player ;
import org.bukkit.plugin.RegisteredServiceProvider ;
import org.bukkit.plugin.java.JavaPlugin ;
import com.struckplayz.notes.NotesAPI ;
import com.struckplayz.notes.note.Note ;
import com.struckplayz.notes.note.NoteType ;
public class NoteTest extends JavaPlugin {
private NotesAPI noteAPI ;
public void onEnable ( ) {
if ( setupNotesAPI ( ) ) {
getLogger ( ) . info ( "Successfully found the NotesAPI!" ) ;
} else {
getLogger ( ) . info ( "Failed to find the NotesAPI." ) ;
}
}
public boolean onCommand ( CommandSender sender, Command command, String label, String [ ] args ) {
if ( command. getName ( ) . equalsIgnoreCase ( "giveMeNote" ) ) {
if ( ! ( sender instanceof Player ) ) {
return true ;
}
Player player = ( Player ) sender ;
Note note = noteAPI. constructNote ( "Test" , "YOU" , NoteType. FLIRT ) ;
noteAPI. giveNote ( player, note ) ;
}
return true ;
}
public boolean setupNotesAPI ( ) {
if ( getServer ( ) . getPluginManager ( ) . getPlugin ( "Notes" ) == null ) {
return false ;
}
RegisteredServiceProvider < NotesAPI > rsp = getServer ( ) . getServicesManager ( ) . getRegistration ( NotesAPI. class ) ;
if ( rsp == null ) {
return false ;
}
noteAPI = rsp. getProvider ( ) ;
return noteAPI != null ;
}
}
TODO
I put this section here so I have a list of things that I need to add and so that you people can see what I am working on right now.
- Vault support
- Uncomplete
- Note Manager for admins
- Uncomplete
- Request more please!
Donations
Enjoying what you see here? I wouldn't mind a quick little
thank you donation .
Don't have the money? It doesn't matter, as long as you are enjoying the plugin.Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.8, 1.9, 1.10
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Notes | Carnations in Minecraft | 1.8 - 1.11 is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11. Downloaded 268 times (via Spigot). Download it and open it directly in the game.