MediaWiki API result

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "The_Phoenix",
        "continue": "gapcontinue||"
    },
    "query": {
        "pages": {
            "7": {
                "pageid": 7,
                "ns": 0,
                "title": "Rules",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "List of rules for the server. These mainly cover the Minecraft server, but can also extend to the Discord server too.<br><br>\nBy continuing to play, you automatically agree to the rules and the consequences that may occur from failure to abide by them. If you disagree with the rules, log off immediately.\n== Rules ==\n*Asking for server ranks is prohibited. Server staff is chosen on a record of trust and maturity.\n**This is done to minimize the risk of hiring those prone to abuse power.\n\n*Griefing towns you're invited to is prohibited. If a structure is unprotected then it is fair game.\n**Griefing is defined as causing destruction or an unpleasant game experience to other players for no reason other than to upset them and cause grief.\n\n*Stealing from unlocked Chests or other containers is allowed. If it is password protected and you happen to guess the correct password then once again you're allowed to keep the items.\n\n*Usage of adult language is restricted but allowed. There's a point at which it becomes annoying. Think about how often you casually use adult language in conversation that feels natural.\n**Adult language is defined as curses and swear words and words that are recognized as \u201cvulgar\u201d or \u201crude\u201d in most contexts within their language.\n\n*Mobs or NPC Villagers in which are protected by an admin are to not be slain. Usually it is blatantly obvious if they are protected. Good rule of thumb, if it's an area owned by an admin you should probably let it be.\n\n*PvP is allowed, but avoid excessively killing one person repeatedly. If a player says they're done, do the honourable thing and let them run off.\n\n*You are under no obligation to give back items after killing a player. Exceptions may occur in which a staff member requests you to, but these are usually specific to certain situations.\n\n*It is recommended to use English or French in Public chat. Most players only know English so it is recommended to use it for ease of communication. No penalties for not using it however.\n\n*Do not ask staff to spawn items for you. There's a chance a staff member or another user may have extra of an item lying around so politely ask if anyone has the item.\n**Demanding staff to spawn items for you may result in being muted or jailed.\n\n*Flying is prohibited for users of lower rank than Moderator. Bans, be it permanent or temporary may be issued.\n\n*Mental illnesses will not be tolerated as excuses for outbursts, rudeness or for any actions that may break rules.\n**We cannot support a case-by-case basis for vetting this type of behaviour. We are not mental health professionals. People can and will lie over the Internet.\n\n*Actions that break laws within any jurisdiction are prohibited. Depending on the particular case, law enforcement may be contacted and your account will be banned from the server. This includes threats to perform an illegal action.\n**Illegal actions may include but are not limited to: Threats of actual murder or harm, unauthorized access to computer systems, DDoS.\n\n*Hate Speech will not be tolerated. Failure to comply may result in a temporary ban, while repeated issues may result in a permanent ban.\n**Hate Speech is defined as Inflammatory comments or remarks, insults, homophobic behaviour, transphobic behaviour, racism and xenophobia.\n\n<!-- Old server rules. Keeping for legacy sake.\n\n<li>Do <u>not</u> ask for ranks. You have to earn them.</li>\n<li>No Griefing Towns. Not even the one you are part of. Anything not protected by Towny is fair game.</li>\n<li>Stealing is allowed from unlocked chest, or a chest you have permission to access. If a chest is password protected and you guess the pasword, then congrats! You can have the stuff inside.</li>\n<li>No excessive language. Swearing is allowed, but don't overuse it. We can still punish you for excessive use.</li>\n<li>No murdering NPC villagers that are protected by an Administrator</li>\n<li>PvP is allowed. But no excessive killing on one Player. That's just annoying.\n<li>You are not obligated to give items back to people if you don't want to. Unless otherwise instructed by an Administrator.</li>\n<li>Only speak English or French in the public chat. In Town, Nation, Local, or Private chats you can use any language you wish.\n<li>Always respond to Moderators and Administrators.</li>\n<li>No asking for items. It annoys the Admins. They can jail or mute you for it.</li>\n<li>Flying is prohibited for any rank under Moderator.</li>\n<li>We do not accept mental disorders/illnesses as excuses for behaviour. If you do have one and are about to have an outburst, Log off. It's that simple.</li>\n<li>Any Illegal actions are prohibited. This includes but are not limited to: Murder threats, shooting threats, DDoS threats, etc.</li>\n<li>Hate speech and racial slurs will <u>not</u> be tolerated. Failure to comply will result in a temporary ban. Repeated offences will have you permanently banned.</li>\n<li>No making adult content. That includes penises.</li>\n-->\n\n== Punishment Tracker ==\nList of punishments throughout the years. For logging consistent behaviour. Quality and number of punishments were refined throughout the years.\nSome content may be considered NSFW.\n\n*[https://drive.google.com/open?id=1HeBQwuaHXm_j1t0IFIwm30kBH7qB4fsFlZu0331cDww Punishment Tracker]"
                    }
                ]
            },
            "105": {
                "pageid": 105,
                "ns": 0,
                "title": "Server Setup",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "Quick guide to setting up the MC server for Admins to follow and to manage the DoI, Terraria and Valheim servers. While the information here is specific to this server, it can be adapted for pretty much any other use case as well.\n\nThis guide assumes you have some basic Linux/BASH knowledge. \n\n== Getting Started ==\nFirst, tools needed to get the job done. \n\n'''Required:''' \n*Terminal Emulator. I personally just use SSH session in a [https://docs.microsoft.com/en-us/windows/wsl/install-win10 Windows Subsystem for Linux] (WSL) shell. You can also just do SSH from CMD, BASH shell or [https://www.putty.org/ PuTTY]. \n\n'''Recommended:''' \n*[https://filezilla-project.org/ FileZilla] (or similar)\n*[https://notepad-plus-plus.org/downloads/ Notepad++] (or similar)\nWhile you can manage it all just in the Terminal, these tools make things significantly easier and more organized.\n\n=== Starting Software ===\nHopefully you will not need to do this, but if there is a power failure or a full system reboot for some reason these steps are important. \n*Login to the server. You will see the Welcome Screen. \n[[File:WelcomeScreen.png|Welcome Screen|500px]]\n*Run <code>sh startserver.sh</code> and you will see the below:\n[[File:StartServer.png|500px]]\n*All servers listed will start up in their own screen with the associated name. If you cannot remember the name of a screen just issues <code>screen -ls</code>\n*To exit a screen issue <code>Ctrl+A, D</code>\nAll servers are located or synlinked from the home directory. \n\n[[File:HomeDirectory.png|500px]]\n\n== Day of Infamy ==\nDay of Infamy is the easiest server to start. It should just be running with the initial start script from before. \n\n'''Restart Server Software:'''\n*<code> screen -x doi </code>\n*<code> Ctrl+C</code> to close the server.\n*<code> sh start.sh</code> to start the server.\n\n== Valheim ==\nValheim is a bit more complicated. It is still getting updates and requires SteamCMD to update. Below are the steps to update the server and change some details, like port number, World, etc. \n\n=== Updating Server Software: ===\n\n*<code>screen -x valheim</code>\n*<code>Ctrl+C</code> to stop the server.\n*<code>steamcmd</code> to open the SteamCMD client.\n*<code>login anonymous</code> to login without an account. \n[[File:SteamCMD.png|500px]]\n*<code>app_update 896660</code> to update the game. Wait for it to download/install.\n*<code>exit</code> to exit SteamCMD.\n[[File:UpdateSteamCMD.png|500px]]\n*<code>sh start.sh</code> to start the server again.\n*<code>Ctrl+A, D</code> to exit Valheim's screen.\n\n=== World Files ===\nLocated at <code>~/valheim</code> is the <code>start_server.sh</code> that controls some options and starts the server. Most importantly it allows you to change the world and set the server's password. Also <code>~/valheim</code> has the <code>worlds</code> directory. Either delete the old world from the directory or change the name in start up script to have a new world.\n\n[[File:ValheimDirectory.png|500px]]\n\n[[File:ValWorlds.png|500px]]\n\n[[File:ValheimStart.png|500px]]\n\n== Terraria ==\nTerraria doesn't get updates via SteamCMD, but from Terraria's website. Below details how to update the server and how to manage worlds. \n\n=== Updating Server Software ===\n*Shutdown the Terraria server software\n*<code>screen -x terraria</code>\n*<code>exit</code>\n*Server software will shutdown and save the world.\n*Go to [https://terraria.org/ Terraria's] website\n*Scroll to the bottom of the page and locate PC Dedicated Server\n*Download the ZIP.\n*Upload the contents of the ZIP to <code>~/terraria</code>, replacing anything prompted.\n*Start the server again by running <code>sh start.sh</code>\n\n=== World Files ===\nSimilar to Valheim, world files are located in a Worlds directory, all in one area. Either delete the old world, or change the name in the <code>start.sh</code>\n\n[[File:TerrariaSH.png|500px]]\n\n== Minecraft ==\nThe Minecraft server is the most complicated one to manage. Below will detail general setup between versions, updating the spigot.jar, checking and managing permissions, setting up Dynmap on the 1TB HDD, setting up the auto world backups from Essentials.\n\n=== Updating Spigot.jar ===\n*Login to the server\n*<code>cd spigot</code>\n\nThis directory is where BuildTools.jar and the spigot.jar are located. To build a jar do one of the following\n*Build the current reccomended spigot.jar version: <code>java -jar BuildTools.jar</code>\n*Build a specific spigot.jar version: <code>java -jar BuildTools.jar --rev $Version</code> replacing $Version with a number, like 1.16.3\n*Wait for the jar to compile. May take awhile depending on if it is a newer or older spigot version. When completed you will see the below:\n\n[[File:SpigotUpdate.png|500px]]\n*Stop the server <code>screen -x minecraft</code>\n*<code>stop</code>\n[[File:MCStop.png|500px]]\n\n'''Ensure the server is not backing up the world! It will cause MC's Watchdog to crash the server resulting in data loss'''\n*If the server is a new version, open <code>~/minecraft/start.sh</code> in your favourite text editor and edit the $JarVersion value to have the correct version referenced. The example shows 1.16.5\n[[File:MCstart.png|500px]]\n*Save the file and when you start the server the script will copy the jar and start the server.\n*Note. Sometimes BuildTools.jar will not run and request you to download an update. You can download BuildTools.jar from Spigot here: [https://hub.spigotmc.org/jenkins/job/BuildTools/ BuildTools.jar Jenkins]\n\n=== Dynmap ===\n=== World Backup ===\nWorld backups are pretty easy and have a drop in file. There are only a few things you need to ensure. \n*The backup directory exist\n*The backup.sh file has executable permission\n*The server's user has read/write permissions to the directory. \n*The backup.sh file is located in the server's root directory (same directory as spigot.jar, world files, etc.)\n*Once the above has been completed, test the backup.sh by issuing the <code>/backup</code> command. You should see something similar to the image below.\n[[File:Backup.png|500px]]\n\n*If you get an error saying \"No such file or directory\" ensure the backup.sh is in the correct location and named correctly.\n*If you get a \"Permission Denied\" error, ensure the file has the proper Execute permissions. \n\n<div class=\"toccolours mw-collapsible mw-collapsed\" style=\"width:400px; overflow:auto;\">\n<div style=\"font-weight:bold;line-height:1.6;\">backup.sh example</div>\n<div class=\"mw-collapsible-content\">\n <nowiki>\n\n#!/bin/bash\n# Set these values to match your server's settings.\n\n# This script should be located in the craftbukkit folder\n\n# Make sure you change this to the name of your world folder! \n# Add additional worlds by separating them with a space. \n\ndeclare -a worlds=(world world_nether world_the_end)\nbackupdir=/media/1TBdrive/worlds/\next=.zip\n\nhdateformat=$(date '+%Y-%m-%d-%H-%M-%S')H$ext\nddateformat=$(date '+%Y-%m-%d')D$ext\nnumworlds=${#worlds[@]}\n\n    echo \"Starting multiworld backup...\"\n \n    if [ -d $backupdir ] ; then\n        sleep 0\n    else\n        mkdir -p $backupdir\n    fi\n    #zip $backupdir$hdateformat -r plugins\n    for ((i=0;i<$numworlds;i++)); do\n        zip -q $backupdir$hdateformat -r ${worlds[$i]}\n        echo \"Saving '${worlds[$i]}' to '$backupdir$hdateformat'.\"\n    done\n    cp $backupdir$hdateformat $backupdir$ddateformat\n    echo \"Updated daily backup.\"\n    find $backupdir/ -name *H$ext -mmin +1440 -exec rm {} \\;\n    find $backupdir/ -name *D$ext -mtime +14 -exec rm {} \\;\n    echo \"Removed old backups.\" \n \n    echo \"Backup complete.\"\n\nexit 0\n\n</nowiki>\n</div>\n</div>\n\n=== Using LuckPerms ===\nLuckPerms is an incredibly easy to use permissions plugin. While detailed usage is documented on their [https://luckperms.net/wiki/Usage wiki], basically all you need to know is how to access the editor. \n\n*In the console or from a user with appropriate permissions, issue <code>/lp editor</code> and you will be given a link to visit.\n*Do not share the edit link. It can be a way to allow anyone the ability to modify the server's permissions!\n[[File:LpEditor.png|500px]]\n*Select a group or user, modify the permissions, and click save. \n[[File:LpEditor2.png|500px]]\n*Once you click save, you will get a command to enter\n[[File:LpSave.png|500px]]\n[[File:LpSave2.png|500px]]\n*Finally either test the permissions yourself or have a user test them.\n\n=== Setup ===\nThis section details all the requirements/suggestions for setting up a new version of The Phoenix, except for what was listed above. It is important to understand updating the server jar and Dynmap before continuing with the rest of the setup. Without those two in place portions of the setup could fail or result in long term problems. \n\nIf you are ready to continue setup, go here: <WAITING TO WRITE>"
                    }
                ]
            }
        }
    }
}