mirror of
https://github.com/hubHarmony/servii-frontend.git
synced 2024-11-17 21:40:30 +00:00
commit
7cba360e42
@ -46,13 +46,15 @@ const ServerDetails = ({ user }) => {
|
|||||||
['max-players', server.maxPlayers.toString()],
|
['max-players', server.maxPlayers.toString()],
|
||||||
['motd', server.motd],
|
['motd', server.motd],
|
||||||
['difficulty', server.difficulty],
|
['difficulty', server.difficulty],
|
||||||
['enableCommandBlock', server.enableCommandBlock.toString()],
|
['enable-command-block', server.enableCommandBlock.toString()],
|
||||||
['gamemode', server.gamemode],
|
['gamemode', server.gamemode.toString()],
|
||||||
['hardcore', server.hardcore.toString()],
|
['hardcore', server.hardcore.toString()],
|
||||||
['onlineMode', server.onlineMode.toString()],
|
['online-mode', server.onlineMode.toString()],
|
||||||
['pvp', server.pvp.toString()]
|
['pvp', server.pvp.toString()]
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
await serviiApi.updateProperties(server.name, props);
|
await serviiApi.updateProperties(server.name, props);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error updating server:', error);
|
console.error('Error updating server:', error);
|
||||||
@ -62,7 +64,7 @@ const ServerDetails = ({ user }) => {
|
|||||||
|
|
||||||
const handleQuit = () => {
|
const handleQuit = () => {
|
||||||
navigate('/dashboard');
|
navigate('/dashboard');
|
||||||
}
|
};
|
||||||
|
|
||||||
if (loading) {
|
if (loading) {
|
||||||
return <Loading />;
|
return <Loading />;
|
||||||
@ -143,7 +145,6 @@ const ServerDetails = ({ user }) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default ServerDetails;
|
export default ServerDetails;
|
||||||
|
Loading…
Reference in New Issue
Block a user