Skip to content

Instantly share code, notes, and snippets.

View kamilion's full-sized avatar

Kamilion kamilion

View GitHub Profile
from base_plugin import SimpleCommandPlugin
from utility_functions import give_item_to_player
from plugins.core.player_manager import permissions, UserLevels
from time import time
class FuelGiver(SimpleCommandPlugin):
"""
Welcomes new players by giving them fuel to leave the spawn world.
"""
@kamilion
kamilion / dnsupdate.py
Last active December 19, 2015 10:49 — forked from pklaus/dnsupdate.py
A little script I've been fixing up to do DNS updates remotely.
#!/usr/bin/env python2.7
# Matt's DNS management tool
# Manage DNS using DDNS features
#
# See http://planetfoo.org/blog/archive/2012/01/24/a-better-nsupdate/
#
# Usage: dnsupdate -s server -k key -t ttl add _minecraft._tcp.mc.example.com SRV 0 0 25566 mc.example.com.
# -h HELP!
# -s the server
# -k the key