@zardoy/flying-squid 0.0.76 → 0.0.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -104,6 +104,7 @@ const server = function (serv, { version }) {
104
104
  });
105
105
  serv.commands.add({
106
106
  base: 'fill',
107
+ op: true,
107
108
  info: 'Fills a region with a specific block',
108
109
  usage: '/fill <from> <to> <block>', // todo impl destroy|hollow|keep|outline|replace filter
109
110
  parse(string, ctx) {
@@ -136,6 +137,7 @@ const server = function (serv, { version }) {
136
137
  serv.commands.add({
137
138
  base: 'testforblock',
138
139
  info: '',
140
+ op: true,
139
141
  usage: '/testforblock',
140
142
  tab: ['blockX', 'blockY', 'blockZ', 'block'],
141
143
  parse(string, ctx) {
@@ -49,6 +49,7 @@ const server = function (serv, { version }) {
49
49
  serv.commands.add({
50
50
  base: 'title',
51
51
  info: 'show title',
52
+ op: true,
52
53
  usage: '/title <targets> (title|subtitle|actionBar) <title>',
53
54
  parse(str) {
54
55
  const match = str.match(/([A-Za-z0-9]+( [A-Za-z0-9]+)+) ^(title|subtitle|actionBar)$ \{[^}]*\}/i);
@@ -86,7 +87,7 @@ const server = function (serv, { version }) {
86
87
  usage: '/ping [number]',
87
88
  action(params, ctx) {
88
89
  const num = params[0] * 1 + 1;
89
- let str = 'pong';
90
+ let str = 'Pong';
90
91
  if (!isNaN(num))
91
92
  str += ' [' + num + ']';
92
93
  if (ctx.player)
@@ -122,7 +123,7 @@ const server = function (serv, { version }) {
122
123
  info: 'to bug report',
123
124
  usage: '/bug',
124
125
  action() {
125
- return 'Report bugs or issues here: https://github.com/PrismarineJS/flying-squid/issues';
126
+ return 'Report bugs or issues here: https://github.com/zardoy/flying-squid/issues';
126
127
  }
127
128
  });
128
129
  serv.commands.add({
@@ -234,7 +235,7 @@ const server = function (serv, { version }) {
234
235
  base: 'me',
235
236
  info: 'Displays a message about yourself',
236
237
  usage: '/me <message>',
237
- op: false,
238
+ op: true,
238
239
  parse(params) {
239
240
  return params || false;
240
241
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zardoy/flying-squid",
3
3
  "description": "A minecraft server written in TS",
4
- "version": "0.0.76",
4
+ "version": "0.0.77",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "bin": "dist/app.js",