唔~最好就是用script实现~ 虽然这真的是很简单的写法 那我就直接照搬好了喵
/*
如果你想计算游戏时长把接下来这段加在DisPlay.setTitle中,然后把注释都去除就好了((
+ H +' 时 ' +M +' 分 '+S+' 秒'
*/
var scriptName = "Title"
var scriptVersion = 1.0
var scriptAuthor = "OwOCat"
var Title = new Title()
var client
function Title() {
/*var S = 0
var HM = 0
var M =0
var H = 0
*/
this.getName = function() {
return "Title"
}
this.getDescription = function() {
return "Title "
}
this.getCategory = function() {
return "Fun"
}
this.onUpdate = function() {
/* HM += 1
if (HM ==20){
S = S + 1
HM = 0
}
if (S ==60){
M = M +1
S = 0
}
if (M==60){
H = H+1
M = 0
} */
Display.setTitle('Your Client Name ' + ' Your Name or somethingOvO(')
}
}
var Display = Java.type('org.lwjgl.opengl.Display')
function onLoad() {}
function onEnable() {
client = moduleManager.registerModule(Title)
}
function onDisable() {
moduleManager.unregisterModule(client)
}