Rename Slave to Host

The role of a slave as a host for Factorio servers is not well reflected
in its name and has caused confusion among users.  Rename slave to host
to better reflect its role as a host of Factorio servers.
This commit is contained in:
Hornwitser committed 2023-02-22 15:30:51 +01:00
1 parent 70ad295a89
commit 6fc3abafd5
101 files changed
+1168 -1168

No files matched your search

+1 -1
View File
@@ -10,4 +10,4 @@ Run the following commands in the folder Clusterio is installed to:
npm install @clusterio/plugin-global_chat
npx clusteriocontroller plugin add @clusterio/plugin-global_chat
Substitute clusteriocontroller with clusterioslave or clusterioctl if this a dedicate slave or ctl installation respectively.
Substitute clusteriocontroller with clusteriohost or clusterioctl if this a dedicate host or ctl installation respectively.
+1 -1
View File
@@ -11,7 +11,7 @@ module.exports = {
messages: {
chat: new libLink.Event({
type: "global_chat:chat",
links: ["instance-slave", "slave-controller", "controller-slave", "slave-instance", "control-controller"],
links: ["instance-host", "host-controller", "controller-host", "host-instance", "control-controller"],
forwardTo: "controller",
broadcastTo: "instance",
eventProperties: {
+1 -1
View File
@@ -45,7 +45,7 @@ class InstancePlugin extends libPlugin.BaseInstancePlugin {
async onOutput(output) {
if (output.type === "action" && output.action === "CHAT") {
if (this.slave.connector.connected) {
if (this.host.connector.connected) {
this.sendChat(output.message);
} else {
this.messageQueue.push(output.message);
+1 -1
View File
@@ -24,7 +24,7 @@ describe("global_chat plugin", function() {
let instancePlugin;
before(async function() {
instancePlugin = new instance.InstancePlugin(info, new mock.MockInstance(), new mock.MockSlave());
instancePlugin = new instance.InstancePlugin(info, new mock.MockInstance(), new mock.MockHost());
await instancePlugin.init();
});