Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyfts committed Oct 31, 2023
1 parent 5c2da91 commit ba99e3e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/serverutils/command/CmdDumpPermissions.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import java.util.Arrays;
import java.util.List;

import net.minecraft.client.Minecraft;
import net.minecraft.command.ICommandSender;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.ChatComponentTranslation;
import net.minecraft.util.IChatComponent;
Expand Down Expand Up @@ -40,9 +40,7 @@ public CmdDumpPermissions() {

@Override
public void processCommand(ICommandSender sender, String[] args) {
File permFile = new File(
Minecraft.getMinecraft().mcDataDir,
ServerUtilities.SERVER_FOLDER + "all_permissions.txt");
File permFile = MinecraftServer.getServer().getFile(ServerUtilities.SERVER_FOLDER + "all_permissions.txt");
List<NodeEntry> permNodes = new ArrayList<>(ServerUtilitiesCommon.CUSTOM_PERM_PREFIX_REGISTRY);
FileUtils.delete(permFile);

Expand Down

0 comments on commit ba99e3e

Please sign in to comment.