Skip to content
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
4 changes: 4 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ deploy webhooks to print changelog successfully

That's all, matcher will stop when detects next line started with `###` match

### 5.1.1 Release
* Fixed liquid flow outside plots and different worlds
* Fixed forceplay console command without theme

### 5.1.0 Release (10.07.2025)
* Added Heads from HeadDatabase (selected on each server start 200 per category)
* Added Heads Search function
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<groupId>plugily.projects</groupId>
<artifactId>buildbattle</artifactId>
<version>5.1.0</version>
<version>5.1.0-SNAPSHOT1</version>
<name>BuildBattle</name>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -596,11 +596,14 @@ public void onWaterFlowEvent(BlockFromToEvent event) {
continue;
}
for(Plot buildPlot : ((BaseArena) arena).getPlotManager().getPlots()) {
if(buildPlot.getTeleportLocation().getWorld() != toBlock.getWorld()) {
continue;
}
if(buildPlot.getCuboid() != null) {
if(!buildPlot.getCuboid().isIn(toBlock) && buildPlot.getCuboid().isIn(blockLoc)) {
event.setCancelled(true);
}
if(!buildPlot.getCuboid().isIn(toBlock)) {
if(!buildPlot.getCuboid().isInWithMarge(toBlock, -1) && buildPlot.getCuboid().isIn(toBlock)) {
event.setCancelled(true);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,29 +48,33 @@ public ForcePlayArgument(ArgumentsRegistry registry) {
@Override
public void execute(CommandSender sender, String[] args) {
if(args.length == 1) {
//todo translatable
new MessageBuilder("&cPlease type arena theme!").prefix().send(sender);
return;
}
BaseArena arena;
int themeArgStart = 1;
if(!(sender instanceof Player)) {
if(args.length == 2) {
//todo translatable
new MessageBuilder("&cPlease type arena name!").prefix().send(sender);
arena = (BaseArena) registry.getPlugin().getArenaRegistry().getArena(args[1]);
if(args.length == 2 && arena != null) {
BaseArena finalArena = arena;
Bukkit.getOnlinePlayers().forEach(player -> {
registry.getPlugin().getArenaManager().joinAttempt(player, finalArena);
});
arena.setForceStart(true);
return;
}
arena = (BaseArena) registry.getPlugin().getArenaRegistry().getArena(args[1]);
themeArgStart = 2;
} else {
arena = (BaseArena) registry.getPlugin().getArenaRegistry().getArena((Player) sender);
if(arena == null) {
arena = (BaseArena) registry.getPlugin().getArenaRegistry().getArena(args[1]);
}
}
if(arena == null) {
new MessageBuilder("COMMANDS_NOT_PLAYING").asKey().send(sender);
return;
}
if(!(arena instanceof BuildArena)) {
//todo translatable
new MessageBuilder("&cCan't set theme on this arena type!").prefix().send(sender);
return;
}
Expand All @@ -83,8 +87,9 @@ public void execute(CommandSender sender, String[] args) {
new MessageBuilder("COMMANDS_THEME_BLACKLISTED").asKey().prefix().send(sender);
return;
}
BaseArena finalArena1 = arena;
Bukkit.getOnlinePlayers().forEach(player -> {
registry.getPlugin().getArenaManager().joinAttempt(player, arena);
registry.getPlugin().getArenaManager().joinAttempt(player, finalArena1);
});
arena.setForceStart(true);
arena.setTheme(themeName.toString());
Expand Down