remove trailing whitespace, replace tabs with 4x space
This commit is contained in:
@@ -34,10 +34,10 @@ def matches_thread(password, user):
|
|||||||
|
|
||||||
|
|
||||||
@simplecommand("cgpass",
|
@simplecommand("cgpass",
|
||||||
usage = "<password> <new password>",
|
usage = "<password> <new password>",
|
||||||
description = "Changes your password",
|
description = "Changes your password",
|
||||||
senderLimit = 0,
|
senderLimit = 0,
|
||||||
helpNoargs = True)
|
helpNoargs = True)
|
||||||
def change_pass_command(sender, command, label, args):
|
def change_pass_command(sender, command, label, args):
|
||||||
if sender.getName() in logging_in:
|
if sender.getName() in logging_in:
|
||||||
return "&cYou are not logged in"
|
return "&cYou are not logged in"
|
||||||
|
|||||||
4
main.py
4
main.py
@@ -38,8 +38,8 @@ shared["load_modules"] = [
|
|||||||
"adminchat",
|
"adminchat",
|
||||||
# Adds /badge, allows to give players achievements
|
# Adds /badge, allows to give players achievements
|
||||||
"badges",
|
"badges",
|
||||||
# Adds a few block placement corrections/mods
|
# Adds a few block placement corrections/mods
|
||||||
"blockplacemods",
|
"blockplacemods",
|
||||||
# Adds /calc, toggles automatic solving of Math expressions in chat
|
# Adds /calc, toggles automatic solving of Math expressions in chat
|
||||||
"calc",
|
"calc",
|
||||||
# Plugin to locate laggy chunks. /lc <n> lists chunks with more than n entities
|
# Plugin to locate laggy chunks. /lc <n> lists chunks with more than n entities
|
||||||
|
|||||||
20
player.py
20
player.py
@@ -4,24 +4,24 @@ players = []
|
|||||||
|
|
||||||
class py_player:
|
class py_player:
|
||||||
|
|
||||||
def __init__(player):
|
def __init__(player):
|
||||||
self.player = player
|
self.player = player
|
||||||
|
|
||||||
#Properties TODO
|
#Properties TODO
|
||||||
#Example:
|
#Example:
|
||||||
self.logging_in = False
|
self.logging_in = False
|
||||||
|
|
||||||
def get_py_player(player):
|
def get_py_player(player):
|
||||||
py_player = players[players.index(player)]
|
py_player = players[players.index(player)]
|
||||||
return py_player
|
return py_player
|
||||||
|
|
||||||
|
|
||||||
@hook.event("player.PlayerJoinEvent","highest")
|
@hook.event("player.PlayerJoinEvent","highest")
|
||||||
def on_join(event):
|
def on_join(event):
|
||||||
player = py_player(event.getPlayer())
|
player = py_player(event.getPlayer())
|
||||||
players.append(player)
|
players.append(player)
|
||||||
|
|
||||||
|
|
||||||
@hook.event("player.PlayerQuitEvent","highest")
|
@hook.event("player.PlayerQuitEvent","highest")
|
||||||
def on_leave(event):
|
def on_leave(event):
|
||||||
players.remove(get_py_player(event.getPlayer()))
|
players.remove(get_py_player(event.getPlayer()))
|
||||||
|
|||||||
Reference in New Issue
Block a user