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!
I have this Error http://pastebin.com/FtJKhttd
when I enter my MySQL data in the config.yml and Restart the Server, the Plugin reset my config.yml http://pastebin.com/RdiA8zgK
Make it Bungeecord enable thats great sry for bad english
@CXbeat I'm not 100% sure what the site is, but any publicity is good publicity :).
Feel free to post FriendMe anywhere, as long as nobody takes my credit :)
@Nikoxx99 Thanks for pointing this out! When I was updating the commands I screwed up.
To Anybody Using the 1.7.9 version: Update as soon as v3.3.2 patch is out, because it fixes a critical error
Can i copy this to www.mcbbs.net ? i want more people know this.
tested on 1.7.9: 5:01:45 p. m. CONSOLE: ERROR]: null 5:01:45 p. m. CONSOLE: exception executing command 'friend' in plugin FriendMe v3.3.2 5:01:46 p. m. CONSOLE: java.lang.IllegalArgumentException: Invalid UUID string:
this appears on /friend add
Tested on 1.7.10:
[FriendMe] Enabling FriendMe v3.3.1 [13:32:29] [Server thread/WARN]: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Cannot load connection class because of underlying exception: 'java.lang.NumberFormatException: For input string: "mysql:"'. [13:32:29] [Server thread/WARN]: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [13:32:29] [Server thread/WARN]: at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) [13:32:29] [Server thread/WARN]: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) [13:32:29] [Server thread/WARN]: at java.lang.reflect.Constructor.newInstance(Unknown Source) [13:32:29] [Server thread/WARN]: at com.mysql.jdbc.Util.handleNewInstance(Util.java:407) [13:32:29] [Server thread/WARN]: at com.mysql.jdbc.Util.getInstance(Util.java:382) [13:32:29] [Server thread/WARN]: at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1013) [13:32:29] [Server thread/WARN]: at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987) [13:32:29] [Server thread/WARN]: at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982) [13:32:29] [Server thread/WARN]: at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927) [13:32:29] [Server thread/WARN]: at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:314) [13:32:29] [Server thread/WARN]: at java.sql.DriverManager.getConnection(Unknown Source) [13:32:29] [Server thread/WARN]: at java.sql.DriverManager.getConnection(Unknown Source) [13:32:29] [Server thread/WARN]: at me.CopyableCougar4.main.MAPI.getConnection(MAPI.java:23) [13:32:29] [Server thread/WARN]: at me.CopyableCougar4.main.FriendMe.onEnable(FriendMe.java:82) [13:32:29] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) [13:32:29] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:329) [13:32:29] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [13:32:29] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugin(CraftServer.java:476) [13:32:29] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_7_R4.CraftServer.enablePlugins(CraftServer.java:394) [13:32:29] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.MinecraftServer.n(MinecraftServer.java:360) [13:32:29] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.MinecraftServer.g(MinecraftServer.java:334) [13:32:29] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.MinecraftServer.a(MinecraftServer.java:290) [13:32:29] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.DedicatedServer.init(DedicatedServer.java:210) [13:32:29] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:458) [13:32:29] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [13:32:29] [Server thread/WARN]: Caused by: java.lang.NumberFormatException: For input string: "mysql:" [13:32:29] [Server thread/WARN]: at java.lang.NumberFormatException.forInputString(Unknown Source) [13:32:29] [Server thread/WARN]: at java.lang.Integer.parseInt(Unknown Source) [13:32:29] [Server thread/WARN]: at java.lang.Integer.parseInt(Unknown Source) [13:32:29] [Server thread/WARN]: at com.mysql.jdbc.NonRegisteringDriver.port(NonRegisteringDriver.java:831) [13:32:29] [Server thread/WARN]: at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305) [13:32:29] [Server thread/WARN]: ... 15 more [13:32:29] [Server thread/ERROR]: Error occurred while enabling FriendMe v3.3.1 (Is it up to date?) java.lang.NullPointerException at me.CopyableCougar4.main.FriendMe.onEnable(FriendMe.java:84) [?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) [spigot.jar:git-Spigot-1589] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:329) [spigot.jar:git-Spigot-1589] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot.jar:git-Spigot-1589] at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugin(CraftServer.java:476) [spigot.jar:git-Spigot-1589] at org.bukkit.craftbukkit.v1_7_R4.CraftServer.enablePlugins(CraftServer.java:394) [spigot.jar:git-Spigot-1589] at net.minecraft.server.v1_7_R4.MinecraftServer.n(MinecraftServer.java:360) [spigot.jar:git-Spigot-1589] at net.minecraft.server.v1_7_R4.MinecraftServer.g(MinecraftServer.java:334) [spigot.jar:git-Spigot-1589] at net.minecraft.server.v1_7_R4.MinecraftServer.a(MinecraftServer.java:290) [spigot.jar:git-Spigot-1589] at net.minecraft.server.v1_7_R4.DedicatedServer.init(DedicatedServer.java:210) [spigot.jar:git-Spigot-1589] at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:458) [spigot.jar:git-Spigot-1589]
@Ciryond Sorry if I wasn't clear in the main post, but this isn't for bungee yet. Bungee is still a distant hope.
For bungee, I must put the plugin in the plugin folder of my BungeeServer ? And bungee : true ?
@madtomic You need:
There shouldn't be bugs with the config file being wiped as far as I know. The only way that the config would be wiped is if it isn't in the data folder that it should be. However, I may put out a newer version today that should eliminate any possible issues with that.
@CopyableCougar4
All I get is player not found when I tried to add players. What other dependencies I need besides BarAPI. I really want to get this working. I'm using CB1.7.2-r0.3. Also the database info in the config file is lost or wiped when the plugin is reloaded? Bug?
@madtomic As far as I know v3.3.1 is the latest working version.
@CopyableCougar4
What is working at the moment to use? I really to included in my server but I haven't been able to find a working version.
@madtomic Hi Sorry :( After v3.2.3 or so there was a chain of backwards compatibility that was broken. I updated it in the next version to use GSON already in Bukkit
I found 3.2.4 has the gson file that is needed for this plugin. now I get this error. Any idea why it not loading?
12:00:51 AM [00:00:51 ERROR]: Could not load 'plugins\gson-2.2.4.jar' in folder 'plugins' 12:00:51 AM org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml 12:00:51 AM at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:176) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 12:00:51 AM at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 12:00:51 AM at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.java:350) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 12:00:51 AM at org.bukkit.craftbukkit.v1_7_R1.CraftServer.<init>(CraftServer.java:312) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 12:00:51 AM at net.minecraft.server.v1_7_R1.PlayerList.<init>(PlayerList.java:63) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 12:00:51 AM at net.minecraft.server.v1_7_R1.DedicatedPlayerList.<init>(SourceFile:14) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 12:00:51 AM at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.java:126) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 12:00:51 AM at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:424) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 12:00:51 AM at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] 12:00:51 AM Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml 12:00:51 AM ... 9 more
i tried early versions and still no luck. I get errors like flies. lol
[23:31:44 INFO]: soandso issued server command: /friend add soandso [23:31:44 ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'frie nd' in plugin FriendMe v3.1.2 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [cra ftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:17 5) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServe r.java:683) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerCon nection.java:952) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java :814) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.PacketPlayInChat.a(PacketPlayInChat.java :28) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.PacketPlayInChat.handle(PacketPlayInChat .java:47) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146 ) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [craf tbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:6 55) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:2 50) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:5 45) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java :457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:6 17) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] Caused by: java.lang.NullPointerException at me.CopyableCougar4.main.FriendMe.sendMessage(FriendMe.java:132) [?:? ] at me.CopyableCougar4.main.Request.send(Request.java:12) [?:?] at me.CopyableCougar4.main.FriendCommand.onCommand(FriendCommand.java:24 ) [?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [cra ftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] ... 13 more
Still no luck getting it working. Such a nice plugin but I have no way to get it working with cb1.7.2-r0.3. I hope you can fix it soon.
Also it's not working on 1.7.10.
I found it unloading the settings. i manage to get a copy of this before it was reset. How to get it working with MAPI. You said it requires it.
3.2.5 config file is this.
why is this missing the database info as well? how to get it working with mysql?