переход на groovy конфигурацию
This commit is contained in:
26
core/sample-config.groovy
Normal file
26
core/sample-config.groovy
Normal file
@@ -0,0 +1,26 @@
|
||||
beans {
|
||||
xmlns([context:'http://www.springframework.org/schema/context'])
|
||||
context.'annotation-config'()
|
||||
|
||||
config(mc.core.embedded.ConfigFromSpring) {
|
||||
descriptionServer = 'MC Core - LIMBO'
|
||||
maxPlayers = 1
|
||||
}
|
||||
|
||||
playerManager(mc.core.embedded.FakePlayerManager)
|
||||
|
||||
timer(mc.core.time.IdleTime) {
|
||||
gameTime = 1000
|
||||
}
|
||||
|
||||
coreEventListener(mc.core.CoreEventListener)
|
||||
|
||||
gameLoop(mc.core.GameLoop) {
|
||||
gameTimer = timer
|
||||
percentWarnLowTps = 15
|
||||
}
|
||||
|
||||
chatProcessor(mc.core.chat.SimpleChatProcessor)
|
||||
|
||||
server(mc.core.embedded.FakeServer)
|
||||
}
|
||||
Reference in New Issue
Block a user