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

Version 4.4.2 #140

Merged
merged 25 commits into from
Jan 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
a491faf
Version 4.2.2
tastybento Jan 3, 2024
08df85f
Added protection against console error spam if island size is zero.
tastybento Jan 3, 2024
bcae4d9
Update README.md
tastybento Feb 5, 2024
9ed606e
Fix perm issue #120 (#121)
tastybento Feb 22, 2024
b344194
feat: detect mounted players on entity (#88)
emmanuelvlad Mar 21, 2024
a42808a
Version 4.3.0
tastybento May 6, 2024
dda6eb0
Changes to work with 1.20.6. Has backwards compatibility. (#125)
tastybento May 6, 2024
890c481
Merge branch 'master' into develop
tastybento May 6, 2024
b96d819
Fix imports
tastybento May 6, 2024
ae7ef33
Update zh-CN.yml (#127)
huguyt Jun 8, 2024
e00b2c9
Latvian translationa (#128)
gitlocalize-app[bot] Jun 8, 2024
aa8806a
Add explicit bordertype command (#130)
tastybento Jul 25, 2024
b0abf59
131 null to location (#132)
tastybento Jul 31, 2024
4a91752
If border is off, then don't move player back.
tastybento Sep 1, 2024
4b22a1d
Update to MC 1.21.3 and codemc updates (#134)
tastybento Nov 9, 2024
ace9200
Merge branch 'master' into develop
tastybento Nov 17, 2024
602b7d7
Version 4.4.1
tastybento Jan 1, 2025
6905c19
Improved operation when border is off (#136)
tastybento Jan 1, 2025
a472441
Merge branch 'master' into develop
tastybento Jan 1, 2025
8662495
Fix merge issue
tastybento Jan 1, 2025
c9092cc
Remove duplicate BlockListener class
tastybento Jan 1, 2025
363a2d4
Save meta data after setting (#138)
tastybento Jan 1, 2025
b027ce1
Save meta data (#139)
tastybento Jan 1, 2025
0c9acd3
Version 4.4.2
tastybento Jan 1, 2025
123c60d
Merge branch 'master' into develop
tastybento Jan 1, 2025
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: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<!-- Revision variable removes warning about dynamic version -->
<revision>${build.version}-SNAPSHOT</revision>
<!-- This allows to change between versions and snapshots. -->
<build.version>4.4.1</build.version>
<build.version>4.4.2</build.version>
<build.number>-LOCAL</build.number>
<!-- Sonar Cloud -->
<sonar.projectKey>BentoBoxWorld_Border</sonar.projectKey>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ public boolean execute(User user, String label, List<String> args) {
if (on) {
user.sendMessage("border.toggle.border-off");
user.putMetaData(BorderShower.BORDER_STATE_META_DATA, new MetaDataValue(false));
addon.getPlayers().savePlayer(user.getUniqueId());
addon.getBorderShower().hideBorder(user);
} else {
user.sendMessage("border.toggle.border-on");
user.putMetaData(BorderShower.BORDER_STATE_META_DATA, new MetaDataValue(true));
addon.getPlayers().savePlayer(user.getUniqueId());
if (island != null) {
addon.getBorderShower().showBorder(user.getPlayer(), island);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import org.bukkit.util.RayTraceResult;
import org.bukkit.util.Vector;

import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.api.events.island.IslandProtectionRangeChangeEvent;
import world.bentobox.bentobox.api.flags.Flag;
import world.bentobox.bentobox.api.metadata.MetaDataValue;
Expand Down Expand Up @@ -121,6 +122,8 @@ public void onPlayerRespawn(PlayerRespawnEvent e) {
private boolean isOn(Player player) {
// Check if border is off
User user = User.getInstance(player);
BentoBox.getInstance().logDebug("Border state meta data = "
+ user.getMetaData(BorderShower.BORDER_STATE_META_DATA).map(mtv -> mtv.asBoolean()).orElse(null));
return user.getMetaData(BorderShower.BORDER_STATE_META_DATA).map(MetaDataValue::asBoolean)
.orElse(addon.getSettings().isShowByDefault());

Expand Down
Loading