FaithBreak

FaithBreak

A thoughtful plugin that auto detects prayer times based on locations and gently reminds players!

17 349 downloads
13 followers

๐Ÿ•Œ FaithBreak v1.5.0 โ€” Admin Controls & Configurable Breaks! ๐Ÿ›ก๏ธ

๐ŸŒŸ Join Our Discord for Giveaways & Events! ๐ŸŽฎ

Join our Discord Server ๐Ÿ”— for monthly giveaways & events where you can win coupon codes or plugins like AstralSwords Premium or TrimBlades! ๐ŸŽจ๐Ÿš€


Warriors of faith, v1.5.0 is here with Force Kick Mode for server admins and a configurable break duration! Full admin control over prayer enforcement, plus the flexibility to set your own break time. ๐Ÿš€


โœจ What's New in v1.5.0 โœจ

๐ŸŽฏ Major Improvements

  • feat: ๐Ÿ”’ FORCE KICK MODE โ€” New config option for admins! When enabled, ALL opted-in players are kicked during prayer times โ€” even those in Reminder Mode. Players who used /non-muslim are still respected.
  • feat: โฑ๏ธ CONFIGURABLE BREAK DURATION โ€” Admins can now set the prayer break length in minutes via break-duration in config. Minimum: 12 minutes, no upper limit!
  • feat: โš ๏ธ SMART WARNINGS โ€” Players who try to select Reminder Mode while Force Kick is active get a clear warning that they'll still be kicked.
  • fix: ๐Ÿงน CODE CLEANUP โ€” Cleaned up redundant kick logic in the non-Middle-Eastern player path for better reliability.

๐Ÿ†• New Config Options

Option Default Description
force-kick-mode false When true, overrides Reminder Mode โ†’ Kick for all players
break-duration 12 Prayer break duration in minutes (min: 12)

๐Ÿ“‹ Full Feature List ๐Ÿ“‹

๐ŸŽฎ Player Modes

Mode What Happens Command
๐Ÿ”ด Kick Mode (Default) Kicked from server during prayer time /muslim kick
๐ŸŸก Reminder Mode Chat reminder only โ€” no kick! /muslim reminder
๐ŸŸข Opt-Out Nothing happens โ€” fully opted out /non-muslim

โš ๏ธ If the server has Force Kick Mode enabled, Reminder Mode players will still be kicked. Opt-Out players are always respected.


๐Ÿ” What Does FaithBreak Do?

FaithBreak helps players take breaks during prayer times:

  • ๐ŸŒ Smart Location Detection: Automatically detects each player's location based on their IP
  • ๐Ÿ•ฐ๏ธ Prayer Time Awareness: Calculates accurate prayer times for each player's specific location
  • โฑ๏ธ Timely Reminders: Two minutes before prayer time, players are kicked or reminded
  • โณ Configurable Break: Kicked players can't rejoin for the configured duration (default: 12 min)
  • ๐ŸŒ Multi-Language Magic: Messages automatically appear in each player's Minecraft language!
  • ๐ŸŽฏ Player Choice: Choose between Kick Mode, Reminder Mode, or Opt-Out โ€” saved permanently!
  • ๐Ÿ”’ Admin Override: Server admins can force kick mode globally via config

๐Ÿ’ป Commands

Player Commands

Command Description
/muslim Opt in with Kick Mode (default)
/muslim kick Set mode to Kick โ€” kicked during prayer times
/muslim reminder Set mode to Reminder โ€” chat alerts only, no kick
/non-muslim Opt out of all prayer kicks and reminders (saved permanently!)
/fb lang View current language and available options
/fb lang <code> Change your language (e.g., /fb lang ar_SA)

Admin Commands (OP only)

Command Description
/fb kick <prayer> Test the kick screen without the break timer

๐Ÿ’ก Tab Completions: All commands support tab completion! Type /muslim and press Tab to see kick and reminder suggestions.


๐ŸŒ Supported Languages (10 Total!)

  • ๐Ÿ‡ฌ๐Ÿ‡ง English (en_US)
  • ๐Ÿ‡ธ๐Ÿ‡ฆ Arabic (ar_SA) - ุงู„ุนุฑุจูŠุฉ
  • ๐Ÿ‡ต๐Ÿ‡ฐ Urdu (ur_PK) - ุงุฑุฏูˆ
  • ๐Ÿ‡ช๐Ÿ‡ธ Spanish (es_ES) - Espaรฑol
  • ๐Ÿ‡ซ๐Ÿ‡ท French (fr_FR) - Franรงais
  • ๐Ÿ‡ฎ๐Ÿ‡ฉ Indonesian (id_ID) - Bahasa Indonesia
  • ๐Ÿ‡ฎ๐Ÿ‡ณ Hindi (hi_IN) - เคนเคฟเคจเฅเคฆเฅ€
  • ๐Ÿ‡ฉ๐Ÿ‡ช German (de_DE) - Deutsch
  • ๐Ÿ‡ต๐Ÿ‡ฑ Polish (pl_PL) - Polski
  • ๐Ÿ‡ณ๐Ÿ‡ฑ Dutch (nl_NL) - Nederlands

๐Ÿ’ก Server Owners: Add more languages by creating [code].yml files in plugins/FaithBreak/messages/!


๐Ÿ“‹ Features in Detail

๐Ÿ”” What Happens During Prayer Time?

For Players in Kick Mode (Default):

  1. 2 minutes before prayer โ†’ kicked from server
  2. See localized message with prayer name + mode info
  3. Kick screen shows how to switch to Reminder Mode or Opt-Out
  4. Can rejoin after the configured break duration

For Players in Reminder Mode:

  1. 2 minutes before prayer โ†’ receive a chat reminder
  2. Message: "โฐ Reminder: It's [Prayer] prayer time!"
  3. No kick โ€” keep playing!

โš ๏ธ If force-kick-mode: true is set in config, Reminder Mode players are kicked instead.

For Opted-Out Players:

  • Nothing happens โ€” fully invisible to the prayer system

๐ŸŽฎ Choosing Your Mode

Want to be kicked for prayer? (Strict enforcement)

/muslim kick

Want chat reminders only? (No kick)

/muslim reminder

๐Ÿšซ Don't Want Prayer Notifications?

Use /non-muslim to opt out:

  • You won't receive kicks or reminders
  • Your choice is saved permanently!
  • Switch back anytime with /muslim

๐Ÿ”’ Privacy First

By default, FaithBreak does NOT log player locations to console:

  • No more "Player X location detected: Country, City" spam
  • Enable log-player-locations: true in config only if needed

๐Ÿงช Test Mode for Admins

Want to see what players see when kicked?

/fb kick Fajr
  • Shows the exact kick screen with mode info
  • No break timer โ€” rejoin immediately!

๐Ÿ“ธ What Players See

English Player (Kick Screen)

It's Fajr prayer time! Please take a break.
You can rejoin in 12 minutes.

You are in Kick Mode. Type /muslim reminder for chat-only alerts.
Not Muslim? Type /non-muslim to opt out.
(Your choice is saved permanently and survives restarts)

Learn More: https://modrinth.com/plugin/faithbreak

English Player (Reminder Mode โ€” Chat Message)

โฐ Reminder: It's Fajr prayer time!
(You are in Reminder Mode. Use /muslim kick to enable strict kicking)

English Player (Reminder Mode โ€” Force Kick Active)

ยงaYou have opted in to ยงeReminder Modeยงa.
ยงcโš  Note: The server has Force Kick Mode enabled. You will still be kicked.

Arabic Player (Kick Screen)

ุญุงู† ูˆู‚ุช ุตู„ุงุฉ ุงู„ูุฌุฑ! ูŠุฑุฌู‰ ุฃุฎุฐ ุงุณุชุฑุงุญุฉ.
ูŠู…ูƒู†ูƒ ุงู„ุนูˆุฏุฉ ุจุนุฏ 12 ุฏู‚ูŠู‚ุฉ.

You are in Kick Mode. Type /muslim reminder for chat-only alerts.
Not Muslim? Type /non-muslim to opt out.
(Your choice is saved permanently and survives restarts)

ู…ุนุฑูุฉ ุงู„ู…ุฒูŠุฏ: https://modrinth.com/plugin/faithbreak

โš™๏ธ Configuration

# config.yml
debug-mode: false              # Detailed debug logging
log-player-locations: false    # Log player country/city (default: OFF)

# Force Kick Mode โ€” override Reminder Mode โ†’ Kick for all players
# Players who used /non-muslim (Opt-Out) are still ignored
force-kick-mode: false

# Prayer break duration in minutes (minimum: 12)
break-duration: 12

โ“ Frequently Asked Questions

Q: What's the difference between Kick Mode and Reminder Mode?
A: Kick Mode removes you from the server for the configured break duration during prayer. Reminder Mode sends you a chat message but lets you keep playing.

Q: What is Force Kick Mode?
A: It's a server-side config option (force-kick-mode: true). When enabled, ALL opted-in players are kicked โ€” even those who chose Reminder Mode. Only /non-muslim players are excluded.

Q: Can I change the break duration?
A: Yes! Server admins can set break-duration in config.yml to any value โ‰ฅ 12 minutes.

Q: Will my mode choice be remembered after I log off?
A: Yes! Your mode (Kick/Reminder/Opt-Out) is saved permanently to playerdata.yml.

Q: I was using /non-muslim from the old version โ€” will my data be lost?
A: No! FaithBreak automatically migrates your old optout.yml data to the new system.

Q: Is my location logged to console?
A: Not by default! Location logging is OFF unless the server admin enables log-player-locations in config.

Q: How do I test the kick screen?
A: Use /fb kick Fajr (or any prayer name) as an OP โ€” you can rejoin immediately!

Q: I'm not Muslim, will I get kicked?
A: No! Type /non-muslim once to permanently opt out.

Q: Can I change the language?
A: Yes! Use /fb lang <code> to change manually, or let the plugin auto-detect from your Minecraft client.

Q: What if I'm on a VPN or local network?
A: The plugin detects local/private IPs and disables itself for those connections.

Q: How do I add a new language?
A: Copy any existing language file from plugins/FaithBreak/messages/, rename it, translate, and restart!


๐ŸŽฏ Why Update to v1.5.0?

If you've wanted:

  • Full admin control over prayer enforcement on your server
  • The ability to force all players into Kick Mode globally
  • A configurable break duration instead of a fixed 12 minutes
  • Cleaner, more reliable kick logic

v1.5.0 delivers all of this!


๐Ÿ™ Why I Made This

I made this plugin to help my fellow Muslim brothers and sisters stay on track with their prayer times.
Let's be real โ€” it's easy to get completely lost in Minecraft and forget ๐Ÿ˜…
This plugin gives a gentle nudge at the right moment ๐Ÿ•Œโฐ

Also, fun fact: this plugin is automatically bundled with every plugin I make.
Check out my other creations on Modrinth! ๐Ÿ˜‰โœจ


โ˜• Support Me on Ko-fi

If you like my work, consider buying me a coffee:

ko-fi


๐Ÿค Contributing

Want to help improve FaithBreak?

  • ๐ŸŒ Translate: Add your language by creating a new .yml file
  • ๐Ÿ› Report Bugs: Contact me on Discord
  • ๐Ÿ’ก Suggest Features: Share your ideas!
  • โญ Star & Share: Help others discover this plugin!

โ“ Got questions?

Contact me on Discord


Made with โค๏ธ for the Muslim Minecraft community

JazakAllahu Khairan (May Allah reward you with goodness) for using FaithBreak! ๐Ÿคฒ

No gallery available for this project.