Skip to content

Commit

Permalink
Minecraftでの実験で今のところエラー無し
Browse files Browse the repository at this point in the history
  • Loading branch information
gamelist1990 committed Sep 11, 2023
1 parent 51be6e7 commit 912b52b
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/commands/settings/removecommandblocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { ChatSendAfterEvent, Player } from "@minecraft/server";
import config from "../../data/config.js";
import { dynamicPropertyRegistry } from "../../penrose/WorldInitializeAfterEvent/registry.js";
import { getPrefix, sendMsg, sendMsgToPlayer } from "../../util.js";
import { ScaffoldA } from "../../penrose/BlockPlaceAfterEvent/scaffold/scaffold_a.js";
import { ScoreManager } from "../../classes/ScoreManager.js";

function removeCBEHelp(player: Player, prefix: string, commandblocksscore: number) {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/utility/fullreport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async function handleFullReport(message: ChatSendAfterEvent, args: string[]) {
let divider = false;
ScoreManager.allscores.forEach((objective) => {
vlCount++;
const score = ScoreManager.ScoreManager.getscore(objective, member);
const score = ScoreManager.getScore(objective, member);
if (score > 0) {
violationsFound++;
if (violationsFound === 1) {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/utility/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async function handleStats(message: ChatSendAfterEvent, args: string[]) {
let divider = false;
ScoreManager.allscores.forEach((objective) => {
vlCount++;
const score = ScoreManager.ScoreManager.getscore(objective, member);
const score = ScoreManager.getScore(objective, member);
if (score > 0) {
violationsFound++;
if (violationsFound === 1) {
Expand Down
2 changes: 1 addition & 1 deletion src/gui/moderation/uiStats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function uiSTATS(statsResult: ModalFormResponse, onlineList: string[], pl
}

allObjectives.forEach((objective) => {
const score = ScoreManager.ScoreManager.getscore(objective, member);
const score = ScoreManager.getScore(objective, member);
if (score > 0) {
reportBody.push(`§f§4[§6${objective.replace("vl", "").toUpperCase()}§4]§f number of Violations: ${score}\n`);
}
Expand Down
2 changes: 1 addition & 1 deletion src/penrose/TickEvent/ban/autoban.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function autoban(id: number) {
return;
}
scores.forEach((score) => {
const playerScore = ScoreManager.ScoreManager.getscore(score, player);
const playerScore = ScoreManager.getScore(score, player);
if (playerScore > 1000) {
const reReason = score.replace("vl", "").toUpperCase() + " 検知内容=>: " + playerScore;
return rip(player, reReason);
Expand Down
2 changes: 1 addition & 1 deletion src/penrose/TickEvent/ban/serverban.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function serverban() {
//clear violations
const scores = ScoreManager.allscores;
scores.forEach((objective) => {
const score = ScoreManager.ScoreManager.getscore(objective, player);
const score = ScoreManager.getScore(objective, player);
//if the player has a violation then we reset the score.
if (score > 0) {
//reset the score
Expand Down

0 comments on commit 912b52b

Please sign in to comment.