FriendsAPI

Moved

Total Downloads: 24,016 - First Release: Oct 26, 2014 - Last Update: Nov 10, 2017

5/5, 39 likes
  1. Language Translation in this file does not work. It works in conjunction with the 0friendsAPI.json + Friends.cs
     

    Attached Files:

  2. language file is in oxide\lang\Friends.en.json
     
  3. Thanks for the advice. I saw it was told about the turret for friends, say it will be available?
     
  4. Problem with this update!!!!
    The plugin Cupboard For Friends not working with this update.

    [Error] [Cupboard for Friends] FriendsAPI could not be found! You need to have FriendsAPI installed for the plugin 'Cupboard for Friends' to work! Get it here: Friends API for Rust | Oxide
     
  5. Plugins need update to work with new version
     
  6. I know that s I said
     
  7. FF is not working in conjunction with it. Writes have no friends, but I said, there are!
     
  8. People need to read the Author's update notes, he clearly stated this will not work with most plugins until they follow suit and update their plugins to work with the updated Friends.API there are a myriad of changes. Until then you just need to use your previous version before update. It's that simple, you should always get in the habbit of reading old posts / update entries lest you ask the same question over and over, filling the Author's thread with redundancies.
     
  9. Wulf

    Wulf Community Admin

    I'd recommend posting in the plugin's thread that uses this, this plugin is not responsible for updating the others.
     
  10. This is proof that it's time to go to bed:

    [Oxide] 10:11 AM [Error] Friends plugin failed to compile!
    [Oxide] 10:11 AM [Error] Friends.cs(362,0): error CS1525: Unexpected symbol `--'

    Why, couse I've uploaded the wrong Friends plugin. ..lmao nn all

    [Oxide] 10:14 AM [Info] Unloaded plugin FriendsAPI v1.2.6 by #Domestos
    [Oxide] 10:14 AM [Info] Loaded plugin FriendsAPI v1.2.6 by #Domestos
     
  11. So 0friends lua is dead? Whats happening.
     
  12. So this is the new one, ok, do you suggest implementing both friendlyfire and this plugin mid wipe or wait until wipe?
     
  13. Wulf

    Wulf Community Admin

    Up to you! People would likely need to re-add friends.
     
  14. Yeah ill wait ;) btw you never got back at me for the Server Owner tag thing..id like to enroll again.
     
  15. How can I use the Friends API with Python?

    Everything I try fails :(

    I am not able to use the Friends API with Python and most of the libraries I want to import are not allow to import. Maybe if we could import "clr" I can create a reference to the Friends Methods? Any help on how to get me started with the Friends API on Python?
     
    Last edited by a moderator: Mar 1, 2016
  16. Wulf

    Wulf Community Admin

    You can call the plugin storing plugins.Find("FriendsAPI") as a variable, and calling that. It's the same as other scripting languages such as Lua.
     
  17. Thanks Wulf, I will try that as soon as I get home today :).
    [DOUBLEPOST=1456892092,1456848362][/DOUBLEPOST]I haven't been able to check this yet as I was updating my plug-in. I will try this tomorrow and will let you know if everything works.
     
  18. Please, add this:

    Code:
    void OnEntityEnter(TriggerBase triggerBase, BaseEntity entity)
    {
                var player = entity as BasePlayer;
                var trigger = triggerBase as BuildPrivilegeTrigger;            if (player == null || trigger == null)
                    return;            var ownerID = player.userID;
                foreach(var Proto in trigger.privlidgeEntity.authorizedPlayers)
                    if (HasFriend(Proto.userid, ownerID))
                    {
                        timer.Once(0.001f, () =>
                        {
                            player.SetPlayerFlag(BasePlayer.PlayerFlags.InBuildingPrivilege, true);
                            player.SetPlayerFlag(BasePlayer.PlayerFlags.HasBuildingPrivilege, true);
                        });
                        return;
                    }
    }
     
  19. is it possible to make it so this friends API adds friends on rustIO map?
    That would be splendid i would think.


    On another note, what teleportation plugins support this new version?
    I am using a modified m-teleportation version for entityowner and some other fixes iv made.
    And it is not yet updated to work with this new friends api.
    I would love to know if any other teleportation system might have it.
    Or even a half working modular version from the original creator ;).