Commits

mickael9 committed cc4bca6

Update version number + minor changes

  • Participants
  • Parent commits 8fbbb6e

Comments (0)

Files changed (2)

 from web import form
 
 urls = (
-    '/getversion.jsp', 'getversion',
-    '/joinserver.jsp', 'joinserver',
-    '/checkserver.jsp', 'checkserver',
+    '/game/getversion.jsp', 'getversion',
+    '/game/joinserver.jsp', 'joinserver',
+    '/game/checkserver.jsp', 'checkserver',
     '/register', 'register',
 )
 
                 version=None)
 
         if int(i.version) < config.LAUNCHER_VER:
-            return "mastercraft: Old version"
+            return "Old version"
 
         try:
             user = db.where('users', username = i.user)[0]
         except IndexError:
-            # TODO: proxy to minecraft.net
-            return "mastercraft: Bad login"
+            return "Bad login"
 
         pwhash = utils.hash_password(i.password)
 
         if user.password != pwhash:
-            return "mastercraft: Bad login"
+            return "Bad login"
 
         session_id = utils.make_session_id()
 
 SALT = ''
-CLIENT_VER = '1295011600000' # see http://www.tkte.ch/projects/pymy/
+CLIENT_VER = '1295618277000' # see http://www.tkte.ch/projects/pymy/
 LAUNCHER_VER = 12
 PROXY_IP = '194.28.157.42'   # minecraft.net
 ALLOWED_IPS = ('127.0.0.1',) # these server IPs are allowed to use this master