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
package fr.ribesg.alix.network; | |
import fr.ribesg.alix.Tools; | |
import fr.ribesg.alix.api.Server; | |
import org.apache.log4j.Logger; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
/** | |
* This class handles receiving packets. |
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
<repositories> | |
<repository> | |
<id>ribesg-releases</id> | |
<name>Ribesg's Release Repository</name> | |
<url>http://repo.ribesg.fr/content/repositories/releases</url> | |
</repository> | |
<repository> | |
<id>ribesg-snapshots</id> | |
<name>Ribesg's Release Repository</name> | |
<url>http://repo.ribesg.fr/content/repositories/snapshots</url> |
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
[04:07:44] [Server thread/ERROR]: Could not pass event InventoryOpenEvent to NGeneral v0.6.1 | |
org.bukkit.event.EventException | |
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-6-g17dcffc] | |
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-6-g17dcffc] | |
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:481) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-6-g17dcffc] | |
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:466) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-6-g17dcffc] | |
at org.bukkit.craftbukkit.v1_7_R1.event.CraftEventFactory.callInventoryOpenEvent(CraftEventFactory.java:572) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-6-g17dcffc] | |
at net.minecraft.server.v1_7_R1.EntityPlayer.openContainer(EntityPlayer.java:615) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-6-g17dcffc] | |
at org.bukkit.craftbukkit.v1_7_R1.entity.CraftHumanEntity.openInventory(C |
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
#!/bin/bash | |
cd /home/blob | |
BLOB_CMD="java -jar /home/blob/Blob.jar" | |
BLOB_PID=`ps -ef | grep "$BLOB_CMD" | grep -v grep | awk '{print $2}'` | |
if [[ $BLOB_PID != *[!0-9]* ]]; then | |
echo "Blob is running, killing Blob" | |
kill -9 $BLOB_PID |
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
package fr.ribesg.alix.api.sync; | |
import fr.ribesg.alix.api.message.IrcPacket; | |
import java.util.Collections; | |
import java.util.HashSet; | |
import java.util.Set; | |
/** | |
* Represents a Callback for a sent IrcPacket. | |
*/ |
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
public static Transaction deserialize(LinkedHashMap section) { | |
if(!section.containsKey("sender") || | |
!section.containsKey("itemstack") || | |
!section.containsKey("timestamp") || | |
!section.containsKey("lifetime")) { | |
return null; | |
} | |
final String sender = section.getString("sender"); | |
final ItemStack is = section.getItemStack("itemstack"); |
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 conception problem: | |
Context: a Java IRC API | |
Problem: Callback* | |
*Term may not be correct, name propositions encouraged | |
When an IRC Packet is sent by the API user, he can choose to have some response handling. | |
The user specifies which IRC packets he would like his Callback to listen. |
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
server { | |
server_name javadocs.ribesg.fr; | |
location / { | |
proxy_pass http://127.0.0.1:9999; | |
} | |
} |
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
##################################################################### | |
## Config file for NPermissions plugin GROUPS ## | |
## If you don't understand something, please ask on dev.bukkit.org ## | |
## Ribesg ## | |
##################################################################### | |
# The following group, 'user', also defines the | |
# following permissions: | |
# - group.user - For members of this group AND members of subgroups | |
# - maingroup.user - For players for whom this group is the main group (unique per player) |
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
##################################################################### | |
## Config file for NPermissions plugin ## | |
## If you don't understand something, please ask on dev.bukkit.org ## | |
## Ribesg ## | |
##################################################################### | |
defaultGroup: user | |
OlderNewer