[EoS] RHForceResourcePack - Enforce your resourcepacks! [1.9.x - 1.20.x] icon

[EoS] RHForceResourcePack - Enforce your resourcepacks! [1.9.x - 1.20.x] -----

Configurable forced resourcepacks for your server ☄️ Perfect to prevent XRAY resourcepacks!




view it on GitHub

~ fixed the wrong Tabcomplete output for resend.

If you like this or my other plugins, then please leave a review!
----------, Aug 11, 2023

~ fixed the problem with kick on accept

I apologize for the inconvenience caused.

If you like this or my other plugins, then please leave a review!
----------, Apr 28, 2023

~ complete plugin overhaul, including the config.yml
Please delete your old configuration file. A new one will be generated.
Code (YAML):
# RaidersHeaven.eu -- Force Resourcepack
#    - Minecraft plugin -
#
# Configurable forced resourcepack for your server ☄️ Perfect to prevent XRAY resourcepacks!

# Set the resourcepack url for direct download. I recommend using https://mc-packs.net/
# Check the size of your resourcepack beforehand! See the following table:
# > 1.18 | 250 MiB
# < 1.18 | 100 MiB (≈ 100.8 MB)
# < 1.15 | 50 MiB (≈ 50.4 MB)
# Note that download success or failure is logged by the client, and not by the server.
resourcepack-url
: 'https://raidersheaven.eu/download/ %C2%A7cRHPureAntiXRAYPack_v2.zip'

# Delay before the player gets the resourcepack prompt
prompt
:
  delay
: 4 # ticks

# Kick options
kick
:
  enabled
: true
  delay
: 3 # seconds

# Enable skip permission (rhfrp.skip)
skip-permission
: true

# Message settings; placeholders: %prefix%, %player%
messages
:
  prefix
: '&8 [& #813dd8&lR&#9832db&le&#af27dd&ls&#c61ce0&lo&#dd11e2&lu&#f406e5&lr&#f406e5&lc&#dd11e2&le&#c61ce0&lp&#af27dd&la&#9832db&lc&#813dd8&lk&8]'
  player-kicked
: "%prefix%\n\n&7You have been kicked!\n\n&7Please accept the server resourcepack.\n&c&lOtherwise you won't be able to play!\n\n&7Return to your Multiplayer screen, click on &8'&f&lEdit&8' &7and change &8'&f&lServer Resource Packs&8'&7 to &8'&f&lEnabled&8'&7."
  pack-accepted
: ' %prefix% &7You''ve accepted the resourcepack. Thank you for playing fair!'
  pack-denied
: ' %prefix% &7You''ve denied the resourcepack and will be kicked'
  pack-resent
: ' %prefix% &7The resourcepack was resent'
  pack-skipped
: ' %prefix% &7You skipped the resourcepack enforcement'
  reload
: ' %prefix% &7The configuration has been reloaded'
  wrong-argument
: ' %prefix% &7This is not a valid argument'
  no-permission
: ' %prefix% &7You don''t have permission'
  console-no-player
: ' %prefix% &7You have to be a player to execute this command'
  console-accept
: ' %prefix% &7Player &e%player% &7accepted the resourcepack enforcement'
  console-deny
: ' %prefix% &7Player &e%player% &7denied the resourcepack enforcement'
  console-kick
: ' %prefix% &7Player &e%player% &7has been kicked'
  console-skip
: ' %prefix% &7Player &e%player% &7skipped the resourcepack enforcement'
  optional
:
    pack-loaded
:
      enabled
: true
      message
: ' %prefix% &7The resourcepack has downloaded successfully'

# Sound settings
sounds
:
  enabled
: true
  accept-sound
: 'BLOCK_NOTE_BLOCK_BELL'
  deny-sound
: 'BLOCK_BEACON_DEACTIVATE'
  delay
: 4 # ticks
 
~ compiled against 1.19.4
Should be working on future Minecraft versions as well.
~ made it open-source

Source Code on GitHub: https://github.com/RHX0R3/RHForceResourcePack


With this update, my plugin is now open-source. You can make any changes you like and fork it, if you want.

This will be the last update I'll make for RHForceResourcepack for now. There will be no active support via SpigotMC nor Discord.

Thank you for using RHForceResourcePack!

And if you like this or my other plugins, then please leave a review!
----------, Apr 27, 2023

+ added tested 1.19 support
+ added command /rp resend with permission rhfrp.resendall
Resend the resourcepack for yourself. Be aware, that this is a debug function, as it only affects the player using that command!
+ added command /rp resendall with permission rhfrp.resendall
Same as /rp resend, but affects all online players

- removed unused code
----------, Jul 4, 2022

+ added 1.18 support yay!
+ added hex color support

~ fixed the bug at config reload
~ new configuration; please reset your config.yml
~ re-made the command struture; new main command /rp > /rp reload

- code cleanup

Info
Code (YAML):
#########################################
#                                       #
# Configuration for RHForceResourcePack #
#                                       #
#########################################

# Just replace the default info with your own. :)
# Be careful! Make always sure to put an ' after and before the text!


# General plugin output


# [DEU] Plugin Name für den Chat
# [ENG] Plugin prefix for the chat
chat-prefix
: '&8 [&d&lRP&8 ]'

# [DEU] Nachricht für den Reload Command
# [ENG] Reload message
reload-msg
: ' %prefix% &7Die Config wurde &aneu geladen&7!'

# Do you want to have sounds, when executing commands?
# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
use-plugin-sounds
: true

has-accepted-playsound
: 'BLOCK_NOTE_BLOCK_BELL'

has-not-accepted-playsound
: 'BLOCK_BEACON_DEACTIVATE'

# [DEU] Setzt die Länge der Verzögerung für den obigen Sound
# [ENG] Sets the length of the delay for the above sound
# default: 5
has-accepted-playsound-delay
: 5

# [DEU] Setzt die Länge der Verzögerung für den Kick, in Sekunden
# [ENG] Sets the length of the delay for the player kick, in seconds
kick-main-delay
: 10


# Data input


# [DEU] Setzt den Link zum Resourcepack fest. Das RP muss im .ZIP-Format sein und der Link muss einen direkten Download unterstützen!
# [ENG] Sets the link to the resource pack. The RP must be in .ZIP format and the link must support a direct download!
# You can delete this if you want. It's our private anti xray pack :)
resourcepack-url
: 'https://raidersheaven.eu/download/ %C2%A7cRHPureAntiXRAYPack_v2.zip'

# [DEU] Verzögerung in Ticks bevor der Spieler aufgefordert wird, das RP zu laden
# [ENG] Delay in ticks before the player is asked to load the RP
delay-in-ticks
: 4

# [DEU] Wenn Spieler mit der 'RHFRP.skip' Berechtigung das Erzwingen eines Resourcepacks überspringen können
# [ENG] If players with the 'RHFRP.skip' permission can skip a resourcepack force
skip-permission-is-allowed
: true

# [DEU] Kickt jeden Spieler beim Join, der das RP nicht akzeptiert
# [ENG] Kicks every player on join, if they're not accepting the RP
kick-player-on-deny
: true

# [DEU] Sende eine Bestätigungsmeldung an den Spieler, wenn das RP erfolgreich heruntergeladen und aktiviert wurde
# [ENG] Send a confirmation message to the player when the RP has been successfully downloaded and activated
show-load-success-msg
: true


# Message output


# [DEU] Wenn der Spieler das RP nicht akzeptieren will und gekickt wird
# [ENG] If the player does not want to accept the RP and gets kicked
# Supports all colorcodes '&', hex colors '#' and multiple lines with '\n'
kick-msg
: "%prefix%\n\n&7Du wurdest gekickt, da du unser &3&lResourcepack&7 nicht akzeptiert hast!\n\n&7Wir unterstützen keine &c&lXRAY&7 Pakete und wollen für \n&7alle Spieler eine &afaire &7und &abenutzerfreundliche &7Umgebung schaffen!\n\n&7Also trage auch du Deinen Teil dazu bei und &aakzeptiere \n&7das &3&lResourcepack &7um spielen zu koennen!\n\n&7Gegebenfalls musst du &3&lResourcepacks&7 in deinen &eServer-Einstellungen&7 manuell &aaktivieren&7!"

# [DEU] Wenn der Spieler das RP akzeptiert hat
# [ENG] If the player has accepted the RP.
load-success-msg
: ' %prefix% &7Das &3&lResourcepack&7 wurde &aerfolgreich &7heruntergeladen!'

# [DEU] Wenn der Spieler keine Berechtigung hat
# [ENG] If the player has no permission
no-permission-msg
: ' %prefix% &7Dazu hast du &ckeinen &7Zugriff.'

# [DEU] Wenn der Spieler das Resourcepack akzeptiert hat
# [ENG] If the player has accepted the resourcepack
has-accepted-msg
: ' %prefix% &7Danke, dass Du &afair &7spielst! &d:)'

# [DEU] Wenn der Spieler das Resourcepack nicht akzeptiert hat, dann erhält er folgende Nachricht, bevor er mit einer Verzögerung gekickt wird
# [ENG] If the player has not accepted the resourcepack, then the following message output is sent and then the player gets kicked with a delay
has-not-accepted-msg
: ' %prefix% &7Du hast das &3&lResourcepack&7 verweigert und wirst gekickt! &c:('

 

As always, if you find bugs or have an idea for improvement, please do not hesitate to open a discussion here or send me a direct message.

And if you like my this or my other plugins, then please leave a review!

Have a nice day! :)
----------, Jan 14, 2022

+ added bstats metrics
----------, Jul 2, 2021

+ added official 1.17 support
The plugin is was build agains spigot-1.17 API only.

~ fixed some misbehaving while handling the resourcepack

- removed unused code
- removed some text passages
----------, Jun 27, 2021

~ fixed the nasty error inside console, when trying to reload (finally)
----------, Jan 29, 2021

~ fixed a wrong formatted code lineup and colorcodes
Please be advised, that you can't run the /rhfrpreload command out of the console! You have to run it from ingame as a player.
----------, Jan 29, 2021

- Update der config.yml mit neuen Inhalten
- Benachrichtigung an den Spieler mit Sound (einstellbar), nachdem er das Resourcepack abgelehnt hat

rhforceresourcepack_declinedmsgbeforekick.png

Wenn Dir das Plugin gefällt, dann sei so nett und lass eine Bewertung da! :)
----------, Sep 11, 2020

- Update der config.yml mit neuen Inhalten
- Konsolenausgabe, wenn ein Spieler das Resourcepack anerkennt und herunterlädt

rhforceresourcepack_accepted.png

- Konsolenausgabe, wenn ein Spieler das Resourcepack nicht anerkennt und gekickt wird

rhforceresourcepack_declined.png

- Dankesnachricht an den Spieler mit Sound (einstellbar), nachdem er das Resourcepack anerkannt und heruntergeladen hat.

rhforceresourcepack_acceptedthx.png


Wenn Dir das Plugin gefällt, dann sei so nett und lass eine Bewertung da! :)
----------, Sep 11, 2020

Resource Information
Author:
----------
Total Downloads: 18,275
First Release: Sep 10, 2020
Last Update: Aug 11, 2023
Category: ---------------
All-Time Rating:
18 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings