/nightvision
also /nv
Toggle night vision
/nightvisionNeeds deffects.nightvision, which everyone has by default.

Effects for your players: night vision and a phantom switch, plus kill, death and join effects and walking trails they pick from a menu. You add your own effects in settings.yml.
Main commands
/nightvision/nv/phantom/deffects reload/deffects reload/trail/killeffect mobs/joineffect off/deffects reloadWhich permissions are there?
deffects.nightvision and deffects.phantom are on for everyone by default. deffects.admin, for operators, allows /deffects reload.
Does the phantom switch change anything for other players?
No. A phantom spawn is only cancelled when a player who turned phantoms off is within the radius. Everywhere else phantoms spawn as normal.
Can I turn a feature off for everyone?
Yes. Set night-vision.enabled or phantoms.enabled to false in settings.yml. Players then see a message that the feature is disabled.
Is there a menu?
No. Everything is done with the commands.
Can I turn one of the effect types off?
Yes. kill-effect.enabled, death-effect.enabled, join-effect.enabled and trail.enabled in settings.yml each switch one type off for the whole server.
How do I stop effects from lagging the server?
The limits section caps particles per effect, particles per player per second and effects running at once. trail.interval-ticks makes trails draw less often.
Where are the choices saved?
In the database. The old data/players.yml is imported once on the first start and a copy stays in the backups folder. The database section in settings.yml lets you point DEffects at its own database.
Menus and messages come from the default DEffects files. Run a command, click an example, or pick a menu.
This plugin works through commands and chat. Try one below.
<name> you must fill in[name] optionalword typed as shown
also /nv
Toggle night vision
/nightvisionNeeds deffects.nightvision, which everyone has by default.
Toggle phantoms spawning near you
/phantomNeeds deffects.phantom, which everyone has by default.
Choose the effect that plays where you kill someone
/killeffect/killeffect effect/killeffect off/killeffect mobsNeeds deffects.killeffect, which everyone has by default.
Choose the effect that plays where you die
/deatheffect/deatheffect effect/deatheffect offNeeds deffects.deatheffect, which everyone has by default.
Choose the effect that plays when you join
/joineffect/joineffect effect/joineffect offNeeds deffects.joineffect, which everyone has by default.
also /trails
Choose a particle trail that follows you
/trail/trail effect/trail offNeeds deffects.trail, which everyone has by default.
Reload DEffects
/deffects reloadNeeds deffects.admin, operators only by default.
Who has each one before you set anything up is in the middle column.
| Permission | Default | Grants |
|---|---|---|
| deffects.nightvision | Everyone | Use /nightvision |
| deffects.phantom | Everyone | Use /phantom |
| deffects.killeffect | Everyone | Use /killeffect |
| deffects.deatheffect | Everyone | Use /deatheffect |
| deffects.joineffect | Everyone | Use /joineffect |
| deffects.trail | Everyone | Use /trail |
| deffects.effect.sparkle | Everyone | Pick the sparkle effect |
| deffects.effect.fireworks | Everyone | Pick the fireworks effect |
| deffects.effect.hearts | Everyone | Pick the hearts effect |
| deffects.effect.soul-rise | Operators | Pick the soul rise effect |
| deffects.effect.flame-ring | Operators | Pick the flame ring effect |
| deffects.effect.ender-helix | Operators | Pick the ender helix effect |
| deffects.effect.geyser | Operators | Pick the geyser effect |
| deffects.effect.thunder | Operators | Pick the thunder effect |
| deffects.effect.blast | Operators | Pick the blast effect |
| deffects.admin | Operators | Reload the plugin |
plugins/DEffects/aliases.yml
'night_vision'placeholders:deffects:'nightvision': 'night_vision'
plugins/DEffects/settings.yml
DEffects gives every player personal switches: night vision (/nightvision), no phantoms (/phantom), and effects for kills, deaths, joining and walking (/killeffect, /deatheffect, /joineffect, /trail). Edit, then run /deffects reload.
ENLanguage of the plugin's texts: EN, FR or ES.
'�B5FF&lSMP &8| 'Text added in front of every chat message from this plugin. Use '' for no prefix.
--- Night vision --- /nightvision (or /nv) lets a player turn night vision on and off for themselves.
truetrue = players can use the command. false = the command is refused (what players chose stays saved).
falseShow the potion icon in the top-right corner of the screen while night vision is on?
true = the icon is shown false = no icon
(Whether a player may use /nightvision is decided by their permissions, not here.)
--- Phantoms --- /phantom lets a player stop phantoms from spawning near them.
truetrue = the command works. false = phantoms spawn normally for everyone, whatever players chose.
40A phantom is stopped from spawning if a player who turned phantoms off is within this many blocks of it. Example: 40 = within 40 blocks. Phantoms spawn high above the player, so a small number lets some appear at the edge. Lower it only if you want players to still meet phantoms from far away.
--- Kill, death, join and trail effects --- Players pick an effect from the list further down. /killeffect plays it where they kill someone, /deatheffect where they die, /joineffect when they join, /trail follows them as they walk. Each of the four can be switched off for the whole server here. A player who has not chosen yet gets default-effect (an effect name from the list below, or '' for none).
truetrue = players can pick a kill effect. false = no kill effects play and the command is refused.
''truetrue = players may also turn the effect on for killing mobs (/killeffect mobs). false = player kills only.
falseWhether the effect plays for mob kills before a player chose. Players change it with /killeffect mobs.
truetrue = players can pick a death effect.
''truetrue = players can pick a join effect.
''falsetrue = the chosen join effect also plays when the player leaves. false = only on join.
10Ticks to wait after joining before the effect plays, so the player's screen has loaded. 20 ticks = 1 second.
An effect that plays once the first time a player ever joins, for everyone nearby to see. It does not depend on what the player chose. Use '' or set enabled to false for none.
truefireworkstruetrue = players can pick a trail.
''4How often the trail draws, in ticks, while the player is moving. Higher is lighter on the server.
120The most trail particles one player can spawn in a second. The trail simply skips frames over this.
truetrue = choosing an effect plays it once so the player sees what they picked.
Safety limits. They keep a badly built effect or a busy server from flooding players with particles.
120An effect that would spawn more particles than this at once has its points lowered when loaded, and a warning is written to the console.
400The most particles one player's effects can spawn in a second. Over this the particles are skipped (sounds and messages still play).
32The most multi-step effects that may run at the same time on the whole server. Over this they play their first frame only.
--- The effect list --- Each entry is one effect players can choose. Add your own by copying an entry and changing it; run /deffects reload and it appears in the menus. A mistake (wrong particle or sound name, bad colour) is written to the console with the entry's name and that part is skipped. Nothing here is hard coded: remove an entry and it is gone.
Per effect:
name: What players see. & colour codes and &#RRGGBB work.
icon: The item shown in the menu.
lore: Lines under the name in the menu.
permission: The permission a player needs to pick it. Empty = everyone. The shipped permissions
(deffects.effect.<name>) are true for a few effects and op for the rest; give the
others out with your permissions plugin.
shape: BURST (a ball at once), RING (grows outward on the ground), SPIRAL (rises in a
narrowing spiral), HELIX (two strands rise), FOUNTAIN (sprays up and out), EXPLOSION
(a ball that expands), LIGHTNING (a harmless lightning flash).
radius, height: Size of the shape in blocks.
points: Particle positions per step. More looks fuller and costs more.
duration-ticks: How long a moving shape lasts. step-ticks is the gap between steps (default 2).
particles: A list. Each has type (any Minecraft particle name), count, offset [x, y, z] and speed.
Dust particles also take color (#RRGGBB) and size; block particles take block;
item particles take item.
sounds: A list of sound (any Minecraft sound name), volume and pitch.
firework: A list of #RRGGBB colours. When set, a firework bursts (harmless, no damage).
lightning: true = also flash a lightning bolt (harmless).
message, title, subtitle, actionbar:
Text shown to the player the effect belongs to. %victim% is the name of who died
and %effect% the effect's name.
visible-to: PLAYER (only them), NEARBY (everyone within view-radius blocks) or EVERYONE in the world.
Fireworks and lightning are always seen by everyone nearby, so they need NEARBY or EVERYONE.
view-radius: Blocks for NEARBY.
cooldown-seconds: Wait before the same player can play it again. 0 = none.'&#FFFFFFSparkle'END_RODdeffects.effect.sparkleBURST0.824NEARBY24'&#FF8A3DFireworks'FIREWORK_ROCKETdeffects.effect.fireworksBURST1['#FF8A3D', '#FFD93D', '#FF4D6D']NEARBY322'&#FF4D6DHearts'PINK_DYEdeffects.effect.heartsFOUNTAIN0.61.288NEARBY'FD0FFSoul rise'SOUL_LANTERNdeffects.effect.soul-riseSPIRAL0.92.4620NEARBY'&#FF7A1AFlame ring'BLAZE_POWDERdeffects.effect.flame-ringRING2.51610NEARBY'&#B05CFFEnder helix'ENDER_EYEdeffects.effect.ender-helixHELIX0.82.6820NEARBY'DB4FFGeyser'WATER_BUCKETdeffects.effect.geyserFOUNTAIN1.22.52012NEARBY'&#FFE75CThunder'LIGHTNING_RODdeffects.effect.thunderLIGHTNING100.5'&7You struck down &f%victim%'NEARBY403'&#FF5C5CBlast'TNTdeffects.effect.blastEXPLOSION1.868NEARBY2--- Sounds --- The click sound played when a player turns night vision or phantoms on or off, for both commands. Each sound has: sound (any Minecraft sound name, empty = silent), volume (1.0 = normal), pitch (1.0 = normal). The two use different pitches so players can hear on from off.
Played when a switch is turned ON.
'ui.button.click'0.71.4Played when a switch is turned OFF.
'ui.button.click'0.70.9--- Messages --- Chat messages. & colour codes and &#RRGGBB work. Leave a message empty ('') to send nothing.
'&fNightvision: GF521On''&fNightvision: &#FF5C5COff''&fYou GF521enabled &fphantoms spawning near you.''&fYou &#FF5C5Cdisabled &fphantoms spawning near you.''&#FF5C5CYou are not allowed to do that.''&#FF5C5COnly players can use this.''&#FF5C5CThis feature is disabled on this server.''GF521settings.yml reloaded.''&7%count% effects loaded. Problems are in the console.''&fYour %type% is now %effect%&f.''&fYour %type% is &#FF5C5Cturned off&f.''&#FF5C5CYou have not unlocked %effect%&#FF5C5C.''&#FF5C5CThere is no effect called %effect%.''&fYour kill effect now plays for GF521mobs &ftoo.''&fYour kill effect now plays for &#FF5C5Cplayers only&f.'--- Database --- Where each player's night vision and phantom choices is stored. With type default this plugin follows the database set in DCore's config.yml: a small sqlite file in this plugin's folder unless you chose mysql or mariadb there. Fill in the fields below only if this plugin should use a different database from the rest. Changes need a restart. The first start on this version moves data/players.yml into the database by itself and keeps a copy in this plugin's backups folder.
defaultdefault follows DCore. Use sqlite, h2, mysql or mariadb to give this plugin its own database.
data/deffects.dbThe sqlite or h2 file inside this plugin's folder. Used when this plugin keeps its own file or when DCore uses a file database.
''A full jdbc:mysql:// or jdbc:mariadb:// address. When filled in, the fields below it are ignored.
localhostUsed only when type is mysql or mariadb. The database must exist and the user needs the right to create tables.
3306minecraft''''''Extra connection options joined with &, for example useSSL=false.
deffects_Every table of this plugin starts with this text. Use only a-z, 0-9 and _. Change it only if two servers must keep separate data in one database.
# DEffects gives every player personal switches: night vision (/nightvision), no phantoms (/phantom),# and effects for kills, deaths, joining and walking (/killeffect, /deatheffect, /joineffect, /trail).# Edit, then run /deffects reload.# Used by updates. Do not edit.config-version: 1# Language of the plugin's texts: EN, FR or ES.language: EN# Text added in front of every chat message from this plugin. Use '' for no prefix.prefix: '�B5FF&lSMP &8| '# --- Night vision ---# /nightvision (or /nv) lets a player turn night vision on and off for themselves.night-vision:# true = players can use the command. false = the command is refused (what players chose stays saved).enabled: true# Show the potion icon in the top-right corner of the screen while night vision is on?# true = the icon is shown# false = no icon# (Whether a player may use /nightvision is decided by their permissions, not here.)show-icon: false# --- Phantoms ---# /phantom lets a player stop phantoms from spawning near them.phantoms:# true = the command works. false = phantoms spawn normally for everyone, whatever players chose.enabled: true# A phantom is stopped from spawning if a player who turned phantoms off is within this many blocks of it.# Example: 40 = within 40 blocks. Phantoms spawn high above the player, so a small number lets some# appear at the edge. Lower it only if you want players to still meet phantoms from far away.radius: 40# --- Kill, death, join and trail effects ---# Players pick an effect from the list further down. /killeffect plays it where they kill someone,# /deatheffect where they die, /joineffect when they join, /trail follows them as they walk.# Each of the four can be switched off for the whole server here. A player who has not chosen yet# gets default-effect (an effect name from the list below, or '' for none).kill-effect:# true = players can pick a kill effect. false = no kill effects play and the command is refused.enabled: truedefault-effect: ''mobs:# true = players may also turn the effect on for killing mobs (/killeffect mobs). false = player kills only.enabled: true# Whether the effect plays for mob kills before a player chose. Players change it with /killeffect mobs.default: falsedeath-effect:# true = players can pick a death effect.enabled: truedefault-effect: ''join-effect:# true = players can pick a join effect.enabled: truedefault-effect: ''# true = the chosen join effect also plays when the player leaves. false = only on join.on-quit: false# Ticks to wait after joining before the effect plays, so the player's screen has loaded. 20 ticks = 1 second.delay-ticks: 10# An effect that plays once the first time a player ever joins, for everyone nearby to see.# It does not depend on what the player chose. Use '' or set enabled to false for none.first-join:enabled: trueeffect: fireworkstrail:# true = players can pick a trail.enabled: truedefault-effect: ''# How often the trail draws, in ticks, while the player is moving. Higher is lighter on the server.interval-ticks: 4# The most trail particles one player can spawn in a second. The trail simply skips frames over this.max-particles-per-second: 120# true = choosing an effect plays it once so the player sees what they picked.preview-on-select: true# Safety limits. They keep a badly built effect or a busy server from flooding players with particles.limits:# An effect that would spawn more particles than this at once has its points lowered when loaded,# and a warning is written to the console.max-particles-per-effect: 120# The most particles one player's effects can spawn in a second. Over this the particles are skipped# (sounds and messages still play).max-particles-per-second: 400# The most multi-step effects that may run at the same time on the whole server. Over this they play# their first frame only.max-running-effects: 32# --- The effect list ---# Each entry is one effect players can choose. Add your own by copying an entry and changing it; run# /deffects reload and it appears in the menus. A mistake (wrong particle or sound name, bad colour) is# written to the console with the entry's name and that part is skipped. Nothing here is hard coded:# remove an entry and it is gone.## Per effect:# name: What players see. & colour codes and &#RRGGBB work.# icon: The item shown in the menu.# lore: Lines under the name in the menu.# permission: The permission a player needs to pick it. Empty = everyone. The shipped permissions# (deffects.effect.<name>) are true for a few effects and op for the rest; give the# others out with your permissions plugin.# shape: BURST (a ball at once), RING (grows outward on the ground), SPIRAL (rises in a# narrowing spiral), HELIX (two strands rise), FOUNTAIN (sprays up and out), EXPLOSION# (a ball that expands), LIGHTNING (a harmless lightning flash).# radius, height: Size of the shape in blocks.# points: Particle positions per step. More looks fuller and costs more.# duration-ticks: How long a moving shape lasts. step-ticks is the gap between steps (default 2).# particles: A list. Each has type (any Minecraft particle name), count, offset [x, y, z] and speed.# Dust particles also take color (#RRGGBB) and size; block particles take block;# item particles take item.# sounds: A list of sound (any Minecraft sound name), volume and pitch.# firework: A list of #RRGGBB colours. When set, a firework bursts (harmless, no damage).# lightning: true = also flash a lightning bolt (harmless).# message, title, subtitle, actionbar:# Text shown to the player the effect belongs to. %victim% is the name of who died# and %effect% the effect's name.# visible-to: PLAYER (only them), NEARBY (everyone within view-radius blocks) or EVERYONE in the world.# Fireworks and lightning are always seen by everyone nearby, so they need NEARBY or EVERYONE.# view-radius: Blocks for NEARBY.# cooldown-seconds: Wait before the same player can play it again. 0 = none.effects:sparkle:name: '&#FFFFFFSparkle'icon: END_RODlore:- '&7A quick burst of white sparks.'permission: deffects.effect.sparkleshape: BURSTradius: 0.8points: 24particles:- {type: END_ROD, count: 1, offset: [0, 0, 0], speed: 0.05}sounds:- {sound: entity.experience_orb.pickup, volume: 0.8, pitch: 1.4}visible-to: NEARBYview-radius: 24fireworks:name: '&#FF8A3DFireworks'icon: FIREWORK_ROCKETlore:- '&7A harmless firework bursts.'permission: deffects.effect.fireworksshape: BURSTpoints: 1firework: ['#FF8A3D', '#FFD93D', '#FF4D6D']sounds:- {sound: entity.firework_rocket.twinkle, volume: 0.6, pitch: 1.0}visible-to: NEARBYview-radius: 32cooldown-seconds: 2hearts:name: '&#FF4D6DHearts'icon: PINK_DYElore:- '&7Hearts float up.'permission: deffects.effect.heartsshape: FOUNTAINradius: 0.6height: 1.2points: 8duration-ticks: 8particles:- {type: HEART, count: 1, offset: [0.1, 0.1, 0.1], speed: 0}sounds:- {sound: entity.allay.item_given, volume: 0.8, pitch: 1.2}visible-to: NEARBYsoul-rise:name: 'FD0FFSoul rise'icon: SOUL_LANTERNlore:- '&7A soul spirals up from the spot.'permission: deffects.effect.soul-riseshape: SPIRALradius: 0.9height: 2.4points: 6duration-ticks: 20particles:- {type: SOUL, count: 1, offset: [0, 0, 0], speed: 0.01}sounds:- {sound: particle.soul_escape, volume: 1.0, pitch: 1.0}visible-to: NEARBYflame-ring:name: '&#FF7A1AFlame ring'icon: BLAZE_POWDERlore:- '&7A ring of fire spreads across the ground.'permission: deffects.effect.flame-ringshape: RINGradius: 2.5points: 16duration-ticks: 10particles:- {type: FLAME, count: 1, offset: [0.05, 0.05, 0.05], speed: 0.01}sounds:- {sound: entity.blaze.shoot, volume: 0.7, pitch: 1.0}visible-to: NEARBYender-helix:name: '&#B05CFFEnder helix'icon: ENDER_EYElore:- '&7Two purple strands twist upward.'permission: deffects.effect.ender-helixshape: HELIXradius: 0.8height: 2.6points: 8duration-ticks: 20particles:- {type: PORTAL, count: 1, offset: [0, 0, 0], speed: 0.2}sounds:- {sound: entity.enderman.teleport, volume: 0.7, pitch: 1.2}visible-to: NEARBYgeyser:name: 'DB4FFGeyser'icon: WATER_BUCKETlore:- '&7Water sprays up and falls back.'permission: deffects.effect.geysershape: FOUNTAINradius: 1.2height: 2.5points: 20duration-ticks: 12particles:- {type: SPLASH, count: 1, offset: [0.05, 0.05, 0.05], speed: 0}sounds:- {sound: entity.generic.splash, volume: 0.8, pitch: 0.9}visible-to: NEARBYthunder:name: '&#FFE75CThunder'icon: LIGHTNING_RODlore:- '&7A harmless bolt strikes the spot.'permission: deffects.effect.thundershape: LIGHTNINGpoints: 10radius: 0.5particles:- {type: LARGE_SMOKE, count: 1, offset: [0.2, 0.2, 0.2], speed: 0.02}sounds:- {sound: entity.lightning_bolt.thunder, volume: 0.6, pitch: 1.2}actionbar: '&7You struck down &f%victim%'visible-to: NEARBYview-radius: 40cooldown-seconds: 3blast:name: '&#FF5C5CBlast'icon: TNTlore:- '&7A harmless explosion cloud.'permission: deffects.effect.blastshape: EXPLOSIONradius: 1.8points: 6duration-ticks: 8particles:- {type: EXPLOSION, count: 1, offset: [0, 0, 0], speed: 0}sounds:- {sound: entity.generic.explode, volume: 0.5, pitch: 1.3}visible-to: NEARBYcooldown-seconds: 2# --- Sounds ---# The click sound played when a player turns night vision or phantoms on or off, for both commands.# Each sound has: sound (any Minecraft sound name, empty = silent), volume (1.0 = normal), pitch (1.0 = normal).# The two use different pitches so players can hear on from off.sounds:# Played when a switch is turned ON.switched-on:sound: 'ui.button.click'volume: 0.7pitch: 1.4# Played when a switch is turned OFF.switched-off:sound: 'ui.button.click'volume: 0.7pitch: 0.9# --- Messages ---# Chat messages. & colour codes and &#RRGGBB work. Leave a message empty ('') to send nothing.messages:nightvision-on: '&fNightvision: GF521On'nightvision-off: '&fNightvision: &#FF5C5COff'phantoms-on: '&fYou GF521enabled &fphantoms spawning near you.'phantoms-off: '&fYou &#FF5C5Cdisabled &fphantoms spawning near you.'no-permission: '&#FF5C5CYou are not allowed to do that.'players-only: '&#FF5C5COnly players can use this.'feature-disabled: '&#FF5C5CThis feature is disabled on this server.'reloaded: 'GF521settings.yml reloaded.'effects-loaded: '&7%count% effects loaded. Problems are in the console.'effect-selected: '&fYour %type% is now %effect%&f.'effect-off: '&fYour %type% is &#FF5C5Cturned off&f.'effect-locked: '&#FF5C5CYou have not unlocked %effect%&#FF5C5C.'effect-unknown: '&#FF5C5CThere is no effect called %effect%.'mobs-on: '&fYour kill effect now plays for GF521mobs &ftoo.'mobs-off: '&fYour kill effect now plays for &#FF5C5Cplayers only&f.'# --- Menus ---# The texts of the /killeffect, /deatheffect, /joineffect and /trail menus.menu:titles:kill: '&8ᴋɪʟʟ ᴇꜰꜰᴇᴄᴛ'death: '&8ᴅᴇᴀᴛʜ ᴇꜰꜰᴇᴄᴛ'join: '&8ᴊᴏɪɴ ᴇꜰꜰᴇᴄᴛ'trail: '&8ᴛʀᴀɪʟ'# Used in chat as "Your <kind> is now ...".kinds:kill: 'kill effect'death: 'death effect'join: 'join effect'trail: 'trail'# %name% is the effect's name from the list above.effect-name: '%name%'selected: 'GF521Selected'click-to-select: '&7Click to select.'locked: '&#FF5C5CNot unlocked.'off-name: '&#FF5C5CTurn off'off-lore: '&7Click to play no effect.'mobs-name: '&fMob kills'mobs-on-lore: '&7Plays for mobs too. Click to change.'mobs-off-lore: '&7Players only. Click to change.'previous: '&fPrevious page'next: '&fNext page'# --- Database ---# Where each player's night vision and phantom choices is stored. With type default this plugin follows the database set in DCore's config.yml:# a small sqlite file in this plugin's folder unless you chose mysql or mariadb there. Fill in the# fields below only if this plugin should use a different database from the rest. Changes need a restart.# The first start on this version moves data/players.yml into the database by itself and keeps a copy in# this plugin's backups folder.database:# default follows DCore. Use sqlite, h2, mysql or mariadb to give this plugin its own database.type: default# The sqlite or h2 file inside this plugin's folder. Used when this plugin keeps its own file or when# DCore uses a file database.file: data/deffects.db# A full jdbc:mysql:// or jdbc:mariadb:// address. When filled in, the fields below it are ignored.url: ''# Used only when type is mysql or mariadb. The database must exist and the user needs the right to create tables.host: localhostport: 3306database: minecraftusername: ''password: ''# Extra connection options joined with &, for example useSSL=false.parameters: ''# Every table of this plugin starts with this text. Use only a-z, 0-9 and _. Change it only if two# servers must keep separate data in one database.table-prefix: deffects_
DCore
PlaceholderAPI.
Paper 1.21 or newer, and forks like Purpur and Leaf. Folia is supported. Java 21 or newer.