Hugger is a simple way to add hugs to your Spigot-based Minecraft server. It is highly configurable!
- Customizable translations
- Module-based customizable effects:
- Chat message
- Action bar
- Title (and subtitle)
- Chat broadcast
- Sound
- Particle
- Cooldown
- Useful help command, with clickable commands
- Config re-loader
- Record system (Player with most received hugs)
- Statistics system (Number of hugs sent / received)
- Permissions
- Open-Source on GitHub
- PlaceholderAPI support
If you use PlaceholderAPI, you can use the following placeholders:
%hugger_total%
%hugger_sent%
%hugger_received%
/hug <player>
/hugger <args>:
config reload
player [username]
record
help
hugger.hug
hugger.hug.self
hugger.player
hugger.player.others
hugger.record
hugger.config
To use Hugger you need the following:
- Spigot-based server (including PaperMC)
- Admin access to the server
- Ability to add plugins
- Ability to modify configuration files
For some optional extra features you also need:
- PlaceholderAPI (For PlaceholderAPI support)
- Permission manager (For giving people access to commands)
Installing depends a bit on how your server is set up. If you have a GUI (Graphical User Interface) where you manager your server, please follow [Installation with a GUI]. Otherwise, please follow [Installation without a GUI].
There are three main scenarios when installing with a GUI.
- You do not have a menu to add/remove plugins
- Hugger is not in the catalogue
- Hugger is in the catalogue
If you do not have a menu to add or remove plugins, please continue to the section [Installation without a GUI].
If you have an interface for managing plugins, but Hugger is not in its catalogue, you can either ask the administrator to add Hugger, or follow the section on [Installation without a GUI].
If you have an interface for managing plugins, and Hugger is in the catalogue, you can install it!
If you have a GUI, but none of the above applies, please continue to the section [Installation without a GUI].
If you don't have a simple GUI to manage plugins, you should install Hugger manually by uploading the .jar.
This process is different from server host to server host.
Start by getting the latest .jar
from Modrinth or GitHub releases.
From here I can't help you more than saying that you should upload this .jar into your /plugins
folder.
Unable to figure it out?
Don't hesitate with opening a GitHub issue.
All configuration options are documented here, and are strings. Looking at the default config might help.
The main toggle switch to Hugger. Disabling this will disable hugger, once config reloaded.
Values: "true"
/ "false"
Toggles if statistics should be recorded.
Values: "true"
/ "false"
Toggles if records should be recorded.
Values: "true"
/ "false"
Toggles if hugging yourself counts for statistics.
Values: "true"
/ "false"
Sets the cooldown. Set in seconds
Values: Seconds (in string)
Available translation strings:
hugSyntaxError
playerNotFoundError
configReloaded
incorrectUsage
playerStatsHeader
hugsSentStat
hugsReceivedStat
newRecord
newRecordBroadcast
recordInfoTitle
recordInfo
permissionDenied
cooldownReached
An array of effects executed when you hug, or get hugged.
Example:
effects:
- chatMessage:
gotHugged: "&3Hugger &8>> &7You got hugged by: &d%s"
huggingPlayer: "&3Hugger &8>> &7Hugging: &d%s"
- sound:
sound: "BLOCK_NOTE_BLOCK_IRON_XYLOPHONE"
You can repeat the effect types if you want.
Sends a chat message to the sender and receiver of a hug.
Fields:
gotHugged
String that gets sent to the receiverhuggingPlayer
String that gets sent to the sender
Sends an action bar to the sender and receiver of a hug
Fields:
gotHugged
String that gets sent to the receiverhuggingPlayer
String that gets sent to the sender
Sends a title to the sender and receiver of a hug
Fields:
gotHugged
String that gets sent to the receiverhuggingPlayer
String that gets sent to the sender
Sends a chat broadcast to everyone
Fields:
message
String that gets sent to everyone
Sends a sound to the sender and receiver of a hug
Fields:
sound
The sound to play
Sends a particle effect to the sender and receiver of a hug
Fields:
particle
The particle to play