-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwiki.html
More file actions
656 lines (597 loc) · 20.8 KB
/
wiki.html
File metadata and controls
656 lines (597 loc) · 20.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Wiki — HyClans Plugin</title>
<link rel="icon" type="image/png" href="images/logo.png" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Unbounded:wght@300;400;700;900&family=Inter:wght@300;400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style/style.css">
<script src="https://unpkg.com/lucide@latest"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.4/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.4/ScrollTrigger.min.js"></script>
<style>
.wiki-container {
display: grid;
grid-template-columns: 250px 1fr;
gap: 2rem;
max-width: 1400px;
margin: 0 auto;
}
.wiki-sidebar {
background: var(--bg-card);
border: 1px solid var(--glass-border);
border-radius: 12px;
padding: 1.5rem;
height: fit-content;
position: sticky;
top: 2rem;
}
.wiki-search {
margin-bottom: 1.5rem;
}
.wiki-search input {
width: 100%;
padding: 0.75rem 1rem;
background: rgba(0,0,0,0.3);
border: 1px solid var(--glass-border);
border-radius: 8px;
color: var(--text-main);
font-size: 0.9rem;
}
.wiki-search input:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 2px rgba(77, 204, 255, 0.2);
}
.wiki-search input::placeholder {
color: var(--text-muted);
}
.search-suggestions {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: var(--bg-card);
border: 1px solid var(--glass-border);
border-radius: 8px;
max-height: 250px;
overflow-y: auto;
z-index: 1000;
display: none;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.search-suggestions::-webkit-scrollbar {
width: 6px;
}
.search-suggestions::-webkit-scrollbar-track {
background: rgba(0,0,0,0.1);
border-radius: 3px;
}
.search-suggestions::-webkit-scrollbar-thumb {
background: var(--primary);
border-radius: 3px;
}
.search-suggestions::-webkit-scrollbar-thumb:hover {
background: var(--accent);
}
.search-suggestions.show {
display: block;
}
.suggestion-item {
padding: 0.75rem 1rem;
cursor: pointer;
border-bottom: 1px solid var(--glass-border);
transition: 0.2s;
}
.suggestion-item:last-child {
border-bottom: none;
}
.suggestion-item:hover {
background: rgba(77, 204, 255, 0.1);
}
.suggestion-title {
font-weight: 600;
color: var(--primary);
margin-bottom: 0.25rem;
}
.suggestion-desc {
font-size: 0.85rem;
color: var(--text-muted);
}
.wiki-sidebar h3 {
color: var(--primary);
margin-bottom: 1rem;
font-size: 1.2rem;
}
.sidebar-nav {
list-style: none;
padding: 0;
}
.sidebar-nav li {
margin-bottom: 0.5rem;
}
.sidebar-nav a {
color: var(--text-main);
text-decoration: none;
padding: 0.5rem 0.75rem;
border-radius: 6px;
display: block;
transition: 0.3s;
}
.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-nav a.search-match {
background: rgba(77, 204, 255, 0.1);
color: var(--primary);
}
.wiki-content {
background: var(--bg-card);
border: 1px solid var(--glass-border);
border-radius: 12px;
padding: 2rem;
}
.wiki-section {
display: none;
}
.wiki-section.active {
display: block;
}
.wiki-section.search-highlight {
background: rgba(255, 193, 7, 0.05);
border: 1px solid rgba(255, 193, 7, 0.2);
}
.wiki-section h2 {
color: var(--primary);
margin-bottom: 1rem;
font-size: 1.8rem;
}
.wiki-section h3 {
color: var(--secondary);
margin-bottom: 0.8rem;
font-size: 1.4rem;
}
.wiki-section p {
margin-bottom: 1rem;
line-height: 1.6;
}
.code-block {
background: rgba(0,0,0,0.3);
border: 1px solid var(--glass-border);
border-radius: 8px;
padding: 1rem;
margin: 1rem 0;
font-family: 'Courier New', monospace;
font-size: 0.9rem;
overflow-x: auto;
}
.command-list {
background: rgba(0,0,0,0.3);
border: 1px solid var(--glass-border);
border-radius: 8px;
overflow: hidden;
margin: 1rem 0;
}
.command-item {
padding: 1rem;
border-bottom: 1px solid var(--glass-border);
}
.command-item:last-child {
border-bottom: none;
}
.command-name {
font-weight: 600;
color: var(--primary);
margin-bottom: 0.5rem;
}
.command-desc {
color: var(--text-muted);
font-size: 0.9rem;
}
.permission-table {
width: 100%;
border-collapse: collapse;
background: rgba(0,0,0,0.3);
border: 1px solid var(--glass-border);
border-radius: 8px;
overflow: hidden;
margin: 1rem 0;
}
.permission-table th,
.permission-table td {
padding: 0.8rem;
text-align: left;
border-bottom: 1px solid var(--glass-border);
}
.permission-table th {
background: rgba(77, 204, 255, 0.1);
font-weight: 600;
}
.permission-table tr:last-child td {
border-bottom: none;
}
@media (max-width: 1024px) {
.wiki-container { grid-template-columns: 1fr; }
.wiki-sidebar { position: static; }
}
</style>
</head>
<body>
<div class="bg-gradient"></div>
<canvas id="site-particles"></canvas>
<nav>
<div class="logo">
<div style="width: 68px; height: 68px; background: url('images/logo.png') center/cover; border-radius: 6px; margin-right: 10px;"></div>
<span>HYCLANS</span>
</div>
<div class="nav-links">
<a href="index.html">Home</a>
<a href="index.html#features">Features</a>
<a href="downloads.html">Downloads</a>
<a href="wiki.html" class="active">Wiki</a>
<a href="https://discord.gg/EDaYFTkB66" class="nav-cta">Discord</a>
</div>
</nav>
<section class="section">
<div class="section-header">
<h2>HyClans <span class="text-gradient">Wiki</span></h2>
<p>Complete documentation for the HyClans plugin.</p>
</div>
<div class="wiki-container">
<div class="wiki-sidebar">
<div class="wiki-search">
<input type="text" placeholder="Search documentation..." id="wiki-search">
<div class="search-suggestions" id="search-suggestions"></div>
</div>
<h3>Documentation</h3>
<ul class="sidebar-nav">
<li><a href="#getting-started" class="active">Getting Started</a></li>
<li><a href="#commands">Commands</a></li>
<li><a href="#permissions">Permissions</a></li>
<li><a href="#configuration">Configuration</a></li>
<li><a href="#troubleshooting">Troubleshooting</a></li>
</ul>
</div>
<div class="wiki-content">
<div id="getting-started" class="wiki-section active">
<h2>Getting Started</h2>
<h3>Installation</h3>
<ol>
<li>Download the latest plugin JAR from the <a href="downloads.html">downloads page</a></li>
<li>Place the JAR file in your server's <code>plugins</code> folder</li>
<li>Restart your Hytale server</li>
<li>The plugin will generate configuration files automatically</li>
</ol>
<h3>Requirements</h3>
<ul>
<li>Hytale Server (Early Access or later)</li>
<li>Java 17 or higher</li>
<li>At least 2GB RAM recommended</li>
</ul>
</div>
<div id="commands" class="wiki-section">
<h2>Commands</h2>
<p>All commands require the appropriate permissions. Use <code>/hyclans help</code> for in-game help.</p>
<div class="command-list">
<div class="command-item">
<div class="command-name">/clan create <name></div>
<div class="command-desc">Create a new clan with the specified name.</div>
</div>
<div class="command-item">
<div class="command-name">/clan invite <player></div>
<div class="command-desc">Invite a player to join your clan.</div>
</div>
<div class="command-item">
<div class="command-name">/clan claim</div>
<div class="command-desc">Claim the chunk you're standing in for your clan.</div>
</div>
<div class="command-item">
<div class="command-name">/clan info [clan]</div>
<div class="command-desc">View information about your clan or another clan.</div>
</div>
<div class="command-item">
<div class="command-name">/clan leave</div>
<div class="command-desc">Leave your current clan.</div>
</div>
<div class="command-item">
<div class="command-name">/clan war <clan></div>
<div class="command-desc">Declare war on another clan (requires leadership permission).</div>
</div>
</div>
</div>
<div id="permissions" class="wiki-section">
<h2>Permissions</h2>
<p>HyClans uses a permission-based system. Grant permissions using your permission plugin.</p>
<table class="permission-table">
<thead>
<tr>
<th>Permission</th>
<th>Description</th>
<th>Default</th>
</tr>
</thead>
<tbody>
<tr>
<td>hyclans.user</td>
<td>Basic clan commands</td>
<td>true</td>
</tr>
<tr>
<td>hyclans.create</td>
<td>Create new clans</td>
<td>true</td>
</tr>
<tr>
<td>hyclans.claim</td>
<td>Claim territory</td>
<td>true</td>
</tr>
<tr>
<td>hyclans.admin</td>
<td>Administrative commands</td>
<td>op</td>
</tr>
<tr>
<td>hyclans.bypass</td>
<td>Bypass clan restrictions</td>
<td>op</td>
</tr>
</tbody>
</table>
</div>
<div id="configuration" class="wiki-section">
<h2>Configuration</h2>
<p>The plugin generates a <code>config.yml</code> file in <code>plugins/HyClans/</code> on first run.</p>
<h3>Basic Settings</h3>
<div class="code-block">
# Maximum clan name length
max-clan-name-length: 16
# Maximum clan tag length
max-clan-tag-length: 5
# Maximum players per clan
max-clan-size: 20
# Territory claim cost (in-game currency)
claim-cost: 1000
# War declaration cost
war-cost: 5000
</div>
<h3>Economy Settings</h3>
<div class="code-block">
# Enable clan taxes
taxes-enabled: true
# Tax rate (percentage)
tax-rate: 5.0
# Tax collection interval (minutes)
tax-interval: 60
</div>
</div>
<div id="troubleshooting" class="wiki-section">
<h2>Troubleshooting</h2>
<h3>Common Issues</h3>
<ul>
<li><strong>Plugin not loading:</strong> Check server logs for errors. Ensure Java 17+ is installed.</li>
<li><strong>Commands not working:</strong> Verify permissions are set correctly.</li>
<li><strong>Database errors:</strong> Check file permissions on the plugins folder.</li>
</ul>
<h3>Getting Help</h3>
<p>If you encounter issues not covered here, join our <a href="https://discord.gg/EDaYFTkB66">Discord server</a> for support.</p>
</div>
</div>
</div>
</section>
<footer>
<div class="footer-content">
<div class="footer-col" style="flex: 2; min-width: 300px;">
<div class="logo" style="margin-bottom: 1rem;"><span>HYCLANS</span></div>
<p style="color: #666; max-width: 350px;">
The ultimate Clans plugin for Hytale servers. Not affiliated with Hypixel Studios. All game assets are property of their respective owners.
</p>
</div>
<div class="footer-col">
<h5>Plugin</h5>
<ul>
<li><a href="downloads.html">Downloads</a></li>
<li><a href="index.html#features">Features</a></li>
<li><a href="wiki.html">Wiki</a></li>
<li><a href="#">Support</a></li>
</ul>
</div>
<div class="footer-col">
<h5>Community</h5>
<ul>
<li><a href="https://discord.gg/EDaYFTkB66">Discord</a></li>
<li><a href="#">Forums</a></li>
<li><a href="#">Bug Reports</a></li>
<li><a href="#">Feature Requests</a></li>
</ul>
</div>
</div>
<div class="copyright">
© 2025 HyClans Network.
</div>
</footer>
<script>
// Initialize Lucide Icons
lucide.createIcons();
// GSAP Animations
gsap.registerPlugin(ScrollTrigger);
// Particle System
const canvas = document.getElementById("site-particles");
const ctx = canvas.getContext("2d");
let particles = [];
function resize() {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
}
window.addEventListener("resize", resize);
resize();
class Particle {
constructor() {
this.reset();
}
reset() {
this.x = Math.random() * canvas.width;
this.y = Math.random() * canvas.height;
this.vx = (Math.random() - 0.5) * 0.2;
this.vy = (Math.random() - 0.5) * 0.2;
this.size = Math.random() * 2;
this.alpha = Math.random() * 0.5;
}
update() {
this.x += this.vx;
this.y += this.vy;
if (this.x < 0 || this.x > canvas.width) this.x = Math.random() * canvas.width;
if (this.y < 0 || this.y > canvas.height) this.y = Math.random() * canvas.height;
}
draw() {
ctx.beginPath();
ctx.arc(this.x, this.y, this.size, 0, Math.PI * 2);
ctx.fillStyle = `rgba(77, 204, 255, ${this.alpha})`;
ctx.fill();
}
}
for(let i=0; i<60; i++) particles.push(new Particle());
function animate() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
particles.forEach(p => { p.update(); p.draw(); });
requestAnimationFrame(animate);
}
animate();
// Wiki navigation
document.querySelectorAll('.sidebar-nav a').forEach(link => {
link.addEventListener('click', (e) => {
e.preventDefault();
const targetId = link.getAttribute('href').substring(1);
// Update active link
document.querySelectorAll('.sidebar-nav a').forEach(a => a.classList.remove('active'));
link.classList.add('active');
// Show target section
document.querySelectorAll('.wiki-section').forEach(section => section.classList.remove('active'));
document.getElementById(targetId).classList.add('active');
});
});
// Search functionality
const searchInput = document.getElementById('wiki-search');
const suggestionsContainer = document.getElementById('search-suggestions');
const sidebarLinks = document.querySelectorAll('.sidebar-nav a');
const sections = document.querySelectorAll('.wiki-section');
// Create searchable content index
const contentIndex = Array.from(sections).map(section => {
const title = section.querySelector('h2').textContent;
const content = section.textContent;
const id = section.id;
return { id, title, content };
});
searchInput.addEventListener('input', (e) => {
const query = e.target.value.toLowerCase().trim();
if (query === '') {
// Reset to default state
suggestionsContainer.classList.remove('show');
sidebarLinks.forEach(link => {
link.style.display = 'block';
link.classList.remove('search-match');
});
sections.forEach(section => {
section.classList.remove('search-highlight');
});
return;
}
// Find matching sections
const matchingSections = contentIndex.filter(item =>
item.title.toLowerCase().includes(query) ||
item.content.toLowerCase().includes(query)
);
// Generate suggestions with snippets
if (matchingSections.length > 0) {
const suggestions = matchingSections.map(item => {
// Find a relevant snippet
const contentLower = item.content.toLowerCase();
const queryIndex = contentLower.indexOf(query);
let snippet = item.content.substring(
Math.max(0, queryIndex - 50),
Math.min(item.content.length, queryIndex + query.length + 50)
);
if (queryIndex > 50) snippet = '...' + snippet;
if (queryIndex + query.length + 50 < item.content.length) snippet += '...';
return {
title: item.title,
snippet: snippet.replace(new RegExp(query, 'gi'), `<mark>${query}</mark>`),
section: item.id
};
});
suggestionsContainer.innerHTML = suggestions
.map(suggestion => `
<div class="suggestion-item" data-section="${suggestion.section}">
<div class="suggestion-title">${suggestion.title}</div>
<div class="suggestion-desc">${suggestion.snippet}</div>
</div>
`).join('');
suggestionsContainer.classList.add('show');
} else {
suggestionsContainer.innerHTML = `
<div class="suggestion-item" style="cursor: default;">
<div class="suggestion-title">No results found</div>
<div class="suggestion-desc">Try different keywords</div>
</div>
`;
suggestionsContainer.classList.add('show');
}
// Filter sidebar links
sidebarLinks.forEach(link => {
const text = link.textContent.toLowerCase();
const matches = text.includes(query);
link.style.display = matches ? 'block' : 'none';
if (matches) {
link.classList.add('search-match');
} else {
link.classList.remove('search-match');
}
});
// Highlight content
sections.forEach(section => {
const content = section.textContent.toLowerCase();
if (content.includes(query)) {
section.classList.add('search-highlight');
} else {
section.classList.remove('search-highlight');
}
});
});
// Handle suggestion clicks
suggestionsContainer.addEventListener('click', (e) => {
if (e.target.classList.contains('suggestion-item') || e.target.closest('.suggestion-item')) {
const item = e.target.closest('.suggestion-item');
const sectionId = item.dataset.section;
// Clear search and reset UI
searchInput.value = '';
suggestionsContainer.classList.remove('show');
// Reset sidebar visibility
sidebarLinks.forEach(link => {
link.style.display = 'block';
link.classList.remove('search-match');
});
// Reset content highlighting
sections.forEach(section => {
section.classList.remove('search-highlight');
});
// Navigate to section
document.querySelectorAll('.sidebar-nav a').forEach(a => a.classList.remove('active'));
const targetLink = document.querySelector(`.sidebar-nav a[href="#${sectionId}"]`);
if (targetLink) {
targetLink.classList.add('active');
}
document.querySelectorAll('.wiki-section').forEach(section => section.classList.remove('active'));
document.getElementById(sectionId).classList.add('active');
}
});
// Hide suggestions when clicking outside
document.addEventListener('click', (e) => {
if (!searchInput.contains(e.target) && !suggestionsContainer.contains(e.target)) {
suggestionsContainer.classList.remove('show');
}
});
</script>
</body>
</html>