mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-07 07:32:03 -07:00
@@ -54,7 +54,6 @@
|
|||||||
<groupId>com.googlecode.json-simple</groupId>
|
<groupId>com.googlecode.json-simple</groupId>
|
||||||
<artifactId>json-simple</artifactId>
|
<artifactId>json-simple</artifactId>
|
||||||
<version>1.1.1</version>
|
<version>1.1.1</version>
|
||||||
<type>jar</type>
|
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- bundled with Minecraft, should be kept in sync -->
|
<!-- bundled with Minecraft, should be kept in sync -->
|
||||||
|
@@ -3,7 +3,6 @@ package org.bukkit.configuration.file;
|
|||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileNotFoundException;
|
import java.io.FileNotFoundException;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
|
||||||
import java.io.Reader;
|
import java.io.Reader;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
@@ -35,8 +35,7 @@ public class ConversationFactory {
|
|||||||
*
|
*
|
||||||
* @param plugin The plugin that owns the factory.
|
* @param plugin The plugin that owns the factory.
|
||||||
*/
|
*/
|
||||||
public ConversationFactory(Plugin plugin)
|
public ConversationFactory(Plugin plugin) {
|
||||||
{
|
|
||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
isModal = true;
|
isModal = true;
|
||||||
localEchoEnabled = true;
|
localEchoEnabled = true;
|
||||||
@@ -58,8 +57,7 @@ public class ConversationFactory {
|
|||||||
* @param modal The modality of all conversations to be created.
|
* @param modal The modality of all conversations to be created.
|
||||||
* @return This object.
|
* @return This object.
|
||||||
*/
|
*/
|
||||||
public ConversationFactory withModality(boolean modal)
|
public ConversationFactory withModality(boolean modal) {
|
||||||
{
|
|
||||||
isModal = modal;
|
isModal = modal;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -141,7 +139,6 @@ public class ConversationFactory {
|
|||||||
return withConversationCanceller(new ExactMatchConversationCanceller(escapeSequence));
|
return withConversationCanceller(new ExactMatchConversationCanceller(escapeSequence));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a {@link ConversationCanceller} to constructed conversations.
|
* Adds a {@link ConversationCanceller} to constructed conversations.
|
||||||
*
|
*
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
package org.bukkit.conversations;
|
package org.bukkit.conversations;
|
||||||
|
|
||||||
import org.bukkit.Server;
|
|
||||||
import org.bukkit.plugin.Plugin;
|
import org.bukkit.plugin.Plugin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -1,7 +1,5 @@
|
|||||||
package org.bukkit.conversations;
|
package org.bukkit.conversations;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NullConversationPrefix is a {@link ConversationPrefix} implementation that
|
* NullConversationPrefix is a {@link ConversationPrefix} implementation that
|
||||||
* displays nothing in front of conversation output.
|
* displays nothing in front of conversation output.
|
||||||
|
@@ -30,8 +30,7 @@ public abstract class NumericPrompt extends ValidatingPrompt{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Prompt acceptValidatedInput(ConversationContext context, String input) {
|
protected Prompt acceptValidatedInput(ConversationContext context, String input) {
|
||||||
try
|
try {
|
||||||
{
|
|
||||||
return acceptValidatedInput(context, NumberUtils.createNumber(input));
|
return acceptValidatedInput(context, NumberUtils.createNumber(input));
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
return acceptValidatedInput(context, NumberUtils.INTEGER_ZERO);
|
return acceptValidatedInput(context, NumberUtils.INTEGER_ZERO);
|
||||||
|
@@ -18,7 +18,6 @@ public abstract class PlayerNamePrompt extends ValidatingPrompt{
|
|||||||
@Override
|
@Override
|
||||||
protected boolean isInputValid(ConversationContext context, String input) {
|
protected boolean isInputValid(ConversationContext context, String input) {
|
||||||
return plugin.getServer().getPlayer(input) != null;
|
return plugin.getServer().getPlayer(input) != null;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -237,8 +237,7 @@ public class Mushroom extends MaterialData {
|
|||||||
case DOWN:
|
case DOWN:
|
||||||
if (painted) {
|
if (painted) {
|
||||||
data = MushroomBlockTexture.ALL_CAP.getData();
|
data = MushroomBlockTexture.ALL_CAP.getData();
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
data = MushroomBlockTexture.ALL_PORES.getData();
|
data = MushroomBlockTexture.ALL_PORES.getData();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user