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!
Very buggy to use. the database info is not complete when first install.
where to add the mysql info?
added MySQL API v3 for CB 1.6.4-R2.0 in plugins, i'm using cb1.7.2-r0.3 does this work at all? now i get errors. i don't have a config folder for MAPI either. how to edit the config?
[22:12:16 WARN]: at sun.reflect.GeneratedConstructorAccessor69.newInstanc e(Unknown Source) [22:12:16 WARN]: at sun.reflect.DelegatingConstructorAccessorImpl.newInst ance(Unknown Source) [22:12:16 WARN]: at java.lang.reflect.Constructor.newInstance(Unknown Sou rce) [22:12:16 WARN]: at com.mysql.jdbc.Util.handleNewInstance(Util.java:407) [22:12:16 WARN]: at com.mysql.jdbc.Util.getInstance(Util.java:382) [22:12:16 WARN]: at com.mysql.jdbc.SQLError.createSQLException(SQLError.j ava:1013) [22:12:16 WARN]: at com.mysql.jdbc.SQLError.createSQLException(SQLError.j ava:987) [22:12:16 WARN]: at com.mysql.jdbc.SQLError.createSQLException(SQLError.j ava:982) [22:12:16 WARN]: at com.mysql.jdbc.SQLError.createSQLException(SQLError.j ava:927) [22:12:16 WARN]: at com.mysql.jdbc.ConnectionImpl.throwConnectionClosedEx ception(ConnectionImpl.java:1213) [22:12:16 WARN]: at com.mysql.jdbc.ConnectionImpl.checkClosed(ConnectionI mpl.java:1200) [22:12:16 WARN]: at com.mysql.jdbc.ConnectionImpl.createStatement(Connect ionImpl.java:2485) [22:12:16 WARN]: at com.mysql.jdbc.ConnectionImpl.createStatement(Connect ionImpl.java:2467) [22:12:16 WARN]: at me.CopyableCougar4.main.MySQL_Loader.load(MySQL_Loade r.java:72) [22:12:16 WARN]: at me.CopyableCougar4.main.MySQL_Loader$1.run(MySQL_Load er.java:57) [22:12:16 WARN]: at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftTask.ru n(CraftTask.java:53) [22:12:16 WARN]: at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftSchedul er.mainThreadHeartbeat(CraftScheduler.java:345) [22:12:16 WARN]: at net.minecraft.server.v1_7_R1.MinecraftServer.u(Minecr aftServer.java:587) [22:12:16 WARN]: at net.minecraft.server.v1_7_R1.DedicatedServer.u(Dedica tedServer.java:250) [22:12:16 WARN]: at net.minecraft.server.v1_7_R1.MinecraftServer.t(Minecr aftServer.java:545) [22:12:16 WARN]: at net.minecraft.server.v1_7_R1.MinecraftServer.run(Mine craftServer.java:457) [22:12:16 WARN]: at net.minecraft.server.v1_7_R1.ThreadServerApplication. run(SourceFile:617) [22:12:17 WARN]: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionExce ption: No operations allowed after connection closed.
@madtomic 1. You need MAPI the Bukkit plugin 2. You put in the mysql configuration corresponding to the labels in the config
It don't work at all. even with the latest build. update coming to fix this? the database feature is nice if it works.
how to use the mysql? the config seems to be borken.
10:00:46 AM [10:00:46 INFO]: [FriendMe] Enabling FriendMe v3.3.1 10:00:46 AM [10:00:46 ERROR]: Error occurred while enabling FriendMe v3.3.1 (Is it up to date?) 10:00:46 AM java.lang.NoClassDefFoundError: me/CopyableCougar4/main/MAPI 10:00:46 AM at me.CopyableCougar4.main.FriendMe.onEnable(FriendMe.java:82) [?:?] 10:00:46 AM at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 10:00:46 AM at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:350) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 10:00:46 AM at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:389) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 10:00:46 AM at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugin(CraftServer.java:439) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 10:00:46 AM at org.bukkit.craftbukkit.v1_7_R1.CraftServer.enablePlugins(CraftServer.java:375) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 10:00:46 AM at net.citizensnpcs.util.NMS.loadPlugins(NMS.java:270) [Citizens.jar:?] 10:00:46 AM at net.citizensnpcs.Citizens.enableSubPlugins(Citizens.java:142) [Citizens.jar:?] 10:00:46 AM at net.citizensnpcs.Citizens.onEnable(Citizens.java:288) [Citizens.jar:?] 10:00:46 AM at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 10:00:46 AM at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:350) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 10:00:46 AM at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:389) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 10:00:46 AM at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugin(CraftServer.java:439) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 10:00:46 AM at org.bukkit.craftbukkit.v1_7_R1.CraftServer.enablePlugins(CraftServer.java:375) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 10:00:46 AM at net.minecraft.server.v1_7_R1.MinecraftServer.m(MinecraftServer.java:342) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 10:00:46 AM at net.minecraft.server.v1_7_R1.MinecraftServer.g(MinecraftServer.java:319) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 10:00:46 AM at net.minecraft.server.v1_7_R1.MinecraftServer.a(MinecraftServer.java:275) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 10:00:46 AM at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.java:175) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 10:00:46 AM at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:424) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 10:00:46 AM at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 10:00:46 AM Caused by: java.lang.ClassNotFoundException: me.CopyableCougar4.main.MAPI 10:00:46 AM at java.net.URLClassLoader$1.run(Unknown Source) [?:1.7.0_51] 10:00:46 AM at java.net.URLClassLoader$1.run(Unknown Source) [?:1.7.0_51] 10:00:46 AM at java.security.AccessController.doPrivileged(Native Method) [?:1.7.0_51] 10:00:46 AM at java.net.URLClassLoader.findClass(Unknown Source) [?:1.7.0_51] 10:00:46 AM at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:77) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 10:00:46 AM at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 10:00:46 AM at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.7.0_51] 10:00:46 AM at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.7.0_51] 10:00:46 AM ... 20 more
I have made a french video for you : video
I've thought at a plugin where players can add, request o delete friendship with other players, but those friends can be seen in the TAB list, removing the list of players online.
To sum up, this is the most important thing of the plugin, then you can add other characters to make the plugin being most interesting.
@xDizasterCYx I put a patch that should eliminate issues with that, but make sure that the value for reload-count is indeed a number.
help?
Error occurred while enabling FriendMe v3.3 (Is it up to date?) java.lang.NumberFormatException: null at java.lang.Long.parseLong(Unknown Source) [?:1.7.0_55] at java.lang.Long.parseLong(Unknown Source) [?:1.7.0_55] at me.CopyableCougar4.main.MySQL_Loader.cycle(MySQL_Loader.java:59) [?:?] at me.CopyableCougar4.main.FriendMe.onEnable(FriendMe.java:89) [?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) [spigot.jar:git-Spigot-1522] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:324) [spigot.jar:git-Spigot-1522] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot.jar:git-Spigot-1522] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugin(CraftServer.java:478) [spigot.jar:git-Spigot-1522] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.enablePlugins(CraftServer.java:396) [spigot.jar:git-Spigot-1522] at net.minecraft.server.v1_7_R3.MinecraftServer.n(MinecraftServer.java:359) [spigot.jar:git-Spigot-1522] at net.minecraft.server.v1_7_R3.MinecraftServer.g(MinecraftServer.java:333) [spigot.jar:git-Spigot-1522] at net.minecraft.server.v1_7_R3.MinecraftServer.a(MinecraftServer.java:289) [spigot.jar:git-Spigot-1522] at net.minecraft.server.v1_7_R3.DedicatedServer.init(DedicatedServer.java:193) [spigot.jar:git-Spigot-1522] at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:457) [spigot.jar:git-Spigot-1522] at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1522]
Can you add the posibility of teleportation between friends?
Does it support bungee cord yet?
@evilgood13 Download and run http:dev.bukkit.org/bukkit-plugins/mapi/
Error: http://dev.bukkit.org/paste/b5tmjw03ufqysv78/
Why? :$
Update: I am planning on adding mysql capabilities to FriendMe :)
You should have it so friends chat color is different from others and the ability to make a group friend chat.
FriendMe doesn't work for me.
@TheR3ktor Try putting this in: http://dev.bukkit.org/bukkit-plugins/mapi/
See if it works then.
I'm getting this error when I start my server?
[13:05:04 ERROR]: Error occurred while enabling FriendMe v3.2.5 (Is it up to dat e?) java.lang.NoClassDefFoundError: me/CopyableCougar4/main/MAPI at me.CopyableCougar4.main.FriendMe.onEnable(FriendMe.java:81) [?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) [c raftbukkit-1.7.9-R0.3-20140603.002405-1.jar:git-Bukkit-1.7.9-R0.2-1-ga6e0bfd-b30 95jnks] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader .java:324) [craftbukkit-1.7.9-R0.3-20140603.002405-1.jar:git-Bukkit-1.7.9-R0.2-1 -ga6e0bfd-b3095jnks] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage r.java:404) [craftbukkit-1.7.9-R0.3-20140603.002405-1.jar:git-Bukkit-1.7.9-R0.2- 1-ga6e0bfd-b3095jnks] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugin(CraftServer.jav a:446) [craftbukkit-1.7.9-R0.3-20140603.002405-1.jar:git-Bukkit-1.7.9-R0.2-1-ga6 e0bfd-b3095jnks] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.enablePlugins(CraftServer. java:380) [craftbukkit-1.7.9-R0.3-20140603.002405-1.jar:git-Bukkit-1.7.9-R0.2-1- ga6e0bfd-b3095jnks] at net.minecraft.server.v1_7_R3.MinecraftServer.n(MinecraftServer.java:3 52) [craftbukkit-1.7.9-R0.3-20140603.002405-1.jar:git-Bukkit-1.7.9-R0.2-1-ga6e0b fd-b3095jnks] at net.minecraft.server.v1_7_R3.MinecraftServer.g(MinecraftServer.java:3 26) [craftbukkit-1.7.9-R0.3-20140603.002405-1.jar:git-Bukkit-1.7.9-R0.2-1-ga6e0b fd-b3095jnks] at net.minecraft.server.v1_7_R3.MinecraftServer.a(MinecraftServer.java:2 82) [craftbukkit-1.7.9-R0.3-20140603.002405-1.jar:git-Bukkit-1.7.9-R0.2-1-ga6e0b fd-b3095jnks] at net.minecraft.server.v1_7_R3.DedicatedServer.init(DedicatedServer.jav a:182) [craftbukkit-1.7.9-R0.3-20140603.002405-1.jar:git-Bukkit-1.7.9-R0.2-1-ga6 e0bfd-b3095jnks] at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java :436) [craftbukkit-1.7.9-R0.3-20140603.002405-1.jar:git-Bukkit-1.7.9-R0.2-1-ga6e 0bfd-b3095jnks] at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:6 28) [craftbukkit-1.7.9-R0.3-20140603.002405-1.jar:git-Bukkit-1.7.9-R0.2-1-ga6e0b fd-b3095jnks] Caused by: java.lang.ClassNotFoundException: me.CopyableCougar4.main.MAPI at java.net.URLClassLoader$1.run(Unknown Source) [?:1.7.0_40] at java.net.URLClassLoader$1.run(Unknown Source) [?:1.7.0_40] at java.security.AccessController.doPrivileged(Native Method) [?:1.7.0_ 40] at java.net.URLClassLoader.findClass(Unknown Source) [?:1.7.0_40] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader. java:77) [craftbukkit-1.7.9-R0.3-20140603.002405-1.jar:git-Bukkit-1.7.9-R0.2-1- ga6e0bfd-b3095jnks] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader. java:62) [craftbukkit-1.7.9-R0.3-20140603.002405-1.jar:git-Bukkit-1.7.9-R0.2-1- ga6e0bfd-b3095jnks] at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.7.0_40] at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.7.0_40] ... 12 more
@selfservice0 Thanks for telling me :) I will try and get a patch out ASAP :)