View FriendManager
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
private static void sendRequestInfo(Player p, String requester) { | |
NPlayer d = NovaCore.getPlayer(p.getName()); | |
FriendManager mgr = d.getFriendManager(); | |
SimpleFormMenu menu = new SimpleFormMenu(TextFormat.GOLD + requester, Lang.send(p, new String[] { | |
"Do you want to add this player as a friend?", | |
"Ты действительно хочешь добавить данного игрока в друзья?" | |
})); | |
menu.addButton(TextFormat.GREEN + Lang.send(p, new String[] {"YES", "ДА"}), new ButtonResponse() { | |
public void onResponse(Player p, Button button) { |
View Chance.java
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 lombok.Getter; | |
public class Chance { | |
@Getter | |
private Object object; | |
@Getter | |
private int chance; | |
public Chance(Object obj, int chance) { |
View VotingManager.java
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 net.novaplay.bedwars.arena.voting; | |
import net.novaplay.bedwars.arena.Arena; | |
import cn.nukkit.Player; | |
import java.util.*; | |
public class VotingManager { |
View Main.java
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.*; | |
import java.lang.*; | |
import java.io.*; | |
class Main{ | |
public static double PI = 3; //it is aproximally value | |
public static void main (String[] args) throws java.lang.Exception{ | |
int n = 2; | |
for (int i = 0; i < 500; i++) { | |
PI += (i % 2 == 0 ? 1 : -1) * 4.0 / (n * (n + 1) * (n + 2)); | |
n += 2; |
View en_US.lang
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
language.name=English | |
language.region=US | |
language.code=en_US | |
gui.ok=Ok | |
gui.done=Done | |
gui.cancel=Cancel | |
gui.back=Back |
View cz_CZ.lang
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
language.name=Čeština | |
language.region=CZ | |
language.code=cz_CZ | |
gui.ok=Ok | |
gui.done=Done | |
gui.cancel=Cancel | |
gui.back=Back |