Skip to content

Commit

Permalink
[Build] changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Josscoder committed Jan 1, 2023
1 parent fcddab3 commit 53d269d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import com.denzelcode.form.FormAPI;
import lombok.Getter;
import me.iwareq.scoreboard.ScoreboardAPI;
import me.josscoder.jessentials.command.LobbySelectorCommand;
import me.josscoder.jessentials.utils.lobby.LobbySelectorCommand;
import me.josscoder.jessentials.utils.customitem.ItemManager;
import me.josscoder.jessentials.utils.lobby.LobbyCommand;
import me.josscoder.jessentials.utils.lobby.LobbyManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public boolean execute(CommandSender sender, String label, String[] args) {
manager.reloadFromConfig();
sender.sendMessage(TextFormat.AQUA + "Lobby reloaded successfully!");
break;
case "allowselector":
case "toggleselector":
boolean allow = !manager.isAllowSelector();
manager.setAllowSelector(allow);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.josscoder.jessentials.command;
package me.josscoder.jessentials.utils.lobby;

import cn.nukkit.Player;
import cn.nukkit.command.Command;
Expand All @@ -21,7 +21,7 @@ public LobbySelectorCommand() {

@Override
public boolean execute(CommandSender sender, String label, String[] args) {
if (!(sender instanceof Player)) return false;
if (!(sender instanceof Player) || LobbyManager.getInstance().isAllowSelector()) return false;
Player player = (Player) sender;

SimpleWindowForm windowForm = new SimpleWindowForm("Lobby Selector");
Expand Down

0 comments on commit 53d269d

Please sign in to comment.