grosse änderungen

This commit is contained in:
TheErrorExe 2025-02-23 21:35:30 +01:00
parent 55a49f0f1c
commit 15da0dbe47
3 changed files with 28 additions and 225 deletions

View File

@ -111,55 +111,6 @@ This Website was developed by TheErrorExe for Blockattack. TheErrorExe is and wi
}
</style>
<script>
async function loadNews() {
try {
const response = await fetch('https://api.errexe.xyz/blockattack-api/news/get');
const data = await response.json();
const newsContainer = document.getElementById('news-container');
newsContainer.innerHTML = '';
const latestNews = data.slice(0, 2);
if (latestNews.length === 0) {
newsContainer.innerHTML = 'Keine Neuigkeiten verfügbar.';
} else {
latestNews.forEach(newsItem => {
const newsElement = document.createElement('div');
newsElement.classList.add('news-item');
newsElement.innerHTML = `
<h3>${newsItem.title}</h3>
<p>${newsItem.content}</p>
<p class="news-author">Von: <span>${newsItem.author}</span></p>
`;
newsContainer.appendChild(newsElement);
});
}
} catch (error) {
console.error('Fehler beim Laden der Neuigkeiten:', error);
document.getElementById('news-container').innerHTML = 'Fehler beim Laden der Neuigkeiten.';
}
}
loadNews();
</script>
<section id="news-section" style="margin-bottom: 50px; border-bottom: 2px solid #ccc; padding-bottom: 20px;">
<main style="padding: 20px;">
<h1>Aktuelle Neuigkeiten</h1>
<div id="news-container">Fetching data...</div>
</main>
<br><br>
<a href="/news.html"
style="display: inline-block; padding: 10px 20px; background-color: #007bff; color: #fff; text-decoration: none; border-radius: 5px; text-align: center;">
Mehr anzeigen...
</a>
</section>
<section id="server-status">
<h2>Server Status</h2>
<div id="status-message">Lade Serverstatus...</div>

127
news.html
View File

@ -1,127 +0,0 @@
<!DOCTYPE html>
<html lang="de">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-QWEVVLV9Q1"></script>
<script src="/static/js/script.js"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-QWEVVLV9Q1');
</script>
<script>
document.getElementById("copy-ip-btn").addEventListener("click", function () {
const serverIP = "blockattack.fun";
navigator.clipboard.writeText(serverIP).then(function () {
alert("Server IP wurde kopiert!\nDer Port für Bedrock ist 25515\nViel Spaß 😃🥰");
}).catch(function (err) {
console.error("Fehler beim Kopieren der IP: ", err);
});
});
document.querySelectorAll('.card').forEach(card => {
card.addEventListener('click', () => {
const featureName = card.getAttribute('data-feature');
switch (featureName) {
case "Gebietsclaiming":
alert("Claime ganz einfach ein Gebiet mit /f claim und baue dein eigenes Land.");
break;
case "PVP-Kämpfe":
alert("Mach Kämpfe gegen andere Spieler des Blockattack Servers!");
break;
case "Events":
alert("Beteilige dich bei Events!");
break;
default:
alert("Feature nicht gefunden.");
}
});
});
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Nachrichten - Blockattack</title>
<link rel="stylesheet" href="/static/css/style.css">
<script>
async function loadNews() {
try {
const response = await fetch('https://api.errexe.xyz/blockattack-api/news/get');
const data = await response.json();
const newsContainer = document.getElementById('news-container');
newsContainer.innerHTML = '';
const latestNews = data.slice(-2);
if (latestNews.length === 0) {
newsContainer.innerHTML = 'Keine Neuigkeiten verfügbar.';
} else {
latestNews.forEach(newsItem => {
const newsElement = document.createElement('div');
newsElement.classList.add('news-item');
newsElement.innerHTML = `
<h3>${newsItem.title}</h3>
<p>${newsItem.content}</p>
<p class="news-author">Von: <span>${newsItem.author}</span></p>
`;
newsContainer.appendChild(newsElement);
});
}
} catch (error) {
console.error('Fehler beim Laden der Neuigkeiten:', error);
document.getElementById('news-container').innerHTML = 'Fehler beim Laden der Neuigkeiten.';
}
}
loadNews();
</script>
</head>
<body>
<header style="display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; background-color: #333;">
<nav>
<ul style="list-style: none; display: flex; margin: 0; padding: 0;">
<li>
<a href="/" style="display: flex; align-items: center; text-decoration: none; color: #fff;">
<img src="/favicon.ico" alt="Blockattack Logo" style="width: 32px; height: 32px; margin-right: 8px;">
<span style="font-size: 1.5rem; font-weight: bold;" class="textcolorgradient">Blockattack</span>
</a>
</li>
<li><a href="/server.html" style="text-decoration: none; color: #fff; margin-left: 20px;">Server Info</a></li>
<li><a href="/news.html" style="text-decoration: none; color: #fff; margin-left: 20px;">Neuigkeiten</a></li>
<li><a href="/guide.html" style="text-decoration: none; color: #fff; margin-left: 20px;">Beitrittsguide</a></li>
<li><a href="/bilder.html" style="text-decoration: none; color: #fff; margin-left: 20px;">Bildergalerie</a></li>
<li><a href="/wiki" style="text-decoration: none; color: #fff; margin-left: 20px;">Wiki</a></li>
<li><a href="/drmifo#streamingplan" style="text-decoration: none; color: #fff; margin-left: 20px;">Mifos Streamingplan</a></li>
</ul>
</nav>
</header>
<main style="padding: 20px;">
<h1>Aktuelle Neuigkeiten</h1>
<div id="news-container">Fetching data...</div>
</main>
<footer>
<p>&copy; BlockAttack 2025</p>
<p>Gehostet auf <a href="https://billing.mine-server.net/?ref=DRMIFO" target="_blank" style="color: inherit; text-decoration: inherit;">mine-server.org</a></p>
<p>Website von <a href="https://errexe.xyz" target="_blank" style="color: inherit; text-decoration: inherit;">TheErrorExe</a></p>
<p style=" display: inline;"> und <a href="https://github.com/GomorrhaDev" target="_blank"
style="color: inherit; text-decoration: inherit; display: inline;">GomorrhaDev</a></p>
<br>
<a href="/privacy.html" style="display: inline;">Privacy</a>
<p style="display: inline;"> | </p><a href="/terms.html" style="display: inline;">Terms of Service</a>
</footer>
</body>
</html>

View File

@ -153,11 +153,11 @@
</ul>
</nav>
</header>
<div id="content">
<h1>Blockattack Wiki</h1>
<p>Beginne auf Blockattack</p>
<div id="toc">
<strong>Inhaltsverzeichnis</strong>
<ul>
@ -165,54 +165,33 @@
<li><a href="#geld">Geld verdienen. Von Shopkisten bis zur Lottery alles erklärt.</a></li>
<li><a href="#pvp">PVP. Von Kämpfen bis zum Frieden</a></li>
<li><a href="#homes">Homes. Von /sethome bis zu /home</a></li>
<li><a href="#</li>
<!-- li><a href="#"></a></li> -->
</ul>
</div>
<h2 id="land">Wie erstelle ich mein Land. Alles rund ums Land erklärt.</h2>
<p>Um dem Blockattack-Server beizutreten, benötigst du die folgende IP-Adresse:</p>
<p><strong>Server IP:</strong> blockattack.fun</p>
<p>Falls du mit Bedrock spielst, nutze die IP <strong>bedrock.blockattack.fun</strong> und den Port <strong>25515</strong>.</p>
<a href="https://blockattack.fun/join">Mehr Infos und die Konsolen anleitung</a>
<h2 id="voicechat">Wie benutze ich Voice Chat?</h2>
<p>Du möchtest Voice Chat auf Blockattack benutzen? Hier ist eine Anleitung. Zuerst wähle dein Client</p>
<ul>
<li><a href="#" onclick="showIframe('https://www.youtube.com/embed/9EOXBiaJlOA')">Lunarclient</a></li>
<li><a href="#" onclick="showIframe('https://www.youtube.com/watch?v=hyT8qcHSVP0')" >Feather</a></li>
<li><a href="/wiki/voicechat/vanilla.html">Normaler Minecraft Launcher (ohne Fabric oder Forge, einfach Vanilla)</a></li>
<li><a href="/wiki/voicechat/vanilla.html#simple-voice-chat">Fabric</a></li>
<li><a href="/wiki/voicechat/vanilla.html#simple-voice-chat">Forge wähle statt fabric forge) (für Curseforge klicke auf Lunarclient oben)</a></li>
<li><a href="#" onclick="newtab('https://www.curseforge.com/minecraft/mc-mods/simple-voice-chat')">Ich weiß wie man Mods mit .jar Dateien installiert, gib mir einfach den Download</a></li>
</ul>
<p>Bedrock Spieler können keinen Voice Chat benutzen</p>
<p>Info für Modrinth APP Nutzer, sucht einfach nach der Mod bei Add Content</p>
<h2 id="claims">Wie claimt man Land?</h2>
<p>Auf Blockattack kannst du dein eigenes Land beanspruchen, um es vor anderen Spielern zu schützen. Folge diesen Schritten:</p>
<ul>
<li>Benutze <code>/f create [Landname]</code>, um ein Land zu gründen oder <code>/f join [Landname]</code> wenn du eine Einladung zu einer anderen Faction bekommen hast.</li>
<li>Erweitere dein Gebiet mit <code>/f claim</code>.</li>
<li>Verwalte deine Claims mit <code>/f trust [Spielername]</code>, um Freunden Zugriff zu geben.</li>
</ul>
<h2 id="wirtschaft">Wirtschaftssystem erklärt</h2>
<p>Blockattack besitzt ein einzigartiges Wirtschaftssystem mit eigener Währung.</p>
<ul>
<li>Verdiene Geld durch Handel mit anderen Spielern.</li>
<li>Klicke mit einem zu Item zu Verkaufen auf eine Kiste und gebe den Preis pro Stück im Chat ohne / an. Fülle die Truhe auf und verdiene dir Blockcoins!</li>
<li>Am Scoreboard (Die Leiste Rechts mit blockattack.fun, Geld, YouTube) kannst du deine Blockcoins sehen.</li>
</ul>
<h2 id="pvp">PvP-Welt</h2>
<p>Es gibt eine PVP Welt. Achte hierbei auf:</p>
<ul>
<li>Das in der PVP Welt Items fallengelassen werden beim Sterben.</li>
<li>Du kannst beim Tod von anderen den Loot aufsammeln.</li>
<li>Du kommst zur PVP Welt mit <code>/warp pvp</code> oder am PVP NPC am Spawn.</li>
</ul>
<p>Du kannst dein Land mit <code>/f create [Landname]</code> erstellen. Du kannst andere mit <code>/f invite [Spieler]</code> einladen in deine Faction.</p>
<p>Du kannst mit <code>/f join [Landname]</code> ein Land/Faction beitreten.</p>
<p>Du kannst Land beanspruchen mit <code>/f claim</code>. Du kannst andere dein Land anvertrauen mit <code>/f trust [Spieler]</code></p>
<p>Du kannst andere Länder vertrauen mit <code>/f ally [Land]</code>, und wieder beenden mit <code>/f breakalliance</code>.</p>
<p>Du kannst Krieg beginnen mit <code>/f declarewar [Land]</code>, und ihn beenden mit <code>/f makepeace [Land]</code>.</p>
<h2 id="geld">Geld verdienen. Von Shopkisten bis zur Lottery alles erklärt.</h2>
<p>Du möchtest Ingame-Geld verdienen auf Blockattack? Hier ist wie.</p>
<p>Du kannst Shopkisten erstellen indem du mit dem Item das du verkaufen willst auf eine Kiste schlägst und den Preis pro Stück/stack in den Chat eingibst. Fülle die Truhe nun auf und andere können kaufen und du verdienst daran.</p>
<p>Du kannst das Auktionshaus benutzen mit <code>/ah</code>.</p>
<p>Du kannst kurz vor 19:35 Geld in die Lotterie reinzahlen mit <code>/lottery play</code> und mit etwas Glück verdienst du was.</p>
<h2 id="pvp">PVP. Von Kämpfen bis zum Frieden</h2>
<p>Es gibt extra eine PVP Welt, aber Achtung: Wer verliert verliert auch die Items.</p>
<p>Du kommst zur PVP Welt mti <code>/warp pvp</code>. Du kannst wenn du gewinnst schön Loot sammeln.</p>
<h2 id="homes">Homes. Von /sethome bis zu /home</h2>
<p>Was sind Homes? Homes sind von dir festgelegte Orte wo du dich hinteleportieren kannst.</p>
<p>Du kannst mit <code>/sethome [Name]</code> ein Home erstellen. Du kannst dich zum Home teleportieren mit <code>/home [Name]</code>.</p>
<p>Du kannst ein Home löschen mit <code>/removehome [Name]</code></p>
</div>
<footer>
<p>&copy; Blockattack 2025 | Seite von TheErrorExe.</p>
<a href="/">Zurück zur Hauptseite</a>
@ -228,7 +207,7 @@
overlay.style.height = '100%';
overlay.style.backgroundColor = 'rgba(0, 0, 0, 0.7)';
overlay.style.zIndex = '9999';
const iframe = document.createElement('iframe');
iframe.src = url;
@ -240,11 +219,11 @@
iframe.style.height = '80%';
iframe.style.border = 'none';
iframe.style.borderRadius = '8px';
overlay.appendChild(iframe);
document.body.appendChild(overlay);
overlay.addEventListener('click', function() {
document.body.removeChild(overlay);