This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java.io.IOException: Unknown operation code: 60360 (previous opcodes: 0, 0, 0, 0 | |
, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
227). | |
at org.spout.api.protocol.CommonDecoder.decodeProcessed(CommonDecoder.ja | |
va:93) | |
at org.spout.api.protocol.PreprocessReplayingDecoder.decode(PreprocessRe | |
playingDecoder.java:99) | |
at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDeco | |
der.java:328) | |
at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(Fram |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public ChannelBuffer encodeToServer(LoginRequestMessage message) { | |
LoginRequestMessage server = message; | |
ChannelBuffer buffer = ChannelBuffers.dynamicBuffer(); | |
buffer.writeInt(server.getId()); | |
ChannelBufferUtils.writeString(buffer, server.getWorldType()); | |
buffer.writeByte(server.getGameMode()); | |
buffer.writeByte(server.getDimension()); | |
buffer.writeByte(server.getDifficulty()); | |
buffer.writeShort(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2012/07/26 18:02:37 [INFOS] OPCODE ENCODER: 1 | |
2012/07/26 18:02:37 [INFOS] LoginRequestMessage{id=17,worldType=default,mode=1,dimension=0,difficulty=2,maxPlayers=20} | |
2012/07/26 18:02:37 [INFOS] STRING CHECK LENGTH 7 STRING: default | |
2012/07/26 18:02:37 [INFOS] Sending: 1 | |
2012/07/26 18:02:37 [INFOS] Sending: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18:25:00 [INFOS] STRING CHECK LENGTH 20 STRING: A Spout Serverº0º20º | |
18:25:00 [INFOS] Channel disconnected: [id: 0x57b306eb, /127.0.0.1:57806 :> /127 | |
.0.0.1:25565]. | |
18:25:02 [INFOS] Downstream channel connected: [id: 0x2c9f55f3, /127.0.0.1:57810 | |
=> /127.0.0.1:25565]. | |
18:25:02 [INFOS] Setting protocol to Vanilla | |
18:25:02 [INFOS] DECODER: 2 | |
18:25:02 [INFOS] DECODER: 253 | |
18:25:02 [INFOS] STRING CHECK LENGTH 16 STRING: 5955456e50b6a9e4 | |
18:25:02 [INFOS] DECODER: 252 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""Github wrapper which mimics my python-bitbucket wrapper, ironically | |
originally intended to mimic py-github. But I don"t like the way py-github | |
and python-github2 wrap all of the API results.""" | |
from urllib2 import Request, urlopen | |
from urllib import urlencode | |
from functools import wraps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[mar. 23:43:26] [SEVERE] Could not pass event PlayerJoinEvent to org.spout.vanil | |
la.VanillaPlugin | |
[mar. 23:43:26] [SEVERE] org.spout.api.exception.EventException: java.lang.Excep | |
tionInInitializerError | |
[mar. 23:43:26] [SEVERE] at org.spout.api.event.SimpleEventManager$2.exec | |
ute(SimpleEventManager.java:169) | |
[mar. 23:43:26] [SEVERE] at org.spout.api.event.SimpleEventManager.callEv | |
ent(SimpleEventManager.java:67) | |
[mar. 23:43:26] [SEVERE] at org.spout.engine.listener.SpoutServerListener | |
.onPlayerConnect(SpoutServerListener.java:78) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Table("droppartychests") | |
public class DropPartyChestsTable { | |
@Id | |
public int id; | |
@Field | |
public double x; | |
....... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DropPartyChestTable table = new DropPartyCHestTable(); | |
table.x = x; | |
table.y = y; | |
table.z = z; | |
DatabaseManager.getDatabase().save(table); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<TheTable> list = DatabaseManager.thequery...... | |
for (TheTable entry: list ) { | |
//Do whatever you want | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
/** | |
* Created with IntelliJ IDEA. | |
* User: william | |
* Date: 13-04-29 | |
* Time: 18:20 | |
* To change this template use File | Settings | File Templates. | |
*/ | |
public class TestClass { |
OlderNewer