[FUN/GEN] Friend and Enemy Lists v1.10 - Keep track of friends and enemies [1317]

Discussion in 'Inactive/Unsupported Plugins' started by Celeo, Jun 1, 2011.

  1. Offline

    Celeo

    Friend and Enemy Lists -
    Keep track of the people you want to see,
    and those you don't.
    Version: 1.10​
    Features:
    • 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
     
  2. Offline

    Tux2

    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.
     
  3. Offline

    Celeo

    Glad to help, and thanks!
     
  4. Offline

    StoutyAlex

    This is epic
     
  5. Offline

    Celeo

    Thanks! :D
     
  6. Offline

    metoo1115

    Yes i have always wanted notch to implement a friends-list type thing in the game, thanks for this!
     
  7. Offline

    Celeo

    You're welcome, happy to do it!
     
  8. 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)?
     
  9. Offline

    SulimirCular

    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
     
  10. Offline

    Celeo

    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.
     
    Last edited by a moderator: May 16, 2016
  11. Offline

    RyanV97

    You should add it so you can tp to anyone on your friends list! That would be awesome. :)
     
  12. Offline

    Celeo

    I'll work on it, thanks! :)

    EDIT: Done, check OP + Changelog.
     
  13. Offline

    SulimirCular

    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... :(
     
  14. Offline

    Celeo

    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.
     
    Last edited by a moderator: May 16, 2016
  15. Offline

    bbqsamich

    Suggestion, support SQL (not just MySQL) so that and system could be implemented to add friends
     
  16. Offline

    Celeo

    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. :)
     
  17. Offline

    Celeo

    Updated to Version 1.5 for CB 935.
     
  18. Offline

    enelar

    How to disable tp command to all players?
     
  19. Offline

    Celeo

    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.
     
    Last edited by a moderator: May 16, 2016
  20. Offline

    Celeo

    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.
     
  21. Offline

    ravyn

    Do you happen to have the permissions nodes for this
     
  22. Offline

    Celeo

    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.
     
  23. Offline

    sfxworks

    Update for 1060?
     
  24. Offline

    Celeo

    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.
     
    Last edited by a moderator: May 16, 2016
  25. Offline

    masterawesome

    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??
     
  26. Offline

    Celeo

    It's a good idea; I'll look into it, thanks.
     
  27. Great plugin!:D
     
  28. Offline

    Celeo

    Thanks!
     
  29. Offline

    RonanZer0

    can you make it where enemys can always be attacked
     
  30. Offline

    md_5

    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
     

Share This Page