Made my crash attempts harder,
Also tried to make things that shouldn't crash, actually not crash.
This commit is contained in:
parent
ac10e997c0
commit
e60af98c02
4 changed files with 10 additions and 10 deletions
|
@ -11,7 +11,7 @@ public class OverflowCrash extends Question {
|
|||
@Override
|
||||
public String question() {
|
||||
// TODO Auto-generated method stub
|
||||
return "Will sending a message over 7000 characters long, to a player, crash their game?";
|
||||
return "Will sending a message over 70000 characters long, to a player, crash their game?";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -25,7 +25,7 @@ public class OverflowCrash extends Question {
|
|||
// TODO Auto-generated method stub
|
||||
player.sendMessage(question());
|
||||
String overflowMessage = "";
|
||||
for (int i = 0; i < 10; i++){
|
||||
for (int i = 0; i < 100; i++){
|
||||
overflowMessage += "Did you ever hear the tragedy of Darth Plagueis The Wise? I thought not. It’s not a story the Jedi would tell you. It’s a Sith legend. Darth Plagueis was a Dark Lord of the Sith, so powerful and so wise he could use the Force to influence the midichlorians to create life… He had such a knowledge of the dark side that he could even keep the ones he cared about from dying. The dark side of the Force is a pathway to many abilities some consider to be unnatural. He became so powerful… the only thing he was afraid of was losing his power, which eventually, of course, he did. Unfortunately, he taught his apprentice everything he knew, then his apprentice killed him in his sleep. Ironic. He could save others from death, but not himself.";
|
||||
}
|
||||
player.sendMessage(overflowMessage);
|
||||
|
|
|
@ -11,7 +11,7 @@ public class OverwhelmCrash extends Question {
|
|||
@Override
|
||||
public String question() {
|
||||
// TODO Auto-generated method stub
|
||||
return "Will sending 100 short messages to a player instantly crash their game?";
|
||||
return "Will sending 500 short messages to a player instantly crash their game?";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -24,7 +24,7 @@ public class OverwhelmCrash extends Question {
|
|||
public boolean OnCommand(Player player, String alias, String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
player.sendMessage(question());
|
||||
for (int x = 0; x < 100; x++){
|
||||
for (int x = 0; x < 500; x++){
|
||||
player.sendMessage("Hello World Motherfucker!");
|
||||
}
|
||||
player.sendMessage(answer());
|
||||
|
|
|
@ -36,11 +36,11 @@ public class PluginConfigInfo extends Question {
|
|||
player.sendMessage("Name of Root:");
|
||||
player.sendMessage(" - " + config.getRoot().getName());
|
||||
|
||||
player.sendMessage("Path of Root:");
|
||||
player.sendMessage(" - " + config.getRoot().getCurrentPath());
|
||||
//player.sendMessage("Path of Root:");
|
||||
//player.sendMessage(" - " + config.getRoot().getCurrentPath());
|
||||
|
||||
player.sendMessage("Keys of Root (Deep = true)");
|
||||
player.sendMessage(" - " + config.getRoot().getKeys(true).toString());
|
||||
//player.sendMessage("Keys of Root (Deep = true)");
|
||||
//player.sendMessage(" - " + config.getRoot().getKeys(true).toString());
|
||||
|
||||
player.sendMessage("[A]:" + this.answer());
|
||||
return false;
|
||||
|
|
|
@ -14,13 +14,13 @@ public class PluginDataFolderInfo extends Question {
|
|||
@Override
|
||||
public String question() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
return "What does the plugin data folder look like?";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String answer() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
return this.answer;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue