Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
fix: slight format
Browse files Browse the repository at this point in the history
  • Loading branch information
Mantou1233 authored May 27, 2022
1 parent c0a924f commit 03b7fa3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/system/level.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ export const levelTable = new ScoreboardDB("level");
* @param {Minecraft.Player} player 玩家
*/
export function LevelSystem(player) {

if (enables.getData("level") == 1) { return logfor(player, ">> §c無法使用,此功能已被禁用") };
if (enables.getData("level") == 1) return logfor(player, ">> §c無法使用,此功能已被禁用");

let level = levelTable.getScore(player.name);
let exp = expTable.getScore(player.name);

if (level == null) { level = "0" };
if (level == null) level = "0";

let fm = new ui.ActionFormData();
fm.title(`等級系統`);
Expand Down

0 comments on commit 03b7fa3

Please sign in to comment.