changed to forge

This commit is contained in:
2025-11-06 01:16:33 +01:00
parent 8f46bb563c
commit 60ba0b2bf6
5 changed files with 18 additions and 23 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 KiB

After

Width:  |  Height:  |  Size: 121 KiB

View File

@@ -18,9 +18,7 @@ const App = () => {
<Routes> <Routes>
<Route path="/" element={<Inicio />} /> <Route path="/" element={<Inicio />} />
<Route path="/mods" element={ <Route path="/mods" element={
<ProtectedRoute minimumRoles={[CONSTANTS.ADMIN_ROLE]}> <Mods />
<Mods />
</ProtectedRoute>
} /> } />
<Route path="/jugadores" element={ <Route path="/jugadores" element={
<ProtectedRoute minimumRoles={[CONSTANTS.ADMIN_ROLE]}> <ProtectedRoute minimumRoles={[CONSTANTS.ADMIN_ROLE]}>

View File

@@ -44,14 +44,12 @@ const Header = () => {
INICIO INICIO
</div> </div>
</Link> </Link>
<IfRole roles={[CONSTANTS.ADMIN_ROLE]}> <Link to="mods" className='nav-link'>
<Link to="mods" className='nav-link'> <div className='align-items-center d-flex gap-2'>
<div className='align-items-center d-flex gap-2'> {Icons.AddGrid}
{Icons.AddGrid} MODS
MODS </div>
</div> </Link>
</Link>
</IfRole>
<IfRole roles={[CONSTANTS.ADMIN_ROLE]}> <IfRole roles={[CONSTANTS.ADMIN_ROLE]}>
<Link to="jugadores" className='nav-link'> <Link to="jugadores" className='nav-link'>
<div className='align-items-center d-flex gap-2'> <div className='align-items-center d-flex gap-2'>
@@ -61,7 +59,7 @@ const Header = () => {
</Link> </Link>
</IfRole> </IfRole>
<IfAuthenticated> <IfAuthenticated>
<ProfilePicture userName={user?.user_name} part="helm" /> <ProfilePicture userName={user?.user_name == "Gallardo7761" ? "0x6a6f7365" : user?.user_name} part="helm" />
</IfAuthenticated> </IfAuthenticated>
<IfNotAuthenticated> <IfNotAuthenticated>
<ProfilePicture userName="Steve" part="avatar" /> <ProfilePicture userName="Steve" part="avatar" />
@@ -95,14 +93,12 @@ const Header = () => {
INICIO INICIO
</div> </div>
</Link> </Link>
<IfRole roles={[CONSTANTS.ADMIN_ROLE, CONSTANTS.PLAYER_ROLE]}> <Link to="mods" className='nav-link mt-4' onClick={closeMenu}>
<Link to="mods" className='nav-link mt-4' onClick={closeMenu}> <div className='align-items-center d-flex gap-2'>
<div className='align-items-center d-flex gap-2'> {Icons.AddGrid}
{Icons.AddGrid} MODS
MODS </div>
</div> </Link>
</Link>
</IfRole>
<IfRole roles={[CONSTANTS.ADMIN_ROLE]}> <IfRole roles={[CONSTANTS.ADMIN_ROLE]}>
<Link to="jugadores" className='nav-link mt-4' onClick={closeMenu}> <Link to="jugadores" className='nav-link mt-4' onClick={closeMenu}>
<div className='align-items-center d-flex gap-2'> <div className='align-items-center d-flex gap-2'>

View File

@@ -2,6 +2,7 @@ import CustomContainer from "@/components/layout/CustomContainer";
import { Col, Row, Modal } from "react-bootstrap"; import { Col, Row, Modal } from "react-bootstrap";
import { useState } from "react"; import { useState } from "react";
import ContentWrapper from "../layout/ContentWrapper"; import ContentWrapper from "../layout/ContentWrapper";
import { Link } from "react-router-dom";
const Inicio = () => { const Inicio = () => {
const [modalShown, setModalShown] = useState(false); const [modalShown, setModalShown] = useState(false);
@@ -41,7 +42,7 @@ const Inicio = () => {
{step === 2 && ( {step === 2 && (
<> <>
<p> <p>
El servidor se encuentra en la version <b>1.21.10</b>, así que tendrás que seleccionar esa versión en el launcher. Permitimos <b>mods</b> client-side que no den ventaja sobre otros jugadores (como shaders, Mouse-Tweaks, etc). El servidor se encuentra en la versión <strong>1.20.1</strong> de Minecraft y <strong>47.4.0</strong> de Forge. Selecciona 1.20.1 en el launcher que estés usando, y descarga desde la <a href="https://files.minecraftforge.net/net/minecraftforge/forge/index_1.20.1.html">página de Forge</a> la versión correspondiente. Además deberás descargar <Link to={`/mods`}>nuestro modpack</Link>.
</p> </p>
</> </>
)} )}

View File

@@ -39,10 +39,10 @@ const ProfileContent = ({ reqConfig }) => {
<CustomContainer> <CustomContainer>
<ContentWrapper> <ContentWrapper>
<div className="minecraft-card not-animated row"> <div className="minecraft-card not-animated row">
<h1 className="header col-12 mb-4">{data.user_name}</h1> <h1 className="header col-12 mb-4">{data?.user_name == "Gallardo7761" ? "0x6a6f7365" : data?.user_name}</h1>
<ReactSkinview3d <ReactSkinview3d
className="col-4" className="col-4"
skinUrl={`https://mineskin.eu/skin/${data.user_name}`} skinUrl={`https://mineskin.eu/skin/${data?.user_name == "Gallardo7761" ? "0x6a6f7365" : data?.user_name}`}
width={250} width={250}
height={500} height={500}
onReady={({viewer}) => { onReady={({viewer}) => {