Skip to content

Commit

Permalink
Fixed removeblock command
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigerpanzer02 committed Aug 2, 2023
1 parent 4424632 commit 9f14e3f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repositories {
}

dependencies {
implementation("plugily.projects:MiniGamesBox-Classic:1.2.0-SNAPSHOT31") { isTransitive = false }
implementation("plugily.projects:MiniGamesBox-Classic:1.2.0-SNAPSHOT43") { isTransitive = false }
compileOnly("org.spigotmc:spigot-api:1.19.3-R0.1-SNAPSHOT")
compileOnly("io.papermc.paper:paper-api:1.19.3-R0.1-SNAPSHOT")
compileOnly("org.jetbrains:annotations:24.0.1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ public void execute(CommandSender sender, String[] args) {
|| targetBlock.getType() == XMaterial.ENCHANTING_TABLE.parseMaterial()) {
for(PluginArena arena : registry.getPlugin().getArenaRegistry().getArenas()) {

Arena pluginArena =
(Arena) registry.getPlugin().getArenaRegistry().getArena(player);
Arena pluginArena = (Arena) registry.getPlugin().getArenaRegistry().getArena(arena.getId());
if(arena == null) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
public class RoleSelectorArgument implements Listener {

public RoleSelectorArgument(ArgumentsRegistry registry) {
registry.mapArgument("murdermystery", new LabeledCommandArgument("roleselector", "murdermystery.roleselector", CommandArgument.ExecutorType.PLAYER,
new LabelData("/mm roleselector", "/mm roleselector", "&7Select a role\n&6Permission: &7murdermystery.roleselector")) {
registry.mapArgument("murdermystery", new LabeledCommandArgument("roleselector", "murdermystery.command.roleselector", CommandArgument.ExecutorType.PLAYER,
new LabelData("/mm roleselector", "/mm roleselector", "&7Select a role\n&6Permission: &7murdermystery.command.roleselector")) {
@Override
public void execute(CommandSender sender, String[] args) {
Player player = (Player) sender;
Expand Down

0 comments on commit 9f14e3f

Please sign in to comment.