Friend and Enemy Lists -Keep track of the people you want to see,and those you don't.Version: 1.10Download and Source Code: https://sites.google.com/site/celeoscode/file-cabinet/friendlistFeatures: Allows each player to make both a friend list and enemy list When viewing either list, online players are in green for friend list and red for enemy list Only sends server Login / Logout messages to players who have the player in question in their friend list If Player A is logging out and is on Player B's friend list, Player B will receive the logout message, but the general player base will not. Option to turn off friendly fire Stores information in /FriendList/plugin.yml Commands: /friend or /enemy : Shows list a|dd [name(s)] : Adds name(s) to the list r|em|ove [name(s)] : Removes name(s) from the list clear : Clears the list (careful) tp : Teleports you to the specified player Note: You must have the person on your friend list and you must be on theirs, to prevent people from teleporting to others and killing them. Note: Parameters written like a|dd mean that they can either be input as a or add To Do: Nothing at the moment. Changelog: 1.9 : Updated for CB 1317. 1.9 : Code re-wrote for faster performance; updated to 1060. 1.8 : Fixed bug where viewing a list did not correctly show players online 1.7 : Updated for CB 1000 1.6 : Updated for CB 953 1.5 : Updated for CB 935 1.4 : Updated for CB 928 1.3 : Plugin ready for CB 860 1.2 : Added friendly fire option. If on, you cannot damage your friends. Configurable via the config.yml file. 1.1 : Added teleporting to friends. This is configurable via the config.yml file. 1.0 : Initial Release
Wow! One of my players has been asking for a plugin exactly like this, and now I don't have to make it. I'll be giving it a try once I get back to my computer.
I'm guessing you are trying to keep this simple, but would it be possible to add an option in the config so that friends can't attack each other? (Friendly fire on/off)?
I would love to use it,but.... It loads fine, no errors,BUT If I execute a command I'm geting the following error Code: ... 12 more at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35) at net.thedarktide.celeo.friendlist.FriendList.onCommand(FriendList.java:144) Caused by: java.lang.NullPointerException at net.minecraft.server.ThreadServerApplication.run(SourceFile:422) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401) at net.minecraft.server.NetworkListenThread.a(SourceFile:105) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75) at net.minecraft.server.NetworkManager.b(NetworkManager.java:217) at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:677) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:684) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:718) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:281) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37) org.bukkit.command.CommandException: Unhandled exception executing command 'friend' in plugin FriendList v1.0 Is it just me?? Pls help
Thanks for reporting this. I'll look into a fix. Yes Sure; I will add that in the next release. Thank you for the suggestion! EDIT: Done! Check the OP and the Changelog for Version 1.2. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I tried updated version, but it seems the error still occurs Code: ... 12 more at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35) at net.thedarktide.celeo.friendlist.FriendList.onCommand(FriendList.java:127) Caused by: java.lang.ArrayIndexOutOfBoundsException: 1 at net.minecraft.server.ThreadServerApplication.run(SourceFile:422) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401) at net.minecraft.server.NetworkListenThread.a(SourceFile:105) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75) at net.minecraft.server.NetworkManager.b(NetworkManager.java:217) at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:677) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:684) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:718) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:281) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37) org.bukkit.command.CommandException: Unhandled exception executing command 'friends' in plugin FriendList v1.1 I realy dont know what i am doing wrong...
I think I understand the problem. You cannot issue the "reload" command to the console while having this plugin running, as it will set your lists to null. To fix that problem (don't reload the plugin while people are logged in) simply relog, as this will fix the null value. However, both your lists will still be blank. EDIT: Fixed. The -clear command wipes the list instead of setting it to "null.' Version 1.2 released! This version contains the option to turn off friendly fire via the config.yml file. Thank you AS1LV3RN1NJA for your suggestion. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Thank you for the suggestion; I will look into it. Truth be told, I haven't ever worked with SQL, so this will be interesting.
Updated to Version 1.6 for CB 953. Go into the config.yml when the server is not running and change the teleport node to false. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Version 1.8 is released. This update provides a bug fix where when a player uses the commands to view his or her list (either one, they both use the same method to see if a player is online), players were not correctly marked as online or offline.
The plugin actually does not require any permission nodes. It does, however, require the Permissions plugin to be installed in your server. This is an unintended bug and will be removed when I get home. On an off note, I am currently redoing the code for a large 1.9 release.
Will do. I was halfway between redoing the code, so it should be done soon. Updated to 1.9 for 1060. Enjoy. =) EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Hey just an idea for this plugin add spout support so you can press a button on keyboard and it shows all ur friends and enemys in a gui on side of the players screen and shows if other players are on or off??
Long time no see Celeo. You will notice that this thread has now been placed into the Inactive Plugin subforum. If you wish to revive this plugin, please ensure that you update and test compatibility with the latest recommended Bukkit build before reporting your original post, asking for it to be moved back to the release forum. Thanks for your time. md_5