This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import yaml | |
| import os.path | |
| import collections | |
| import copy | |
| from pprint import pprint | |
| configpath = "config.yml" | |
| groupspath = "groups/" | |
| worldspath = "worlds/" | |
| outputpath = "final/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os.path | |
| import yaml | |
| import string | |
| import math | |
| oldfiles = "newfiles/" | |
| newfiles = "homefix/" | |
| allowedchars = string.ascii_letters+string.digits+"_" | |
| for filename in os.listdir(oldfiles): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os.path | |
| import re | |
| oldfiles = "playerfiles/" | |
| newfiles = "newfiles" | |
| logre = re.compile("logout: (\d+)") | |
| for filename in os.listdir(oldfiles): | |
| oldpath = os.path.join(oldfiles, filename) | |
| newpath = os.path.join(newfiles, filename) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import mysql.connector as mysql | |
| import yaml | |
| group_ids = { | |
| 1: ("Guest", [], 10), | |
| 2: ("Builder", [], 20), | |
| 3: ("Trusted", [], 30), | |
| 4: ("Trusted", ["Donator"], 0), | |
| 5: ("Guard", [], 50), | |
| 6: ("Moderator", [], 60), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import mysql.connector as mysql | |
| import yaml | |
| filepath = "warps/" | |
| conn = mysql.connect(user="", password="", | |
| host="localhost", database="mc_global_gesuit") | |
| print("Fetching data") | |
| cur = conn.cursor() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import mysql.connector as mysql | |
| import uuid | |
| import yaml | |
| import time | |
| filepath = "playerfiles/" | |
| conn = mysql.connect(user="", password="", | |
| host="localhost", database="mc_global_gesuit") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import mysql.connector as mysql | |
| # Convert Ultrabans to Ban Management database | |
| #0: "Banned" | |
| #1: "IPBanned" | |
| #2: "Warn" | |
| #3: "Kick" | |
| #5: "Unban" | |
| #6: "Jailed" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| [ | |
| ["MAIN", "block", 346], | |
| [0, "DESCRIPTOR_NAME", "string"], | |
| [16, "TEMPLATE_NAME", "string"], | |
| [32, "COMM_TYPE", "enum", { | |
| "0": "byte", | |
| "1": "word" | |
| }], | |
| [34, "COMM_ORDER", "enum", { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bincont = b"\x34\x83\x12\x6F" | |
| def bitlist(inbytes): | |
| output = [] | |
| for byte in reversed(inbytes): | |
| for i in range(0, 8): | |
| bit = byte & (1 << i) | |
| if bit: | |
| output.append(1) | |
| else: |
NewerOlder