Skocz do zawartości


Zdjęcie

[FACTIONS] Czy da się spolszczyc wiadomości ?

factions

Najlepsza odpowiedź Capa , 20 May 2014 - 07:08

Otwórz plik factions.jar za pomocą np 7zipa. Wypakuj pliki, i edytuj. np

 

CmdFactionsSthome.java

 

@Override
	public void perform()
	{
		// Args
		Faction faction = this.arg(0, ARFaction.get(usenderFaction), usenderFaction);
		if (faction == null) return;
		
		PS newHome = PS.valueOf(me.getLocation());
		
		// Validate
		if ( ! UConf.get(faction).homesEnabled)
		{
			usender.msg("<b>Sorry, Faction homes are disabled on this server.");
			return;
		}
		
		// FPerm
		if ( ! FPerm.SETHOME.has(usender, faction, true)) return;
		
		// Verify
		if (!usender.isUsingAdminMode() && !faction.isValidHome(newHome))
		{
			usender.msg("<b>Sorry, your faction home can only be set inside your own claimed territory.");
			return;
		}
		
		// Event
		FactionsEventHomeChange event = new FactionsEventHomeChange(sender, faction, newHome);
		event.run();
		if (event.isCancelled()) return;
		newHome = event.getNewHome();

		// Apply
		faction.setHome(newHome);
		
		// Inform
		faction.msg("%s<i> set the home for your faction. You can now use:", usender.describeTo(usenderFaction, true));
		faction.sendMessage(Factions.get().getOuterCmdFactions().cmdFactionsHome.getUseageTemplate());
		if (faction != usenderFaction)
		{
			usender.msg("<b>You have set the home for the "+faction.getName(usender)+"<i> faction.");
		}
	}
	
}

W ten sposób spolszczysz sobie napisy.

Przejdź do postu


  • Zamknięty Temat jest zamknięty
3 odpowiedzi w tym temacie

#1 MateuszP0L

MateuszP0L

    Nowy

  • Użytkownik
  • 50 postów
  • MateuszP0L

Napisano 18 May 2014 - 22:39

Witaj !

 

Mam pytanie czy da się spolszczyc wiadomośc w pluginie Factions ?

Np gdy wpiszę /f home

to zamiast wiadmości Teleporting to your faction home. bendzie pisało Teleportacja do gildi.

Proszę bardzooo o pomoc !

najlepiej jak byś mógł/mogła wytłumaczyc krok po kroku.

Szperałem w programie Java Decompiler żeby znaleśc te wiadomości, ale nic nie znalazłem.

NIE CHCĘ CZYJEGOŚ PLUGINU. bo zazwyczaj są to stare wersje.



craftportal

Craftserve to największy i najlepszy polski hosting serwerów Minecraft, jest solidny i tani więc go polecam

#2 SzymnYo

SzymnYo

    ~~Zawodowy Miszczu~~

  • Użytkownik+
  • 509 postów
  • SzymnYo

Napisano 20 May 2014 - 05:38

To sobie uzyj skryptu UltimateClans2 jest caly po polsku
Pomogłem ?
Daj Lajka :D
Nie pomogłem ?
Też daj ;)

#3 Capa

Capa

    Nowy

  • Użytkownik
  • 45 postów

Napisano 20 May 2014 - 07:08   Najlepsza odpowiedź

Otwórz plik factions.jar za pomocą np 7zipa. Wypakuj pliki, i edytuj. np

 

CmdFactionsSthome.java

 

@Override
	public void perform()
	{
		// Args
		Faction faction = this.arg(0, ARFaction.get(usenderFaction), usenderFaction);
		if (faction == null) return;
		
		PS newHome = PS.valueOf(me.getLocation());
		
		// Validate
		if ( ! UConf.get(faction).homesEnabled)
		{
			usender.msg("<b>Sorry, Faction homes are disabled on this server.");
			return;
		}
		
		// FPerm
		if ( ! FPerm.SETHOME.has(usender, faction, true)) return;
		
		// Verify
		if (!usender.isUsingAdminMode() && !faction.isValidHome(newHome))
		{
			usender.msg("<b>Sorry, your faction home can only be set inside your own claimed territory.");
			return;
		}
		
		// Event
		FactionsEventHomeChange event = new FactionsEventHomeChange(sender, faction, newHome);
		event.run();
		if (event.isCancelled()) return;
		newHome = event.getNewHome();

		// Apply
		faction.setHome(newHome);
		
		// Inform
		faction.msg("%s<i> set the home for your faction. You can now use:", usender.describeTo(usenderFaction, true));
		faction.sendMessage(Factions.get().getOuterCmdFactions().cmdFactionsHome.getUseageTemplate());
		if (faction != usenderFaction)
		{
			usender.msg("<b>You have set the home for the "+faction.getName(usender)+"<i> faction.");
		}
	}
	
}

W ten sposób spolszczysz sobie napisy.



#4 GRACZoL

GRACZoL

    Znawca

  • Użytkownik
  • 285 postów

Napisano 23 May 2014 - 16:27

Użyj inclass translate czy coś takiego :-)

© GRACZoL™ 2013-2014 ®
 






Również z jednym lub większą ilością słów kluczowych: factions