Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publish: fuji v6.1.0 #226

Merged
merged 4 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
> The version number of fuji follows `semver` now: https://semver.org/

Bump the `fuji v6.0.0` version for `mc1.21.4`.

- feature: add wildcard to anti_build (resolves #224, thanks for @phaldan)
3 changes: 3 additions & 0 deletions docs/chapters/module/anti_build/anti_build.tex
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@
\cmd{/lp user \player permission set fuji.anti\_build.place\_block.bypass.minecraft:tnt}
\end{example}

\begin{example}{Ban to place any kind of block}
add * into place\_block list
\end{example}

Binary file modified docs/release/fuji.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ org.gradle.parallel=true
# project
maven_group=io.github.sakurawald
mod_id=fuji
mod_version=6.0.0
mod_version=6.1.0

# loader
minecraft_version=1.21.4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class AntiBuildInitializer extends ModuleInitializer {
public static final BaseConfigurationHandler<AntiBuildConfigModel> config = new ObjectConfigurationHandler<>(BaseConfigurationHandler.CONFIG_JSON, AntiBuildConfigModel.class);

public static <T> void checkAntiBuild(PlayerEntity player, String antiType, Set<String> ids, String id, CallbackInfoReturnable<T> cir, T cancelWithValue, Supplier<Boolean> shouldSendFeedback) {
if (ids.contains(id)
if ((ids.contains(id) || ids.contains("*"))
&& !PermissionHelper.hasPermission(player.getUuid(), "fuji.anti_build.%s.bypass.%s".formatted(antiType, id))
) {
if (shouldSendFeedback.get()) {
Expand Down
Loading