Skip to content

Commit

Permalink
Update joinMOTD.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Apr 7, 2020
1 parent fcbedfd commit 005a892
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions joinMOTD.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# -*- coding: utf-8 -*-
import copy
import sys


sys.path.append('plugins/')
from daycount import getday
import json

Expand Down Expand Up @@ -34,9 +37,11 @@ def onPlayerJoin(server, player):
cmd = cmd + ']}'

# print all stuffs
msg = '''§7=======§r Welcome back to §e''' + serverName + ''' §7=======§r
今天是§e''' + mainServerName + '''§r开服的第§e''' + getday() + '''§r天
§7-------§r Server List §7-------§r'''
msg = '''
§7=======§r Welcome back to §e{}§7 =======§r
今天是§e{}§r开服的第§e{}§r天
§7-------§r Server List §7-------§r
'''.strip().format(serverName, mainServerName, getday())
tellMessage(server, player, msg)
server.execute(cmd)

Expand Down

0 comments on commit 005a892

Please sign in to comment.