• 欢迎来到Minecraft插件百科!
  • 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
  • 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289

“Essentials/EssentialsXMPP”的版本间的差异

来自Minecraft插件百科
跳转至: 导航搜索
管理员用户
 
(未显示同一用户的2个中间版本)
第14行: 第14行:
 
Essentials XMPP 拓展为BukKIT服务器提供一种XMPP网关
 
Essentials XMPP 拓展为BukKIT服务器提供一种XMPP网关
 
===玩家 XMPP===
 
===玩家 XMPP===
使用 XMPP 设备的玩家在游戏内可以设置他们的 XMPP 地址, which allows for other players to message them when they are not connected to minecraft.
+
使用 XMPP 设备的玩家在游戏内可以设置他们的 XMPP 地址,这使其他玩家在他们没有连接到minecraft时也可以发送消息。
 
===XMPP Spy===
 
===XMPP Spy===
如果你对一个用户启用启用 XMPP spy, that player will get a copy of ingame messages sent to their XMPP account, as if they were connected and ingame.
+
如果你对一个用户启用启用 XMPP spy, 这个玩家将会在XMPP账户上收到一份游戏内信息的副本,和其在线时收到的一致。
 
===控制控制台===
 
===控制控制台===
If you allow an account to issue commands from XMPP, that user will be able to use console commands (op) similar to as if they were typing directly in the console.
+
如果你允许一个帐户在XMPP使用命令,那么该用户将能够使用控制台命令(op),类似于直接在控制台中输入命令。
 
===查看控制台===
 
===查看控制台===
If you register an account to have log view, the account will be forwarded messages sent the log with the matching or higher warning level.  This directly replicates what you would see looking directly at the console.
+
如果您注册了一个获取log的帐户,该帐户将收到具有匹配或更高警告级别的日志。这复制了您在直接查看控制台时看到的内容。
 
==使用 XMPP==
 
==使用 XMPP==
When you configure XMPP, you create a new account for the server, and associate your current accounts with the one given to the server.  On most services, this is akin to adding the server to your 'friends list' or 'contact list'.
+
配置XMPP时,将为服务器创建一个新帐户,并将当前帐户与给定给服务器的帐户关联。在大多数服务中,这类似于将服务器添加到您的“好友列表”或“联系人列表”中。
While 2 of the main uses of this plugin is to allow the server admins to remotely connect to the server, it is also useful to encourage contact between users on the server.
+
虽然这个插件的两个主要用途是允许服务器管理员远程连接到服务器,但它也有助于鼓励服务器上的用户之间的联系。
===Setting your account===
+
===设置账户===
Users can register their own XMPP addresses by using the "/setxmpp <address>" command.  Users can register any XMPP/Jabber compatible account, either accounts set up specifically for XMPP or systems which provide jabber ids.
+
用户可以使用"/setxmpp <address>"注册自己的XMPP地址。用户可以注册任何与XMPP/Jabber兼容的帐户, 可以是专门为XMPP设置的帐户,或是提供jabber id的系统。
Facebook users can find out more about their XMPP service [http://www.facebook.com/sitetour/chat.php in the site tour], but essentially it would be /setxmpp <username>@chat.facebook.com.
+
Facebook用户可以找到更多关于他们的XMPP服务[http://www.facebook.com/sitetour/chat.php in the site tour],但前提是其正确设置了自己的Facebook地址 /setxmpp <username>@chat.facebook.com.
Gmail users should simply use their gmail address.
+
Gmail用户只需使用他们的Gmail地址。
===Messaging a user===
+
===发送消息给其他玩家===
To message another user you use the "/xmpp <account> <message>" command, using the players ingame name.
+
使用 "/xmpp <account> <message>" 给其他玩家发送消息, 使用该玩家的游戏内id.
 
===Chat Spy===
 
===Chat Spy===
Not every server which allows XMPP will enable xmppspy, enabling this feature will forward all ingame chat to the XMPP account.  This will allow the user to chat as if they were ingame, by messaging the server's XMPP address.
+
不是每一台支持XMPP的服务器都会启用xmpp spy,启用它会将所有游戏内聊天发送到XMPP帐户。这将允许用户通过服务器的XMPP地址发送聊天内容.
 
==配置 XMPP==
 
==配置 XMPP==
Setting up the Essentials XMPP connector is fairly simple, you need to create an XMPP account, and provide the details for Essentials to use.
+
设置Essentials XMPP连接器非常简单,您需要创建一个XMPP帐户,并提供要使用的详细信息。
 
===创建账户===
 
===创建账户===
<p>Before Essentials can communicate with users XMPP accounts you first need to set it up with an account.  There are several different ways you can handle this, but it is recommended that you create an account specifically for the the server.</p>
+
<p>在Essentials与用户进行通信之前,XMPP帐户首先需要设置一个帐户。有几种不同的方法可以使用,但是建议您专门为服务器创建一个帐户。</p>
<p>Since XMPP is an open protocol you can set up your own XMPP server locally, or use a service provided by your ISP/Host.  As long as the server connects with one of the public XMPP nodes, you will be able to communicate with users using other XMPP services.</p>
+
<p>由于XMPP是开放协议,您可以在本地设置自己的XMPP服务器,或者使用ISP/Host提供的服务。只要服务器与一个公共XMPP节点连接,就可以使用其他XMPP服务与用户通信。</p>
<p>For the sake of simplicity it will probably be easiest to create a free account with [https://register.jabber.org/ Jabber.org].</p>
+
<p>为了简单起见,在 [https://register.jabber.org/ Jabber.org]创建一个免费帐户可能是最容易的.</p>
 
===配置文件===
 
===配置文件===
<p>The config file for XMPP connectivity is found in its own folder.  You will find the file at /plugins/EssentialsXMPP/config.yml</p>
+
<p>XMPP连接的配置文件在一个独立的文件夹中。你可以在/plugins/EssentialsXMPP/config.yml找到该文件 </p>
 
<pre>
 
<pre>
 
xmpp:
 
xmpp:
第48行: 第48行:
 
   password: 'password'
 
   password: 'password'
 
</pre>
 
</pre>
<p>The above is an example of the configuration settings needed to connect to the [http://jabber.org jabber.org] XMPP server.  There are a few more options, but generally you wont need to set up a service name or use a none standard port.  For your exact configuration settings you will need to check your XMPP provider.</p>
+
<p>上面是连接到XMPP[http://jabber.org jabber.org]服务器所需的配置设置的示例。还有其他选项,一般来说通常不需要设置服务名称或使用非标准端口。若想查看或编辑详细的配置,您需要使用XMPP提供的程序。</p>
 
===玩家记录===
 
===玩家记录===
<p>You can allow XMPP users to receive server information.</p>
+
<p>您可以允许XMPP用户接收服务器信息。</p>
 
<pre>
 
<pre>
 
log-enabled: true
 
log-enabled: true
第58行: 第58行:
 
</pre>
 
</pre>
 
<p>
 
<p>
The above example would allow the user with the XMPP address 'khobbits@gmail.com' to receive all server log information to be forwarded to their account.  The log level, is the minimum required level for which that should be forwarded to the user, values can be: info, warning, severe
+
上面的示例允许XMPP地址为“khobbits@gmail.com”的用户接收所有要转发到其帐户的服务器日志信息。日志级别是转发给用户的最低要求级别,这个值也可以是: info, warning, severe
 
</p>
 
</p>
 
===管理员用户===
 
===管理员用户===
<p>你可以允许 XMPP 用户发送指令到服务器 (they would need to be log users to actually see any output).</p>
+
<p>你可以允许 XMPP 用户发送指令到服务器 (他们必须登录才能看到全部的输出内容).</p>
 
<pre>
 
<pre>
 
op-users:
 
op-users:
第68行: 第68行:
 
<p>
 
<p>
 
以上例子允许 XMPP 地址为 'khobbits@gmail.com'的用户来发送指令到控制台.<br />
 
以上例子允许 XMPP 地址为 'khobbits@gmail.com'的用户来发送指令到控制台.<br />
一些客户端也许需要 a /say or /raw to use /commands properly, if the client intercepts this.
+
一些客户端也许需要 a /say or /raw to use /commands properly,if the client intercepts this.
 
</p>
 
</p>

2020年2月4日 (二) 07:36的最新版本

Extensible Messaging and Presence Protocol (XMPP) 是基于XML的面向消息中间件的开放标准通信协议. 该协议最初被命名为Jabbor.

除了明显的 'XMPP' 和 'Jabber' branded services, 也有一些使用 XMPP 或提供 XMPP bridges 或 gateways to their services的设备. Google Talk, Live journal and Ovi use XMPP, while Facebook chat allow XMPP connections to their service. There are also 3rd party gateway services between XMPP and MSN and Yahoo.

打算用XMPP来使用谷歌聊天的用户需要确保你已阅读关于XMPP的更改: https://www.fsf.org/blogs/sysadmin/google-backslides-on-federated-instant-messaging-on-purpose

现在有大量可以连接多个设备的的 XMPP客户端, 例如: iChat, Trillian, Miranda, fring, Adium, bitlbee, Pidgin和Digsby.

Essentials XMPP

Essentials XMPP 拓展为BukKIT服务器提供一种XMPP网关

玩家 XMPP

使用 XMPP 设备的玩家在游戏内可以设置他们的 XMPP 地址,这使其他玩家在他们没有连接到minecraft时也可以发送消息。

XMPP Spy

如果你对一个用户启用启用 XMPP spy, 这个玩家将会在XMPP账户上收到一份游戏内信息的副本,和其在线时收到的一致。

控制控制台

如果你允许一个帐户在XMPP使用命令,那么该用户将能够使用控制台命令(op),类似于直接在控制台中输入命令。

查看控制台

如果您注册了一个获取log的帐户,该帐户将收到具有匹配或更高警告级别的日志。这复制了您在直接查看控制台时看到的内容。

使用 XMPP

配置XMPP时,将为服务器创建一个新帐户,并将当前帐户与给定给服务器的帐户关联。在大多数服务中,这类似于将服务器添加到您的“好友列表”或“联系人列表”中。 虽然这个插件的两个主要用途是允许服务器管理员远程连接到服务器,但它也有助于鼓励服务器上的用户之间的联系。

设置账户

用户可以使用"/setxmpp <address>"注册自己的XMPP地址。用户可以注册任何与XMPP/Jabber兼容的帐户, 可以是专门为XMPP设置的帐户,或是提供jabber id的系统。 Facebook用户可以找到更多关于他们的XMPP服务in the site tour,但前提是其正确设置了自己的Facebook地址 /setxmpp <username>@chat.facebook.com. Gmail用户只需使用他们的Gmail地址。

发送消息给其他玩家

使用 "/xmpp <account> <message>" 给其他玩家发送消息, 使用该玩家的游戏内id.

Chat Spy

不是每一台支持XMPP的服务器都会启用xmpp spy,启用它会将所有游戏内聊天发送到XMPP帐户。这将允许用户通过服务器的XMPP地址发送聊天内容.

配置 XMPP

设置Essentials XMPP连接器非常简单,您需要创建一个XMPP帐户,并提供要使用的详细信息。

创建账户

在Essentials与用户进行通信之前,XMPP帐户首先需要设置一个帐户。有几种不同的方法可以使用,但是建议您专门为服务器创建一个帐户。

由于XMPP是开放协议,您可以在本地设置自己的XMPP服务器,或者使用ISP/Host提供的服务。只要服务器与一个公共XMPP节点连接,就可以使用其他XMPP服务与用户通信。

为了简单起见,在 Jabber.org创建一个免费帐户可能是最容易的.

配置文件

XMPP连接的配置文件在一个独立的文件夹中。你可以在/plugins/EssentialsXMPP/config.yml找到该文件

xmpp:
  sasl-enabled: true
  server: 'jabber.org'
  port: 5222
  user: 'khobbits@jabber.org'
  password: 'password'

上面是连接到XMPPjabber.org服务器所需的配置设置的示例。还有其他选项,一般来说通常不需要设置服务名称或使用非标准端口。若想查看或编辑详细的配置,您需要使用XMPP提供的程序。

玩家记录

您可以允许XMPP用户接收服务器信息。

log-enabled: true
log-level: info
log-users:
  - 'khobbits@gmail.com'

上面的示例允许XMPP地址为“khobbits@gmail.com”的用户接收所有要转发到其帐户的服务器日志信息。日志级别是转发给用户的最低要求级别,这个值也可以是: info, warning, severe

管理员用户

你可以允许 XMPP 用户发送指令到服务器 (他们必须登录才能看到全部的输出内容).

op-users:
  - 'khobbits@gmail.com'

以上例子允许 XMPP 地址为 'khobbits@gmail.com'的用户来发送指令到控制台.
一些客户端也许需要 a /say or /raw to use /commands properly,if the client intercepts this.