Acemavie
Acemavie
Explore posts from servers
AAdmincraft
Created by Acemavie on 12/18/2024 in #questions
Issue when connecting to a forge server
We just recently updated to Forge 1.20.1, I was successfully in the server for like 2 hours yesterday but today everybody who tries to join gets this error (attachement). The server log is here; https://mclo.gs/FDcxvxT http://x.acemavie.eu/u/i40dlD.png
8 replies
AAdmincraft
Created by Acemavie on 12/7/2024 in #questions
Issue with server lag
I am running a Forge 1.19.2 server. We are having quite bad lag for the few last days. I am very aware that the cpu is horrible, but before it was fine. Here is the spark report (ran for 5min) https://spark.lucko.me/UvCm1civNN
12 replies
HHono
Created by Acemavie on 12/6/2024 in #help
Issue with ConnInfo
I'm trying to use const info = getConnInfo(c) To get the ip adress of the user for ratelimiting, but when I do console.log(info) I get this wrong ip: { remote: { address: '::ffff:172.18.0.1', port: 56124, addressType: 'IPv6' } } What could be the cause and how would I fix that? Thanks in advance
9 replies
AAdmincraft
Created by Acemavie on 11/25/2024 in #questions
Forge Server not logging commands
I have a 1.19.2 Forge server(43.4.0) When players are running commands for example /game mode creative it won't show up in console. How can I fix this so it shows like paper servers do?
21 replies
AAdmincraft
Created by Acemavie on 9/23/2024 in #questions
How good is a Ryzen 9 5950x
Basically the title says it, but how good is it for modern minecraft 1.21? Some kind of estimate how many players could it handle on one paper server for example.
36 replies
AAdmincraft
Created by Acemavie on 8/25/2024 in #questions
Velocity stopped working randomly
Today I tried joining my server and it just isn't working anymore console has no errors boots fine, but nobody can't connect it doesn't ping even status pages say it's offline, its selfhosred and even local ip doesn't work. Server is also hosted on pterodactyl if that helps anything, also latest velocity build
29 replies
AAdmincraft
Created by Acemavie on 8/16/2024 in #questions
Pterodactyl with nginx proxy manager.
I have been using pterodactyl about a year now but using a port like panel.example.com:9090 No idea why I chose 9090. I didn't have 80 available I know for a fact. But now I wanted to add ssl and make it just panel.foxia.eu so I got NPM. I got to the point when I found out that I need ssl for wings aswell for it to work. My issue is that when getting a ssl certificate using the guide here: https://pterodactyl.io/tutorials/creating_ssl_certificates.html#method-2:-acme.sh-(using-cloudflare-api) (2nd method, beacuse no 80 port and it didn't work) the second mnethod worked fine apaprantly but when I went to the location/etc/letsencrypt/live/example.com/fullchain.pem the example.com ofcourse beign my domain, it just wasn't there. Everything until the domain directory exists. I earlier made myself a panel.mydomain.eu and that is there but my wings.mydomain.eu isn't there. What could be the issue?
2 replies
AAdmincraft
Created by Acemavie on 7/25/2024 in #questions
Maintained 1.8 fork
Is there a maintained 1.8 fork of spigot except pandaspigot?
16 replies
DIAdiscord.js - Imagine an app
Created by Acemavie on 3/11/2024 in #djs-questions
Adding role to a user
I have a function that should add a role to a user.
async function assignRole(userId, roleId) {
try {
const guild = client.guilds.cache.get('922553636494639134');
const member = guild.members.cache.get(userId);
const role = guild.roles.cache.get(roleId);

if (member && role) {
await member.roles.add(role);
console.log(`Role ${role.name} added to user ${member.user}`);
} else {
console.error('Error assigning role: Member or role not found.');
}
} catch (error) {
console.error('Error assigning role:', error.message);
}
}
async function assignRole(userId, roleId) {
try {
const guild = client.guilds.cache.get('922553636494639134');
const member = guild.members.cache.get(userId);
const role = guild.roles.cache.get(roleId);

if (member && role) {
await member.roles.add(role);
console.log(`Role ${role.name} added to user ${member.user}`);
} else {
console.error('Error assigning role: Member or role not found.');
}
} catch (error) {
console.error('Error assigning role:', error.message);
}
}
I am calling it using this line:
await assignRole(participant.user_id, roleId);
await assignRole(participant.user_id, roleId);
And I am also import client from the index.js file which module.exports the client. But When running that function I get this error: Error assigning role: Cannot read properties of undefined (reading 'cache') (node:41004) Warning: Accessing non-existent property 'guilds' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created)
11 replies
DIAdiscord.js - Imagine an app
Created by Acemavie on 3/10/2024 in #djs-questions
Collectro recieved no interaction before ending with reason: time
I have a signup modal that has a collector on it. But I don't know how to prevent it from crashing if the time expires. const submit = await interaction.awaitModalSubmit({ filter: (interaction) => interaction.isModalSubmit() && interaction.customId === 'signup_modal', time: 60000 });
const minecraftUsername = await submit.fields.getTextInputValue('minecraftusername');
const event = db.get(events.${eventId}); if (!event) { return await submit.reply("Event not found. Please try again."); } event.participants = event.participants || []; event.participants.push({ userId, minecraftUsername }); db.set(events.${eventId}, event);
await submit.reply("You have successfully signed up for the event.");
32 replies
DIAdiscord.js - Imagine an app
Created by Acemavie on 3/7/2024 in #djs-questions
Modal submission help
I am trying to make a modal that asks for your minecraft username and then put it to the database. The modal opens successfully with my one field. But when I click submit it says interaction failed. I couldn't find something in the docs either. No errors in console. The code: https://pastebin.com/BiURBb6R
59 replies
DIAdiscord.js - Imagine an app
Created by Acemavie on 3/7/2024 in #djs-questions
Can you use variable in embedBuilder name and description?
I have a embedBuilder instance and It doesn't seem to work. const embed = new EmbedBuilder() .setTitle(name) .setDescription(description) .setColor('#0099ff'); The error is as follows: R:\Developer\Discord bots\Foxia\Foxia Events\node_modules@sapphire\shapeshift\dist\cjs\index.cjs:1854 return Result.err(new CombinedError(errors)); ^ CombinedError: Received one or more errors at _UnionValidator.handle (R:\Developer\Discord bots\Foxia\Foxia Events\node_modules@sapphire\shapeshift\dist\cjs\index.cjs:1854:23) at _UnionValidator.parse (R:\Developer\Discord bots\Foxia\Foxia Events\node_modules@sapphire\shapeshift\dist\cjs\index.cjs:939:90) at EmbedBuilder.setTitle (R:\Developer\Discord bots\Foxia\Foxia Events\node_modules@discordjs\builders\dist\index.js:373:20) at sendEventEmbed (R:\Developer\Discord bots\Foxia\Foxia Events\src\functions\event\eventEmbed.js:24:10) at Object.<anonymous> (R:\Developer\Discord bots\Foxia\Foxia Events\index.js:13:83) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Module.load (node:internal/modules/cjs/loader:1119:32) at Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { errors: [ ExpectedValidationError: Expected values to be equals at _LiteralValidator.handle (R:\Developer\Discord bots\Foxia\Foxia Events\node_modules@sapphire\shapeshift\dist\cjs\index.cjs:1485:76) at _LiteralValidator.run (R:\Developer\Discord bots\Foxia\Foxia Events\node_modules@sapphire\shapeshift\dist\cjs\index.cjs:925:23) at _UnionValidator.handle (R:\Developer\Discord bots\Foxia\Foxia Events\node_modules@sapphire\shapeshift\dist\cjs\index.cjs:1849:32) at _UnionValidator.parse (R:\Developer\Discord bots\Foxia\Foxia Events\node_modules@sapphire\shapeshift\dist\cjs\index.cjs:939:90) at EmbedBuilder.setTitle (R:\Developer\Discord bots\Foxia\Foxia Events\node_modules@discordjs\builders\dist\index.js:373:20) at sendEventEmbed (R:\Developer\Discord bots\Foxia\Foxia Events\src\functions\event\eventEmbed.js:24:10) at Object.<anonymous> (R:\Developer\Discord bots\Foxia\Foxia Events\index.js:13:83) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Module.load (node:internal/modules/cjs/loader:1119:32) { validator: 's.literal(V)', given: undefined, expected: null }, ValidationError: Expected a string primitive at _StringValidator.handle (R:\Developer\Discord bots\Foxia\Foxia Events\node_modules@sapphire\shapeshift\dist\cjs\index.cjs:2473:70) at _StringValidator.run (R:\Developer\Discord bots\Foxia\Foxia Events\node_modules@sapphire\shapeshift\dist\cjs\index.cjs:925:23) at _UnionValidator.handle (R:\Developer\Discord bots\Foxia\Foxia Events\node_modules@sapphire\shapeshift\dist\cjs\index.cjs:1849:32) at _UnionValidator.parse (R:\Developer\Discord bots\Foxia\Foxia Events\node_modules@sapphire\shapeshift\dist\cjs\index.cjs:939:90) at EmbedBuilder.setTitle (R:\Developer\Discord bots\Foxia\Foxia Events\node_modules@discordjs\builders\dist\index.js:373:20) at sendEventEmbed (R:\Developer\Discord bots\Foxia\Foxia Events\src\functions\event\eventEmbed.js:24:10) at Object.<anonymous> (R:\Developer\Discord bots\Foxia\Foxia Events\index.js:13:83) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Module.load (node:internal/modules/cjs/loader:1119:32) { validator: 's.string', given: undefined } ] } Node.js v18.17.1
6 replies
DIAdiscord.js - Imagine an app
Created by Acemavie on 9/11/2023 in #djs-questions
SlashCommandBuilder error
17 replies
AAdmincraft
Created by Acemavie on 7/11/2023 in #questions
Only one player has extremely bad ping
Hey, I launched a server couple of weeks ago and one of my friend has a extremely bad ping, and the interesting part is when he's afk the ping is like 51 but when he goes to the nether or starts to pvp it's goes to like 3000. Anyone got ideas why?
38 replies
DIAdiscord.js - Imagine an app
Created by Acemavie on 11/8/2022 in #djs-questions
Need help with NaN
4 replies