FriendMe
Description
FriendMe allows you and your friends to have a friends list!
Red text means that it is a beta feature
Dependencies
You can have BarAPI not MessageBarAPI - that's an error
Releases
If there is an error generated, please write the complete error message in your comment.
Ideas
If you have any ideas for features for this plugin, don't hesitate to post them in the comments! I want this plugin to be tailored to the whims of the users, and that means you!
Source
Due to a long list of GitHub requests, here it is: LINK
To Do List
working out some buggy commandstoggling bukkit scoreboard functionalitytoggle-able PVP protection from friendsability to upload friendship data to a new version
Currently Working on
- BungeeCord support (via proxy query)
Installation
To install the plugin, just drop the .jar file in your /plugins directory and restart your server!
Commands
/friend add <username> | send a player a friend request, if they are online | |
---|---|---|
/friend remove <username> | remove a player from your friends list | |
/friend accept | accept a friend request | |
/friend deny | deny a friend request | |
/friend help | lists all FriendMe commands | |
/friend list online | list all online friends | |
/friend list offline | list all offline friends and when they were last online | |
/friend load | load friends from friends.yml |
Permissions
friendme.user | required for a player to use the plugin | |
---|---|---|
friendme.admin | required to allow a player to use /friend panel (for later) |
Sample Config.yml
#-------------------------# # Bungee Cord Instances # #-------------------------# bungee: false #-------------------------# # Plugin Metrics # #-------------------------# metrics: true #-----------------------------# # Attacking Friends # #-----------------------------# friendly-fire: false #---------------# # BarAPI # #---------------# bar: You have %on% friends online!
Please add a whitelist for worlds to use the Bar API as I have another plugin that uses the Boss Bar, which this interrupts it.
I recommend making it say when your friends join/leave the game automatically. Add more abilities like friend teleporting, make their name tags green, etc.
this error keeps popping whenever i type any command: [17:07:20 ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'frie nd' in plugin FriendMe v3.0 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [cra ftbukkit.jar:git-Bukkit-1.7.2-R0.2-36-g9f75167-b3005jnks] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:19 9) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-36-g9f75167-b3005jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServe r.java:543) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-36-g9f75167-b3005jnks] at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerCon nection.java:932) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-36-g9f75167-b3005jnks] at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java :814) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-36-g9f75167-b3005jnks] at net.minecraft.server.v1_7_R1.PacketPlayInChat.a(PacketPlayInChat.java :28) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-36-g9f75167-b3005jnks] at net.minecraft.server.v1_7_R1.PacketPlayInChat.handle(PacketPlayInChat .java:47) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-36-g9f75167-b3005jnks] at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146 ) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-36-g9f75167-b3005jnks] at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [craf tbukkit.jar:git-Bukkit-1.7.2-R0.2-36-g9f75167-b3005jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:6 55) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-36-g9f75167-b3005jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:2 50) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-36-g9f75167-b3005jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:5 45) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-36-g9f75167-b3005jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java :457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-36-g9f75167-b3005jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:6 17) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-36-g9f75167-b3005jnks] Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at me.CopyableCougar4.main.FriendCommand.onCommand(FriendCommand.java:21 ) [?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [cra ftbukkit.jar:git-Bukkit-1.7.2-R0.2-36-g9f75167-b3005jnks] ... 13 more
I uploaded a patch. If the server doesn't have BarAPI installed, it just simply doesn't have the bar message. That way, it doesn't throw errors if BarAPI isn't installed.
Rushnett-
That means you don't have BarAPI (I know, it's not listed as a dependency but it is (until I make it check for the plugin))
Looks good, waiting for bungeecord :D
It seems your latest version has an error upon a player joining. I decided to test it on a local server instance, as I was thinking of using this concept when bungeecord is implemented, as my branch of servers all run on bungeecord (or do it myself when I have the time xD). Also, I advise having the option to hook it up to a database when you get bungeecord support implemented. and here's the error I got upon joining with the plugin loaded:
I updated the plugin to v3! Let me know of any errors, because I hopefully fixed most errors.
2.7 is still not working.
http://puu.sh/6G6pE.png
/friend throws the following error:
/friend list online gives the following error: See image, no consol stacktrace/error.
/friend add says player is already my friend, no consol stacktrace/error
I have done this test with a freshly generated config.yml & friends.yml.
I really hope you can fix this, cause it looks like a good plugin.
Regards Jurre
Will be giving this a try, thanks!
@jefle I will look into both of those ideas :)
Please finish the Bungee support and add a language file so we can edit all the messages (or at least the prefix)
Or you could send me the the sourcecode? :3
BarAPI is optional, right?
@CopyableCougar4
thank you
@xDizasterCYx
I will write the stuff up today for a customizable BarAPI message :)
could make the BarAPI customizable and add support for http://dev.bukkit.org/bukkit-plugins/scoreboardstats/
@Jurre1996 Please print full stack trace as it tells me specifically what lines are causing the error. Also, can you add a stack trace of /friend add (if there is one)?
There are still a couple of errors, the biggest of them being, you cannot add anyone to your friend list.
/friend give the following error:
also /friend add doesn't work:(
I update My Java, but here's new problem: then i type /friend add username Showing this: Error: username aleready your friend!
My Java (TM) Version is 6 Update 35, OS: Windows 7 Home Basic, Bukkit: 1.6.4-R2.0 How i can refresh my Java (TM)?