Skip to content

Instantly share code, notes, and snippets.

@depwl9992
depwl9992 / Rendering-the-Nether-Roof.md
Last active August 15, 2024 07:05
A fully comprehensive tutorial for webbukkit/dynmap to render the nether roof in Minecraft

Initial Setup of the Nether Roof Map

  1. Assuming dynmap is already initialized and the folder structure has been generated during a first-time run, <Spigot_Server>/plugins/dynmap/custom-perspectives.txt should exist.
  2. Open custom-perspectives.txt in a text editor.
  3. In this file below the line perspectives: add the following lines of text.
  - class: org.dynmap.hdmap.IsoHDPerspective
    name: nether_top_map_lowres
    maximumheight: 256
    minimumheight: 129
    inclination: 90
@ImSVTVN
ImSVTVN / badge.php
Created March 25, 2018 03:10
Simple Discord Online Members Badge. Just a badge that shows how many online members are in your discord server.
<?php
$members = json_decode(file_get_contents('https://discordapp.com/api/guilds/GUILD_ID_HERE/widget.json'), true)['members'];
$membersCount = 1;
foreach ($members as $member) {
if ($member['status'] == 'online') {
$membersCount++;
}
}
?>