Emily
Emily
Explore posts from servers
AAdmincraft
Created by Emily on 4/13/2025 in #questions
Items disappearing from chests
Players on my server have had chests just completely clear their contents suddenly. I found this reddit post that kinda describes something similar: https://www.reddit.com/r/admincraft/comments/1jrxgfw/items_disappearing_from_chests_in_server/ I'm completely lost on where to start with this. I only have vanilla-compatible mods. The only suspects I have is Ledger or maybe Chunky?? I really don't know. Here's my server declaration:
services:
mc:
image: itzg/minecraft-server
tty: true
stdin_open: true
environment:
EULA: "TRUE"
TYPE: FABRIC
MEMORY: 8G
VERSION: 1.21.5
MOTD: |
§7A §2Minecraft §7server
§7Powered by §3Docker
MODRINTH_ALLOWED_VERSION_TYPE: BETA
MODRINTH_PROJECTS: |-
fabric-api
spark
fabricexporter
fabric-language-kotlin
ledger
appleskin
no-chat-reports
jade
distanthorizons
chunky
leaves-be-gone
puzzles-lib
forge-config-api-port
bluemap
silk
shulkerboxtooltip
luckperms
styledplayerlist
universal-graves
styled-nicknames
styled-chat
sessility
placeholder-api
MODS: |
https://ci.lucko.me/job/LuckPermsPlaceholders/lastSuccessfulBuild/artifact/fabric-placeholderapi/build/libs/LuckPerms-Fabric-PlaceholderAPI-Hook.jar
USE_AIKAR_FLAGS: true
ALLOW_FLIGHT: true
SPAWN_PROTECTION: 0
volumes:
- ./mc-data:/data
ports:
- name: bluemap
target: 8100
published: 8100
protocol: tcp
networks:
- mc-net
- prometheus_network
- cloudflare
services:
mc:
image: itzg/minecraft-server
tty: true
stdin_open: true
environment:
EULA: "TRUE"
TYPE: FABRIC
MEMORY: 8G
VERSION: 1.21.5
MOTD: |
§7A §2Minecraft §7server
§7Powered by §3Docker
MODRINTH_ALLOWED_VERSION_TYPE: BETA
MODRINTH_PROJECTS: |-
fabric-api
spark
fabricexporter
fabric-language-kotlin
ledger
appleskin
no-chat-reports
jade
distanthorizons
chunky
leaves-be-gone
puzzles-lib
forge-config-api-port
bluemap
silk
shulkerboxtooltip
luckperms
styledplayerlist
universal-graves
styled-nicknames
styled-chat
sessility
placeholder-api
MODS: |
https://ci.lucko.me/job/LuckPermsPlaceholders/lastSuccessfulBuild/artifact/fabric-placeholderapi/build/libs/LuckPerms-Fabric-PlaceholderAPI-Hook.jar
USE_AIKAR_FLAGS: true
ALLOW_FLIGHT: true
SPAWN_PROTECTION: 0
volumes:
- ./mc-data:/data
ports:
- name: bluemap
target: 8100
published: 8100
protocol: tcp
networks:
- mc-net
- prometheus_network
- cloudflare
2 replies
AAdmincraft
Created by Emily on 3/29/2025 in #questions
Domain checking with Velocity
Can I do something like SNI inspection for http with Velocity and or maybe Traefik? I basically just wanna block connecting with the IP and only accept ones with the right domain :ratJAM: I get that Minecraft doesn't use tls or anything like that just something to achieve the same thing
17 replies
AAdmincraft
Created by Emily on 3/10/2025 in #questions
What's a good way to block connections from scanners if you can't make changes to the firewall
asking on behalf of someone else, idk why they can't use firewall :Waiting:
17 replies
DIAdiscord.js - Imagine an app
Created by Emily on 7/19/2023 in #djs-questions
GuildMemberUpdate's oldMember doesn't have correct roles.
- [email protected] - Node v16.20.1 I'm trying to run some code only when a specific role is either added or removed. After just starting the bot; the oldMember will always only have 1 role (@ everyone). After this code has been run at least once (I assumed) the member will be cached and it can correctly determine the oldMember's roles.
const { Events } = require('discord.js');
require('dotenv').config();

module.exports = {
name: Events.GuildMemberUpdate,
async execute(oldMember, newMember) {
console.log(oldMember.roles.cache); //oldMember only has @everyone role
console.log(newMember.roles.cache); //newMember correctly has 3 or 4 different roles depending on whether the role was just added or removed.
if (
!(
oldMember.roles.resolve(process.env.GREETER_ROLE_ID) ||
newMember.roles.resolve(process.env.GREETER_ROLE_ID)
)
) {
console.log("Event doesn't concern greeter role"); // This gets run if the member isn't cached but the correct role was removed.
return;
} else {
console.log("Event concerns greeter role") //After removing the role and adding it back this will be run every time from now on
}
},
};
const { Events } = require('discord.js');
require('dotenv').config();

module.exports = {
name: Events.GuildMemberUpdate,
async execute(oldMember, newMember) {
console.log(oldMember.roles.cache); //oldMember only has @everyone role
console.log(newMember.roles.cache); //newMember correctly has 3 or 4 different roles depending on whether the role was just added or removed.
if (
!(
oldMember.roles.resolve(process.env.GREETER_ROLE_ID) ||
newMember.roles.resolve(process.env.GREETER_ROLE_ID)
)
) {
console.log("Event doesn't concern greeter role"); // This gets run if the member isn't cached but the correct role was removed.
return;
} else {
console.log("Event concerns greeter role") //After removing the role and adding it back this will be run every time from now on
}
},
};
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
],
partials: [Partials.GuildMember],
});
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
],
partials: [Partials.GuildMember],
});
46 replies