alerts.yml
@@ -67,6 +67,6 @@SpartanCommand Triggers
- /gamemode
- /me
- Trigger: /gamemode
Channel: gamemode
Conditions:
- '#player.hasPermission("minecraft.command.gamemode")'
Embed:
Color: "#ff0000"
Author:
ImageUrl: "{embedavatarurl}"
Name: "{username} changed game mode to ${#args.get(0)}"
- Trigger: /me
Channel: me
Conditions:
- '#player.hasPermission("minecraft.command.me") || #player.hasPermission("essentials.me")'
Embed:
Color: "#ff0000"
Author:
ImageUrl: "{embedavatarurl}"
Name: "* {username} ${#allArgs}"
Social Spy
-- Private messages
- Commands
- Sign placement
- Trigger: [/msg, /w, /m, /pm, /emsg, /epm, /tell, /etell, /whisper, /ewhisper]
Channel: SocialSpy
Embed:
Color: "#000001"
Author:
ImageUrl: "{embedavatarurl}"
Name: "[{username}> ${#allArgs}]"
- Trigger: PlayerCommandPreprocessEvent
Channel: SocialSpy
Conditions:
- "!(#command.split(\"\\s+|$\")[0].equals(\"msg\"))" #ignores the /msg command
- "!(#command.split(\"\\s+|$\")[0].equals(\"w\"))" #ignores the /w command
- "!(#command.split(\"\\s+|$\")[0].equals(\"m\"))" #ignores the /m command
- "!(#command.split(\"\\s+|$\")[0].equals(\"pm\"))" #ignores the /pm command
- "!(#command.split(\"\\s+|$\")[0].equals(\"emsg\"))" #ignores the /emsg command
- "!(#command.split(\"\\s+|$\")[0].equals(\"epm\"))" #ignores the /epm command
- "!(#command.split(\"\\s+|$\")[0].equals(\"tell\"))" #ignores the /tell command
- "!(#command.split(\"\\s+|$\")[0].equals(\"etell\"))" #ignores the /etell command
- "!(#command.split(\"\\s+|$\")[0].equals(\"whisper\"))" #ignores the /whisper command
- "!(#command.split(\"\\s+|$\")[0].equals(\"ewhisper\"))" #ignores the /ewhisper command
- "!(#command.split(\"\\s+|$\")[0].equals(\"r\"))" #ignores the /r command
- "!(#command.split(\"\\s+|$\")[0].equals(\"er\"))" #ignores the /er command
- "!(#command.split(\"\\s+|$\")[0].equals(\"reply\"))" #ignores the /reply command
- "!(#command.split(\"\\s+|$\")[0].equals(\"ereply\"))" #ignores the /ereply command
# - "!(#command.split(\"\\s+|$\")[0].equals(\"example\"))" #ignores the /example command
Embed:
Color: "#000001"
Author:
ImageUrl: "{embedavatarurl}"
Name: '{username} issued command: /${#command}'
- Trigger: SignChangeEvent
Channel: SocialSpy
Conditions:
- 'getLine(0) + getLine(1) + getLine(2) + getLine(3) != ""'
Embed:
Color: "#000001"
Author:
ImageUrl: "https://crafthead.net/helm/${#event.getPlayer().getUniqueId()}"
Name: '${#event.getPlayer().getName()}'
Description: |-
Coords: `[${block.getLocation().getBlockX() + ", " + block.getLocation().getBlockY() + ", " + block.getLocation().getBlockZ()}]`
```
${theLines[0]}
${theLines[1]}
${theLines[2]}
${theLines[3]}
```