Плагин friends. Плагины для майнкрафт

Плагин работает на версиях 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14 и выше

Описание плагина:

Friends - плагин на друзей для сервера Minecraft. С помощью него вы можете добавлять друзей, добавлять друзей в черный список, изменять статус, смотреть когда друг был последний раз онлайн, изменить ник друга, личный чат с другом и общий чат с друзьями, слежка за чатами друзей и многое другое... (все это через gui меню)

Команды плагина:

/friends - Открыть меню;
/friends help - Показать все команды;
/friends add - Послать запрос на дружбу игроку;
/friends remove - Удалить игрока из друзей;
/friends accept - Принять игрока в друзья;
/friends acceptall - Принять все предложения дружбы;
/friends deny - Отклонить запрос в друзья;
/friends block - Блокировать игрока от себя;
/friends unblock - Разблокировать игрока;
/friends list - Показать всех своих друзей;
/friends toggle requests - Включить отключить запросы;
/friends toggle chat - Включить или отключить чат друзей;
/friends toggle jumping - Разрешить или запретить друзьям, чтобы они телепортировались к вам;
/friends toggle msg - Разрешить или запретить друзьям личные сообщения;
/friends toggle spychat - Позволяет администраторам видеть чат друзей других игроков;
/friends info - Смотреть дополнительную информацию;
/friends reload - Перезагрузить плагин для применения внесенных изменений;
/friends msg - Написать приватное сообщение;
/status - Устанавливает статус;
/status clear - Очищает статус указанного игрока.

Права плагина:

Friends.Use - Доступ к команде /friends help ;
Friends.Commands.Add - Доступ к команде /friends help ;
Friends.Commands.Remove - Доступ к команде /friends remove ;
Friends.Commands.Accept - Доступ к команде /friends accept ;
Friends.Commands.Acceptall - Доступ к команде /friends acceptall ;
Friends.Commands.Deny - Доступ к команде /friends deny ;
Friends.Commands.Block - Доступ к команде /friends block ;
Friends.CommandsUnblock - Доступ к команде /friends unblock ;
Friends.Commands.List - Доступ к команде /friends list ;
Friends.Commands.Toggle.Requests - Доступ к команде /friends toggle requests ;
Friends.Commands.Toggle.Chat - Доступ к команде /friends toggle chat ;
Friends.Commands.Toggle.Jumping - Доступ к команде /friends toggle jumping ;
Friends.Commands.Toggle.Msg - Доступ к команде /friends toggle msg ;
Friends.Commands.SpyChat - Доступ к команде /friends toggle spychat ;
Friends.Commands.Reload - Доступ к команде /friends reload ;
Friends.Commands.Msg - Доступ к команде /friends msg ;
Friends.Commands.Status - Доступ к команде /status ;
Friends.Commands.Status.Clear - Доступ к команде /status clear .

Скриншоты:








Как установить плагин?

1. Скачайте плагин.
2. Возьмите скачанный файл и перенесите в папку plugins вашего сервера.
3. Перезапустите сервер.
4. Готово.

Friends doesn"t really do anything itself besides managing a friends list. It offers functions to use by other plugins to do things based on players friends. Other plugins can utilize this plugin to prevent friendly fire, allow access to things for friends, etc.

Commands

This plugin offers both chat and console commands. When using a command chat, prefix with a forward slash: / .

  • friend Add or remove a player as a friend
  • friend list -- List all of your current friends

Configuration

{ "Maximum number of friends per player (0 to disable)": 30, "Friend list cache time (0 to disable)": 0 }

Localization

Developer API

To call the functions from this API you"ll first need to get the plugin reference:

Private Plugin Friends;

After you have the plugin reference, just simply call the desired API method:

Friends.Call("HasFriend", playerId, targetId)

The above example uses the "HasFriend" API method; for others, see below.

API Methods

bool AddFriend(string playerId, string friendId) bool AddFriend(ulong playerId, ulong friendId) bool RemoveFriend(string playerId, string friendId) bool RemoveFriend(ulong playerId, ulong friendId) bool HasFriend(string playerId, string friendId) bool HasFriend(ulong playerId, ulong friendId) bool AreFriends(string playerId, string friendId) bool AreFriends(ulong playerId, ulong friendId) bool IsFriend(string playerId, string friendId) bool IsFriend(ulong playerId, ulong friendId) string GetFriendList(string playerId) ulong GetFriendList(ulong playerId) string IsFriendOf(string playerId) ulong IsFriendOf(ulong playerId) bool HadFriend(string playerId, string friendId) bool HadFriend(ulong playerId, ulong friendId) bool WereFriends(string playerId, string friendId) bool WereFriends(ulong playerId, ulong friendId) bool WasFriend(string playerId, string friendId) bool WasFriend(ulong playerId, ulong friendId) string GetFriends(string playerId) ulong GetFriends(ulong playerId) int GetMaxFriends()

Hooks

To listen for when a friend is added or removed, use the following hook(s):

Private void OnFriendAdded(string playerId, string friendId) private void OnFriendRemoved(string playerId, string friendId)

Credits

  • Nogrod , for the original version of the Friends API plugin for Rust

Copyright (c) 2019 Wulf


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:


The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


Decentralized Social Networking with WordPress

  • Connect WordPresses through friendship requests
  • Read each other’s (private) posts in a feed reader UI
  • Subscribe to any RSS feed
  • Compatible with the WordPress mobile apps

On your WordPress site you can post anything you wish to share with the world. Sometimes the open nature of WordPress might be a little too open. What if you only want to share some posts with friends but not the whole world?

With the Friends plugin, you can establish a connection with your friends’ WordPress sites by making and accepting friend requests.

Let’s look at an example:

You want to connect with your friend Matt and send a friend request to his WordPress. He accepts the friend request–the connection is established.

Actually you’re now subscribed to his posts and he’s now subscribed to your posts, so on your /friends/ pages you’ll both now see each others posts.

No big deal, this is just like subscribing to an RSS feed, right? It actually is, and that’s also what’s happening behind the scenes.

Things start to get more interesting if you bring private posts to the game.

When you post something with the post status sent to «Private,» while not visible to the random (logged-out) visitor of your site, it is shared with your friends.

The logo was created by Ramon Dodd, @ramonopoly. Thank you!

Скриншоты

Установка

  1. Upload the friends directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Часто задаваемые вопросы

Why is the friendship established between WordPress sites and not WordPress users?

For one, this allows to stick with established WordPress configurations and terminologies. For example, you can use the WordPress mobile apps to post privately to your site.

Secondly, a lot of WordPresses are like cell phones. Some are used by more than one person but mostly there is a 1:1 relationship between a WordPress blog and a person.

If someone has multiple WordPresses this actually allows to segment your friendships. Close friends might want to follow all your blogs but you’d only add your photographer friends to your photoblog.

What if the friend request is deleted or not accepted?

You’ll still see the public posts from the other WordPress, you’ve subscribed to its public RSS feed.

What’s the point? If I want to post something privately I can use Facebook.

Well, that’s actually exactly the point. Facebook owns your data, with WordPress you can decide where you want to host it and have all the benefits of running open source software.

What happens if I modify or delete a post?

There is a cache of your friends post in form of a Custom Post Type friend_post that is updated when you change a post. When you delete a post your friends’ WordPresses are notified and they delete the cached post.

Участники и разработчики

«Friends» - проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

Журнал изменений

0.20

  • Revamp the friendship protocol, allow specifying a codeword and sending a message

0.16

  • Bugfixes: Friend Request error handling, feed rules for author
  • Add some help texts
  • Bring back shortcodes

0.15

  • Removed Saved Articles, this will go into the Thinkery plugin
  • Subscriptions will use the site’s favicon as user avatar
  • Removed short codes and replaced them with Gutenberg blocks «Friend Posts» and «Friends List» Gutenberg, added a «Friends Visibility» global Gutenberg option

0.14

  • Add Saved Articles that can be used to recommend articles to friends
  • Extract article contents using Readability

0.13

  • No longer use hardcoded WP REST API URLs
  • Add bookmarklets

0.12

  • Bugfix: don’t notify about posts that are trashed via rules

0.11

  • Add Restricted Friend functionality
  • Add feed rules

0.10

  • Disable listing users via REST
  • Allow just subscribing to a site
  • Add Gutenberg blocks

0.9

  • Post recommendations
  • Includes the most recent version of SimplePie

0.8

  • Reactions
  • Shortcodes
  • Customizable Profile page

0.7

  • Download OPML
  • Suggest Friends plugin via different media

0.6

  • Add friends settings

0.5

  • Use in/out tokens.

0.4

  • Send notifications for friend request, accepted request and new posts.
  • Improve friend request security.
  • Initial release on to the WordPress.org plugin directory.

0.3

  • Delete your cached posts on friends blogs when you delete them.
  • Widgets: Friend Requests, Friend List.
  • Initial submission to the WordPress.org plugin directory.

0.2

  • Subscribe to WordPresses without Friends plugin.

0.1

  • All basic functionality:
  • Request and accept friendships
  • Subscribe to private feed
  • /friends/ page