Skip to content

Added the ability to disable non-player markers#9048

Closed
poonkje112 wants to merge 5 commits into
PaperMC:masterfrom
poonkje112:feature/map-markers
Closed

Added the ability to disable non-player markers#9048
poonkje112 wants to merge 5 commits into
PaperMC:masterfrom
poonkje112:feature/map-markers

Conversation

@poonkje112
Copy link
Copy Markdown

Fix #8464

@poonkje112 poonkje112 requested a review from a team as a code owner March 26, 2023 02:33
Comment thread patches/server/0969-Added-the-ability-to-disable-non-player-map-markers.patch Outdated
Comment thread patches/server/0969-Added-the-ability-to-disable-non-player-map-markers.patch Outdated
@poonkje112 poonkje112 force-pushed the feature/map-markers branch from a653e17 to 3a65345 Compare March 28, 2023 23:00
// If this cursor is for a player check visibility with vanish system
org.bukkit.entity.Player other = org.bukkit.Bukkit.getPlayerExact(name); // Spigot
if (other == null || player.canSee(other)) {
+ if(!io.papermc.paper.configuration.GlobalConfiguration.get().misc.showMapMarkers && mapIcon.getType() != MapDecoration.Type.PLAYER) return; // Paper - Configurable map markers
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will also need to be added to the CraftMapRenderer class

@Warriorrrr Warriorrrr moved this from Changes required to Waiting For Author in Paper PR Queue Mar 5, 2025
@kennytv kennytv added the pre-softspoon: never rebased Pre-hardfork pull requests that were not re-opened with the new main branch label Mar 23, 2025
@kennytv kennytv deleted the branch PaperMC:master March 23, 2025 19:15
@kennytv kennytv closed this Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pre-softspoon: never rebased Pre-hardfork pull requests that were not re-opened with the new main branch pre-softspoon

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

remove the green markers from maps (if it possible)

5 participants