Skip to content

Commit

Permalink
Im starting to fall aslreep
Browse files Browse the repository at this point in the history
  • Loading branch information
cjburkey01 committed Aug 20, 2024
1 parent e404227 commit 16fef8c
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/cjburkey/claimchunk/ClaimChunk.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.cjburkey.claimchunk;

import com.cjburkey.claimchunk.access.CCInteractClasses;
import com.cjburkey.claimchunk.access.CCPermFlags;
import com.cjburkey.claimchunk.api.IClaimChunkPlugin;
import com.cjburkey.claimchunk.api.layer.ClaimChunkLayerHandler;
import com.cjburkey.claimchunk.chunk.*;
Expand All @@ -11,6 +9,8 @@
import com.cjburkey.claimchunk.data.newdata.*;
import com.cjburkey.claimchunk.data.sqlite.SqLiteDataHandler;
import com.cjburkey.claimchunk.event.*;
import com.cjburkey.claimchunk.flag.CCInteractClasses;
import com.cjburkey.claimchunk.flag.CCPermFlags;
import com.cjburkey.claimchunk.gui.CCGuiHandler;
import com.cjburkey.claimchunk.i18n.V2JsonMessages;
import com.cjburkey.claimchunk.layer.PlaceholderInitLayer;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.cjburkey.claimchunk.access;
package com.cjburkey.claimchunk.flag;

import org.jetbrains.annotations.NotNull;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.cjburkey.claimchunk.access;
package com.cjburkey.claimchunk.flag;

import com.cjburkey.claimchunk.config.ClaimChunkWorldProfileHandler;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.cjburkey.claimchunk.access;
package com.cjburkey.claimchunk.flag;

import com.cjburkey.claimchunk.ClaimChunk;
import com.cjburkey.claimchunk.Utils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ public abstract class CCSubCommand extends SmartSubCommand implements TabComplet
// allow multiple permissions here too
public CCSubCommand(
@NotNull ClaimChunk claimChunk,
@NotNull Executor executorLevel,
@NotNull Executor executor,
boolean isDefault,
String... permissionChildren) {
super(
executorLevel,
executor,
(claimChunk.getConfigHandler().getDisablePermissions() && isDefault)
? new String[0]
: Arrays.stream(permissionChildren)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ public ClaimChunkBaseCommand(ClaimChunk claimChunk) {

// Player commands
registerCmds(
// TODO:
// `/chunk access`
new CommandStr(new AccessCmd(claimChunk), "access"),
// `/chunk checkaccess`
new CommandStr(new CheckAccessCmd(claimChunk), "checkaccess"),
// `/chunk revokeaccess`
new CommandStr(new RevokeAccessCmd(claimChunk), "revokeaccess"),

// `/chunk alert`
new CommandStr(new AlertCmd(claimChunk), "alert"),
// `/chunk auto`
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.cjburkey.claimchunk.smartcommand.sub.ply.flags;

import claimchunk.dependency.de.goldmensch.commanddispatcher.Executor;

import com.cjburkey.claimchunk.ClaimChunk;
import com.cjburkey.claimchunk.smartcommand.CCSubCommand;

import org.jetbrains.annotations.NotNull;

public abstract class CmdAddPermFlag extends CCSubCommand {

public CmdAddPermFlag(@NotNull ClaimChunk claimChunk) {
super(claimChunk, Executor.PLAYER, true, "player", "access");
}

// TODO: MAKE GENERAL FORM AND 4 IMPLEMENTORS

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import static org.junit.jupiter.api.Assertions.assertEquals;

import com.cjburkey.claimchunk.access.CCInteractClasses;
import com.cjburkey.claimchunk.flag.CCInteractClasses;

import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.EntityType;
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/com/cjburkey/claimchunk/PermFlagTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import static org.junit.jupiter.api.Assertions.assertEquals;

import com.cjburkey.claimchunk.access.CCFlags;
import com.cjburkey.claimchunk.access.CCInteractClasses;
import com.cjburkey.claimchunk.access.CCPermFlags;
import com.cjburkey.claimchunk.flag.CCFlags;
import com.cjburkey.claimchunk.flag.CCInteractClasses;
import com.cjburkey.claimchunk.flag.CCPermFlags;

import org.bukkit.configuration.file.YamlConfiguration;
import org.junit.jupiter.api.Test;
Expand Down

0 comments on commit 16fef8c

Please sign in to comment.