Programmieren & Softwareentwicklung

Wenn Du nicht nur Anwender sein willst, sondern auch aktiv programmierst oder mit dem Gedanken spielst, dann warten hier die passenden Fragen und Antworten auf Dich.

26.763 Beiträge

Ask Me Anything: Themenspecials

Verbindung Freundschaft schwarzer Hintergrund css code?

Hallo. Wir haben folgendes Problem. Wir haben alles schwarzer Hintergrund gemacht mit grau und weißer Schrift. leider fehlt uns ein Teil ( siehe bild ) kann uns jemand helfen und den code machen den wir hinzufügen können das auch der Teil schwarz ist und weiße Schrift?

das ist unser css code:

div.memberList .memberInfos { 

background-image: none; /* kein Hintergrundbild */

background-color: #000000; /* Hintergrundfarbe schwarz */

color: #696969; /* Schriftfarbe mattes grau*/

}

#profileInfos table.profileTable { background-color: #000000; }

.profileTable .label, .profileTable td, .profileTable td * { color: #696969!important; } #profileInfos h4.sub_head { color: #696969!important; }

}

}/* - - - Profil - - - */ #profileDetails, #profileStats, #profileAdvanced { background-image: none; background-color: #000; color: #696969!important; } #profileInfos .box2 td, #profileInfos .box2 td span, #profileInfos .box2 td strong, #profileInfos .box2 td a { color: #696969!important;}

}

.profileOptionsTitle, #profileOptions ul li a, #profileAdminOptions ul li a { background-color: #000!important; color: #fff!important; } #profileOptions, #profileOptions ul li { padding: 0; } #profileOptions, #profileAdminOptions { border: 1px solid #fff; } #profileOptions, #profileOptions ul li { padding: 0; }

/* - - - Mitglieder-Liste - - - */ div.memberList .memberListItem { border: 2px solid #fff; background-color: #fff; } div.memberList .memberInfos { background-image: none; background-color: #000; color: #fff; } div.memberList .memberInfos td { color: #fff!important; } div.memberList .memberOptions a { color: #fff!important; }

---

das auf dem bild das weiße da wo steht bestätigen freund, das wollen wir auch schwarz und weiße schrift

lg

Bild zum Beitrag

Weiss jemand wie ich ein Casino Bot auf einem City Build Server erstelle die Nachricht muss immer mit Bot anfangen also wäre nett wenn ihr mir antwortet :)?

Hier habe ich schon ein Paar Comands ich weiss nur nicht wie ich die anwenden kann ?

import org.bukkit.command.Command;

import org.bukkit.command.CommandSender;

import org.bukkit.command.CommandExecutor;

import org.bukkit.entity.Player;

import java.util.Random;

public class CasinoBot implements CommandExecutor {

private static final double WIN_PROBABILITY = 0.5; // Ändere die Wahrscheinlichkeit hier

private Random random = new Random();

@Override

public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {

if (command.getName().equalsIgnoreCase("pay")) {

if (sender instanceof Player) {

Player player = (Player) sender;

if (args.length < 1) {

player.sendMessage("Bitte gib den Zahlungsbetrag an!");

return true;

}

double paymentAmount;

// Zahlungs betrag überprüfen

try {

paymentAmount = Double.parseDouble(args[0]);

} catch (NumberFormatException e) {

player.sendMessage("Ungültiger Zahlungsbetrag!");

return true;

}

boolean doubleOrNothing = random.nextDouble() <= WIN_PROBABILITY;

double payoutAmount = doubleOrNothing ? 2 * paymentAmount : 0;

player.sendMessage("Zahlungsbetrag: " + paymentAmount);

if (doubleOrNothing) {

player.sendMessage("Glückwunsch! Du hast gewonnen " + payoutAmount);

// Hier die Logik zum Auszahlen des gewonnenen Betrags implementieren

} else {

player.sendMessage("Du hast verloren!");

// Hier die logic fürs verlieren

}

}

return true;

}

return false;

}

}