Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/junon-io/server/commands/ban.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ class Ban extends BaseCommand {
return true
}

isNonSandboxCommand() {
return true
}

isArgumentRequired() {
return true
}
Expand Down
5 changes: 5 additions & 0 deletions packages/junon-io/server/commands/caption.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ class Caption extends BaseCommand {
allowOwnerOnly() {
return true
}

isNonSandboxCommand() {
return true
}


isSubCommand(text) {
return ["title", "subtitle"].indexOf(text) !== -1
Expand Down
5 changes: 5 additions & 0 deletions packages/junon-io/server/commands/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ class Chat extends BaseCommand {
allowOwnerOnly() {
return true
}

isNonSandboxCommand() {
return true
}


perform(caller, args) {
let row
Expand Down
4 changes: 4 additions & 0 deletions packages/junon-io/server/commands/dialogue.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ class Dialogue extends BaseCommand {
return true
}

isNonSandboxCommand() {
return true
}

perform(player, args) {
let subcommand = args[0]
let text
Expand Down
4 changes: 4 additions & 0 deletions packages/junon-io/server/commands/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ class Limit extends BaseCommand {
return true
}

isNonSandboxCommand() {
return true
}

perform(caller, args) {
const subcommand = args[0]
let buildingName = this.sector.klassifySnakeCase(args[1] || "")
Expand Down
4 changes: 4 additions & 0 deletions packages/junon-io/server/commands/mute.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ class Mute extends BaseCommand {
return true
}

isNonSandboxCommand() {
return true
}

perform(caller, args) {
const selector = args[0]

Expand Down
4 changes: 4 additions & 0 deletions packages/junon-io/server/commands/name.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ class Name extends BaseCommand {
]
}

isNonSandboxCommand() {
return true
}

allowOwnerOnly() {
return true
}
Expand Down
4 changes: 4 additions & 0 deletions packages/junon-io/server/commands/region.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ class RegionCommand extends BaseCommand {
]
}

isNonSandboxCommand() {
return true
}

getAllowedFlags() {
return ["build", "pvp", "map_label", "restrict", "priority"]
}
Expand Down
4 changes: 4 additions & 0 deletions packages/junon-io/server/commands/role.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ class Role extends BaseCommand {
return true
}

isNonSandboxCommand() {
return true
}

perform(player, args) {
let selector = args[0]

Expand Down
4 changes: 4 additions & 0 deletions packages/junon-io/server/commands/score.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ class Score extends BaseCommand {
return true
}

isNonSandboxCommand() {
return true
}

perform(caller, args) {
let subcommand = args[0]
const username = args[1]
Expand Down
4 changes: 4 additions & 0 deletions packages/junon-io/server/commands/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ class Sidebar extends BaseCommand {
]
}

isNonSandboxCommand() {
return true
}

perform(caller, args) {
let selector = args[0]
let subcommand
Expand Down
4 changes: 4 additions & 0 deletions packages/junon-io/server/commands/suitcolor.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ class SuitColor extends BaseCommand {
return true
}

isNonSandboxCommand() {
return true
}

getAvailableSuitColors() {
return ["gray", "red", "green", "blue", "orange", "purple", "yellow", "black"]
}
Expand Down
4 changes: 4 additions & 0 deletions packages/junon-io/server/commands/team.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ class Team extends BaseCommand {
return true
}

isNonSandboxCommand() {
return true
}

perform(player, args) {
let name
let playerName
Expand Down
4 changes: 4 additions & 0 deletions packages/junon-io/server/commands/timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ class Timer extends BaseCommand {
return true
}

isNonSandboxCommand() {
return true
}

perform(caller, args) {
let subcommand = args[0]
let name
Expand Down
4 changes: 4 additions & 0 deletions packages/junon-io/server/commands/unmute.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ class Unmute extends BaseCommand {
return true
}

isNonSandboxCommand() {
return true
}

perform(caller, args) {
const selector = args[0]

Expand Down
4 changes: 4 additions & 0 deletions packages/junon-io/server/commands/variable.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ class Variable extends BaseCommand {
return true
}

isNonSandboxCommand() {
return true
}

getReservedVariableNames() {
return {
"player": true,
Expand Down
4 changes: 4 additions & 0 deletions packages/junon-io/server/commands/wait.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ class Wait extends BaseCommand {
return true
}

isNonSandboxCommand() {
return true
}

isDelayable() {
return false
}
Expand Down