Friends

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

Friends has been updated to have UUID support!
Have you ever wanted to have a central friends plugin that has an API that any plugin can access?

Well this plugin does just that, here is an example of how it could be used: Lets say you have a plugin that gives a player's friend a speed boost, but you don't want them to have to type their friend's username every time... Instead just have the plugin look at that player's friends list and give the closest friend in that list a speed boost! Just use this plugin's API and database to keep track of player's friends!

Permissions

  • friends.use (Allows the player to access the commands)

Commands

  • /friends (tells you how to use the commands and their arguments)
  • /friends add [player] (allows the player to add someone to their friends list)
  • /friends remove [player] (removes the specified player from the sender's list)
  • /friends list (shows the sender their list of friends and pending friend requests)
  • /friends list [player] (shows the sender a list of friends that the specified user has)
  • /friends accept [player] (allows the sender to accept a friend request)
  • /friends decline [player] (declines a friend request of the specified user)
  • /friends msg [player] [message] (sends a message to a player in the user's friends list)
  • /friends nick [nickname] (allows the user to define a nickname with color coding for players in the user's friends list)

If you do use this in your plugin, please leave a comment and we will put your server name and server address here!

To use the API please import this plugin jar as a library in your IDE then add "import net.c0dei.friends.DatabaseAPI;" to the top of your code. Then add this: "private DatabaseAPI db = new DatabaseAPI();"

You can then use these functions to pull data from the database...

API Functions

  • getFriendsList(Player targetPlayer)
  • setFriendsList(Player targetPlayer, List<String> list)
  • addFriend(Player targetPlayer, Player friend)
  • removeFriend(Player targetPlayer, Player friend)

Go subscribe to my YouTube channel! http://bit.ly/sub2codei


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files

Bukkit